Microphone detection circuit and electronic equipment

By designing a microphone detection circuit in an electronic device and using voltage signals to detect the connection status of the microphone, the problem of lower sound acquisition effect caused by the user forgetting to install the microphone is solved, real-time detection and prompting are achieved, and the convenience and efficiency of the equipment are improved.

CN119545278APending Publication Date: 2025-02-28GUANGDONG XIAOTIANCAI TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202311119104.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-31
Publication Date
2025-02-28

AI Technical Summary

Technical Problem

When using a detachable microphone for sound collection, users tend to forget to install the microphone on an electronic device, resulting in a reduced vocal pickup effect.

Method used

A microphone detection circuit is designed, including a voltage supply module, a voltage adjustment module and a voltage detection module. By detecting voltage signals, the connection status of the microphone is determined, thereby real-time detection and prompting.

Benefits of technology

This circuit can quickly and accurately detect whether the microphone is connected to the electronic device, avoiding the reduction of sound acquisition effect caused by the user forgetting to install the microphone, and improving the convenience and efficiency of the device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119545278A_ABST
    Figure CN119545278A_ABST
Patent Text Reader

Abstract

The invention discloses a microphone detection circuit and electronic equipment, in the microphone detection circuit, a voltage providing module, a voltage adjusting module and a voltage detection module are arranged, and the voltage detection module is connected with the voltage providing module and the voltage adjusting module. The voltage adjusting module outputs a target voltage according to the target states of the separable microphone and the microphone detection circuit, and the voltage detection module can detect the target voltage according to the magnitude relation between the first voltage output by the voltage providing module and the target voltage because the target voltage has different voltage values in different target states. And the target electric signal used for indicating the target state is output, and the target voltage received by the voltage detection module can be changed into different voltage values according to different target states, so that the voltage detection module can quickly determine whether the electronic equipment is in a connection state with the separable microphone according to the target electric signal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to microphone technology, and relate to but are not limited to a microphone detection circuit and electronic equipment. Background Art

[0002] At present, when users study subjects such as Chinese and English that require a lot of recitation, they usually need to collect their own pronunciation and then play the collected audio files to improve their memory and oral expression skills. However, in order to enhance the pickup of human voices, it is usually necessary to place the electronic device close to the human mouth to ensure the pickup effect of human voices, which greatly limits the use of sound recording. Therefore, users can enhance the pickup effect of human voices by installing a detachable microphone on the electronic device. In order to improve portability and compatibility, the microphone is usually designed to be detachable. When audio recording is not needed, the microphone is removed to protect the microphone. However, after the microphone is removed, it is easy for the user to forget to install the detachable microphone on the electronic device when sound collection is needed, resulting in a problem in which the voice pickup effect of the electronic device is reduced. Therefore, the electronic device needs to detect the connection status of the detachable microphone in real time. Summary of the invention

[0003] In view of this, the microphone detection circuit and electronic device provided in the embodiments of the present application can quickly detect whether the detachable microphone is connected to the electronic device.

[0004] In a first aspect, an embodiment of the present application provides a microphone detection circuit, the circuit comprising a voltage supply module, a voltage adjustment module and a voltage detection module, the voltage detection module being respectively connected to the voltage supply module and the voltage adjustment module, wherein: the voltage supply module is used to output a preset first voltage to the voltage detection module; the voltage adjustment module is used to output a target voltage according to a target state of a detachable microphone and the microphone detection circuit, the target voltage having different voltage values ​​under different target states, the target state comprising a connected state or an unconnected state; the voltage detection module is used to output a target electrical signal according to the magnitude relationship between the first voltage and the target voltage, the target electrical signal being used to indicate the target state.

[0005] In the above-mentioned microphone detection circuit, a voltage supply module, a voltage adjustment module and a voltage detection module are set, and the voltage detection module is connected to the voltage supply module and the voltage adjustment module respectively, so that the voltage adjustment module outputs a target voltage according to the target state of the detachable microphone and the microphone detection circuit. Since the voltage value of the target voltage is different under different target states, the voltage detection module can output a target electrical signal for indicating the target state according to the magnitude relationship between the first voltage output by the voltage supply module and the target voltage. Since the target voltage received by the voltage detection module will change to different voltage values ​​according to different target states, the voltage detection module can quickly determine whether the electronic device is in a connected state with the detachable microphone according to the target electrical signal.

[0006] In some embodiments, the voltage adjustment module includes a first output submodule and a second output submodule, and the voltage detection module is connected to the first output submodule and the second output submodule, respectively, wherein: when the target state is an unconnected state, the target voltage is output to the voltage detection module through the first output submodule; when the target state is a connected state, the target voltage is output to the voltage detection module through the first output submodule and the second output submodule.

[0007] In some embodiments, the first output submodule includes a bias resistor and a first voltage input terminal, wherein: the first voltage input terminal is used to input a preset microphone operating voltage; the bias resistor is used to step down the microphone operating voltage; wherein, when the target state is an unconnected state, the voltage after the microphone operating voltage is stepped down by the bias resistor is the target voltage.

[0008] In some embodiments, the second output submodule includes a first access terminal and a second access terminal, one end of the first access terminal is connected to the voltage detection module, one end of the second access terminal is grounded, and the other end of the first access terminal and the other end of the second access terminal are used to connect to the detachable microphone, wherein: when the other end of the first access terminal and the other end of the second access terminal are used to connect to the detachable microphone, the microphone operating voltage is divided by the bias resistor and the voltage divider resistor connected in parallel to the detachable microphone to obtain the target voltage.

[0009] In some embodiments, when the target state is the unconnected state, the target voltage is a second voltage, and when the target state is the connected state, the target voltage is a third voltage, and a voltage value of the second voltage is greater than a voltage value of the third voltage; a voltage value of the first voltage is greater than a voltage value of the third voltage, and less than a voltage value of the second voltage; when the target voltage is the second voltage, the target electrical signal is a low-level signal; when the target voltage is the third voltage, the target electrical signal is a high-level signal.

[0010] In some embodiments, the voltage providing module includes a second voltage input terminal and a voltage dividing unit, and the voltage dividing unit is respectively connected to the second voltage input terminal and the voltage detection module, wherein: the second voltage input terminal is used to input a preset microphone working voltage; the voltage dividing unit is used to divide the microphone working voltage to output the first voltage.

[0011] In some embodiments, the voltage detection module is a comparator.

[0012] In a second aspect, an electronic device provided by an embodiment of the present application includes: the electronic device includes a voltage supply module, a voltage adjustment module, a voltage detection module and a processor, and the voltage detection module is respectively connected to the voltage supply module, the voltage adjustment module and the processor, wherein: the voltage supply module is used to output a first voltage to the voltage detection module; the voltage adjustment module is used to output a target voltage to the voltage detection module according to a target state of a detachable microphone and the microphone detection circuit, and the voltage value of the target voltage is different under different target states, and the target state includes a connected state or an unconnected state; the voltage detection module is used to output a target electrical signal according to the magnitude relationship between the first voltage and the target voltage, and the target electrical signal is used to indicate the target state; the processor is used to receive the target electrical signal and execute a processing strategy corresponding to the target electrical signal.

[0013] In some embodiments, the electronic device also includes an onboard microphone, the processing strategy includes a microphone usage strategy, and the processor is specifically used to: when the target electrical signal indicates the connection state, the processor controls the detachable microphone and the onboard microphone to collect the target audio in the current environment according to the target electrical signal; when the target electrical signal indicates the unconnected state, the processor controls the onboard microphone to collect the target audio in the current environment according to the target electrical signal.

[0014] In some embodiments, the processing strategy also includes an audio collection strategy, the target audio includes human voice and ambient sound, and the processor is specifically used to: when the target electrical signal indicates the connection state, the processor controls the detachable microphone to collect the human voice in the current environment and controls the onboard microphone to collect the ambient sound in the current environment according to the target electrical signal; when the target electrical signal indicates the disconnected state, the processor controls the onboard microphone to collect the human voice and ambient sound in the current environment according to the target electrical signal.

[0015] In some embodiments, the processing strategy also includes a noise reduction algorithm determination strategy, the noise reduction algorithm includes a single-microphone noise reduction algorithm and a dual-microphone noise reduction algorithm, and the processor is specifically used to: when the target electrical signal indicates the connection state, the processor uses the dual-microphone noise reduction algorithm to perform noise reduction processing on the target audio in the current environment; when the target electrical signal indicates the unconnected state, the processor uses the single-microphone noise reduction algorithm to perform noise reduction processing on the target audio in the current environment.

[0016] In some embodiments, the voltage adjustment module includes a first output submodule and a second output submodule, and the voltage detection module is connected to the first output submodule and the second output submodule, respectively, wherein: when the target state is an unconnected state, the target voltage is output to the voltage detection module through the first output submodule; when the target state is a connected state, the target voltage is output to the voltage detection module through the first output submodule and the second output submodule.

[0017] In some embodiments, the first output submodule includes a bias resistor and a first voltage input terminal, wherein: the first voltage input terminal is used to input a preset microphone operating voltage; the bias resistor is used to step down the microphone operating voltage; wherein, when the target state is an unconnected state, the voltage after the microphone operating voltage is stepped down by the bias resistor is the target voltage.

[0018] In some embodiments, the voltage adjustment module includes a first output submodule and a second output submodule, and the voltage detection module is connected to the first output submodule and the second output submodule, respectively, wherein: when the target state is an unconnected state, the target voltage is output to the voltage detection module through the first output submodule; when the target state is a connected state, the target voltage is output to the voltage detection module through the first output submodule and the second output submodule.

[0019] In some embodiments, the first output submodule includes a bias resistor and a first voltage input terminal, wherein: the first voltage input terminal is used to input a preset microphone operating voltage; the bias resistor is used to step down the microphone operating voltage; wherein, when the target state is an unconnected state, the voltage after the microphone operating voltage is stepped down by the bias resistor is the target voltage.

[0020] In some embodiments, the second output submodule includes a first access terminal and a second access terminal, one end of the first access terminal is connected to the voltage detection module, one end of the second access terminal is grounded, and the other end of the first access terminal and the other end of the second access terminal are used to connect to the detachable microphone, wherein: when the other end of the first access terminal and the other end of the second access terminal are used to connect to the detachable microphone, the microphone operating voltage is divided by the bias resistor and the voltage divider resistor connected in parallel to the detachable microphone to obtain the target voltage.

[0021] In some embodiments, when the target state is the unconnected state, the target voltage is a second voltage, and when the target state is the connected state, the target voltage is a third voltage, and a voltage value of the second voltage is greater than a voltage value of the third voltage; a voltage value of the first voltage is greater than a voltage value of the third voltage, and less than a voltage value of the second voltage; when the target voltage is the second voltage, the target electrical signal is a low-level signal; when the target voltage is the third voltage, the target electrical signal is a high-level signal.

[0022] In some embodiments, the voltage providing module includes a second voltage input terminal and a voltage dividing unit, and the voltage dividing unit is respectively connected to the second voltage input terminal and the voltage detection module, wherein: the second voltage input terminal is used to input a preset microphone working voltage; the voltage dividing unit is used to divide the microphone working voltage to output the first voltage.

[0023] In some embodiments, the electronic device further includes an audio input module, which is connected to the first access terminal and the processor respectively, and is used to input the audio collected by the detachable microphone into the processor.

[0024] In some embodiments, the voltage detection module is a comparator.

[0025] It should be understood that the second aspect of the embodiment of the present application is consistent with the technical solution of the first aspect of the embodiment of the present application, and the beneficial effects achieved by each aspect and the corresponding feasible implementation methods are similar and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present application and are used together with the specification to illustrate the technical solution of the present application.

[0027] Figure 1 An example diagram of the structure of an electronic device provided in an embodiment of the present application;

[0028] Figure 2 A schematic diagram of the structure of a microphone system provided in an embodiment of the present application;

[0029] Figure 3 A schematic diagram of the structure of a microphone detection circuit provided in an embodiment of the present application;

[0030] Figure 4 A schematic diagram of the structure of a voltage adjustment module provided in an embodiment of the present application;

[0031] Figure 5 A schematic diagram of the structure of the second output submodule provided in an embodiment of the present application;

[0032] Figure 6 A schematic diagram of the structure implementation of the second output submodule provided in an embodiment of the present application;

[0033] Figure 7 A schematic diagram of the structure of the first output submodule provided in an embodiment of the present application;

[0034] Figure 8 A schematic diagram of the structure implementation of the first output submodule provided in an embodiment of the present application;

[0035] Fig. 9 A schematic diagram of the structure of the second output submodule provided in an embodiment of the present application;

[0036] Fig.10 A schematic diagram of the structure implementation of the second output submodule provided in an embodiment of the present application;

[0037] Fig.11 A schematic diagram of the structure of a microphone detection circuit provided in an embodiment of the present application;

[0038] Fig.12 A schematic diagram of the structure implementation of the microphone detection circuit provided in an embodiment of the present application;

[0039] Fig.13 A schematic diagram of the structure of a voltage adjustment module provided in an embodiment of the present application;

[0040] Fig.14 A schematic diagram of the structure implementation of the voltage adjustment module provided in the embodiment of the present application;

[0041] Fig.15AA schematic diagram of the structure of a mainboard detection subcircuit of a microphone detection circuit provided in an embodiment of the present application;

[0042] Fig. 15B A schematic diagram of the structure of a microphone detection subcircuit of a microphone detection circuit provided in an embodiment of the present application;

[0043] Fig.16 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

[0044] Fig.17 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

[0045] Fig.18 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0046] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the specific technical solution of the present application will be further described in detail below in conjunction with the drawings in the embodiments of the present application. The following embodiments are used to illustrate the present application, but are not used to limit the scope of the present application.

[0047] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0048] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0049] It should be pointed out that the terms "first\second\third" involved in the embodiments of the present application are used to distinguish similar or different objects, and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged in a specific order or sequence where permitted, so that the embodiments of the present application described here can be implemented in an order other than that illustrated or described here.

[0050] In view of this, an embodiment of the present application provides a microphone detection circuit, which is applied to an electronic device, and the electronic device can be various types of devices with information processing capabilities during implementation. For example, the electronic device can include an audio playback device, a personal computer, a laptop computer, a palmtop computer or a server, etc.; the electronic device can also be a mobile terminal, for example, the mobile terminal can include a mobile phone, a car computer, a tablet computer or a projector, etc.

[0051] For example, Figure 1 As shown, the electronic device 10 may include a processor 101, an external memory interface 102, an internal memory 103, a universal serial bus (USB) interface 104, a camera module 105, a display screen 106, a button 107 and a microphone detection circuit 108.

[0052] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 10. In other embodiments of the present application, the electronic device 10 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0053] The processor 101 may include one or more processing units, for example: the processor 101 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and / or a neural network processor (neural-network processing unit, NPU), etc. Among them, different processing units can be independent devices or integrated into one or more processors. Exemplarily, the processor 101 can be a smart terminal CPU, such as a Snapdragon series processor, etc. In some embodiments, the processor 101 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

[0054] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the electronic device 10. In other embodiments of the present application, the electronic device 10 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

[0055] The electronic device 10 implements the display function through a GPU, a display screen 106, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 106 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 101 may include one or more GPUs, which execute program instructions to generate or change display information. The display screen 106 is used to display images, videos, etc.

[0056] The electronic device 10 can realize the shooting function through ISP, shooting module 105, video codec, GPU, display screen 106 and application processor. ISP is used to process the data fed back by the shooting module 105. The shooting module 105 is used to capture static images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to the ISP for conversion into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. The digital signal processor is used to process digital signals. In addition to processing digital image signals, it can also process other digital signals. In some embodiments, the shooting module 105 can be a camera.

[0057] The external memory interface 102 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 10. The external memory card communicates with the processor 101 through the external memory interface 102 to implement a data storage function, such as storing music, video and other files in the external memory card.

[0058] The internal memory 103 can be used to store computer executable program codes, which include instructions. The internal memory 103 can include a program storage area and a data storage area. The program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area can store data created during the use of the electronic device 10 (such as audio data, a phone book, etc.), etc.

[0059] The key 107 includes a power key, a volume key, etc. The key 107 can be a mechanical key or a touch key. The electronic device 10 can receive key input and generate key signal input related to user settings and function control of the electronic device 10.

[0060] The microphone detection circuit 108 may be present in the electronic device in the form of a printed circuit board (PCB), on which other circuits may be provided, or only the microphone detection circuit 108 may be provided separately. The specific design may be designed as required, and this application does not impose any limitation. The microphone detection circuit 108 is used to detect whether the detachable microphone is connected to the electronic device.

[0061] In addition, the electronic device involved in the embodiments of the present application may also be installed with an operating system, and application programs may be installed and run on the operating system, which is not limited in the embodiments of the present application.

[0062] Figure 2 This is a schematic diagram of the structure of a microphone system provided in an embodiment of the present application. Figure 2 As shown, taking the electronic device as a wearable headset as an example, the system may include a wearable headset 1 and a detachable microphone 2, and the wearable headset can be used as an independent Bluetooth headset or can be wirelessly connected to a mobile device, such as a smart phone. The wearable headset includes an earphone housing 11, and the detachable microphone 2 includes a microphone arm 21 and a microphone body 22, and one end of the microphone arm 21 is detachably attached to the earphone housing 11. The earphone housing 11 includes a first housing side 111 and a second housing side 112 arranged oppositely. The first housing side 111 is suitable for facing the user's ear when in use and includes a speaker. A microphone slot at the free end of the microphone arm 21. The microphone slot is filled with foam and provides an audio channel to the microphone in the microphone arm 21. In some embodiments, the ear hook of the wearable headset is detachably attached to the earphone housing through an ear hook coupling component. Therefore, the wearable headset 1 can be attached to the user's ear by fixing the ear hook around the ear, so that the speaker opening is aligned with the ear canal. Figure 2 The wearable headset 1 is shown in an extended position. The wearable headset 1 is provided with a microphone detection circuit disclosed in the present application for detecting the insertion state of the detachable microphone 2.

[0063] Figure 3 This is a schematic diagram of the structure of the microphone detection circuit provided in the embodiment of the present application. Figure 3 As shown, the circuit may include a voltage providing module 30, a voltage adjusting module 31 and a voltage detecting module 32, wherein the voltage detecting module 32 is connected to the voltage providing module 30 and the voltage adjusting module 31 respectively, wherein:

[0064] The voltage providing module 30 is used to output a preset first voltage to the voltage detecting module 32;

[0065] A voltage adjustment module 31, configured to output a target voltage according to a target state of the detachable microphone and the microphone detection circuit, wherein the target voltage has different voltage values ​​in different target states, and the target state includes a connected state or a disconnected state;

[0066] The voltage detection module 32 is used to output a target electrical signal according to the magnitude relationship between the first voltage and the target voltage, and the target electrical signal is used to indicate a target state.

[0067] During the implementation process, the voltage providing module 30 outputs a constant first voltage to the voltage detection module 32, and the voltage adjustment module 31 outputs target voltages of different voltage values ​​according to different target states between the detachable microphone and the microphone detection circuit. For example, when the target state is the connected state, the voltage value of the target voltage is A1, and when the target state is the disconnected state, the voltage value of the target voltage is A2, and the voltage values ​​of A1, A2 and the first voltage are not equal to each other, and the differences between the voltage values ​​of A1, A2 and the first voltage are all outside the error range, that is, the voltage value of the target voltage in the connected state, the voltage value of the target voltage in the disconnected state and the first voltage have a fixed size relationship. After receiving the first voltage and the target voltage, the voltage detection module 32 can output a target electrical signal according to the voltage value of the target voltage and the voltage value of the first voltage to indicate the target state between the detachable microphone and the microphone detection circuit.

[0068] Optionally, the voltage detection module 32 may be a comparator, a first input terminal of the comparator being connected to the voltage providing module 30, and a second input terminal of the comparator being connected to the voltage adjusting module 31, so as to compare the magnitude relationship between the first voltage and the target voltage through the comparator and output a target electrical signal.

[0069] Optionally, the specific voltage value of the first voltage output by the voltage providing module 30 can be designed as required, and the present application does not impose any limitation thereto, and is based on the voltage value of the target voltage under different target states.

[0070] Optionally, the voltage adjustment module 31 may include a detection sensor, which is used to detect a target state between the detachable microphone and the microphone detection circuit, and output a target voltage with different voltage values ​​under different target states.

[0071] In the above-mentioned microphone detection circuit, a voltage supply module 30, a voltage adjustment module 31 and a voltage detection module 32 are set, and the voltage detection module 32 is connected to the voltage supply module 30 and the voltage adjustment module 31 respectively, so that the voltage adjustment module 31 outputs a target voltage according to the target state of the detachable microphone and the microphone detection circuit. Since the voltage value of the target voltage is different under different target states, the voltage detection module 32 can output a target electrical signal for indicating the target state according to the magnitude relationship between the first voltage output by the voltage supply module 30 and the target voltage. Since the target voltage received by the voltage detection module 32 will change to different voltage values ​​according to different target states, the voltage detection module 32 can quickly determine whether the electronic device is in a connected state with the detachable microphone according to the target electrical signal.

[0072] Figure 4 This is a schematic diagram of the structure of the voltage adjustment module provided in the embodiment of the present application. Figure 4 As shown, based on Figure 3 In the circuit shown in FIG. 1 , the voltage adjustment module 31 may include a first output submodule 311 and a second output submodule 312 , and the voltage detection module 32 is connected to the first output submodule 311 and the second output submodule 312 , respectively. In this case,

[0073] When the target state is the unconnected state, the target voltage is output to the voltage detection module 32 through the first output submodule 311;

[0074] When the target state is the connection state, the target voltage is output to the voltage detection module 32 through the first output submodule 311 and the second output submodule 312 .

[0075] During the implementation process, when the target state is the connected state, the voltage adjustment module 31 mainly outputs a voltage value of target voltage A to the voltage detection module 32 through the first output submodule 311. When the target state is the unconnected state, the voltage adjustment module 31 mainly outputs a voltage value of target voltage B to the voltage detection module 32 through the first output submodule 311 and the second output submodule 312. Because the voltage adjustment module 31 can output target voltages with different voltage values ​​under different connection states, the voltage detection module 32 can compare the first voltage with the target voltage, thereby determining the current target state between the detachable microphone and the electronic device, and outputting the corresponding target electrical signal.

[0076] Optionally, when the target state is the unconnected state, the target voltage is a second voltage, and when the target state is the connected state, the target voltage is a third voltage, and a voltage value of the second voltage is greater than a voltage value of the third voltage;

[0077] A voltage value of the first voltage is greater than a voltage value of the third voltage and less than a voltage value of the second voltage;

[0078] When the target voltage is the second voltage, the target electrical signal is a low level signal;

[0079] When the target voltage is the third voltage, the target electrical signal is a high level signal.

[0080] It can be understood that the target voltage output to the voltage detection module 32 through the first output submodule 311 is the second voltage, and the target voltage output to the voltage detection module 32 through the first output submodule 311 and the second output submodule 312 is the third voltage. The voltage value of the second voltage is greater than the voltage value of the third voltage, and different target states can be distinguished based on the numerical value of the target voltage. The voltage value of the first voltage is greater than the voltage value of the third voltage and less than the voltage value of the second voltage, so that the voltage detection module 32 can distinguish the target state according to the magnitude relationship between the target voltage and the first voltage.

[0081] Optionally, the second output submodule 312 may be a detection sensor, the output voltage value of which may be changed according to different target states, i.e., when the target state is an unconnected state, the output voltage value of the second output submodule 312 is 0, and when the target state is a connected state, the output voltage value of the second output submodule 312 is a non-zero value, thereby achieving that when the target state is an unconnected state, because the output voltage value of the second output submodule 312 is 0, only the first output submodule 311 has an output voltage that is not zero, and at this time, the voltage adjustment module 31 outputs the output voltage of the first output submodule 311 as the target voltage; when the target state is an unconnected state, because the output voltage values ​​of the second output submodule 312 and the first output submodule 311 are both non-zero values, at this time, the voltage adjustment module 31 outputs the output voltage outputted simultaneously by the first output submodule 311 and the second output submodule 312 as the target voltage.

[0082] Alternatively, if Figure 5As shown, the second output submodule 312 may include a switch unit 3121 and a first voltage reduction unit 3122. The switch unit 3121 is connected to the first voltage reduction unit 3122, the first output submodule 311 and the voltage detection module 32 respectively. The switch unit 3121 is used to detect the target state, and control the path between the first voltage reduction unit 3122, the first output submodule 311 and the voltage detection module 32 to be in a conducting state or a disconnected state according to the target state. When the target state is the unconnected state, the switch unit 3121 is in an open state, and the first voltage reduction unit 3122 is not connected to the first output submodule 311 and the voltage detection module 32, that is, at this time, only the first output submodule 311 is in a working state; when the target state is the connected state, the switch unit 3121 is in a closed state, and the first voltage reduction unit 3122 is connected to the first output submodule 311 and the voltage detection module 32, that is, at this time, both the first output submodule 311 and the second output submodule 312 are in a working state.

[0083] Optionally, the switch unit 3121 may include a detection sensor and a switch, wherein the control end of the switch is connected to the output end of the detection sensor, the first connection end of the switch is connected to the first step-down unit 3122, the second connection end of the switch is respectively connected to the first output submodule 311 and the voltage detection module 32, and the input end of the detection sensor is used to detect the target state. When the target state is the connection state, the detection sensor outputs a high-level signal to close the switch and conduct the path between the first step-down unit 3122, the first output submodule 311 and the voltage detection module 32; when the target state is the unconnected state, the detection sensor outputs a low-level signal to open the switch and disconnect the path between the first step-down unit 3122, the first output submodule 311 and the voltage detection module 32.

[0084] For example, Figure 6 As shown, taking the first output submodule 311 as the voltage-dividing resistor R2 as an example, the second output submodule 312 includes a voltage-dividing resistor R1, a detection sensor U and a switch K. The control end of the switch K is connected to the output end of the detection sensor U, the first connection end of the switch K is connected to the voltage-dividing resistor R1, the second connection end of the switch K is respectively connected to the voltage-dividing resistor R2 and the voltage detection module 32, and the input end of the detection sensor U is used to detect the target state. When the target state is the connected state, the detection sensor U outputs a high-level signal to make the switch K in a closed state, and the path between the voltage-dividing resistors R1, the voltage-dividing resistors R2 and the voltage detection module 32 is turned on; when the target state is the unconnected state, the detection sensor U outputs a low-level signal to make the switch K in an open state, and the path between the voltage-dividing resistors R1, the voltage-dividing resistors R2 and the voltage detection module 32 is turned off.

[0085] It can be understood that by setting the second output submodule 312 to include a switch unit 3121 and a first step-down unit 3122, when the target state is an unconnected state, the switch unit 3121 is in a disconnected state, and the first step-down unit 3122 is not connected to the first output submodule 311 and the voltage detection module 32, that is, at this time only the first output submodule 311 is in a working state; when the target state is a connected state, the switch unit 3121 is in a closed state, and the first step-down unit 3122 is connected to the first output submodule 311 and the voltage detection module 32, that is, at this time both the first output submodule 311 and the second output submodule 312 are in a working state, thereby achieving that the voltage adjustment module 31 can output target voltages of different voltage values ​​under different target states.

[0086] Alternatively, if Figure 7 As shown, the first output submodule 311 may include a bias resistor 3111 and a first voltage input terminal 3112, and the bias resistor 3111 is connected to the first voltage input terminal 3112 and the voltage detection module 32 respectively, wherein:

[0087] A first voltage input terminal 3112, used for inputting a preset microphone working voltage;

[0088] The bias resistor 3111 is used to step down the microphone working voltage;

[0089] When the target state is the unconnected state, the voltage obtained by stepping down the microphone working voltage through the bias resistor 3111 is the target voltage.

[0090] For example, Figure 8 As shown, the first output submodule 311 includes a bias resistor 3111R3 and a first voltage input terminal 3112IN1. The bias resistor 3111R3 is respectively connected to the first voltage input terminal 3112IN1 and the voltage detection module 32. The first voltage input terminal 3112IN1 inputs a constant microphone working voltage. After being stepped down by the bias resistor 3111, it can output a working voltage suitable for the detachable microphone to put the detachable microphone in a normal working state.

[0091] It can be understood that by setting the bias resistor 3111 and the first voltage input terminal 3112, the first output submodule 311 continuously outputs the stepped-down voltage, and when the target state is an unconnected state, the stepped-down voltage is output as the target voltage, and when the target state is a connected state, the voltage outputted by both the bias resistor 3111 and the second output submodule 312 is output as the target voltage, which is different from the target voltage when the target state is a connected state, so as to achieve the distinction between target voltages with different voltage values ​​under different target states.

[0092] Further optionally, if Fig. 9 As shown, the second output submodule 312 may include a first access terminal 3123 and a second access terminal 3124, one end of the first access terminal 3123 is connected to the voltage detection module 32, one end of the second access terminal 3124 is grounded, and the other end of the first access terminal 3123 and the other end of the second access terminal 3124 are used to connect to a detachable microphone, wherein:

[0093] When the other end of the first access terminal 3123 and the other end of the second access terminal 3124 are used to access a detachable microphone, the microphone operating voltage is divided by the bias resistor 3111 and the voltage dividing resistor connected in parallel to the detachable microphone to obtain a target voltage.

[0094] It should be understood that a voltage-dividing resistor is provided at the detachable microphone, and when the detachable microphone is connected to the electronic device, the voltage-dividing resistor is connected to the microphone detection circuit to form the second output submodule 312, so that the first output submodule 311 and the second output submodule 312 output a target voltage different from that in the unconnected state. In some embodiments, because the detachable microphone also has an internal resistance, when the voltage-dividing resistor is connected to the microphone detection circuit, the internal resistance of the detachable microphone is also connected to the microphone detection circuit, so that the internal resistance of the detachable microphone and the voltage-dividing resistor can be divided at the same time.

[0095] For example, Fig.10 As shown, the second output submodule 312 includes a first connection port P1 and a second connection port P2, one end of the first connection port P1 is connected to the voltage detection module 32, one end of the second connection port P2 is grounded, the other end of the first connection port P1 and the other end of the second connection port P2 are used to connect to the detachable microphone, and the detachable microphone is provided with a third connection port P3 corresponding to the first connection port P1, a fourth connection port P4 corresponding to the second connection port P2, and a voltage dividing resistor R4 connected in parallel between the third connection port P3 and the fourth connection port P4, the third connection port P3 is connected to the data output end of the detachable microphone, and the fourth connection port P4 is connected to the ground end of the detachable microphone. When the detachable microphone is in a connected state with the electronic device, the first connection port P1 is connected to the third connection port P3, and the second connection port P2 is connected to the fourth connection port P4, so that the data of the detachable microphone is transmitted to the first connection port P1 through the third connection port P3, and the voltage dividing resistor R4 at the detachable microphone also forms a parallel branch with the first output submodule 311.

[0096] It can be understood that by setting the second output submodule 312 including the first access terminal 3123 and the second access terminal 3124, when the detachable microphone is connected to the electronic device, the voltage divider resistor of the detachable microphone and the bias resistor 3111 form a parallel branch, so that the first output submodule 311 and the second output submodule 312 output a target voltage different from that in the unconnected state.

[0097] Further optionally, if Fig.11 As shown, the microphone detection circuit can be arranged in an electronic device, which includes a processor. The microphone detection circuit can also include an audio input module 33, which is respectively connected to the first access terminal 3123 and the processor of the electronic device, and is used to input the audio collected by the detachable microphone into the processor.

[0098] Optionally, the above-mentioned audio input module 33 may include an audio input terminal and a DC isolation capacitor, which are respectively connected to the audio input terminal, the first access terminal 3123 and the processor. The DC isolation capacitor is used to isolate the DC signal, and the audio input terminal is used to input the audio collected by the detachable microphone into the processor.

[0099] For example, Fig.12 As shown, taking the first access terminal 3123 as the connection port P1 as an example, taking the audio input module 33 including the audio input terminal MICIN and the DC blocking capacitor C as an example, the audio input terminal MICIN is respectively connected to the DC blocking capacitor C and the processor, and the DC blocking capacitor C is also connected to the connection port P1 and the processor. When the target state is the connected state, the connection port P1 will input the audio signal output by the detachable microphone, and then the connection port P1 will transmit the audio signal to the audio input terminal MICIN via the DC blocking capacitor C, and then transmit it to the processor of the electronic device, so that the electronic device can receive the target audio collected by the detachable microphone.

[0100] It can be understood that by providing the audio input module 33, the audio receiving circuit and the microphone detection circuit of the electronic device can be integrated, thereby reducing the area of ​​the mainboard and reducing the cost.

[0101] In the above-mentioned voltage adjustment module, by setting the first output submodule 311 and the second output submodule 312, the voltage detection module 32 is connected to the first output submodule 311 and the second output submodule 312 respectively, so that when the target state of the voltage adjustment module 31 is the unconnected state, the target voltage is output to the voltage detection module 32 through the first output submodule 311; when the target state of the voltage adjustment module 31 is the connected state, the target voltage is output to the voltage detection module 32 through the first output submodule 311 and the second output submodule 312. Because the voltage value of the target voltage output through the first output submodule 311 must be different from the voltage value of the target voltage output through the first output submodule 311 and the second output submodule 312 at the same time, the voltage adjustment module 31 outputs target voltages of different voltage values ​​under different target states.

[0102] Fig.13 This is a schematic diagram of the structure of the voltage adjustment module provided in the embodiment of the present application. Fig.13 As shown, based on Figure 3 The circuit shown in the figure, the voltage providing module 30 includes a second voltage input terminal 302 and a voltage dividing unit 301, and the voltage dividing unit 301 is connected to the second voltage input terminal 302 and the voltage detecting module 32 respectively, wherein:

[0103] The second voltage input terminal 302 is used to input a preset microphone working voltage;

[0104] The voltage dividing unit 301 is used to divide the microphone working voltage to output a first voltage.

[0105] Optionally, the voltage divider unit 301 may include at least one resistor and a ground terminal, the at least one resistor is connected in sequence, one end of the at least one resistor is connected to the second voltage input terminal 302, and the other end of the at least one resistor is connected to the ground terminal, and the voltage detection module 32 is connected to the middle connection link of the at least one resistor so that the microphone working voltage entering and exiting the second voltage input terminal 302 is voltage-divided to output a first voltage to the voltage detection module 32.

[0106] For example, Fig.14 As shown, the voltage adjustment module 31 includes a second voltage input terminal IN2, a voltage dividing resistor R1 and a voltage dividing resistor R2, the voltage dividing resistor R1 is respectively connected to the second voltage input terminal IN2, the voltage dividing resistor R2 and the voltage detection module 32, and the voltage dividing resistor R2 is also connected to the ground terminal. After the second voltage input terminal IN2 inputs the microphone working voltage, it is divided by the voltage dividing resistor R1 and the voltage dividing resistor R2, and then outputs the first voltage to the voltage detection module 32.

[0107] In the above voltage adjustment module, by setting the second voltage input terminal 302 and the voltage dividing unit 301, the voltage providing module 30 can output a constant first voltage to the voltage detecting module 32.

[0108] The following describes an exemplary application of the embodiments of the present application in a practical application scenario.

[0109] The microphone detection circuit is distributed on the mainboard detection subcircuit and the microphone detection subcircuit of the electronic device, wherein the voltage supply module 30, the voltage detection module 32, the audio input module 33 and the first output submodule 311 of the voltage adjustment module 31 of the microphone detection circuit are located on the mainboard detection subcircuit, and the second output submodule 312 of the voltage adjustment module 31 is located on the microphone detection subcircuit. The voltage supply module 30 includes a microphone bias voltage input terminal VMIC, a voltage divider resistor R1, and a voltage divider resistor R2. The voltage detection module 32 includes a voltage comparator U1. The first output submodule 311 includes a microphone bias voltage input terminal VMIC, a microphone bias resistor R3, a connection port P1 and a connection port P2. The audio input module 33 includes a microphone DC isolation capacitor C1 and a signal output terminal MICIN. The mainboard detection subcircuit is as follows: Fig.15A As shown, the positive phase connection terminal IN+ of the voltage comparator U1 is respectively connected to one end of the voltage divider resistor R1 and the voltage divider resistor R2, the other end of the voltage divider resistor R1 is connected to the microphone bias voltage input terminal VMIC, the other end of the voltage divider resistor R2 is connected to the ground, the negative phase connection terminal IN- of the voltage comparator U1 is respectively connected to the microphone bias resistor R3, the microphone DC isolation capacitor C1 and the connection port P1, the connection port P2 is connected to the ground, the other end of the microphone bias resistor R3 is connected to the microphone bias voltage input terminal VMIC, the output terminal OUT of the voltage comparator U1 is connected to the target electrical signal output terminal MIC_DET, and the other end of the microphone DC isolation capacitor C1 is connected to the signal output terminal MICIN. The second output submodule 312 includes a voltage divider resistor R4, a connection port P3 and a connection port P4, and the microphone detection subcircuit is as shown in FIG. Fig. 15B As shown, the connection port P3 is connected to the voltage-dividing resistor R4 and the signal output terminal of the detachable microphone respectively, and the connection port P4 is connected to the voltage-dividing resistor R4 and the ground terminal of the detachable microphone respectively. In addition, the signal output terminal MICIN is connected to the processor of the electronic device to transmit the audio data transmitted from the connection port P1 to the processor via the signal output terminal MICIN.

[0110] Thus, the input voltage V+ of the voltage comparator IN+ is VMIC*R2 / (R1+R2); when the detachable microphone is connected to the electronic device, the input voltage V- of the voltage comparator IN- is VMIC*R4 / (R3+R4); when the detachable microphone is not connected to the electronic device, the input voltage V- of the voltage comparator IN- is the voltage value VMIC input by the microphone bias voltage input terminal VMIC.

[0111] That is, when the detachable microphone is connected to the electronic device, V+>V-, the voltage comparator outputs a high level, that is, the MIC_DET network is at a high level; when the detachable microphone is not connected to the electronic device, V+<V-, the voltage comparator outputs a low level, that is, the MIC_DET network is at a low level.

[0112] Moreover, when the detachable microphone is connected to the electronic device, the audio data collected by the detachable microphone can be sequentially transmitted to the processor of the electronic device through the connection port P3 of the second output sub-module 312, the connection port P1 of the first output sub-module 311, the microphone DC blocking capacitor C1 of the audio input module 33, and the signal output terminal MICIN, so that the processor can perform subsequent processing according to the audio data collected by the detachable microphone.

[0113] It can be understood that by connecting a voltage dividing resistor in parallel in the detachable microphone and identifying whether the microphone exists through a comparator at the motherboard end, the detection of the detachable microphone is realized.

[0114] Fig.16 This is a schematic structural diagram of an electronic device provided by the present application. As Fig.16 shown, the electronic device may include a voltage providing module 40, a voltage adjusting module 41, a voltage detecting module 42, and a processor 43. The voltage detecting module 42 is respectively connected to the voltage providing module 40, the voltage adjusting module 41, and the processor 43, where:

[0115] The voltage providing module 40 is configured to output a first voltage to the voltage detecting module 42;

[0116] The voltage adjusting module 41 is configured to output a target voltage to the voltage detecting module 42 according to the target state of the detachable microphone and the microphone detection circuit. The voltage value of the target voltage is different in different target states. The target states include a connected state or a non-connected state;

[0117] The voltage detecting module 42 is configured to output a target electrical signal according to the magnitude relationship between the first voltage and the target voltage. The target electrical signal is used to indicate the target state;

[0118] The processor 43 is configured to receive the target electrical signal and execute a processing strategy corresponding to the target electrical signal.

[0119] It should be noted that the specific structures of the above-mentioned voltage supply module 40, voltage adjustment module 41 and voltage detection module 42 can be consistent with the specific structures of the voltage supply module 30, voltage adjustment module 31 and voltage detection module 32 in the above-mentioned microphone detection circuit, and will not be repeated here.

[0120] Optionally, the electronic device may further include an audio input module, which is connected to the first access terminal of the voltage adjustment module 41 and the processor 43 respectively, and is used to input the audio collected by the detachable microphone to the processor 43.

[0121] Optionally, the above-mentioned audio input module may include an audio input terminal and a DC isolation capacitor, which are respectively connected to the audio input terminal, the first access terminal and the processor 43. The DC isolation capacitor is used to isolate the DC signal, and the audio input terminal is used to input the audio collected by the detachable microphone into the processor 43.

[0122] For example, Fig.17 As shown, taking the audio input module including the audio input terminal MICIN and the DC blocking capacitor C as an example, the audio input terminal MICIN is respectively connected to the DC blocking capacitor C and the processor 43, and the DC blocking capacitor C is also connected to the first access terminal P1 and the processor 43. When the target state is the connected state, the first access terminal P1 will input the audio signal output by the detachable microphone, and then the first access terminal P1 will transmit the audio signal to the audio input terminal MICIN via the DC blocking capacitor C, and then transmit it to the processor 43, so that the electronic device can receive the target audio collected by the detachable microphone.

[0123] It can be understood that by providing an audio input module, the audio receiving circuit and the microphone detection circuit of the electronic device can be integrated, thereby reducing the area of ​​the mainboard and reducing costs.

[0124] In the above-mentioned electronic device, a voltage supply module 40, a voltage adjustment module 41 and a voltage detection module 42 are set, and the voltage detection module 42 is respectively connected to the voltage supply module 40 and the voltage adjustment module 41, so that the voltage adjustment module 41 outputs a target voltage according to the target state of the detachable microphone and the microphone detection circuit. Since the voltage value of the target voltage is different under different target states, the voltage detection module 42 can output a target electrical signal for indicating the target state according to the magnitude relationship between the first voltage output by the voltage supply module 40 and the target voltage. Since the target voltage received by the voltage detection module 42 will change to different voltage values ​​according to different target states, the voltage detection module 42 can quickly determine the target state between the electronic device and the detachable microphone according to the target electrical signal. After determining the target state, the processor 43 can further determine the processing strategy corresponding to the target electrical signal.

[0125] Fig.18 This is a schematic diagram of the structure of an electronic device provided in this application. Fig.18 As shown, based on Fig.16 The electronic device shown also includes an onboard microphone 44, so that when the electronic device is not connected to the detachable microphone, the onboard microphone 44 can be used to collect audio in the current environment. When the electronic device is connected to the detachable microphone, the onboard microphone 44 and / or the detachable microphone connection can be used to collect audio in the current environment.

[0126] Optionally, the above processing strategy may include a microphone use strategy, an audio collection strategy, a noise reduction algorithm determination strategy, etc., so that the electronic device can determine a corresponding processing strategy according to the target state between the detachable microphone and the electronic device corresponding to the target electrical signal.

[0127] Optionally, the above processing strategy includes a microphone use strategy, and the processor 43 is specifically configured to:

[0128] When the target electrical signal indicates a connection state, the processor 43 controls the detachable microphone and the onboard microphone 44 to collect the target audio in the current environment according to the target electrical signal;

[0129] When the target electrical signal indicates an unconnected state, the processor 43 controls the onboard microphone 44 to collect the target audio in the current environment according to the target electrical signal.

[0130] It should be understood that the onboard microphone 44 is arranged inside the electronic device and is always in an operational state, that is, a standby state. When the electronic device needs to collect audio, the onboard microphone 44 can be controlled to collect the audio in the current environment, and the detachable microphone can only receive the control signal of the electronic device when it is connected to the electronic device, thereby realizing the collection of audio in the current environment.

[0131] It can be understood that, by setting that when the target electrical signal indicates a connection state, the processor 43 controls the detachable microphone and the onboard microphone 44 according to the target electrical signal to collect the target audio in the current environment; and, when the target electrical signal indicates an unconnected state, the processor 43 controls the onboard microphone 44 according to the target electrical signal to collect the target audio in the current environment; when the detachable microphone is in a working state, the detachable microphone and the onboard microphone 44 that is always in a working state are controlled to work at the same time, thereby realizing the conversion of the microphone that is in a working state at the current moment into a working state, which can maximize the efficiency of audio collection.

[0132] Optionally, the above processing strategy also includes an audio collection strategy, the audio includes human voice and ambient sound, and the processor 43 is specifically used to:

[0133] When the target electrical signal indicates a connection state, the processor 43 controls the detachable microphone to collect human voices in the current environment and controls the onboard microphone 44 to collect ambient sounds in the current environment according to the target electrical signal;

[0134] When the target electrical signal indicates an unconnected state, the processor 43 controls the onboard microphone 44 to collect human voice and ambient sound in the current environment according to the target electrical signal.

[0135] It should be understood that in order to ensure the quality of the human voice collected by the detachable microphone, the detachable microphone can be the microphone closest to the user's mouth, thereby picking up the user's human voice, and when the detachable microphone is connected to the electronic device, the electronic device controls the detachable microphone to pick up the human voice, and controls the onboard microphone 44 to collect the ambient sound in the current environment, so that the electronic device can derive the human voice signal that is closest to the actual human voice based on the human voice and ambient sound picked up respectively, thereby achieving clear sound pickup and elimination of ambient sound.

[0136] For example, if the audio signal picked up by the detachable microphone is voice1, and the audio signal picked up by the onboard microphone 44 is voice2, because the detachable microphone is closest to the user's mouth, the true value of the audio signal close to the human voice in voice1 is much greater than the true value of the audio signal close to the human voice in voice2, and the environmental noise in voice1 and voice2 is approximately equal, so the frequency domain data of the audio signal can be used for calculation:

[0137] The voice audio to be restored = voice1-voice2 = voice1 r -voice2 r , where voice1 r The voice part of the audio signal picked up by the detachable microphone, voice2 r The vocal part of the audio signal picked up by the onboard microphone 44 is used to compensate the audio signal picked up by the detachable microphone according to the vocal audio that needs to be restored, so as to obtain the optimal vocal audio that is close to the actual human voice.

[0138] It can be understood that by setting that when the target electrical signal indicates a connection state, the processor 43 controls the detachable microphone to collect the human voice in the current environment according to the target electrical signal, and controls the onboard microphone 44 to collect the ambient sound in the current environment, and when the target electrical signal indicates an unconnected state, the processor 43 controls the onboard microphone 44 to collect the human voice and ambient sound in the current environment according to the target electrical signal. When the detachable microphone is connected to the electronic device, the user's voice is picked up by the detachable microphone, which can improve the quality of the picked up human voice. When the detachable microphone is not connected to the electronic device, the user's voice is picked up by the onboard microphone 44, which can ensure the integrity of the picked up human voice, thereby improving the quality of the human voice audio received by the electronic device.

[0139] Optionally, the above processing strategy also includes a noise reduction algorithm determination strategy, the noise reduction algorithm includes a single-microphone noise reduction algorithm and a dual-microphone noise reduction algorithm, and the processor 43 is specifically used to:

[0140] When the target electrical signal indicates a connection state, the processor 43 uses a dual-microphone noise reduction algorithm to perform noise reduction processing on the target audio in the current environment;

[0141] When the target electrical signal indicates an unconnected state, the processor 43 uses a single-microphone noise reduction algorithm to perform noise reduction processing on the target audio in the current environment.

[0142] It should be understood that when the target electrical signal indicates a connection status, the electronic device uses at least two microphones including a detachable microphone to collect audio in the current environment, that is, at least two microphones are in working state, and a dual-microphone noise reduction algorithm is used to perform noise reduction processing on the audio, that is, when the target electrical signal indicates a connection status, the electronic device directly controls at least two microphones to enter a dual-microphone noise reduction mode.

[0143] In addition, when the target electrical signal indicates an unconnected state, it means that the detachable microphone of at least two microphones is not in a working state. At this time, if the dual-microphone noise reduction mode is still used, the user's voice signal picked up by the microphone will be weakened, the sound quality will be reduced, or even the user's voice signal will not be picked up. Therefore, when the detachable microphone is not connected to the electronic device, the electronic device is controlled to use a single-microphone noise reduction algorithm to collect the audio in the current environment, that is, the detachable microphone is in a closed state, and the other microphones are in a working state, and the single-microphone noise reduction method is used to perform noise reduction processing on the sound signal picked up by the microphone in the open state. It should be noted that there is no requirement for the positional relationship between the at least two microphones and the user's mouth. When a single-microphone noise reduction is used (that is, sampling a microphone to pick up a sound signal, and using a single-microphone noise reduction method to perform noise reduction processing on the picked up sound), each microphone in the open state can pick up the user's voice signal well, which can ensure the strength and sound quality of the picked up user voice signal, so as to ensure that the user's call is smooth.

[0144] It can be understood that after determining the target state between the detachable microphone and the electronic device, the electronic device can determine the noise reduction algorithm determination strategy corresponding to the target state, that is, when the target electrical signal indicates a connected state, the dual-microphone noise reduction algorithm is used to perform noise reduction processing on the target audio in the current environment; when the target electrical signal indicates an unconnected state, the processor 43 uses a single-microphone noise reduction algorithm to perform noise reduction processing on the target audio in the current environment, which can ensure that regardless of whether the detachable microphone is in a connected state with the electronic device, the electronic device can ensure a good voice pickup effect to ensure the user's normal call.

[0145] Exemplarily, when the target state is a connected state, the detection module outputs a high-level target electrical signal. When the processor 43 receives the high-level target electrical signal, it controls the detachable microphone to collect human voice, and controls the onboard microphone 44 to collect ambient sound, and filters out the ambient sound through a dual-microphone noise reduction algorithm; when the target state is an unconnected state, the detection module outputs a low-level target electrical signal. When the processor 43 receives the low-level target electrical signal, it controls the onboard microphone 44 to collect ambient sound and human voice, and filters out the ambient sound through a single-microphone noise reduction algorithm.

[0146] It can be understood that by detecting whether a detachable microphone is present to switch between single-microphone or dual-microphone noise reduction mode, the signal-to-noise ratio of voice extraction is increased, and the voice gain effect of the electronic device and the noise reduction effect during calls are improved.

[0147] In the above electronic device, by executing a corresponding processing strategy according to the target state between the detachable microphone and the electronic device, the processing strategy is adjusted according to different target states, so that the efficiency of the electronic device in collecting audio in the current environment can be improved.

[0148] It should be understood that "one embodiment" or "an embodiment" or "some embodiments" mentioned throughout the specification means that specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in an embodiment" or "in some embodiments" appearing throughout the specification may not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. The above serial numbers of the embodiments of the present application are for description only and do not represent the advantages and disadvantages of the embodiments. The above description of the various embodiments tends to emphasize the differences between the various embodiments, and the similarities or similarities can be referenced to each other. For the sake of brevity, this article will not go into details.

[0149] The term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there may be three relationships. For example, object A and / or object B can represent three situations: object A exists alone, object A and object B exist at the same time, and object B exists alone.

[0150] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0151] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as: multiple modules or components can be combined, or can be integrated into another system, or some features can be ignored, or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or modules can be electrical, mechanical or other forms.

[0152] The modules described above as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules; they may be located in one place or distributed on multiple network units; some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment.

[0153] In addition, all functional modules in the embodiments of the present application may be integrated into one processing unit, or each module may be a separate unit, or two or more modules may be integrated into one unit; the above-mentioned integrated modules may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0154] A person skilled in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM), magnetic disks or optical disks, etc., various media that can store program codes.

[0155] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application can essentially or in other words, the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for enabling an electronic device to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROMs, magnetic disks, or optical disks.

[0156] The methods disclosed in several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.

[0157] The features disclosed in several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.

[0158] The features disclosed in several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.

[0159] The above is only an implementation method of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A microphone detection circuit, characterized in that: The circuit comprises a voltage supply module, a voltage adjustment module and a voltage detection module, wherein the voltage detection module is connected to the voltage supply module and the voltage adjustment module respectively, wherein: The voltage providing module is used to output a preset first voltage to the voltage detecting module; The voltage adjustment module is used to output a target voltage according to a target state of the detachable microphone and the microphone detection circuit, wherein the target voltage has different voltage values ​​in different target states, and the target state includes a connected state or a disconnected state; The voltage detection module is used to output a target electrical signal according to the magnitude relationship between the first voltage and the target voltage, and the target electrical signal is used to indicate the target state.

2. The circuit according to claim 1, characterized in that The voltage adjustment module includes a first output submodule and a second output submodule, and the voltage detection module is connected to the first output submodule and the second output submodule respectively, wherein: When the target state is an unconnected state, outputting the target voltage to the voltage detection module through the first output submodule; When the target state is a connection state, the target voltage is output to the voltage detection module through the first output submodule and the second output submodule.

3. The circuit according to claim 2, characterized in that The first output submodule includes a bias resistor and a first voltage input terminal, and the bias resistor is connected to the first voltage input terminal and the voltage detection module respectively, wherein: The first voltage input terminal is used to input a preset microphone working voltage; The bias resistor is used to step down the working voltage of the microphone; Wherein, when the target state is the unconnected state, the voltage obtained by stepping down the microphone operating voltage through the bias resistor is the target voltage.

4. The circuit according to claim 3, characterized in that The second output submodule includes a first access terminal and a second access terminal, one end of the first access terminal is connected to the voltage detection module, one end of the second access terminal is grounded, and the other end of the first access terminal and the other end of the second access terminal are used to connect to the detachable microphone, wherein: When the other end of the first access terminal and the other end of the second access terminal are used to access the detachable microphone, the microphone working voltage is divided by the bias resistor and the voltage dividing resistor connected in parallel to the detachable microphone to obtain the target voltage.

5. The circuit according to any one of claims 2 to 4, characterized in that When the target state is the unconnected state, the target voltage is a second voltage, and when the target state is the connected state, the target voltage is a third voltage, and a voltage value of the second voltage is greater than a voltage value of the third voltage; The voltage value of the first voltage is greater than the voltage value of the third voltage, and less than the voltage value of the second voltage; When the target voltage is the second voltage, the target electrical signal is a low level signal; When the target voltage is the third voltage, the target electrical signal is a high level signal.

6. The circuit according to claim 1, characterized in that The voltage providing module comprises a second voltage input terminal and a voltage dividing unit, and the voltage dividing unit is connected to the second voltage input terminal and the voltage detecting module respectively, wherein: The second voltage input terminal is used to input a preset microphone working voltage; The voltage dividing unit is used to perform voltage dividing processing on the microphone working voltage to output the first voltage.

7. A circuit as claimed in any one of claims 1 to 4 and 6, characterized in that The voltage detection module is a comparator.

8. An electronic device, characterized in that: The electronic device comprises a voltage supply module, a voltage adjustment module, a voltage detection module and a processor, wherein the voltage detection module is connected to the voltage supply module, the voltage adjustment module and the processor respectively, wherein: The voltage providing module is used to output a first voltage to the voltage detecting module; The voltage adjustment module is used to output a target voltage to the voltage detection module according to a target state of the detachable microphone and the microphone detection circuit, wherein the target voltage has different voltage values ​​in different target states, and the target state includes a connected state or a disconnected state; The voltage detection module is used to output a target electrical signal according to the magnitude relationship between the first voltage and the target voltage, wherein the target electrical signal is used to indicate the target state; The processor is used to receive the target electrical signal and execute a processing strategy corresponding to the target electrical signal.

9. The electronic device according to claim 8, characterized in that: The electronic device further includes an onboard microphone, the processing strategy includes a microphone usage strategy, and the processor is specifically configured to: When the target electrical signal indicates the connection state, the processor controls the detachable microphone and the onboard microphone to collect target audio in a current environment according to the target electrical signal; When the target electrical signal indicates the unconnected state, the processor controls the onboard microphone to collect target audio in the current environment according to the target electrical signal.

10. The electronic device according to claim 9, characterized in that: The processing strategy also includes an audio acquisition strategy, the target audio includes human voice and ambient sound, and the processor is specifically used to: When the target electrical signal indicates the connection state, the processor controls the detachable microphone to collect human voice in the current environment and controls the onboard microphone to collect ambient sound in the current environment according to the target electrical signal; When the target electrical signal indicates the unconnected state, the processor controls the onboard microphone to collect human voice and ambient sound in the current environment according to the target electrical signal.

11. The electronic device according to claim 9, characterized in that: The processing strategy also includes a noise reduction algorithm determination strategy, the noise reduction algorithm includes a single-microphone noise reduction algorithm and a dual-microphone noise reduction algorithm, and the processor is specifically configured to: When the target electrical signal indicates the connection state, the processor uses the dual-microphone noise reduction algorithm to perform noise reduction processing on the target audio in the current environment; When the target electrical signal indicates the unconnected state, the processor uses the single-microphone noise reduction algorithm to perform noise reduction processing on the target audio in the current environment.

12. The electronic device according to claim 8, characterized in that: The voltage adjustment module includes a first output submodule and a second output submodule, and the voltage detection module is connected to the first output submodule and the second output submodule respectively, wherein: When the target state is an unconnected state, outputting the target voltage to the voltage detection module through the first output submodule; When the target state is a connection state, the target voltage is output to the voltage detection module through the first output submodule and the second output submodule.

13. The electronic device according to claim 12, characterized in that: The first output submodule includes a bias resistor and a first voltage input terminal, wherein: The first voltage input terminal is used to input a preset microphone working voltage; The bias resistor is used to step down the working voltage of the microphone; Wherein, when the target state is the unconnected state, the voltage obtained by stepping down the microphone operating voltage through the bias resistor is the target voltage.

14. The electronic device according to claim 13, characterized in that: The second output submodule includes a first access terminal and a second access terminal, one end of the first access terminal is connected to the voltage detection module, one end of the second access terminal is grounded, and the other end of the first access terminal and the other end of the second access terminal are used to connect to the detachable microphone, wherein: When the other end of the first access terminal and the other end of the second access terminal are used to access the detachable microphone, the microphone working voltage is divided by the bias resistor and the voltage dividing resistor connected in parallel to the detachable microphone to obtain the target voltage.

15. The electronic device according to any one of claims 12 to 14, characterized in that: When the target state is the unconnected state, the target voltage is a second voltage, and when the target state is the connected state, the target voltage is a third voltage, and a voltage value of the second voltage is greater than a voltage value of the third voltage; The voltage value of the first voltage is greater than the voltage value of the third voltage and less than the voltage value of the second voltage; When the target voltage is the second voltage, the target electrical signal is a low level signal; When the target voltage is the third voltage, the target electrical signal is a high level signal.

16. The electronic device according to claim 8, characterized in that: The voltage providing module comprises a second voltage input terminal and a voltage dividing unit, and the voltage dividing unit is connected to the second voltage input terminal and the voltage detecting module respectively, wherein: The second voltage input terminal is used to input a preset microphone working voltage; The voltage dividing unit is used to perform voltage dividing processing on the microphone working voltage to output the first voltage.

17. The electronic device according to claim 14, characterized in that: The electronic device further comprises an audio input module, which is connected to the first access terminal and the processor respectively and is used to input the audio collected by the detachable microphone into the processor.

18. The electronic device according to any one of claims 8 to 14 and 16 to 17, characterized in that: The voltage detection module is a comparator.

Citation Information

Patent Citations

  • Earphone connection interface and method of operating earphone, and terminal for supporting the same

    CN103634724A

  • Microphone fault detection system and detection method thereof, electronic equipment and storage medium

    CN113573227A

  • Microphone state detection circuitry and on -vehicle multimedia player

    CN207939738U

  • Microphone remote device

    JP2000217189A