CN109151145B - Audio channel detection method and device - Google Patents

Audio channel detection method and device Download PDF

Info

Publication number
CN109151145B
CN109151145B CN201811044775.3A CN201811044775A CN109151145B CN 109151145 B CN109151145 B CN 109151145B CN 201811044775 A CN201811044775 A CN 201811044775A CN 109151145 B CN109151145 B CN 109151145B
Authority
CN
China
Prior art keywords
audio
frequency response
microphone
user equipment
response information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811044775.3A
Other languages
Chinese (zh)
Other versions
CN109151145A (en
Inventor
彭功良
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Oneplus Technology Shenzhen Co Ltd
Original Assignee
Oneplus Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oneplus Technology Shenzhen Co Ltd filed Critical Oneplus Technology Shenzhen Co Ltd
Priority to CN201811044775.3A priority Critical patent/CN109151145B/en
Publication of CN109151145A publication Critical patent/CN109151145A/en
Application granted granted Critical
Publication of CN109151145B publication Critical patent/CN109151145B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/24Arrangements for testing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R29/00Monitoring arrangements; Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L25/00Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00
    • G10L25/78Detection of presence or absence of voice signals
    • G10L2025/783Detection of presence or absence of voice signals based on threshold decision
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L25/00Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00
    • G10L25/78Detection of presence or absence of voice signals

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Otolaryngology (AREA)
  • Circuit For Audible Band Transducer (AREA)
  • Telephone Function (AREA)

Abstract

The invention provides a method for detecting an audio channel, which is applied to user equipment and comprises the following steps: controlling a pressure field microphone of user equipment to output audio, wherein the audio is transmitted through an audio channel to be detected; controlling a transmitter of the user equipment to receive audio, and processing the received audio to obtain measurement frequency response information; and comparing the measured frequency response information with the preset frequency response information to obtain a detection result, and determining whether the audio channel of the user equipment leaks or not according to the detection result. Therefore, the method and the device for detecting the audio channel can simply, quickly and accurately detect the audio channel, so that the problem of the audio channel when the mobile phone is manufactured is avoided.

Description

Audio channel detection method and device
Technical Field
The invention relates to the technical field of electronic equipment, in particular to a method and a device for detecting an audio channel.
Background
Currently, with the development of society, mobile phones are continuously improving functions or improving shapes. However, in the course of continuous improvement, mobile phones still include a large number of parts, such as a center frame, a battery, various components, and a display screen. In this case, the middle frame is used as a basic frame of the mobile phone, and the manufacturing requirements of the middle frame are usually high.
With the requirement of waterproof performance, when a waterproof mobile phone is held, the manufacturing of the middle frame is usually preferred, because once the middle frame has cracks or is damaged, the use of the waterproof mobile phone is affected. Among them, the audio channel included as the center frame is particularly vulnerable, and therefore, leak detection of the audio channel becomes very important. However, in practice, it is found that there is no audio channel detection method that is relatively simple and accurate, and this makes the audio channel having a problem unable to be detected in time, thereby affecting the performance of the finished product of the mobile phone.
Disclosure of Invention
In view of the above problems, the present invention provides a method and an apparatus for detecting an audio channel, which can simply, quickly and accurately detect the audio channel, thereby avoiding the problem of the audio channel when the mobile phone is manufactured.
In order to achieve the purpose, the invention adopts the following technical scheme:
in a first aspect, the present invention provides a method for detecting an audio channel, which is applied to a user equipment, and includes:
controlling a pressure field microphone of the user equipment to output audio, wherein the audio is transmitted through an audio channel to be detected;
when a receiving instruction is detected, controlling a transmitter of the user equipment to receive the audio, and processing the received audio to obtain measured frequency response information;
and comparing the measured frequency response information with preset frequency response information to obtain a detection result, and determining whether the audio channel of the user equipment leaks according to the detection result.
As an alternative embodiment, the pressure field microphone is a pressure field moving iron microphone.
As an optional implementation manner, the controlling a microphone of the user equipment to receive the audio, and processing the received audio to obtain measured frequency response information includes:
controlling a microphone of the user equipment to receive the audio;
processing the received audio to obtain an audio signal;
performing signal amplification and demodulation on the audio signal to obtain an audio processing signal;
and carrying out frequency point frequency analysis on the audio processing signal to obtain measurement frequency response information comprising a measurement frequency response curve.
As an optional implementation manner, the comparing the measured frequency response information with the preset frequency response information to obtain a detection result, and determining whether an audio channel of the user equipment has a leak according to the detection result includes:
comparing whether a measurement frequency response curve included in the measurement frequency response information is similar to a preset frequency response curve included in the preset frequency response information;
if so, judging whether the difference value of each frequency point of the measured frequency response curve and the preset frequency response curve is smaller than a preset threshold value;
if the difference value of each frequency point of the measured frequency response curve and the preset frequency response curve is not smaller than a preset threshold value, determining that the audio channel of the user equipment has leakage;
and if the difference value of each frequency point of the measured frequency response curve and the preset frequency response curve is smaller than a preset threshold value, determining that the audio channel of the user equipment has no leakage.
As an optional implementation manner, the preset threshold is calculated based on the audio transmission time; wherein the audio transmission time is the absolute value of the difference between the moment when the pressure field microphone outputs the audio and the moment when the microphone receives the audio.
In a second aspect, the present invention provides an apparatus for detecting an audio channel, which is applied to a user equipment, and includes:
the control module is used for controlling a pressure field microphone of the user equipment to output audio and controlling a microphone of the user equipment to receive the audio when a receiving instruction is detected; the audio is transmitted through an audio channel to be detected;
the processing module is used for processing the received audio to obtain measurement frequency response information;
and the comparison module is used for comparing the measured frequency response information with preset frequency response information to obtain a detection result and determining whether the audio channel of the user equipment leaks or not according to the detection result.
As an alternative embodiment, the pressure field microphone is a pressure field moving iron microphone.
In a third aspect, the present invention provides a user device comprising a bezel structure, a pressure field microphone, a microphone, and the detection means of an audio channel provided in the second aspect, wherein,
the middle frame structural part is provided with a first hole and a second hole, the pressure field microphone is provided with a sound outlet hole, and the microphone is provided with a sound receiving hole;
the detection device, the pressure field microphone, the middle frame structural part and the microphone are electrically connected in sequence to form a loop; the sound outlet hole of the pressure field microphone is communicated with the first hole of the middle frame structural part in a sealing mode, and the second hole of the middle frame structural part is communicated with the sound receiving hole of the microphone in a sealing mode.
In a fourth aspect, the present invention provides an electronic device, including a memory for storing a computer program and a processor for executing the computer program to make the electronic device execute the method for detecting an audio channel disclosed in the first aspect.
In a fifth aspect, the present invention provides a computer-readable storage medium storing the computer program used in the above-mentioned electronic device.
According to the audio channel detection method provided by the invention, a user can control the pressure field microphone to output audio, so that the audio can be transmitted to the microphone through the audio channel, the measured frequency response information and the preset frequency response information are compared after the microphone receives the audio to obtain a detection result, and whether the audio channel of the user equipment leaks or not is determined according to the detection result. Therefore, by implementing the implementation mode, whether the audio transmission channel has a problem or not can be sensitively detected, so that the situation that the mobile phone has a leakage problem in the subsequent use process is avoided.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are required to be used in the embodiments will be briefly described below, and it should be understood that the following drawings only illustrate some embodiments of the present invention, and therefore should not be considered as limiting the scope of the present invention.
Fig. 1 is a schematic flowchart of a method for detecting an audio channel according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a method for detecting an audio channel according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of an apparatus for detecting an audio channel according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a user equipment according to a fourth embodiment of the present invention;
FIG. 5 is a schematic physical structure diagram of a middle frame structure in the user equipment depicted in FIG. 4;
fig. 6 is a graph comparing frequency response curves obtained by implementing an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
Aiming at the problems in the prior art, the invention provides a method and a device for detecting an audio channel, which are applied to user equipment. The user can control the pressure field microphone to output audio, so that the audio can be transmitted to the microphone through the audio channel, after the microphone receives the audio, the measured frequency response information and the preset frequency response information are compared to obtain a detection result, and whether the audio channel of the user equipment leaks or not is determined according to the detection result. Therefore, by implementing the implementation mode, whether the audio transmission channel has a problem or not can be sensitively detected, so that the condition that the mobile phone has a leakage problem in the subsequent use process is avoided.
The above technical method can also be implemented by using related software or hardware, and further description is not repeated in this embodiment. The following describes a method and an apparatus for detecting the audio channel by an embodiment.
Example 1
Referring to fig. 1, fig. 1 is a schematic flowchart illustrating a method for detecting an audio channel according to the present embodiment. As shown in fig. 1, the method for detecting an audio channel is applied to a user equipment, and includes the following steps:
s101, controlling a pressure field microphone of user equipment to output audio, wherein the audio is transmitted through an audio channel to be detected.
In this embodiment, the pressure field microphone may be a built-in component of the user device.
In this embodiment, the pressure field microphone may be a device or apparatus associated with the user equipment, and since the pressure field microphone is associated with the user equipment and the audio channel in the user equipment is the object to be detected, the pressure field microphone may be understood as a device belonging to the user equipment. Similarly, the microphone may be a device belonging to the user equipment but not provided in the user equipment.
In this embodiment, the user device may be an electronic device having an audio channel, a pressure field microphone, and a microphone.
In this embodiment, the device for controlling the pressure field microphone to output the audio may be a user equipment body, may also be a detection device independent from the user equipment, may also be an operation platform including the user equipment, and may even be software or code capable of executing the functions, and the execution main body is not limited in this embodiment.
In this embodiment, the pressure field microphone may output audio according to a detected control instruction, where the control instruction may be an instruction generated by the user equipment body or an instruction sent by the user using another device.
In this embodiment, the Pressure Field (Pressure Field) refers to a sound Field with a small application range, such as an artificial ear and a sound Pressure on a surface of an object. Wherein the pressure field microphone outputs a corresponding audio frequency by means of a sound pressure on the microphone diaphragm. When measuring frequency response below 10000Hz, the pressure field type microphone can also be used in free field and irregular incident sound field environments. Therefore, in the embodiment, the pressure field microphone can better output the audio, and the usability and the good practicability of the audio are ensured.
In this embodiment, the output audio content is not limited in this embodiment.
As an alternative embodiment, controlling a pressure field microphone of a user device to output audio includes:
and controlling a pressure field microphone of the user equipment to output preset detection audio.
By implementing the embodiment, the detection content can be determined through the limitation of the audio, so that the detection precision is improved, and the efficient and accurate measurement of whether the audio channel leaks or not is completed.
And S102, controlling a microphone of the user equipment to receive audio when the receiving instruction is detected.
In this embodiment, the receiving instruction may be a fingerprint instruction, a voice instruction, a touch instruction, and a text instruction that are input by a user and used for controlling the receiving, which is not limited in this embodiment.
For example, the receiving instruction is a receiving instruction input by a user in the control device, so that the microphone of the control device receives audio; the receiving instruction can be generated by a user touching an operation screen of the control device.
In this embodiment, the microphone only receives the audio when receiving the receiving command, thereby avoiding the life loss and the power loss of the microphone caused by receiving the audio all the time.
In this embodiment, the microphone refers to a microphone used in communication equipment, and is generally classified into a general microphone and an anti-noise microphone. The universal microphone is used in a general environment and is divided into an active microphone and a passive microphone. The anti-noise microphone is used in the place with larger environmental noise, and can be divided into an air guide type and a contact type according to different working principles.
In this embodiment, the microphone may be a carbon microphone, an electret microphone, or a microphone circuit, but is not limited in this embodiment. In short, the microphone may be a microphone for receiving a voice signal and converting the voice signal into an electric signal.
In this embodiment, the audio received by the microphone is the audio output by the pressure field microphone and transmitted through the audio channel.
And S103, processing the received audio to obtain the measured frequency response information.
In this embodiment, the received audio is the audio received in step S102.
In this embodiment, the controller processes the audio to obtain measured frequency response information of the audio, where the measured frequency response information is audio information received after the audio is transmitted in an audio channel.
In this embodiment, the measurement frequency response information at least includes frequency information and loudness information, and the frequency information and the loudness information may reflect an audio state of the received audio information.
In this embodiment, when the microphone receives the audio, the sound signal is converted into an electrical signal, and in this step, the electrical signal is processed to obtain measurement frequency response information, and specifically, the measurement frequency response information may be a measurement frequency response curve.
And S104, comparing the measured frequency response information with the preset frequency response information to obtain a detection result, and determining whether the audio channel of the user equipment leaks or not according to the detection result.
In this embodiment, the preset frequency response information is content stored in the controller or the control device, and the preset frequency response information is frequency response information when the audio is sent out.
For example, the measured frequency response information is a measured frequency response curve, the preset frequency response information is a preset frequency response curve, the measured frequency response curve and the preset frequency response curve are compared, and whether the audio channel has leakage or not is determined according to whether the two frequency response curves are similar or not and whether the difference is large or not; and when the two frequency response curves are similar and have larger difference, judging that the audio channel has leakage. The judgment of the difference is determined according to a preset difference value.
In this embodiment, the change of the audio frequency can be determined according to the detection result obtained by comparing the measured frequency response information with the preset frequency response information, and whether the audio channel is leaked or not is determined according to the change of the audio frequency.
In this embodiment, after the measurement frequency response information is compared with the preset frequency response information to obtain the detection result, the specific condition of the audio channel, such as a leakage condition or an audio transmission condition, may also be determined according to the detection result. By implementing the implementation mode, the quality of the audio channel can be determined through audio, the cost is reduced, and the efficiency and the accuracy are improved.
As shown in fig. 1, a user may control the pressure field microphone to output audio through the user device or the control device, so that the audio may be transmitted to the microphone through the audio channel, and after the microphone receives the audio, a detection result obtained by comparing the measured frequency response information with the preset frequency response information is obtained, so that the user device or the control device may determine whether the audio channel has a leak according to the detection result. Therefore, by implementing the method described in fig. 1, it is possible to quickly and sensitively detect whether there is a problem in the audio transmission channel, thereby avoiding the situation that the mobile phone has a leakage problem in the subsequent use process. Meanwhile, the problem that the audio channel is leaked only after the user equipment is assembled into a whole machine and can be tested and found is also avoided. Therefore, the condition that disassembly and reassembly are needed when the whole machine is tested badly is avoided, even when the whole machine is assembled irreversibly, the method can avoid material scrapping caused by disassembly, and reduce the assembly badness and the rejection rate of the material, thereby ensuring the production cost and avoiding waste.
Example 2
Referring to fig. 2, fig. 2 is a schematic flowchart illustrating a method for detecting an audio channel according to an embodiment of the present invention. As shown in fig. 2, the method for detecting an audio channel includes the following steps:
s201, controlling a pressure field moving iron microphone of user equipment to output audio, wherein the audio is transmitted through an audio channel to be detected.
In this embodiment, the pressure field moving iron microphone is a moving iron type pressure field microphone, and the moving iron type microphone is a microphone that is transmitted to a center point of a diaphragm through a connecting rod with a precise structure, so as to generate vibration and generate sound. In essence, the moving iron type microphone utilizes an electromagnet to generate an alternating magnetic field, an iron sheet is suspended in front of the electromagnet, and the magnetic field of the electromagnet is changed when a signal passes through the electromagnet, so that the iron sheet vibrates. The moving iron type microphone has the advantages of long service life, high efficiency and simple and accurate sound production. For example, the prior art is a moving-iron type unit, which is mainly composed of a coil fixed in a magnetic circuit and a ferromagnetic part capable of vibrating, and when an alternating current (audio electric signal) passes through the coil, a changing magnetic field is generated to drive a sheet of iron (or other ferromagnetic materials) to vibrate and sound.
In this embodiment, the pressure field moving iron type microphone can avoid redundant control and operation, and directly produces sound through the moving iron, thereby improving the accuracy and efficiency of sound production of the microphone. In practice, the pressure field moving iron type microphone can well emit detection audio in closed scenes such as an audio channel and the like, so that whether leakage exists in the audio channel can be detected simply, quickly and accurately.
S202, when the receiving instruction is detected, controlling a microphone of the user equipment to receive audio.
In this embodiment, the user triggers and generates the instruction in various ways when receiving the instruction, and the various ways are not limited in this embodiment.
S203, processing the received audio to obtain an audio signal.
In this embodiment, the audio is a physical signal, and the audio signal is an electrical signal.
And S204, carrying out signal amplification and demodulation on the audio signal to obtain an audio processing signal.
In this embodiment, amplifying the audio signal may more accurately display the audio signal, so that after demodulation, a large amount of audio data may be accurately extracted, where the large amount of audio data is collected as an audio processing signal. The audio processing signal is more informative and accurate than the audio signal.
S205, frequency point frequency analysis is carried out on the audio processing signal, and measurement frequency response information comprising a measurement frequency response curve is obtained.
In this embodiment, the frequency point frequency analysis is to perform frequency analysis on the position of each frequency point in the audio processing signal to obtain loudness information of the corresponding frequency point, and form a two-dimensional measurement frequency response curve through the frequency point and the loudness information, thereby obtaining measurement frequency response information including the measurement frequency response curve.
In this embodiment, by implementing the steps S203 to S205, the audio can be processed to obtain the measurement frequency response information including the measurement frequency response curve.
S206, comparing whether a measurement frequency response curve included in the measurement frequency response information is similar to a preset frequency response curve included in the preset frequency response information, and if so, executing the step S207; if they are not similar, the process is ended.
In this embodiment, the similarity refers to a condition that the coincidence rate or the fitting rate between the two measured frequency response curves and the preset frequency response curve is higher than a preset value.
In this embodiment, it is possible to determine whether the microphone receives the audio to be received or whether the audio channel is damaged to a large extent so that the microphone does not receive the audio by determining whether the measured frequency response curve is similar to the preset frequency response curve.
For example, if the measured frequency response curve is similar to the preset frequency response curve, it indicates that the audio is transmitted to the microphone, and the received audio is not interfered, and at this time, the curve information can effectively reflect whether the audio channel is leaked or not; when the measured frequency response curve is not similar to the preset frequency response curve, the microphone can receive noise or the audio channel is damaged to a large extent or has a problem that the noise is not leaked any more.
As an optional implementation manner, when the measured frequency response curve included in the measured frequency response information is not similar to the preset frequency response curve included in the preset frequency response information, an alarm message is sent, where the alarm message is used to prompt that the audio channel has a fault or that the detection device has a fault. By implementing the implementation mode, the detection content of the audio channel can be expanded, and the universality and the practicability are improved.
In this embodiment, whether or not the leak occurs indicates whether or not the airtightness reaches the standard.
S207, judging whether the difference value of each frequency point of the measured frequency response curve and the preset frequency response curve is smaller than a preset threshold value or not; if not, go to step S208; if so, go to step S209.
In this embodiment, the sound gradually loses its loudness with the transmission distance, and therefore, the preset threshold may be calculated based on the audio transmission time; the audio transmission time is the absolute value of the time difference between the moment when the pressure field microphone outputs the audio and the moment when the microphone receives the audio.
In this embodiment, when the measured frequency response curve is similar to the preset frequency response curve, it is indicated that the audio has been accurately received, the frequency point difference detected in this step is whether the change of the detected loudness is normal, and if the change of the loudness is excessive, it is proved that the transmission of the audio is hindered (e.g., reflected) in the transmission process, so that whether a problem exists in the audio channel can be determined by whether the change degree of the loudness is excessive. Wherein the audio channel is often a problem such as leakage or damage of the audio channel.
And S208, determining that the audio channel of the user equipment has leakage.
S209, determining that the audio channel of the user equipment has no leakage.
In this embodiment, by implementing the steps S206 to S209, the measured frequency response information and the preset frequency response information can be compared to obtain a detection result, and whether the audio channel of the user equipment has a leak can be determined according to the detection result.
As shown in fig. 2, the controller or the user equipment may send out a precise audio through the pressure field moving iron microphone, so that the audio is sent to the microphone through the audio channel, thereby improving the quality of the initial output of the audio; after receiving the audio, the microphone converts the audio into an audio electric signal, so that the controller or the processor processes the audio electric signal to obtain a measured frequency response curve, and the amplification and demodulation are used in the processing process, so that the interference and the noise can be reduced while the measured frequency response curve is more detailed; and comparing the measured frequency response curve with the preset frequency response curve to obtain a comparison result, wherein the comparison result comprises whether the two curves are similar and whether the difference between the two curves is overlarge, so that whether the audio channel has a problem or not is judged according to the similarity degree and the difference degree, and the problem is how large. Therefore, by implementing the method described in fig. 2, it can be detected accurately, sensitively and quickly whether the audio transmission channel has a problem and the severity of the problem, so as to avoid the situation that the user equipment has a leakage problem in the subsequent use process.
Example 3
Referring to fig. 3, fig. 3 is a schematic structural diagram of a detection apparatus of an audio channel according to an embodiment of the present invention.
As shown in fig. 3, the apparatus 300 for detecting an audio channel is applied to a user equipment, and includes:
the control module 301 is configured to control a pressure field microphone of the user equipment to output audio, and when detecting a receiving instruction, control a microphone of the user equipment to receive the audio; and the audio is transmitted through an audio channel to be detected.
In this embodiment, the pressure field microphone may be set in the user equipment, and the microphone may also be set in the user equipment; meanwhile, the pressure field microphone and the microphone can be external structures which are not arranged in the user equipment any more, but are affiliated to the user equipment, and the pressure field microphone, the audio channel and the microphone can form a loop.
And the processing module 302 is configured to process the received audio to obtain measured frequency response information.
And the comparison module 303 is configured to compare the measured frequency response information with the preset frequency response information to obtain a detection result, and determine whether the audio channel of the user equipment leaks according to the detection result.
In this embodiment, the pressure field microphone is a pressure field moving iron microphone.
In this embodiment, the method steps described in embodiment 1 or embodiment 2 are applied to the detection apparatus 300 for audio channels, and the detection apparatus 300 is a detection apparatus independent from the user equipment, and its power supply and processing apparatus may not be shared by both the user equipment and the apparatus.
As an alternative embodiment, the detection means 300 of the audio channel further comprises a pressure field microphone and a microphone.
By implementing the embodiment, the detection device 300 of the audio channel can autonomously control and detect the user equipment, avoid the external arrangement of the microphone and the microphone, improve the integration degree of the device, and simultaneously reduce the use difficulty.
In this embodiment, when the detection device 300 of the audio channel is used, the microphone may be controlled to output audio and the microphone may be controlled to receive audio, so as to implement loop back of the detection device 300, the microphone, the audio channel and the microphone, and accurately determine the problem occurring in the audio channel according to the transmission condition of the audio information.
It can be seen that, by implementing the detection apparatus 300 described in fig. 3, the audio channel of the user equipment can be detected from the outside, so as to sensitively detect whether there is a problem in the audio transmission channel, and avoid the situation that the apparatus for detection needs to be built in.
Example 4
Referring to fig. 4, the present embodiment further provides a user equipment. The user equipment comprises a middle frame structure 402, a pressure field microphone 401, a microphone 403 and the detection device 300 of the audio channel described in embodiment 3, wherein the middle frame structure 402 is provided with a first hole 50 and a second hole 60, the pressure field microphone 401 is provided with a sound outlet, and the microphone 403 is provided with a sound outlet;
the detection device 300, the pressure field microphone 401, the middle frame structure 402 and the microphone 403 are electrically connected in sequence to form a loop; wherein, the sound outlet hole of the pressure field microphone 401 is in sealed communication with the first hole 50 of the middle frame structure 402, and the second hole 60 of the middle frame structure 402 is in sealed communication with the sound outlet hole of the microphone 403.
In this embodiment, the detection apparatus 300 is built in the user equipment, and performs audio detection and audio frequency response curve comparison and judgment in the user equipment.
In this embodiment, the middle frame structure 402 is provided with the first hole 50 and the second hole 60, so that the sound outlet hole of the pressure field microphone 401 is hermetically connected with the middle frame structure 402 through the first hole 50, and the sound receiving hole of the microphone 403 is hermetically connected with the middle frame structure 402 through the second hole 60, thereby realizing the bidirectional sealing connection of the middle frame structure 402, avoiding the occurrence of problems at the joint, and further improving the detection accuracy of the audio channel in the middle frame structure 402.
Referring to fig. 5, fig. 5 is a schematic physical structure diagram of a middle frame structure 402, wherein the middle frame structure includes a first hole 50, a second hole 60, and an audio channel between the first hole 50 and the second hole 60. In practice, the sound outlet of the pressure field microphone 401 is hermetically connected to the middle frame 402 through the first hole 50, and the sound outlet of the microphone 403 is hermetically connected to the middle frame 402 through the second hole 60.
For example, the user may position the middle frame structure 402 by a jig to ensure that the sound outlet hole of the pressure field microphone 401 and the first hole 50 of the middle frame structure 402 are sealed by silicone, and the microphone 403(MIC) and the second hole 60 of the middle frame structure 402 are sealed. The detection device 300 (control module) sends an audio file playing instruction to control the pressure field microphone 401 to output; the detection device 300 (control module) sends an audio file receiving instruction, and the microphone 403(MIC) receives an audio signal to form a loop; the detection device 300 amplifies and demodulates the audio signal, and frequency analyzes the frequency of the received signal frequency point to form a frequency response curve; the detecting device 300 determines whether the middle frame structure 402 meets the requirement of air tightness according to the difference of the frequency response curves.
Referring to fig. 6, fig. 6 is a graph comparing frequency response curves obtained by implementing the embodiments of the present invention.
As shown in fig. 6, the test frequency response curve 80 is similar to the preset frequency response curve 70, but the difference between the test frequency response curve 80 and the preset frequency response curve 70 is large, so that the condition that the audio channel has leakage can be known. It can be seen that the core of this embodiment lies in that the pressure field microphone 401 is used as a signal sound emitting source by utilizing the characteristic that the frequency response difference of the audio frequency emitted by the pressure field microphone 401 is large under the condition of leakage, and a frequency response curve comparison graph as shown in fig. 6 can be obtained in practice.
In addition, the invention also provides another electronic device which can comprise a smart phone, a tablet computer, a vehicle-mounted computer, an intelligent wearable device and the like. The electronic device comprises a memory and a processor, wherein the memory can be used for storing a computer program, and the processor executes the computer program, so that the electronic device executes the method or the functions of each device in the device.
The memory may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the computer device, and the like. Further, the memory may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The embodiment also provides a computer storage medium for storing a computer program used in the electronic device.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative and, for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, each functional module or unit in each embodiment of the present invention may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The described functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention or a part of the technical solution that contributes to the prior art in essence can be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a smart phone, a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (7)

1. A method for detecting an audio channel, applied to a user equipment, is characterized in that the method comprises:
controlling a pressure field microphone built in the user equipment to output audio, wherein the audio is transmitted through an audio channel to be detected;
when a receiving instruction is detected, controlling a microphone of the user equipment to receive the audio, and processing the received audio to obtain measured frequency response information;
comparing the measured frequency response information with preset frequency response information to obtain a detection result, and determining whether an audio channel of the user equipment leaks according to the detection result;
the pressure field microphone is a pressure field moving iron microphone;
the controlling the microphone of the user equipment to receive the audio, and processing the received audio to obtain the measured frequency response information includes:
controlling a microphone of the user equipment to receive the audio;
processing the received audio to obtain an audio signal;
performing signal amplification and demodulation on the audio signal to obtain an audio processing signal;
and carrying out frequency point frequency analysis on the audio processing signal to obtain measurement frequency response information comprising a measurement frequency response curve.
2. The method according to claim 1, wherein the comparing the measured frequency response information with the preset frequency response information to obtain a detection result, and determining whether the audio channel of the ue has a leakage according to the detection result comprises:
comparing whether a measurement frequency response curve included in the measurement frequency response information is similar to a preset frequency response curve included in the preset frequency response information;
if so, judging whether the difference value of each frequency point of the measured frequency response curve and the preset frequency response curve is smaller than a preset threshold value;
if the difference value of each frequency point of the measured frequency response curve and the preset frequency response curve is not smaller than a preset threshold value, determining that the audio channel of the user equipment has leakage;
and if the difference value of each frequency point of the measured frequency response curve and the preset frequency response curve is smaller than a preset threshold value, determining that the audio channel of the user equipment has no leakage.
3. The detection method according to claim 2, wherein the predetermined threshold is calculated based on audio transmission time; wherein the audio transmission time is the absolute value of the difference between the moment when the pressure field microphone outputs the audio and the moment when the microphone receives the audio.
4. A detection device of an audio channel, applied to a user equipment, the detection device comprising:
the control module is used for controlling a pressure field microphone built in the user equipment to output audio and controlling a microphone of the user equipment to receive the audio when a receiving instruction is detected; the audio is transmitted through an audio channel to be detected;
the processing module is used for processing the received audio to obtain measurement frequency response information;
the comparison module is used for comparing the measured frequency response information with preset frequency response information to obtain a detection result and determining whether an audio channel of the user equipment leaks or not according to the detection result;
the pressure field microphone is a pressure field moving iron microphone;
the processing the received audio to obtain the measured frequency response information includes:
controlling a microphone of the user equipment to receive the audio;
processing the received audio to obtain an audio signal;
performing signal amplification and demodulation on the audio signal to obtain an audio processing signal;
and carrying out frequency point frequency analysis on the audio processing signal to obtain measurement frequency response information comprising a measurement frequency response curve.
5. A user device, comprising a middle frame structure, a pressure field microphone, a microphone, and the audio channel detection device of claim 4, wherein the middle frame structure is provided with a first hole and a second hole, the pressure field microphone is provided with a sound outlet, and the microphone is provided with a sound receiving hole;
the detection device, the pressure field microphone, the middle frame structural part and the microphone are electrically connected in sequence to form a loop; the sound outlet hole of the pressure field microphone is communicated with the first hole of the middle frame structural part in a sealing mode, and the second hole of the middle frame structural part is communicated with the sound receiving hole of the microphone in a sealing mode.
6. An electronic device, comprising a memory for storing a computer program and a processor for executing the computer program to cause the electronic device to perform the detection method according to any one of claims 1 to 3.
7. A computer-readable storage medium, characterized in that it stores a computer program for use in the electronic device of claim 6.
CN201811044775.3A 2018-09-07 2018-09-07 Audio channel detection method and device Active CN109151145B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811044775.3A CN109151145B (en) 2018-09-07 2018-09-07 Audio channel detection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811044775.3A CN109151145B (en) 2018-09-07 2018-09-07 Audio channel detection method and device

Publications (2)

Publication Number Publication Date
CN109151145A CN109151145A (en) 2019-01-04
CN109151145B true CN109151145B (en) 2021-03-02

Family

ID=64823924

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811044775.3A Active CN109151145B (en) 2018-09-07 2018-09-07 Audio channel detection method and device

Country Status (1)

Country Link
CN (1) CN109151145B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110381431A (en) * 2019-07-10 2019-10-25 珠海格力电器股份有限公司 Test method, the device and system of terminal microphone
CN110475196B (en) * 2019-08-20 2022-04-05 上海闻泰电子科技有限公司 Test fixture, acoustic device test system and method
CN111050265B (en) * 2019-11-27 2021-09-14 深圳易科声光科技股份有限公司 Automatic audio link detection method and device
CN111491061B (en) * 2020-04-21 2021-08-06 Oppo广东移动通信有限公司 Audio detection method and device for call scene and related equipment
CN111540347A (en) * 2020-05-12 2020-08-14 山东科华电力技术有限公司 Cable tunnel monitoring method and system based on audio
CN118075675A (en) * 2022-11-24 2024-05-24 青岛海尔空调器有限总公司 Method and device for detecting performance of acoustic device and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002236073A (en) * 2000-12-07 2002-08-23 Nissan Motor Co Ltd Airtightness inspecting device
CN105953980A (en) * 2016-04-29 2016-09-21 维沃移动通信有限公司 Method for detecting sealing performance of cavity, and mobile terminal
JP2017207375A (en) * 2016-05-19 2017-11-24 株式会社テイエルブイ Fluid leakage measurement device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8600067B2 (en) * 2008-09-19 2013-12-03 Personics Holdings Inc. Acoustic sealing analysis system
US20150369688A1 (en) * 2014-06-19 2015-12-24 Wistron Corporation Microphone seal detector
CN105372026B (en) * 2015-10-15 2018-10-26 Tcl移动通信科技(宁波)有限公司 A kind of air-tightness detection device and its method of microphone pickup structural path
CN107835482A (en) * 2017-10-17 2018-03-23 广东欧珀移动通信有限公司 Detection method, device and the electronic equipment of sound leakage rate
CN108076199B (en) * 2017-11-30 2020-10-09 北京小米移动软件有限公司 Method and device for detecting air tightness of microphone

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002236073A (en) * 2000-12-07 2002-08-23 Nissan Motor Co Ltd Airtightness inspecting device
CN105953980A (en) * 2016-04-29 2016-09-21 维沃移动通信有限公司 Method for detecting sealing performance of cavity, and mobile terminal
JP2017207375A (en) * 2016-05-19 2017-11-24 株式会社テイエルブイ Fluid leakage measurement device

Also Published As

Publication number Publication date
CN109151145A (en) 2019-01-04

Similar Documents

Publication Publication Date Title
CN109151145B (en) Audio channel detection method and device
KR101643059B1 (en) Electronic devices for controlling noise
US20150319534A1 (en) Evacuation of liquid from acoustic space
US10045141B2 (en) Detection of a microphone
CN108540900B (en) Volume adjusting method and related product
KR20160099640A (en) Systems and methods for feedback detection
JP6140217B2 (en) Electronic device, control method, and control program
WO2019008362A1 (en) Blocked microphone detection
CN108289270B (en) Loudspeaker and mobile terminal
CN107743704B (en) System, method and mobile device for determining a local environment of the mobile device
KR102435697B1 (en) Electronic device having structure with gas sensor
CN108802835B (en) Wireless charging detection method and device, mobile terminal and wireless charging system
WO2021103261A1 (en) Method for detecting retrieval or replacement of headphones in case, electronic device, and headphone assembly
KR102007509B1 (en) Hearing apparatus and method for measuring distance between hearing apparatus and eardrum
JP6175105B2 (en) Electronic device, control method, and control program
KR101340028B1 (en) Method, device for sensing touch on user terminal, and user terminal comprising the same
CN106878865B (en) Control method and control device for electroacoustic element
CN103493508A (en) Electronic devices for reducing acoustic leakage effects and related methods and computer program products
CN110784797A (en) Wireless earphone control method and device, wireless earphone and storage medium
WO2021043414A1 (en) Microphone blocking detection control
CN104363543A (en) Microphone frequency response curve adjusting method and device
KR20190076608A (en) Electrionc device having earphone jack integrated with gas sensor
JP6151875B1 (en) Portable device
CN112415292B (en) Piezoelectric device on-line detection device and method
CN113766411A (en) Earphone state detection method, earphone and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant