Microphone control system, method, and terminal device
By introducing a toggle switch into the audio processor and expanding the microphone interface, the problem of the limited number of microphone interfaces on the hardware platform is solved, enabling the access of more microphones and improving the voice input capability and function of smart terminals.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- BEIJING ZITIAO NETWORK TECH CO LTD
- Filing Date
- 2024-12-06
- Publication Date
- 2026-06-09
Smart Images

Figure CN122179698A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of smart terminal technology, and in particular to a microphone control system, method, and terminal device. Background Technology
[0002] With the rise of large-scale artificial intelligence (AI) models, voice input capability of smart terminals has become an important trend and feature.
[0003] Given the limited number of microphone interfaces that hardware platforms can provide, how to conveniently connect a larger number of microphones is a pressing technical problem that needs to be solved. Summary of the Invention
[0004] This disclosure provides a microphone control system, method, and terminal device to facilitate the connection of more microphones.
[0005] In a first aspect, embodiments of this disclosure provide a microphone control system, including: a first switching switch and an audio processor;
[0006] The audio processor includes a first microphone interface; the first switch includes a first selection terminal, a second selection terminal, and a common terminal.
[0007] The first selection terminal of the first switch is used to connect to the first microphone; the second selection terminal of the first switch is used to connect to the second microphone; the common terminal of the first switch is connected to the first microphone interface of the audio processor.
[0008] The first microphone is used to receive the first audio signal;
[0009] The second microphone is used to receive the second audio signal;
[0010] The first switch is used to receive a first switching control signal, and under the control of the first switching control signal, to connect the first selection terminal of the first switch to the common terminal, and to send the first audio signal to the audio processor.
[0011] The first switch is also used to receive a second switching control signal, and under the control of the second switching control signal, to connect the second selection terminal of the first switch to the common terminal, and to send the second audio signal to the audio processor.
[0012] Secondly, embodiments of this disclosure provide a terminal device, including: a microphone control system as described in the first aspect.
[0013] A receiving unit is configured to receive an input trigger event, wherein the input trigger event is used to indicate that information should be entered in the input box;
[0014] The display unit is used to display the first default prompt information corresponding to the input box in the target area outside the input box.
[0015] Thirdly, embodiments of this disclosure provide an electronic device, including: a processor and a memory;
[0016] The memory stores computer-executed instructions;
[0017] The processor executes computer execution instructions stored in the memory, causing the at least one processor to perform the microphone control system as described in the first aspect and various possible designs of the first aspect.
[0018] Fourthly, embodiments of this disclosure provide a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the microphone control system described in the first aspect and various possible designs of the first aspect.
[0019] Fifthly, embodiments of this disclosure provide a computer program product, including a computer program that, when executed by a processor, implements the microphone control system described in the first aspect and various possible designs of the first aspect.
[0020] This embodiment provides a microphone control system, method, and terminal device. The system includes a first switch and an audio processor. The audio processor includes a first microphone interface. The first switch includes a first selection terminal, a second selection terminal, and a common terminal. The first selection terminal of the first switch is used to connect to a first microphone, the second selection terminal is used to connect to a second microphone, and the common terminal of the first switch is connected to the first microphone interface of the audio processor. The first microphone is used to receive a first audio signal, and the second microphone is used to receive a second audio signal. The first switch receives a first switching control signal. Under the control of the first switching control signal, the first selection terminal of the first switch is connected to the common terminal, and the first audio signal is sent to the audio processor. The first switch also receives a second switching control signal. Under the control of the second switching control signal, the second selection terminal of the first switch is connected to the common terminal, and the second audio signal is sent to the audio processor. The microphone control system provided in this embodiment expands the microphone interface when the number of microphone channels of the audio processor is limited by the setting of the switch, accommodating the access of more microphones, which is convenient, fast, and low-cost. Attached Figure Description
[0021] To more clearly illustrate the technical solutions in the embodiments of this disclosure or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this disclosure. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0022] Figure 1 Schematic diagram of the microphone control system provided in the embodiments of this disclosure Figure 1 ;
[0023] Figure 2 Schematic diagram of the microphone control system provided in the embodiments of this disclosure Figure 2 ;
[0024] Figure 3 Schematic diagram of the microphone control system provided in the embodiments of this disclosure Figure 3 ;
[0025] Figure 4 Schematic diagram of the microphone control system provided in the embodiments of this disclosure Figure 4 ;
[0026] Figure 5 Schematic diagram of the microphone control system provided in the embodiments of this disclosure Figure 5 ;
[0027] Figure 6 Schematic diagram of the microphone control system provided in the embodiments of this disclosure Figure 6 ;
[0028] Figure 7 A schematic flowchart illustrating the microphone control method provided in this embodiment of the disclosure;
[0029] Figure 8 This is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of this disclosure. Detailed Implementation
[0030] To make the objectives, technical solutions, and advantages of the embodiments of this disclosure clearer, the technical solutions of the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this disclosure, and not all embodiments. Based on the embodiments of this disclosure, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this disclosure.
[0031] With the rise of large-scale artificial intelligence (AI) models, voice input capabilities on smart terminals have become a significant trend and characteristic. In the future, with continuous technological advancements and expanding application scenarios, voice input capabilities on smart terminals will become more intelligent, convenient, and user-friendly, providing users with a superior experience. Correspondingly, to enhance voice input capabilities, using more microphones can achieve better voice input, enabling sensitive voice wake-up, higher-performance voice noise reduction, and other functions.
[0032] In related technologies, smartphones and other smart terminal devices typically use 2-3 microphones for input. However, this cannot meet the needs of large-scale AI models.
[0033] To address the aforementioned technical problems, the inventors of this disclosure have discovered that the limitation on smart terminals to supporting more microphones stems from the fact that current audio processing chips can only support a maximum of a certain number (e.g., 5) of analog microphone interfaces, and one of these interfaces must also support analog headphones with a USB Type-C interface. Developing a new chip would be prohibitively expensive. Therefore, the inventors further discovered that a switching switch can be used to connect more microphones; for example, a switch can be added to switch between analog headphones and newly added microphones. Based on this, embodiments of this disclosure provide a microphone control system.
[0034] The technical solutions of this application will be described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments.
[0035] Figure 1 Schematic diagram of the microphone control system provided in the embodiments of this disclosure Figure 1 .like Figure 1 As shown, the system includes: a first switching switch 102 and an audio processor.
[0036] The audio processor includes a first microphone 103 interface; the first switch 102 includes a first selection terminal, a second selection terminal, and a common terminal.
[0037] The first selection terminal of the first switch 102 is used to connect to the first microphone 103; the second selection terminal of the first switch 102 is used to connect to the second microphone 104; and the common terminal of the first switch 102 is connected to the first microphone 103 interface of the audio processor.
[0038] The first microphone 103 is used to receive the first audio signal.
[0039] The second microphone 104 is used to receive the second audio signal.
[0040] The first switch 102 is used to receive a first switching control signal. Under the control of the first switching control signal, the first selection terminal of the first switch 102 is connected to the common terminal, and the first audio signal is sent to the audio processor.
[0041] The first switch 102 is also used to receive a second switching control signal, and under the control of the second switching control signal, connect the second selection terminal of the first switch 102 to the common terminal, and send the second audio signal to the audio processor.
[0042] The first switching control signal and the second switching control signal are different enable signals, meaning that at most one of the first selection terminal and the second selection terminal of the first switching switch 102 can be connected to the common terminal at any given time. The operating state of the first switching switch 102 can include the first path being on and the second path being off, i.e., the first selection terminal being connected to the common terminal and the second selection terminal being off; it can also include the second path being on and the first path being off, i.e., the first selection terminal being off and the second selection terminal being connected to the common terminal; or it can also include both paths being off, i.e., the first selection terminal being off and the second selection terminal being off.
[0043] In practical operation, assuming the system is applied to a terminal device, after the terminal device is started, one of the channels of the first switch 102 is turned on by default, for example, the second selection terminal and the common terminal are connected, that is, the second microphone 104 is connected to the first microphone 103 interface of the audio processor by default. When the terminal device detects that the current usage scenario meets the preset conditions, the second switch 105 receives the first switching control signal, which causes the first selection terminal to connect to the common terminal, that is, the first microphone 103 is connected to the first microphone 103 interface of the audio processor.
[0044] In this embodiment of the disclosure, the first switching switch 102 is an analog switch, which can be a transistor switch, such as a metal-oxide-semiconductor field-effect transistor (MOSFET) switch, a complementary metal-oxide-semiconductor (CMOS) switch, etc.
[0045] In this embodiment of the disclosure, the audio processor may include multiple microphone interfaces. Exemplarily, the audio processor may include a codec analog core and a USB subsystem. The codec analog core is used for analog signal processing such as amplification, filtering, and mixing. The USB subsystem is used to manage USB interface communication. It includes physical layer, link layer, and transport layer, and is used to ensure that data can be transmitted securely and efficiently through the USB interface. The USB subsystem supports USB Type-C digital communication, analog audio, DisplayPort auxiliary control, and battery charger communication.
[0046] As can be seen from the above description, the microphone control system provided in this embodiment of the present disclosure expands the microphone interface and is compatible with the access of more microphones when the number of microphone channels of the audio processor is limited by setting a switching switch.
[0047] In one embodiment of this disclosure, the audio processor further includes a plurality of third microphone interfaces; each third microphone interface is configured to be directly connected to a single microphone, or to be connected to a plurality of microphones via a switch; the audio processor is further configured to receive, for each third microphone interface, a sixth audio signal transmitted by a microphone connected to the third microphone interface; the audio processor is further configured to process at least one of the sixth audio signals and a first audio signal or a second audio signal received by the audio processor via the first switch.
[0048] In this embodiment of the disclosure, the number of microphones supported by the audio processor is greater than the number of microphone interfaces of the audio processor.
[0049] Specifically, the audio processor includes multiple microphone interfaces, but the total number of microphone interfaces is limited, for example, five or six. However, the number of microphones required by the system is greater than the number of microphone interfaces that the audio processor can provide. Therefore, by setting a switch connected to the microphone interface, the number of microphones that the microphone interface can connect to can be expanded. For example, originally a single microphone interface could only support one microphone connection, but by setting a switch, multiple microphones can be connected to the same microphone interface through the switch, so that a single microphone interface can support multiple microphones connected in different situations. Although only one microphone can be selected to connect to the corresponding microphone interface at a time through the switch, it can effectively deal with the waste of microphone interfaces due to microphone failure, or the need to select different microphones in different scenarios (for example, if there are 10 microphones, depending on the usage scenario, only the 5 microphones located at the top of the phone can be used, and by controlling the switch, only these 5 microphones can be connected to the audio processor).
[0050] For example, taking a mobile phone as the terminal device, the phone's audio processor has 5 interfaces. Five microphones are distributed in preset locations on the phone. Four of these microphones are directly connected to the four interfaces of the audio processor, one microphone is connected to the audio processor via the first selection terminal of switch 1, and the second selection terminal of switch 1 is connected to the headphones. When no headphones are plugged in, switch 1 activates the corresponding microphone, and the audio processor processes the audio from all five microphones together, resulting in better noise reduction or ambient sound acquisition. When headphones are plugged in, switch 1 activates the headphones, and the audio processor processes the audio received from the headphones' microphone along with the audio from the other four microphones, resulting in better acquisition of human voices and ambient sounds from the phone's microphones, all processed together.
[0051] In one embodiment of this disclosure, based on the above embodiments, for example in Figure 1 Based on the embodiment shown, the first microphone 103 is a microphone installed in an external device; the second microphone 104 is a microphone installed on a terminal device.
[0052] In this embodiment of the disclosure, the external device can be a speaker, an audio recording device, or the like.
[0053] For example, taking a Type-C headset as the external device, such as Figure 2 As shown, the audio processor includes multiple analog-to-digital converters (ADCs) ADC1-ADCx, where x is a positive integer greater than 1. The audio processor can provide five analog interfaces, namely AMIC1, AMIC2, and up to AMIC5. That is, in related technologies, these five analog interfaces can only support a maximum of four microphones and one Type-C headset. However, the microphone control system provided in this embodiment can expand the interface by setting a first switching switch 102, allowing for the connection of a Type-C headset and supporting the connection of one microphone. Specifically, AMIC2 is connected to the first microphone 103 and the second microphone 104 via the first switching switch 102.
[0054] In one embodiment of this disclosure, the system further includes a second switching switch 105.
[0055] The audio processor also includes a second microphone 104 interface; the second switch 105 includes a first selection terminal, a second selection terminal, and a common terminal.
[0056] The first selection terminal of the second switch 105 is used to connect to the third microphone 106; the second selection terminal of the second switch 105 is used to connect to the fourth microphone 107; and the common terminal of the second switch 105 is connected to the second microphone 104 interface of the audio processor.
[0057] The third microphone 106 is used to receive the third audio signal.
[0058] The fourth microphone 107 is used to receive the fourth audio signal.
[0059] The second switch 105 is used to receive the third switching control signal. Under the control of the third switching control signal, the first selection terminal of the second switch 105 is connected to the common terminal, and the third audio signal is sent to the audio processor.
[0060] The second switch 105 is also used to receive the fourth switching control signal. Under the control of the fourth switching control signal, the second selection terminal of the second switch 105 is connected to the common terminal, and the fourth audio signal is sent to the audio processor.
[0061] Specifically, an audio processor can have multiple microphone interfaces, and therefore, correspondingly, multiple toggle switches can be used to support different numbers of microphones. For example, assuming the toggle switch has two channels, each toggle switch can support one more microphone.
[0062] For example, taking a Type-C headset as the external device, such as Figure 3 As shown, the AMIC2 interface of the audio processor can be connected to the first switch 102 to connect the first microphone 103 and the second microphone 104, i.e., MIC2 and a USB Type-C headset. The AMIC2 interface of the audio processor can be connected to the second switch 105 to connect the third microphone 106 and the fourth microphone 107, i.e., MIC5 and MIC6.
[0063] In one embodiment of this disclosure, the first switching switch 102 further includes a third selection terminal.
[0064] The third selection terminal of the first switch 102 is used to connect to the fifth microphone.
[0065] The fifth microphone is used to receive the fifth audio signal.
[0066] The first switching switch 102 is also used to receive the fifth switching control signal. Under the control of the fifth switching control signal, the third selector terminal of the first switching switch 102 is connected to the common terminal, and the fifth audio signal is sent to the audio processor.
[0067] Specifically, in order to support a larger number of microphones, a switch with more channels can be used, such as a switch that supports three channels. Based on this, for each additional switch, two more microphones can be supported.
[0068] In one embodiment of this disclosure, to achieve automatic switch control, an insertion detection module can be configured to detect whether an external device is inserted, and control the switch to open or close based on the detection result. Specifically, the system further includes: an interface, an insertion detection module 108, and a controller 100; the interface is connected to the first selection terminal of the first switch 102 and the insertion detection module 108; the insertion detection module 108 is connected to the controller 100; the controller 100 is connected to the first switch 102; the insertion detection module 108 is used to generate a peripheral device insertion indication signal if an external device is detected inserted into the interface, and send the peripheral device insertion indication signal to the controller 100; the controller 100 is used to generate a first switching control signal based on the peripheral device insertion indication signal, and send the first switching control signal to the first switch 102.
[0069] In this embodiment of the disclosure, the external device can be a headset, and the interface can be a Type-C or a 3.5mm headphone jack.
[0070] In this embodiment of the disclosure, the insertion detection module 108 can be set as an independent module or integrated into other modules, such as an audio processor.
[0071] In one possible implementation, taking headphones as an external device as an example, such as... Figure 4 As shown, the insertion detection module 108 detects whether the headphone jack to which the first microphone 103 belongs is plugged in, and then generates a headphone insertion indication signal and sends it to the controller 100. The controller 100 then generates a first switching control signal based on this headphone insertion indication signal and sends it to the first switching switch 102. This causes the first switching switch 102 to connect the first microphone 103 to the first microphone 103 interface of the audio processor, enabling the headphones to function normally. Correspondingly, the connection between the second microphone 104 and the first microphone 103 interface is disconnected via the first switching switch 102.
[0072] In another possible implementation, the insertion detection module 108 can be integrated into the audio processor, so that the headphone insertion indication signal output by the insertion detection module 108 can be sent to the controller 100 through the audio processor.
[0073] For example, such as Figure 5As shown, the insertion detection module 108 is integrated into the audio processor. The controller 100 is connected to the audio processor via an audio interface and a control interface. The controller 100 is connected to the control terminals of the first switch 102 and the second switch 105 via general purpose input / output ports (GPIO) to control the switches for path switching. The first switch 102 selects either the first microphone 103 or the second microphone 104 (MIC2 or USB Type-C headset), and the second switch 105 selects either the third microphone 106 or the fourth microphone 107 (MIC5 or MIC6). The control interface can typically be an I2C interface, an SPI interface, or an SPMI interface.
[0074] In one embodiment of this disclosure, the insertion detection module 108 is further configured to generate a peripheral device unplugging indication signal if it detects that an external device has been unplugged from the interface, and send the peripheral device unplugging indication signal to the controller 100; the controller 100 is further configured to generate a second switching control signal based on the peripheral device unplugging indication signal, and send the second switching control signal to the first switching switch 102.
[0075] Specifically, one selector of the first switch connects to the microphone in the headset, and the other selector connects to the microphone on the terminal device. By default, the first switch can be connected to the microphone on the terminal device. When an external device such as a headset is plugged in, the first switch can be connected to the microphone in the headset, disconnecting it from the microphone on the terminal device. When the external device is unplugged, the first switch can be reconnected to the microphone on the terminal device.
[0076] For example, such as Figure 5 As shown, by default, the first switch 102 is set to connect the audio processor to the microphone MIC2. When a USB Type-C headset is plugged in, the audio processor senses the plugging operation through the plugging detection module 108 and then notifies the controller 100 through the control interface. The controller 100 sends a control signal via GPIO to switch the first switch 102, connecting the audio processor to the Type-C headset. When the USB Type-C headset is unplugged, the audio processor senses the unplugging operation through the plugging detection module 108 and then notifies the controller 100 through the control interface. The controller 100 again sends a control signal via GPIO to switch the first switch 102, connecting the audio processor to the microphone MIC2.
[0077] In one embodiment of this disclosure, the first microphone 103 and the second microphone 104 are both microphones installed on the terminal device.
[0078] In one embodiment of this disclosure, the system includes: a controller 100; the controller 100 is connected to a first switching switch 102; the controller 100 is configured to determine the current usage scenario, generate a first switching control signal based on the current usage scenario, and send the first switching control signal to the first switching switch 102, or generate a second switching control signal based on the current usage scenario and send the second switching control signal to the first switching switch 102.
[0079] Specifically, the usage scenario can be determined based on information from the upper-layer application and / or the access status of each microphone, and then the switching switch can be switched based on the usage scenario. For example, when both selection terminals of the first switching switch 102 are connected to a single microphone set on the terminal device, if a user touch operation on the answer control in the call interface is detected, the usage scenario of the terminal device is determined to be answering a phone call based on the answer control signal generated in response to the touch operation. In this scenario, a control signal (first switching control signal or second switching control signal) can be generated to control the switching switch to select the microphone (first microphone or second microphone) that is more conducive to enhancing the answering effect and connect it to the audio processor to adapt to the current call scenario.
[0080] Taking a mobile phone as an example, usage scenarios can include placing the phone screen up, placing the phone screen down, the phone being picked up, and the microphone being blocked.
[0081] In this embodiment of the disclosure, there are multiple ways to determine the current usage scenario of the terminal device.
[0082] In one possible implementation, scene identification of whether the microphone is blocked can be based on ambient noise. Specifically, the controller 100 is connected to an audio processor; the first audio signal includes ambient noise; the audio processor is also used to detect the ambient noise and send the detection result to the controller 100; the controller 100 is also used to determine the current usage scene based on the detection result.
[0083] Specifically, when a microphone is blocked, the ambient noise it can detect will decrease. Therefore, a threshold can be set; when the ambient noise detected by the microphone is below this threshold, it indicates that the microphone is blocked. Use of that microphone needs to be paused, and the control switch should be used to switch to another microphone connected to the switch.
[0084] In another possible implementation, the system also includes a sensor; the controller 100 is connected to the sensor; the controller 100 is also used to acquire the sensing data collected by the sensor and determine the current usage scenario based on the sensing data.
[0085] Specifically, sensors can include gyroscopes, accelerometers, and proximity sensors. Taking a mobile phone as an example, during the phone-holding detection process, the accelerometer and gyroscope in the phone can detect the phone's movement and changes in orientation. When the phone suddenly moves from a stationary state, these sensors can trigger an event to notify the system that the phone has been picked up. Proximity sensors can detect whether the phone is close to the user's ear or face, which typically occurs when making or receiving calls. While this sensor is primarily used to automatically turn off the screen to prevent accidental touches, it can also be used to assist in detecting whether the phone has been picked up.
[0086] In another possible implementation, the phone's position can be determined by the strength of the signal received by the antenna. When the antenna signal is lower than a preset strength, it indicates that the antenna may be blocked. Therefore, nearby microphones can be paused and the switch can be used to switch to other unblocked microphones.
[0087] In one embodiment of this disclosure, the microphone can be located on the side of the terminal device's screen, or on the opposite side of the screen, or on the side, or on the top or bottom side of the screen. The specific configuration can be determined according to actual needs, and this disclosure does not limit the specific configuration.
[0088] The following combination Figure 6 The diagram shown illustrates the structure of the microphone control system and provides examples of the connections between the modules.
[0089] like Figure 6 As shown, the first microphone 103 of the audio processor is connected to the first switch 102 via resistors R8 and R9. The first switch 102 is connected to the second microphone 104 via resistors R1, R2, and R3, capacitors C2 and C3, and Zener diodes D2 and D3. The power supply terminal VDD of the second microphone 104 is connected to BIAS2 via C1 and D1. The USB Type-C headset includes the first microphone 103 and is connected to the audio processor via switching transistors M1 and M2, and resistors R4 and R5. The control inputs of the switching transistors are CTL1 and CTL2. The audio processor is connected to the first switch 102 via inductors L1 and L2, resistors R6 and R7, and capacitors C4 and C5, and is also connected to voltage BIAS1 via R6 and R7. The USB Type-C headset can be connected to the first switch 102 via a bridge connection. BIAS1 and BIAS2 can be generated by the audio processor, as can CTL1 and CTL2.
[0090] By employing the above-described connection method, the embodiments disclosed herein can achieve more stable signals and have lower noise.
[0091] This disclosure also provides a terminal device, including a microphone control system as described in the above embodiments.
[0092] Corresponding to the microphone control system in the above embodiment, Figure 7 This is a schematic flowchart illustrating a microphone control method provided in an embodiment of this disclosure. For ease of explanation, only the parts relevant to the embodiments of this disclosure are shown. (Refer to...) Figure 7 The method is applied to a microphone control system, the system including: a first switch and an audio processor; the audio processor including a first microphone interface; the first switch including a first selection terminal, a second selection terminal, and a common terminal; the first selection terminal of the first switch is used to connect to a first microphone; the second selection terminal of the first switch is used to connect to a second microphone; the common terminal of the first switch is connected to the first microphone interface of the audio processor; the method includes:
[0093] 701. Receive the first audio signal through the first microphone.
[0094] 702. Receive the second audio signal through the second microphone.
[0095] 703. Receive a first switching control signal through a first switching switch, and under the control of the first switching control signal, connect the first selection terminal of the first switching switch to the common terminal, and send the first audio signal to the audio processor.
[0096] 704. Receive the second switching control signal through the first switching switch, and under the control of the second switching control signal, connect the second selection terminal of the first switching switch to the common terminal, and send the second audio signal to the audio processor.
[0097] In one embodiment of this disclosure, the system is applied to a terminal device; the first microphone is a microphone located in an external device; and the second microphone is a microphone located on the terminal device.
[0098] In one embodiment of this disclosure, the system further includes: an interface, an insertion detection module, and a controller; the interface is connected to a first selection terminal of a first switch and the insertion detection module; the insertion detection module is connected to the controller; and the controller is connected to the first switch.
[0099] The method also includes: if an external device insertion interface is detected by the insertion detection module, a peripheral device insertion indication signal is generated and sent to the controller; the controller generates a first switching control signal based on the peripheral device insertion indication signal and sends the first switching control signal to the first switching switch.
[0100] In one embodiment of this disclosure, the method further includes: if the insertion detection module detects that an external device is unplugged from the interface, generating a peripheral device unplugging indication signal and sending the peripheral device unplugging indication signal to the controller; and generating a second switching control signal by the controller based on the peripheral device unplugging indication signal and sending the second switching control signal to the first switching switch.
[0101] In one embodiment of this disclosure, the system is applied to a terminal device; both the first microphone and the second microphone are microphones installed on the terminal device.
[0102] In one embodiment of this disclosure, the system includes: a controller; the controller is connected to a first switching switch.
[0103] The method also includes: determining the current usage scenario through the controller, generating a first switching control signal based on the current usage scenario, and sending the first switching control signal to a first switching switch; or, generating a second switching control signal based on the current usage scenario and sending the second switching control signal to the first switching switch.
[0104] In one embodiment of this disclosure, the controller is connected to an audio processor; the first audio signal includes ambient noise; determining the current usage scenario through the controller includes: detecting the ambient noise through the audio processor and sending the detection result to the controller; and determining the current usage scenario through the controller based on the detection result.
[0105] In one embodiment of this disclosure, the system further includes a sensor; a controller is connected to the sensor; determining the current usage scenario through the controller includes: acquiring sensing data collected by the sensor through the controller, and determining the current usage scenario based on the sensing data.
[0106] In one embodiment of this disclosure, the system further includes: a second switch; the audio processor further includes a second microphone interface; the second switch includes a first selection terminal, a second selection terminal, and a common terminal; the first selection terminal of the second switch is used to connect to a third microphone; the second selection terminal of the second switch is used to connect to a fourth microphone; and the common terminal of the second switch is connected to the second microphone interface of the audio processor.
[0107] The method further includes: receiving a third audio signal through a third microphone; receiving a fourth audio signal through a fourth microphone; receiving a third switching control signal through a second switch, and under the control of the third switching control signal, connecting the first selection terminal of the second switch to the common terminal and sending the third audio signal to the audio processor; receiving a fourth switching control signal through the second switch, and under the control of the fourth switching control signal, connecting the second selection terminal of the second switch to the common terminal and sending the fourth audio signal to the audio processor.
[0108] In one embodiment of this disclosure, the first switch further includes a third selection terminal; the third selection terminal of the first switch is used to connect to a fifth microphone; the fifth microphone is used to receive a fifth audio signal.
[0109] The method also includes: receiving a fifth switching control signal through a first switching switch, and under the control of the fifth switching control signal, connecting the third selector terminal of the first switching switch to the common terminal, and sending the fifth audio signal to the audio processor.
[0110] In one embodiment of this disclosure, the audio processor further includes a plurality of third microphone interfaces; each of the third microphone interfaces is used to connect directly to a single microphone, or to connect to multiple microphones via a toggle switch.
[0111] The method further includes: for each third microphone interface, receiving audio signals transmitted by a microphone connected to the third microphone interface via the third microphone interface of the audio processor.
[0112] The method provided in this embodiment can be applied to the microphone control system provided in the above method embodiments. The implementation principle and technical effect are similar, and will not be described again here.
[0113] To implement the above embodiments, this disclosure also provides an electronic device.
[0114] refer to Figure 8 The diagram illustrates a structural schematic of an electronic device 800 suitable for implementing embodiments of the present disclosure. The electronic device 800 can be a terminal device or a server. The terminal device can include, but is not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, personal digital assistants (PDAs), tablet computers, portable media players (PMPs), and in-vehicle terminals (e.g., in-vehicle navigation terminals), as well as fixed terminals such as digital TVs and desktop computers. Figure 8 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments disclosed herein.
[0115] like Figure 8As shown, the electronic device 800 may include a processing unit (e.g., a central processing unit, a graphics processing unit, etc.) 801, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 802 or a program loaded from a storage device 808 into a random access memory (RAM) 803. The RAM 803 also stores various programs and data required for the operation of the electronic device 800. The processing unit 801, ROM 802, and RAM 803 are interconnected via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.
[0116] Typically, the following devices can be connected to I / O interface 805: input devices 806 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 807 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 808 including, for example, magnetic tapes, hard disks, etc.; and communication devices 809. Communication device 809 allows electronic device 800 to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 8 An electronic device 800 with various devices is shown; however, it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed alternatively.
[0117] In particular, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device 809, or installed from a storage device 808, or installed from a ROM 802. When the computer program is executed by a processing device 801, it performs the functions defined in the methods of embodiments of this disclosure.
[0118] It should be noted that the computer-readable medium described in this disclosure can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this disclosure, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in connection with an instruction execution system, apparatus, or device. In this disclosure, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium can be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.
[0119] The aforementioned computer-readable medium may be included in the aforementioned electronic device; or it may exist independently and not assembled into the electronic device.
[0120] The aforementioned computer-readable medium carries one or more programs, which, when executed by the electronic device, cause the electronic device to perform the methods shown in the above embodiments.
[0121] Computer program code for performing the operations of this disclosure can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, and C++, and conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a Local Area Network (LAN) or a Wide Area Network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0122] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0123] The units described in the embodiments of this disclosure can be implemented in software or in hardware. The name of a unit does not necessarily limit the unit itself; for example, the first acquisition unit can also be described as "a unit that acquires at least two Internet Protocol addresses".
[0124] The functions described above in this document can be performed, at least in part, by one or more hardware logic components. For example, exemplary types of hardware logic components that can be used, without limitation, include: Field Programmable Gate Arrays (FPGAs), Application-Specific Integrated Circuits (ASICs), Application Standard Products (ASSPs), System-on-Chip (SoCs), Complex Programmable Logic Devices (CPLDs), and so on.
[0125] The above description is merely a preferred embodiment of this disclosure and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of this disclosure is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features disclosed in this disclosure that have similar functions.
[0126] Furthermore, while the operations are described in a specific order, this should not be construed as requiring these operations to be performed in the specific order shown or in a sequential order. In certain environments, multitasking and parallel processing may be advantageous. Similarly, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of this disclosure. Certain features described in the context of individual embodiments may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented individually or in any suitable sub-combination in multiple embodiments.
[0127] Although the subject matter has been described using language specific to structural features and / or methodological logic, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. Rather, the specific features and actions described above are merely illustrative examples of implementing the claims.
Claims
1. A microphone control system, characterized in that, The system includes: a first switching switch and an audio processor; The audio processor includes a first microphone interface; the first switch includes a first selection terminal, a second selection terminal, and a common terminal. The first selection terminal of the first switch is used to connect to the first microphone; the second selection terminal of the first switch is used to connect to the second microphone; the common terminal of the first switch is connected to the first microphone interface of the audio processor. The first microphone is used to receive the first audio signal; The second microphone is used to receive the second audio signal; The first switch is used to receive a first switching control signal, and under the control of the first switching control signal, to connect the first selection terminal of the first switch to the common terminal, and to send the first audio signal to the audio processor. The first switch is also used to receive a second switching control signal, and under the control of the second switching control signal, to connect the second selection terminal of the first switch to the common terminal, and to send the second audio signal to the audio processor.
2. The system according to claim 1, characterized in that, The system is applied to a terminal device; the first microphone is a microphone installed in an external device; the second microphone is a microphone installed on the terminal device.
3. The system according to claim 2, characterized in that, The system also includes: an interface, an insertion detection module, and a controller; The interface is connected to the first selection terminal of the first switch and the insertion detection module; the insertion detection module is connected to the controller; the controller is connected to the first switch. The insertion detection module is used to generate a peripheral insertion indication signal and send the peripheral insertion indication signal to the controller if the external device is detected to be inserted into the interface. The controller is configured to generate the first switching control signal based on the peripheral insertion indication signal, and send the first switching control signal to the first switching switch.
4. The system according to claim 3, characterized in that, The insertion detection module is further configured to generate a peripheral device unplugging indication signal and send the peripheral device unplugging indication signal to the controller if it detects that an external device has been unplugged from the interface. The controller is further configured to generate the second switching control signal based on the peripheral device unplugging indication signal, and send the second switching control signal to the first switching switch.
5. The system according to claim 1, characterized in that, The system is applied to a terminal device; both the first microphone and the second microphone are microphones installed on the terminal device.
6. The system according to any one of claims 1-5, characterized in that, The system includes: a controller; The controller is connected to the first switching switch; The controller is used to determine the current usage scenario, generate the first switching control signal according to the current usage scenario, and send the first switching control signal to the first switching switch, or generate the second switching control signal according to the current usage scenario and send the second switching control signal to the first switching switch.
7. The system according to claim 6, characterized in that, The controller is connected to the audio processor; The first audio signal includes ambient noise; The audio processor is also used to detect the ambient noise and send the detection results to the controller; The controller is also used to determine the current usage scenario based on the detection results.
8. The system according to claim 6, characterized in that, The system also includes sensors; The controller is connected to the sensor; The controller is also used to acquire the sensing data collected by the sensor and determine the current usage scenario based on the sensing data.
9. The system according to any one of claims 1-5, characterized in that, The system also includes: a second switching switch; The audio processor further includes a second microphone interface; the second switch includes a first selection terminal, a second selection terminal, and a common terminal; The first selection terminal of the second switch is used to connect to the third microphone; the second selection terminal of the second switch is used to connect to the fourth microphone; the common terminal of the second switch is connected to the second microphone interface of the audio processor. The third microphone is used to receive a third audio signal; The fourth microphone is used to receive a fourth audio signal; The second switch is used to receive a third switching control signal. Under the control of the third switching control signal, the first selection terminal of the second switch is connected to the common terminal, and the third audio signal is sent to the audio processor. The second switch is also used to receive a fourth switching control signal, and under the control of the fourth switching control signal, to connect the second selection terminal of the second switch to the common terminal, and to send the fourth audio signal to the audio processor.
10. The system according to any one of claims 1-5, characterized in that, The first switching switch also includes a third selection terminal; The third selection terminal of the first switch is used to connect to the fifth microphone; The fifth microphone is used to receive the fifth audio signal; The first switching switch is also used to receive a fifth switching control signal, and under the control of the fifth switching control signal, to connect the third terminal of the first switching switch to the common terminal, and to send the fifth audio signal to the audio processor.
11. The system according to any one of claims 1-5, characterized in that, The audio processor also includes multiple third microphone interfaces; each of the third microphone interfaces is used to connect directly to a single microphone, or to connect to multiple microphones via a toggle switch; The audio processor is also configured to receive, for each third microphone interface, a sixth audio signal transmitted by a microphone connected to the third microphone interface; The audio processor is also used to process at least one of the sixth audio information and a first audio signal or a second audio signal received by the audio processor through the first switching switch.
12. A terminal device, characterized in that, Includes the microphone control system as described in any one of claims 1 to 11.
13. A microphone control method, characterized in that, An application is made in a microphone control system, the system comprising: a first switch and an audio processor; the audio processor including a first microphone interface; the first switch including a first selection terminal, a second selection terminal, and a common terminal; the first selection terminal of the first switch being used to connect to a first microphone; the second selection terminal of the first switch being used to connect to a second microphone; and the common terminal of the first switch being connected to the first microphone interface of the audio processor. The method includes: The first audio signal is received through the first microphone; The second audio signal is received through the second microphone; The first switching control signal is received through the first switching switch. Under the control of the first switching control signal, the first selection terminal of the first switching switch is connected to the common terminal, and the first audio signal is sent to the audio processor. The first switch receives a second switching control signal, and under the control of the second switching control signal, the second selection terminal of the first switch is connected to the common terminal, and the second audio signal is sent to the audio processor.