Microphone, audio switching system, audio switching method and storage medium
By incorporating a headphone detection and control module into the microphone, the system can detect headphone insertion or removal signals in real time and automatically control the switching of the speaker audio path on the terminal device. This solves the problem of the microphone being unable to synchronously switch speaker audio output, thus improving the user experience.
Patent Information
- Application Number
- CN202511177123.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-21
- Publication Date
- 2025-11-28
AI Technical Summary
Existing microphones cannot automatically control the switching of speaker audio output after headphones are plugged in or unplugged, resulting in sound interference and operation delays, which affect the user experience, especially in scenarios such as live streaming and stage performances.
By incorporating a headphone detection module, a control module, and a data transmission module into the microphone, the system can detect the level signal when headphones are inserted or removed in real time, generate a power amplifier control command, and automatically control the switching of the speaker audio path on the terminal device, thus enabling the speaker to automatically disconnect when headphones are inserted and automatically restore when headphones are removed.
It enables synchronous switching of headphone plugging/unplugging actions and speaker audio paths, eliminating the need for manual user operation, avoiding sound interference and switching delays, and improving the user experience, especially in scenarios with high requirements for audio continuity.
Smart Images

Figure CN121037726A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of microphones, and in particular to a microphone, an audio switching system, an audio switching method and a storage medium. BACKGROUND
[0002] In the prior art, although a microphone is equipped with a headset interface, it can realize real-time output of audio signals input by user voice to the headset for monitoring, but its function is limited to transmission of local audio signals, and cannot realize synchronous linkage with the audio output state of a terminal device, that is, when the user inserts the headset into the headset interface, the loudspeaker of the terminal device will continue to output audio, resulting in simultaneous monitoring by the headset and external playing by the loudspeaker, thereby causing sound interference. In order to avoid this situation, the user must manually operate (for example, in the form of switching the audio output device or clicking the mute button) through the terminal software to stop the audio output of the loudspeaker.
[0003] However, the above audio switching mode depending on manual operation has obvious defects in live broadcast and stage performance scenarios, that is, sound feedback howling is easily caused due to operation delay or operation omission, seriously affecting the user experience. SUMMARY
[0004] The embodiments of the present application provide a microphone, an audio switching system, an audio switching method and a storage medium to solve the problem that the existing microphone cannot control the synchronous switching of the loudspeaker audio output after the headset is inserted or pulled out.
[0005] In a first aspect, a microphone is provided, and the microphone comprises: a headset interface, a headset detection module, a control module and a data transmission module; The detection end of the headset detection module is connected with the first end of the headset interface, and is configured to detect a level signal generated when a headset is inserted into or pulled out of the headset interface; The input end of the control module is connected with the output end of the headset detection module, and is configured to generate a power amplifier control instruction based on the level signal; The first end of the data transmission module is connected with the output end of the control module, and the second end of the data transmission module is configured to be connected with a power amplifier module of a terminal device, and is configured to send the power amplifier control instruction to the power amplifier module, so that the power amplifier module disconnects or restores an audio path of a loudspeaker of the terminal device based on the power amplifier control instruction.
[0006] In an embodiment, the microphone further comprises a microphone chip; The input end of the microphone chip is configured to collect external audio as microphone audio; An output end of the imi-core is connected with a third end of the data transmission module, for sending the microphone audio to the data transmission module; The fourth end of the data transmission module is used for connecting with a mixing module of the terminal device, and is further used for sending the microphone audio to the mixing module, so that the mixing module synthesizes mixed audio according to the microphone audio and accompaniment audio, the accompaniment audio being audio generated by an accompaniment source module of the terminal device according to user-selected accompaniment.
[0007] In an embodiment, the microphone further comprises a digital signal processing module; A first end of the digital signal processing module is connected with a fifth end of the data transmission module, and a second end of the digital signal processing module is connected with a second end of the earphone interface; The data transmission module is further used for receiving the mixed audio or the accompaniment audio sent by the mixing module; and the digital signal processing module is used for sending the mixed audio or the accompaniment audio to the earphone.
[0008] In an embodiment, the microphone further comprises an output routing module; An input end of the output routing module is connected with the second end of the digital signal processing module, and an output end of the output routing module is connected with the second end of the earphone interface, for sending the mixed audio to the earphone.
[0009] In a second aspect, an audio switching system is provided, comprising a terminal device and the microphone according to the first aspect.
[0010] In a third aspect, an audio switching method is provided, applied to the microphone according to the first aspect, and the method comprises: detecting a level signal generated when an earphone is inserted into or pulled out of the microphone; generating a power amplifier control instruction based on the level signal, and sending the power amplifier control instruction to a terminal device, so that the terminal device disconnects or restores an audio path of a loudspeaker of the terminal device based on the power amplifier control instruction.
[0011] In an embodiment, the level signal comprises a first level signal and a second level signal, the first level signal being a level signal generated when the earphone is inserted into the microphone, and the second level signal being a level signal generated when the earphone is pulled out of the microphone; The generating a power amplifier control instruction based on the level signal, and sending the power amplifier control instruction to a terminal device, so that the terminal device disconnects or restores an audio path of a loudspeaker of the terminal device based on the power amplifier control instruction, comprises: when the level signal is the first level signal, generating a first power amplifier control instruction based on the first level signal; sending the first power amplifier control instruction to the terminal device, so that the terminal device cuts off an audio path of a speaker of the terminal device based on the first power amplifier control instruction; when the level signal is a second level signal, generating a second power amplifier control instruction based on the second level signal; sending the second power amplifier control instruction to the terminal device, so that the terminal device restores the audio path of the speaker of the terminal device based on the second power amplifier control instruction.
[0012] In an embodiment, the method further comprises: collecting external audio as microphone audio; sending the microphone audio to the terminal device, so that the terminal device synthesizes mixed audio according to the microphone audio and accompaniment audio, the accompaniment audio being audio generated by the terminal device according to a user-selected accompaniment.
[0013] In an embodiment, after the sending the first power amplifier control instruction to the terminal device, so that the terminal device cuts off an audio path of a speaker of the terminal device based on the first power amplifier control instruction, the method further comprises: receiving mixed audio or accompaniment audio sent by the terminal device; sending the mixed audio or the accompaniment audio to earphones, so that the earphones output the mixed audio or the accompaniment audio.
[0014] In a fourth aspect, a computer readable storage medium is provided, the computer readable storage medium storing a computer program, the computer program being executed by a processor to implement the steps of the audio switching method of the third aspect.
[0015] An advantageous effect of one technical solution provided by the embodiment of the present application is that by arranging the earphone detection module between the earphone interface and the control module, the level signal generated by the earphone insertion or extraction can be detected in real time, and the control module can automatically generate a power amplifier control instruction based on the level signal, which is transmitted to the power amplifier module of the terminal device through the data transmission module, so that the power amplifier module automatically disconnects or restores the audio path of the loudspeaker of the terminal device without manual operation, the loudspeaker is automatically disconnected when the earphone is inserted, and the loudspeaker is automatically restored when the earphone is extracted, the whole process does not need the user to operate the terminal software or hardware switch, the synchronization of the audio output switching and the earphone insertion and extraction action is ensured, the problem that the existing microphone cannot control the audio output switching synchronization after the earphone is inserted or extracted is effectively solved, especially in the scene such as live broadcast and stage performance which has high requirement on audio continuity, the audio interruption, howling and other phenomena caused by switching delay can be effectively avoided, and the user experience is improved. BRIEF DESCRIPTION OF DRAWINGS
[0016] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments of the present application will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.
[0017] Figure 1 is a schematic diagram of an audio switching system in an embodiment of the present application; Figure 2 is another schematic diagram of an audio switching system in an embodiment of the present application; Figure 3 is another schematic diagram of an audio switching system in an embodiment of the present application; Figure 4 is a flowchart of an audio switching method in an embodiment of the present application.
[0018] Among them, each reference sign is as follows: 100, microphone; 110, earphone interface; 120, earphone detection module; 130, control module; 140, data transmission module; 150, microphone chip; 160, digital signal processing module; 170, output routing module; 200, terminal device; 210, power amplifier module; 220, loudspeaker; 230, mix sound module; 240, accompaniment source module; 300, earphone; 400, audio switching system. DETAILED DESCRIPTION
[0019] In order to make the technical problems, technical solutions and beneficial effects solved by the present application clearer, the present application will be further described in detail below in combination with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and do not limit the present application.
[0020] Reference will be made to the following detailed structure and steps in combination with the accompanying drawings and the description below to illustrate the technical solutions proposed by the present application. Figures 1 to 4
[0021] Embodiment A In a first aspect, referring to Figures 1 to 3 The present embodiment provides a microphone 100, which comprises an earphone interface 110, an earphone detection module 120, a control module 130 and a data transmission module 140.
[0022] The earphone interface 110 is for the earphone 300 to be inserted or pulled out, and the detection end of the earphone detection module 120 is connected with the first end of the earphone interface 110, for detecting the level signal (i.e. binary logic signal) generated when the earphone 300 is inserted or pulled out of the earphone interface 110, and sending the level signal to the control module 130. In the present embodiment, the level signal comprises a first level signal and a second level signal, wherein the first level signal is the level signal generated when the earphone 300 is inserted into the microphone 100, and the second level signal is the level signal generated when the earphone 300 is pulled out of the microphone 100, and the two are inverse to each other in logic state. For example, the first level signal is a high level, and the second level signal is a low level, which is not limited here.
[0023] The input end of the control module 130 is connected with the output end of the earphone detection module 120, for receiving the level signal, and generating power amplifier control instructions based on the level signal, i.e. when the first level signal is detected, generating a first power amplifier control instruction for closing the audio path of the loudspeaker 220; when the second level signal is detected, generating a second power amplifier control instruction for restoring the audio path of the loudspeaker 220. Wherein, the control module 130 can adopt a special audio control chip or other chips, which is not limited here.
[0024] The first end of the data transmission module 140 is connected with the output end of the control module 130, and the second end of the data transmission module 140 is used to be connected with the power amplifier module 210 of the terminal device 200, for sending the power amplifier control instruction to the power amplifier module 210, so that the power amplifier module 210 cuts off or restores the audio path of the loudspeaker 220 of the terminal device 200 based on the control instruction. It is worth noting that this process is achieved through the mute control function or the playback restoration function (such as relying on chip pins) of the power amplifier module 210, which is a physical cut-off of the audio path of the loudspeaker, rather than a software-level mute. Among them, the data transmission module 140 can be implemented by wired connection (such as USB, audio interface) or wireless connection (such as Bluetooth, Wi-Fi), and the specific implementation manner can be selected according to application requirements.
[0025] In the workflow of the embodiment, when the user inserts the earphone 300 into the earphone interface 110, the earphone detection module 120 detects the level change and outputs the first level signal to the control module 130, the control module 130 generates the first power amplifier control instruction and sends it to the power amplifier module 210 through the data transmission module 140, and the power amplifier module 210 immediately cuts off the audio path of the loudspeaker 220 after receiving the instruction, thereby avoiding the interference caused by the continuous external playing of the loudspeaker 220 when the earphone 300 is listening. When the user unplugs the earphone 300, the earphone detection module 120 outputs the second level signal, the control module 130 generates the second power amplifier control instruction and sends it to the power amplifier module 210, and the power amplifier module 210 restores the audio path of the loudspeaker 220, realizing the automatic switching of the earphone 300 and the loudspeaker 220 output.
[0026] Compared with the prior art, the microphone 100 of the embodiment can realize the automatic synchronization of the physical plugging and unplugging action of the earphone 300 and the switching of the audio path of the terminal loudspeaker 220, without the need for the user to manually switch the audio output path on the terminal device 200, reducing the operation delay and the risk of misoperation, improving the real-time performance and reliability of the audio switching, and being especially suitable for scenes such as live broadcast and performance that require quick audio switching.
[0027] In summary, the embodiment of the present invention provides a solution including: a headphone jack 110, a headphone detection module 120, a control module 130, and a data transmission module 140; the detection end of the headphone detection module 120 is connected to the first end of the headphone jack 110, and is used to detect the level signal generated when the headphone 300 is inserted into or removed from the headphone jack 110; the input end of the control module 130 is connected to the output end of the headphone detection module 120, and is used to generate a power amplifier control command based on the level signal; the first end of the data transmission module 140 is connected to the output end of the control module 130, and the second end of the data transmission module 140 is used to connect to the power amplifier module 210 of the terminal device 200, and is used to send the power amplifier control command to the power amplifier module 210, so that the power amplifier module 210 disconnects or restores the audio path of the speaker 220 of the terminal device 200 based on the power amplifier control command.
[0028] Compared to the closest existing technology, the beneficial effects are as follows: By setting up a headphone detection module 120 between the headphone jack 110 and the control module 130, the level signal generated by the insertion or removal of the headphone 300 can be detected in real time. The control module 130 automatically generates a power amplifier control command based on the level signal, which is transmitted to the power amplifier module 210 of the terminal device 200 via the data transmission module 140. This allows the power amplifier module 210 to automatically disconnect or restore the audio path of the speaker 220 of the terminal device 200 without manual operation. The speaker 220 automatically disconnects when the headphone 300 is inserted and automatically restores when the headphone 300 is removed. The entire process does not require user operation of the terminal software or hardware switch, ensuring the synchronization of audio output switching with the insertion and removal of the headphone 300. This effectively solves the problem that the existing microphone 100 cannot control the audio output switching of the speaker 220 synchronously after the headphone 300 is inserted or removed. Especially in scenarios with high requirements for audio continuity, such as live broadcasts and stage performances, it can effectively avoid audio interruption and howling caused by switching delays, thus improving the user experience. Furthermore, the above-mentioned technical solution of the present invention, by converting the level signal of the headphone 300 being inserted into or unplugged from the headphone jack 110 into hardware control instructions (i.e., power amplifier control instructions) in the terminal device, circumvents system permission restrictions and can be applied to closed systems (such as the iPhone operating system (iOS)), effectively avoiding the problem of user experience being restricted by the operating system.
[0029] In one embodiment, the microphone 100 further includes a microphone core 150. The input of the microphone core 150 is used to acquire external audio, such as a user's voice, singing voice, and / or ambient sound, and to use it as microphone audio, without limitation herein. The output of the microphone core 150 is connected to the third terminal of the data transmission module 140, and is used to transmit the acquired microphone audio signal to the data transmission module 140.
[0030] In this embodiment, the fourth terminal of the data transmission module 140 is also used to connect to the mixing module 230 of the terminal device 200. The data transmission module 140 is used not only to transmit power amplifier control commands but also to send microphone audio to the mixing module 230 of the terminal device 200. After receiving the microphone audio, the mixing module 230 mixes it with the accompaniment audio, wherein the accompaniment audio is generated by the accompaniment source module 240 of the terminal device 200 based on the accompaniment selection made by the user on the terminal device. The mixing module 230 synthesizes the microphone audio and the accompaniment audio to obtain a mixed audio. It can output the mixed audio to the speaker 220 or the headphones 300 in real time according to different power amplifier control commands. This effectively avoids the problem that after the accompaniment audio and the microphone audio are mixed on the terminal device, the output to a single device (speaker 220 or headphones 300) depends on manual switching, and the output target cannot be switched synchronously as needed. It also effectively avoids the conflict scenario that occurs when the user only switches the microphone audio to the headphones 300, but the accompaniment audio played by the terminal device continues to be output from the speaker 220, resulting in the headphones 300 missing the accompaniment audio while the speaker 220 plays the accompaniment audio, thus destroying the audio integrity.
[0031] In one embodiment, the microphone 100 further includes a digital signal processing module 160; a first end of the digital signal processing module 160 is connected to a fifth end of the data transmission module 140, and a second end of the digital signal processing module 160 is connected to a second end of the headphone jack 110, for establishing an audio signal processing and transmission path between the microphone 100 and the headphones 300.
[0032] In this embodiment, the data transmission module 140 is used not only to send power amplifier control commands and microphone audio, but also to receive mixed audio from the mixing module 230 of the terminal device 200, or, in the absence of transmitting microphone audio to the mixing module 230, to receive accompaniment audio transmitted from the accompaniment source module 240 to the mixing module 230. The mixed audio is the audio signal synthesized by the mixing module 230 from the microphone audio and the accompaniment audio; the accompaniment audio is the audio signal generated by the terminal device 200 based on the accompaniment track selected by the user.
[0033] The digital signal processing module 160 performs necessary digital signal processing on the received mixed audio or accompaniment audio, such as sampling rate conversion, digital filtering, equalization adjustment, and volume control, to ensure clear sound quality, low latency, and stable monitoring performance of the headphones 300. The processed audio signal (i.e., the processed mixed audio or accompaniment audio) is transmitted to the headphones 300 through the second end of the headphone interface 110 to enable headphone sound output. The mixed audio includes microphone audio and accompaniment audio.
[0034] In one embodiment, the microphone 100 further includes an output routing module 170. The input terminal of the output routing module 170 is connected to the second terminal of the digital signal processing module 160, and the output terminal of the output routing module 170 is connected to the second terminal of the headphone jack 110, for sending mixed audio signals or accompaniment audio to the headphones 300.
[0035] In this embodiment, after the digital signal processing module 160 completes the digital signal processing of the mixed audio or accompaniment audio, it transmits the processed audio signal (i.e., the processed mixed audio or accompaniment audio) to the output routing module 170. The output routing module 170 routes the audio signal stably to the second end of the headphone interface 110 according to the system configuration, ensuring that the headphones 300 can produce sound stably.
[0036] It should be understood that the microphone 100 provided by the present invention realizes the switching and synchronization of speaker audio output after the headphones are plugged in or unplugged through a hardware module, effectively eliminating the delay and interruption problems caused by software rerun (e.g., reinitializing the audio stream).
[0037] Example B Secondly, please refer to Figure 1 and 2 This embodiment provides an audio switching system 400, which includes a terminal device 200 and a microphone 100 as described in the first aspect.
[0038] In one embodiment, please refer to Figure 3 The audio switching system 400 also includes headphones 300.
[0039] It should be understood that the description of the embodiment of the audio switching system 400 can be referred to the description of the embodiment of the microphone 100 in the first aspect above, and will not be repeated here to avoid repetition.
[0040] Example C Thirdly, please refer to Figure 4 This embodiment provides an audio switching method, taking the microphone 100 applied to the first aspect above as an example, the method includes the following steps: S501: Detects the level signal generated when the headset 300 is plugged into or unplugged from the microphone 100; In this embodiment, when the user inserts or removes the headset 300 from the headphone jack 110 of the microphone 100, the electrical connection state of the headphone jack 110 changes, causing fluctuations in the voltage level signal. For example, when the headset 300 is inserted, the circuit detects a switch in the voltage level signal from high to low, or from low to high (the specific signal polarity depends on the design). Conversely, when the headset 300 is removed, the voltage level signal returns to its initial state. The detection process can utilize the USB HID standard protocol for voltage level signal detection, enabling cross-system identification; this is not limited to this embodiment.
[0041] S502: Generate a power amplifier control command based on the level signal and send the power amplifier control command to the terminal device 200 so that the terminal device 200 disconnects or restores the audio path of the speaker 220 of the terminal device 200 based on the power amplifier control command.
[0042] In this embodiment, after detecting the level signal generated when the headset 300 is inserted into or removed from the microphone 100, a power amplifier control command is further generated based on the level signal and sent to the terminal device 200. This allows the terminal device 200 to disconnect or restore the audio path of its speaker 220 based on the power amplifier control command. This enables automatic synchronization between the physical insertion / removal of the headset 300 and the switching of the audio path of the terminal speaker 220, eliminating the need for the user to manually switch the audio output path on the terminal device 200. This reduces operation delay and the risk of misoperation, improving the real-time performance and reliability of audio switching, making it particularly suitable for scenarios requiring rapid audio switching, such as live streaming and performances. For details, please refer to the embodiments in steps S521 to S524.
[0043] In one embodiment, namely in step S502, the level signal includes a first level signal and a second level signal. The first level signal is the level signal generated when the earphone 300 is inserted into the microphone 100, and the second level signal is the level signal generated when the earphone 300 is removed from the microphone 100. That is, a power amplifier control command is generated based on the level signal, and the power amplifier control command is sent to the terminal device 200 so that the terminal device 200 disconnects or restores the audio path of the speaker 220 based on the power amplifier control command, including the following steps: S521: When the level signal is the first level signal, generate the first power amplifier control command based on the first level signal; S522: Send the first power amplifier control command to the terminal device 200 so that the terminal device 200 disconnects the audio path of the speaker 220 of the terminal device 200 based on the first power amplifier control command. S523: When the level signal is the second level signal, generate the second power amplifier control command based on the second level signal; S524: Send the second power amplifier control command to the terminal device 200 so that the terminal device 200 restores the audio path of the speaker 220 of the terminal device 200 based on the second power amplifier control command.
[0044] In this embodiment, the level signal includes a first level signal and a second level signal. The first level signal is the level signal generated when the earphone 300 is plugged into the microphone 100, and the second level signal is the level signal generated when the earphone 300 is unplugged from the microphone 100. The two are logically opposite to each other. For example, the first level signal may be high and the second level signal may be low; this is not limited here. The first level signal can be represented by a binary state identifier 1, and the second level signal can be represented by a binary state identifier 0. This allows the corresponding level signal to be determined after identifying the corresponding binary state identifier; this is also not limited here.
[0045] As an example, when a first level signal is detected, a first power amplifier control command is sent to the terminal device 200 to shut down the audio path of the speaker 220 based on the first level signal. This causes the control software running on the terminal device 200 to call the power amplifier module 210, which disconnects the audio path of the speaker 220 of the terminal device 200, thereby stopping the audio output of the speaker 220. When a second level signal is detected, a second power amplifier control command is sent to the terminal device 200 to restore the audio path of the speaker 220 based on the first level signal. This causes the control software running on the terminal device 200 to call the power amplifier module 210, which restores the audio path of the speaker 220 of the terminal device 200, thereby restarting the audio output of the speaker 220.
[0046] As can be seen, this embodiment can automate the switching between headphone 300 plugging / unplugging and speaker 220 channels in the terminal device 200, reducing human intervention and improving the real-time performance and user experience of audio switching. It should be understood that the control software in this invention can be software that integrates mixing and audio switching functions, and is not limited thereto.
[0047] In one embodiment, the method further includes: S503: Acquires external audio as microphone audio; S504: Send the microphone audio to the terminal device 200 so that the terminal device 200 can synthesize a mixed audio based on the microphone audio and the accompaniment audio, wherein the accompaniment audio is the audio generated by the terminal device 200 based on the accompaniment selected by the user.
[0048] In this embodiment, firstly, external audio, such as the user's voice, singing voice, and / or ambient sound, is acquired through the microphone 100 and used as microphone audio (this is not limited here). Next, the acquired microphone audio can be transmitted in real-time to the terminal device 200 as an audio stream, for example, via an audio transmission protocol. The control software running on the terminal device 200 receives the audio stream, parses it to obtain the corresponding microphone audio, and reads the accompaniment track selected by the user in the application interface from a local or cloud-based accompaniment library, generating the corresponding accompaniment audio through the accompaniment source module. Subsequently, the terminal device 200 can synthesize the microphone audio and accompaniment audio in real-time according to a preset mixing ratio to obtain mixed audio, providing a continuous, synchronous, and balanced mixing effect for subsequent audio playback or transmission, thereby ensuring seamless integration of accompaniment and vocals in scenarios such as live streaming, recording, or stage performances.
[0049] In one embodiment, after step S522, that is, after the first power amplifier control command is sent to the terminal device 200 so that the terminal device 200 disconnects the audio path of the speaker 220 of the terminal device 200 based on the first power amplifier control command, the method further includes the following steps: S5221: Receive mixed audio or accompaniment audio sent by terminal device 200; S5222: Send the mixed audio or accompaniment audio to the headset 300 so that the headset 300 outputs the mixed audio or accompaniment audio.
[0050] In this embodiment, after the terminal device 200 disconnects the audio path of the speaker 220, the generated mixed audio, or the accompaniment audio before mixing, is converted into a corresponding audio stream and sent to the microphone 100. After receiving the audio stream of the mixed audio or accompaniment audio, the microphone 100 performs necessary decoding, buffering, and format adaptation on the audio stream, and then sends it to the headphones 300 so that the headphones 300 outputs the mixed audio or accompaniment audio. This achieves automatic audio switching through channel switching, allowing the user to directly hear the accompaniment or mixed effect during monitoring, ensuring low monitoring latency and stable sound quality, and meeting the real-time and sound quality requirements of scenarios such as live streaming, recording, or stage performances.
[0051] It should be noted that after the terminal device 200 restores the audio path of the speaker 220 of the terminal device 200 based on the second power amplifier control command, the terminal device 200 stops sending mixed audio or accompaniment audio to the microphone 100 and switches the mixed audio or accompaniment audio to the speaker 220 for playback.
[0052] Example D Fourthly, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, it implements the audio switching method described in the above embodiments. To avoid repetition, it will not be described again here.
[0053] In this invention, "multiple" refers to two or more.
[0054] In this invention, unless otherwise explicitly defined, the terms "installation," "connection," and "linking" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; and they can refer to the internal connection of two components. Those skilled in the art can understand the specific meaning of the above terms in this invention based on the specific circumstances.
[0055] The terms “first,” “second,” “third,” “fourth,” etc. (if present) in this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.
[0056] In this invention, the term "and / or" is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. Additionally, in this invention, the character " / " generally indicates that the preceding and following related objects have an "or" relationship.
[0057] Unless otherwise specified, all steps of this invention may be performed sequentially or randomly. For example, if the method includes steps A and B, it means that the method may include steps A and B performed sequentially, or it may include steps B and A performed sequentially. For example, if the method may also include step C, it means that step C may be added to the method in any order. For example, the method may include steps A, B, and C, or it may include steps A, C, and B, or it may include steps C, A, and B, etc.
[0058] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention should be included within the protection scope of the present invention.
Claims
1. A microphone, characterized in that, The microphone includes: Headphone jack, headphone detection module, control module, and data transmission module; The detection end of the headphone detection module is connected to the first end of the headphone interface and is used to detect the level signal generated when the headphone is inserted into or removed from the headphone interface; The input terminal of the control module is connected to the output terminal of the earphone detection module, and is used to generate a power amplifier control command based on the level signal; The first end of the data transmission module is connected to the output end of the control module, and the second end of the data transmission module is used to connect to the power amplifier module of the terminal device, and is used to send the power amplifier control command to the power amplifier module, so that the power amplifier module disconnects or restores the audio path of the speaker of the terminal device based on the power amplifier control command.
2. The microphone according to claim 1, characterized in that, The microphone also includes a microphone core; The input end of the microphone core is used to collect external audio as microphone audio; The output terminal of the microphone core is connected to the third terminal of the data transmission module, and is used to send microphone audio to the data transmission module; The fourth end of the data transmission module is used to connect to the mixing module of the terminal device and to send the microphone audio to the mixing module so that the mixing module synthesizes mixed audio based on the microphone audio and the accompaniment audio. The accompaniment audio is the audio generated by the accompaniment source module of the terminal device based on the accompaniment selected by the user.
3. The microphone according to claim 2, characterized in that, The microphone also includes a digital signal processing module; The first end of the digital signal processing module is connected to the fifth end of the data transmission module, and the second end of the digital signal processing module is connected to the second end of the headphone jack. The data transmission module is further configured to receive mixed audio or accompaniment audio sent by the mixing module; the digital signal processing module is configured to send the mixed audio or accompaniment audio to the headphones.
4. The microphone according to claim 3, characterized in that, The microphone also includes an output routing module; The input terminal of the output routing module is connected to the second terminal of the digital signal processing module, and the output terminal of the output routing module is connected to the second terminal of the headphone jack, for sending the mixed audio or the accompaniment audio to the headphones.
5. An audio switching system, characterized in that, The audio switching system includes a terminal device and a microphone as described in any one of claims 1-4.
6. An audio switching method, characterized in that, Applied to the microphone according to any one of claims 1-4, the method comprises: Detects the electrical signal generated when the microphone is plugged in or unplugged from the headphones; A power amplifier control command is generated based on the level signal, and the power amplifier control command is sent to the terminal device so that the terminal device disconnects or restores the audio path of the speaker based on the power amplifier control command.
7. The audio switching method according to claim 6, characterized in that: The level signal includes a first level signal and a second level signal. The first level signal is the level signal generated when the earphone is plugged into the microphone, and the second level signal is the level signal generated when the earphone is unplugged from the microphone. The step of generating a power amplifier control command based on the level signal and sending the power amplifier control command to the terminal device, so that the terminal device disconnects or restores the audio path of the terminal device's speaker based on the power amplifier control command, includes: When the level signal is the first level signal, a first power amplifier control command is generated based on the first level signal; The first power amplifier control command is sent to the terminal device so that the terminal device disconnects the audio path of the speaker based on the first power amplifier control command. When the level signal is a second level signal, a second power amplifier control command is generated based on the second level signal; The second power amplifier control command is sent to the terminal device so that the terminal device can restore the audio path of the speaker based on the second power amplifier control command.
8. The audio switching method according to claim 7, characterized in that, The method further includes: Collect external audio as microphone audio; The microphone audio is sent to the terminal device so that the terminal device can synthesize a mixed audio based on the microphone audio and the accompaniment audio, wherein the accompaniment audio is generated by the terminal device based on the accompaniment selected by the user.
9. The audio switching method according to claim 7 or 8, characterized in that, After sending the first power amplifier control command to the terminal device to cause the terminal device to disconnect the audio path of the terminal device's speaker based on the first power amplifier control command, the method further includes: Receive mixed audio or accompaniment audio sent by the terminal device; The mixed audio or the accompaniment audio is sent to the headphones so that the headphones output the mixed audio or the accompaniment audio.
10. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the steps of the audio switching method according to any one of claims 6-9.
Citation Information
Patent Citations
Earphone socket, earphone noise reduction device and earphone socket implementation method
CN103022831A
Ability automatic switch -over earphone or speaker output audio's electrical music
CN206194363U
Earphone detection device and intelligent electronic device
CN206650845U
USB microphone
CN210274435U
Mute Control Circuit And Method For Earphone In MobileStation
KR1020020011667A