CN112925502B - Audio channel switching equipment, method and device and electronic equipment - Google Patents

Audio channel switching equipment, method and device and electronic equipment Download PDF

Info

Publication number
CN112925502B
CN112925502B CN202110182449.4A CN202110182449A CN112925502B CN 112925502 B CN112925502 B CN 112925502B CN 202110182449 A CN202110182449 A CN 202110182449A CN 112925502 B CN112925502 B CN 112925502B
Authority
CN
China
Prior art keywords
audio
signal
switching
audio channel
channel
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110182449.4A
Other languages
Chinese (zh)
Other versions
CN112925502A (en
Inventor
梁邦飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Goertek Techology Co Ltd
Original Assignee
Goertek Techology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Goertek Techology Co Ltd filed Critical Goertek Techology Co Ltd
Priority to CN202110182449.4A priority Critical patent/CN112925502B/en
Publication of CN112925502A publication Critical patent/CN112925502A/en
Application granted granted Critical
Publication of CN112925502B publication Critical patent/CN112925502B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/162Interface to dedicated audio devices, e.g. audio drivers, interface to CODECs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/165Management of the audio stream, e.g. setting of volume, audio stream path
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

The application discloses audio frequency route switching equipment is applied to electronic equipment, and electronic equipment includes treater, main audio frequency route, auxiliary audio frequency route and an audio frequency collection system, and the signal input port of main audio frequency route and treater is connected, and this audio frequency route switching equipment includes: the monitoring device is used for switching the audio signal to the main audio channel for transmission when the audio signal in the auxiliary audio channel is monitored, so that the processor transmits the audio signal received by the signal input port to a receiving party; the audio signal is the audio signal collected by the audio collecting device. The method and the device can ensure that the audio signal acquired by the single audio acquisition device is transmitted to the receiver, and improve the user experience. The application also discloses an audio channel switching method, an audio channel switching device and electronic equipment, and the method and the device have the beneficial effects.

Description

Audio channel switching equipment, method and device and electronic equipment
Technical Field
The present disclosure relates to the field of multimedia devices, and in particular, to an audio channel switching device, method, apparatus, and electronic device.
Background
Many multimedia devices now support binaural (including Tx1 Audio path and Tx2 Audio path) stereo by default in the ALSA (Advanced Linux Sound Architecture) Audio input system of their communication chip platform. Generally, for a dual-MIC multimedia device, one MIC is connected to a Tx1 audio channel, the other MIC is connected to a Tx2 audio channel, and audio signals collected by the two MICs are transmitted through the audio channels connected in a one-to-one correspondence to the MIC, where the Tx1 audio channel is used as a main audio channel and connected to a Signal receiving port of an ADSP (Advanced Digital Signal Processor) Processor, and the ADSP Processor processes the audio signals received by a Signal receiving end according to a preset processing logic and transmits the processed audio signals to a receiving end; the Tx2 audio channel is used as a consonant audio channel and is connected with a reference receiving port of the ADSP processor, the audio signal transmitted on the Tx2 audio channel is only used as a reference audio signal, and the ADSP processor performs operations such as echo cancellation and the like on the audio signal received by the signal receiving port according to the reference audio signal acquired by the reference receiving port according to a preset acoustic quality algorithm.
For a multimedia device with a single MIC, theoretically, the single MIC should be connected with a Tx1 audio channel, and at this time, the ADSP processor does not need to perform echo cancellation operation on an audio signal, but considering that there may be a situation where the single MIC is communicated with the auxiliary audio channel due to a hardware connection relationship, an audio signal acquired by the MIC is sent to the auxiliary audio channel, and the main audio channel has no audio signal transmission, so that a signal receiving port of the ADSP processor has no signal input, and according to an internal logic of the ADSP processor, the audio signal received by a reference receiving end cannot be transmitted, so that the audio signal cannot be transmitted to a receiving party, and user experience is reduced.
Therefore, how to provide a solution to the above technical problem is a problem that needs to be solved by those skilled in the art.
Disclosure of Invention
The application aims to provide audio channel switching equipment, method and device and electronic equipment, which can ensure that audio signals collected by an audio collecting device are transmitted to a receiving party, and improve the user experience.
In order to solve the above technical problem, the present application provides an audio channel switching device, which is applied to an electronic device, the electronic device includes a processor, a main audio channel, an auxiliary audio channel and an audio acquisition device, the main audio channel is connected to a signal input port of the processor, and the audio channel switching device includes:
the monitoring device is used for switching the audio signal to the main audio channel for transmission when the audio signal in the auxiliary audio channel is monitored to exist, so that the processor can transmit the audio signal received by the signal input port to a receiving party;
the audio signal is the audio signal collected by the audio collecting device.
Preferably, the monitoring device includes:
the monitoring module is used for generating a switching signal when the fact that an audio signal exists in the auxiliary audio channel is monitored;
and the switching module is arranged between the main audio channel and the auxiliary audio channel and used for switching the audio signal to the main audio channel for transmission when receiving the switching signal so that the processor can transmit the audio signal received by the signal input port to a receiving party.
Preferably, the monitoring device further comprises:
the analog-to-digital converter is used for performing analog-to-digital conversion on the audio signal acquired by the audio acquisition device to obtain a digital audio signal;
correspondingly, the monitoring module is specifically configured to:
and when the digital audio signal is detected to exist in the auxiliary audio channel, generating a switching signal.
Preferably, the digital audio signal is a pulse signal or a continuous edge signal.
Preferably, the monitoring module comprises:
a first interrupt trigger circuit connected to the main audio path for generating a first interrupt signal when the presence of an audio signal in the main audio path is detected;
a second interrupt trigger circuit connected to the consonant audio path for generating a second interrupt signal upon detecting the presence of the audio signal in the consonant audio path;
and the controller is used for generating a switching signal when receiving the second interrupt signal.
Preferably, the switching module comprises a switch;
and the change-over switch is used for being switched on after receiving the switching signal, so that the audio signal is switched to the main audio channel for transmission.
Preferably, the switching module includes a triode, a first capacitor, a second capacitor, a third capacitor, a first resistor, a second resistor, a third resistor, a fourth resistor, a first diode, a second diode and a power supply, wherein:
the first end of the first capacitor is connected to the audio signal transmitted by the auxiliary audio channel, the second end of the first capacitor is connected to the first end of the first resistor, the anode of the first diode and the base of the triode, the collector of the triode, the first end of the second capacitor, the second end of the first resistor and the first end of the second resistor are all connected to the power supply, the cathode of the first diode is connected to the second end of the second resistor, the first end of the third resistor and the first end of the third capacitor, the anode of the second diode is connected to the audio signal transmitted by the main audio channel, the cathode of the second diode is connected to the emitter of the triode and the first end of the fourth resistor, the second end of the second resistor, the second end of the third resistor and the base of the triode, The second ends of the fourth resistors are all grounded;
and after the power supply is powered on under the action of the switching signal, the triode is conducted.
In order to solve the above technical problem, the present application further provides an electronic device, which includes an electronic device body, a processor, a main audio channel, a sub audio channel, an audio channel switching device and an audio collecting apparatus, wherein the processor, the main audio channel, the sub audio channel, the audio channel switching device and the audio collecting apparatus are disposed in the electronic device body, and the main audio channel is connected to a signal input port of the processor.
In order to solve the above technical problem, the present application further provides an audio channel switching method applied to an electronic device, where the electronic device includes a processor, a main audio channel, a secondary audio channel, and an audio acquisition device, the main audio channel is connected to a signal input port of the processor, and the audio channel switching method includes:
monitoring whether an audio signal exists in the auxiliary audio channel, wherein the audio signal is an audio signal acquired by the audio acquisition device;
if so, switching the audio signal to the main audio channel for transmission so that the processor transmits the audio signal received by the signal input port to a receiver.
In order to solve the above technical problem, the present application further provides an audio channel switching device, which is applied to an electronic device, where the electronic device includes a processor, a main audio channel, a secondary audio channel, and an audio acquisition device, the main audio channel is connected to a signal input port of the processor, and the audio channel switching device includes:
the signal monitoring module is used for monitoring whether an audio signal exists in the auxiliary audio channel, the audio signal is the audio signal acquired by the audio acquisition device, and if so, the channel switching module is triggered;
and the path switching module is used for switching the audio signal to the main audio path for transmission so that the processor can transmit the audio signal received by the signal input port to a receiving party.
The application provides an audio frequency route switching equipment, whether there is audio signal to the auxiliary audio frequency route at first to detect through monitoring device, when having audio signal in the auxiliary audio frequency route, transmit on switching this audio signal to the main audio frequency route, so that audio signal can be received to the signal input port of treater, thereby accomplish normal audio signal transmission, improve user's use and experience, furthermore, the scheme that adopts this application need not manual configuration audio frequency route in advance, normal audio signal transmission process when can realizing single audio frequency collection device, thereby the link of development debugging has been reduced, audio development debugging time has been shortened. The application also provides an audio channel switching method, an audio channel switching device and electronic equipment, and the audio channel switching method, the audio channel switching device and the electronic equipment have the same beneficial effects as the audio channel switching equipment.
Drawings
In order to more clearly illustrate the embodiments of the present application, the drawings needed for the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings can be obtained by those skilled in the art without inventive effort.
Fig. 1 is a schematic structural diagram of an audio channel switching apparatus provided in the present application;
fig. 2 is a schematic structural diagram of another audio path switching apparatus provided in the present application;
FIG. 3 is a schematic structural diagram of another audio path switching apparatus provided in the present application;
FIG. 4 is a flowchart illustrating steps of an audio channel switching method according to the present application;
fig. 5 is a schematic structural diagram of an audio channel switching device provided in the present application.
Detailed Description
The core of the application is to provide the audio channel switching equipment, the method, the device and the electronic equipment, which can ensure that the audio signals collected by the audio collecting device are transmitted to the receiving party, and improve the user experience.
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without making any creative effort belong to the protection scope of the present application.
Referring to fig. 1, fig. 1 is a schematic structural diagram of an audio path switching apparatus applied to an electronic device, the electronic device including a processor 01, a main audio path Tx1, a secondary audio path Tx2, and an audio acquisition device 02, the main audio path Tx1 being connected to a signal input port of the processor 01, the audio path switching apparatus including:
the monitoring device 11 is used for switching the audio signal to the main audio path Tx1 for transmission when the audio signal in the auxiliary audio path Tx2 is detected, so that the processor 01 transmits the audio signal received by the signal input port to a receiving party;
the audio signal is an audio signal acquired by the audio acquisition device 02.
Specifically, the electronic device may be a watch, a mobile phone, a VR device, and the like, which are only equipped with one audio acquisition device 02, where the audio acquisition device 02 may be a microphone disposed on the electronic device.
Specifically, the electronic device is an electronic device in which an ALSA Audio input system of a communication chip platform supports a binaural sound by default (including two Audio paths), and therefore, the electronic device further includes two Audio paths and a processor 01, and the two Audio paths are both connected to a port corresponding to the processor 01, so that the processor 01 processes signals received by the port, and it can be understood that the processor 01 has different processing logics for signals received by different ports. The two audio paths include a main audio path Tx1 and a sub audio path Tx2, the main audio path Tx1 is connected to the signal input port of the processor 01, and the processor 01 processes the signal received by the signal input port and transmits the processed signal to the receiving side through the Modem. The processor 01 may be specifically an ADSP processor.
Specifically, after the audio signal is collected by the audio collection device 02, the audio signal is transmitted to the processor 01 through an audio channel connected to the audio collection device. Considering that due to the hardware connection relationship of the electronic device, there is a case that the audio signal acquired by the audio acquisition device 02 is not transmitted on the audio channel connected to the signal input port of the processor 01, and when the signal input port is not input, the processor 01 defaults that there is no audio signal to be transmitted to the receiver, so that the audio signal acquired by the audio acquisition device 02 cannot be transmitted to the receiver. Based on this, in the present embodiment, the monitoring device 11 is provided between the processor 01 and the audio acquisition device 02, and the transmission path of the audio signal is switched.
Specifically, the monitoring apparatus 11 monitors whether audio signals exist in the main audio path Tx1 and the secondary audio path Tx2, respectively, as a preferred embodiment, the monitoring apparatus 11 may monitor whether audio signals exist in the main audio path Tx1 and the secondary audio path Tx2 after receiving a monitoring signal, where the monitoring signal may be a signal generated when the electronic device monitors that a user needs to use the electronic device to perform a voice operation, so as to reduce power consumption of the monitoring apparatus 11 in the electronic device. Of course, in order to timely and efficiently acquire the user voice information, the monitoring device 11 may also monitor whether the audio signal exists in the main audio channel Tx1 and the secondary audio channel Tx2 according to a preset period, and the triggering condition for the operation of the monitoring device 11 is not specifically limited in this embodiment.
It can be understood that when it is monitored that there is audio signal transmission in the main audio path Tx1 and there is no audio signal transmission in the auxiliary audio path Tx2, it indicates that the current audio acquisition device 02 is communicated with the main audio path Tx1, and the processor 01 may acquire an audio signal through the signal receiving port and transmit the audio signal to a receiving party, and at this time, the monitoring device 11 does not perform a switching operation; when it is detected that there is no audio signal transmission in the main audio path Tx1 and there is audio signal transmission in the secondary audio path Tx2, which indicates that the audio acquisition device 02 is connected to the secondary audio path Tx2, before the audio signal reaches the processor 01, the monitoring device 11 needs to perform a switching operation to switch the audio signal from the secondary audio path Tx2 to the main audio path Tx1 for transmission, so that the audio signal is transmitted to the signal receiving port of the processor 01 after the processor 01 has processed the audio signal, so as to transmit the audio signal to the receiving party.
It is thus clear that, in this embodiment, whether there is audio signal to the auxiliary audio access to detect through monitoring device, when having audio signal in the auxiliary audio access, switch this audio signal to main audio access on the transmission, so that the signal input port of treater can receive audio signal, thereby accomplish normal audio signal transmission, improve user's use and experience, in addition, adopt the scheme of this application and need not manual configuration audio access in advance, normal audio signal transmission process when can realizing single audio acquisition device, thereby the link of development debugging has been reduced, audio development debugging time has been shortened.
Referring to fig. 2, fig. 2 is a schematic structural diagram of another audio channel switching device provided in the present application, where the audio channel switching device is based on the foregoing embodiment:
as a preferred embodiment, the monitoring device 11 includes:
a monitoring module 111, configured to generate a switching signal when it is detected that an audio signal exists in the consonant audio path Tx 2;
and a switching module 112 disposed between the main audio path Tx1 and the auxiliary audio path Tx2, for switching the audio signal to the main audio path Tx1 for transmission when receiving the switching signal, so that the processor 01 transmits the audio signal received by the signal input port to the receiving side.
Specifically, the monitoring device 11 includes a monitoring module 111 and a switching module 112, where the monitoring module 111 is configured to detect transmission conditions of audio signals in the main audio path Tx1 and the secondary audio path Tx2, respectively, if it is detected that there is audio signal transmission in the main audio path Tx1, no processing is performed, if it is detected that there is audio signal transmission in the secondary audio path Tx2, a switching signal is generated, the switching module 112 disposed between the main audio path Tx1 and the secondary audio path Tx2 operates after receiving the switching signal, switches the audio signal to the main audio path Tx1 for transmission, so that the audio signal enters the processor 01 through a signal receiving port of the processor 01, and transmits the audio signal to a receiving party after the processing of the processor 01 is completed.
The monitoring module 111 may specifically be an ADSP detector, which has a strong data processing capability and a high operating speed, and is convenient for analyzing and processing audio signals, thereby improving user experience.
As a preferred embodiment, the monitoring device 11 further comprises:
the analog-to-digital converter 113 is configured to perform analog-to-digital conversion on the audio signal acquired by the audio acquisition device 02 to obtain a digital audio signal;
correspondingly, the monitoring module 111 is specifically configured to:
when the presence of a digital audio signal in the consonant audio path Tx2 is detected, a switching signal is generated.
As a preferred embodiment, the digital audio signal is a pulse signal or a continuous edge signal.
Specifically, considering that the audio signal collected by the audio collection device 02 is an analog signal, in order to facilitate the judgment of the monitoring module 111, the audio signal collected by the audio collection device 02 is converted into a digital audio signal by the analog-to-digital converter 113, and then transmitted to the monitoring module 111. The digital audio signal may be a pulse signal or a continuous edge signal, and specifically may be a high-low level pulse signal or a continuous rising edge signal or a continuous falling edge signal, so as to trigger the monitoring module 111 to generate the switching signal through the signal.
The two analog-to-digital converters can be arranged to respectively perform analog-to-digital conversion on the audio signals on the two audio channels, and the one multi-input multi-output analog-to-digital converter can also be arranged to complete the analog-to-digital conversion of the audio signals on the two audio channels.
As a preferred embodiment, the monitoring module 111 includes:
a first interrupt trigger circuit connected to the main audio path Tx1 for generating a first interrupt signal when the presence of an audio signal in the main audio path Tx1 is detected;
a second interrupt trigger circuit connected to the consonant audio path Tx2 for generating a second interrupt signal upon detecting the presence of an audio signal in the consonant audio path Tx 2;
and the controller is used for generating a switching signal when receiving the second interrupt signal.
Specifically, the monitoring module 111 is provided therein with a first interrupt trigger circuit, a second interrupt trigger circuit and a controller, the first interrupt trigger circuit is configured to detect whether an audio signal is transmitted in the main audio channel Tx1, and the second interrupt trigger circuit is configured to detect whether an audio signal is transmitted in the auxiliary audio channel Tx 2. As described above, the audio signal acquired by the audio acquisition device 02 is converted into a pulse signal or a continuous edge signal by the analog-to-digital converter 113, both the two interrupt trigger circuits trigger an interrupt after detecting the pulse signal or the continuous edge signal to generate an interrupt signal, and if the controller receives the first interrupt signal, the controller does not process the interrupt signal, and if the controller receives the second interrupt signal, the controller generates a switching signal.
Specifically, the interrupt trigger circuit may be a pulse trigger circuit or an edge trigger circuit, specifically, a positive pulse trigger, a negative pulse trigger, a positive transition trigger, or a negative transition trigger is selected, and the selection is determined according to actual engineering requirements, which is not specifically limited in this embodiment.
As a preferred embodiment, the switching module 112 includes a switch;
and the switch is used for being switched on after receiving the switching signal, so that the audio signal is switched to the main audio channel Tx1 for transmission.
Specifically, the switching module 112 may include a switch, one end of the switch is connected to the main audio path Tx1, and the other end of the switch is connected to the auxiliary audio path Tx2, in this embodiment, the switch directly acts on the switch, the switch is turned on when receiving the switch signal, so that the audio signal is switched to the main audio path Tx1 for transmission, and in order to improve the signal transmission reliability, the switching module 112 may further provide an auxiliary circuit corresponding to the switch to cut off the transmission of the audio signal on the auxiliary audio path Tx 2.
The selector switch may select a thyristor, an MOS transistor, or an IGBT, and may be selected according to actual engineering requirements, which is not limited herein.
Referring to fig. 3, fig. 3 is a schematic structural diagram of another audio channel switching device provided in the present application, where the audio channel switching device is based on the foregoing embodiment:
as a preferred embodiment, the switching module 112 includes a transistor T, a first capacitor C1, a second capacitor C2, a third capacitor C3, a first resistor R1, a second resistor R2, a third resistor R3, a fourth resistor R4, a first diode D1, a second diode D2, and a power supply VCC, wherein:
a first end of the first capacitor C1 is connected to the audio signal transmitted through the auxiliary audio path Tx2, a second end of the first capacitor C1 is connected to a first end of the first resistor R1, an anode of the first diode D1, and a base of the transistor T, a collector of the transistor T, a first end of the second capacitor C2, a second end of the first resistor R1, and a first end of the second resistor R2 are all connected to the power supply VCC, a cathode of the first diode D1 is connected to a second end of the second resistor R2, a first end of the third resistor R3, and a first end of the third capacitor C3, a second end of the third capacitor C3 is used as a first output end of the switching module 112, an anode of the second diode D2 is connected to the audio signal transmitted through the main audio path Tx1, a cathode of the second diode D2 is connected to an emitter of the transistor T, a first end of the fourth resistor R4, and a second end of the second resistor R2 is used as a second output end of the switching module 112, and a second end of the second resistor R2 is connected to the switching module 112, The second end of the third resistor R3 and the second end of the fourth resistor R4 are both grounded;
and after the power supply VCC is powered on under the action of the switching signal, the triode T is conducted.
Specifically, the switching module 112 may specifically include a transistor T, a first capacitor C1, a second capacitor C2, a third capacitor C3, a first resistor R1, a second resistor R2, a third resistor R3, a fourth resistor R4, a first diode D1, a second diode D2, and a power supply VCC. The first resistor R1 and the fourth resistor R4 form a first voltage dividing circuit for providing working voltage of the triode T, the first capacitor C1 and the third capacitor C3 are used for blocking direct current voltage division of the power supply VCC, the second capacitor C2 is used for stabilizing voltage, the first diode D1 and the second diode D2 are both used for switching off signal transmission, and the second resistor R2 and the third resistor R3 form a second voltage dividing circuit for providing reverse switching off voltage of the first diode D1. The switching signal output by the monitoring module 111 is used to control the external GPIO to output a power supply voltage to the power supply VCC, so that the power supply VCC is powered on, and thus the transistor T is turned on, and further the audio signal is switched to the main audio path Tx1 for transmission, and meanwhile, the transmission of the audio signal on the auxiliary audio path Tx2 is cut off through the other elements.
In summary, according to the scheme of the application, when a single audio acquisition device is configured in an electronic device, it is not necessary to manually acquire audio data and analyze which audio channel the audio data travels, and then reconfigure the audio channel, when the audio channel switching device can automatically monitor whether an audio signal is transmitted on a main audio channel, if not, the audio channel switching device automatically completes switching of an audio signal transmission channel, and ensures that the audio signal is transmitted on the main audio channel, thereby completing normal transmission of the audio signal to a receiver, reducing links of development and debugging, and shortening audio development and debugging time.
On the other hand, the present application further provides an electronic device, which includes an electronic device body, a processor disposed in the electronic device body, a main audio channel, a secondary audio channel, an audio channel switching device as described in any of the above embodiments, and an audio acquisition device, where the main audio channel is connected to a signal input port of the processor.
Please refer to the above embodiments for an introduction of an electronic device provided in the present application, which is not described herein again.
The electronic equipment provided by the application has the same beneficial effects as the audio channel switching equipment.
On the other hand, referring to fig. 4, fig. 4 is a flowchart illustrating steps of an audio channel switching method applied to an electronic device, where the electronic device includes a processor, a main audio channel, a secondary audio channel, and an audio acquisition device, the main audio channel is connected to a signal input port of the processor, and the audio channel switching method includes:
s101: monitoring whether an audio signal exists in the auxiliary audio channel, wherein the audio signal is an audio signal acquired by an audio acquisition device, and if so, executing S102;
s102: and switching the audio signal to the main audio path for transmission so that the processor transmits the audio signal received by the signal input port to a receiving party.
Please refer to the above embodiments for the introduction of the audio channel switching method provided in the present application, which is not described herein again.
The audio channel switching method has the same beneficial effects as the audio channel switching equipment.
On the other hand, referring to fig. 5, fig. 5 is a schematic structural diagram of an audio channel switching device provided in the present application, which is applied to an electronic device, the electronic device includes a processor, a main audio channel, a secondary audio channel and an audio acquisition device, the main audio channel is connected to a signal input port of the processor, the audio channel switching device includes:
the signal monitoring module is used for monitoring whether an audio signal exists in the auxiliary audio channel, the audio signal is an audio signal acquired by the audio acquisition device, and if so, the channel switching module is triggered;
and the path switching module is used for switching the audio signal to the main audio path for transmission so that the processor transmits the audio signal received by the signal input port to a receiving party.
For the introduction of the audio channel switching device provided in the present application, please refer to the above embodiments, which are not described herein again.
The audio channel switching device provided by the application has the same beneficial effects as the audio channel switching equipment.
It is further noted that, in the present specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. An audio channel switching apparatus applied to an electronic device, the electronic device including a processor, a main audio channel, a sub audio channel, and an audio acquisition device, the main audio channel being connected to a signal input port of the processor, the audio channel switching apparatus comprising:
the monitoring device is used for switching the audio signal to the main audio channel for transmission when the audio signal exists in the auxiliary audio channel, so that the processor can transmit the audio signal received by the signal input port to a receiver;
the audio signal is the audio signal collected by the audio collecting device.
2. The audio path switching apparatus according to claim 1, wherein said monitoring means comprises:
the monitoring module is used for generating a switching signal when the fact that an audio signal exists in the auxiliary audio channel is monitored;
and the switching module is arranged between the main audio channel and the auxiliary audio channel and used for switching the audio signal to the main audio channel for transmission when the switching signal is received, so that the processor can transmit the audio signal received by the signal input port to a receiving party.
3. The audio path switching apparatus according to claim 2, wherein the monitoring means further comprises:
the analog-to-digital converter is used for performing analog-to-digital conversion on the audio signal acquired by the audio acquisition device to obtain a digital audio signal;
correspondingly, the monitoring module is specifically configured to:
and when the digital audio signal is detected to exist in the auxiliary audio channel, generating a switching signal.
4. The audio path switching apparatus according to claim 3, wherein the digital audio signal is a pulse signal or a continuous edge signal.
5. The audio path switching apparatus according to claim 4, wherein the monitoring module comprises:
a first interrupt trigger circuit connected to the main audio path for generating a first interrupt signal when the presence of an audio signal in the main audio path is detected;
a second interrupt trigger circuit connected to the consonant audio path for generating a second interrupt signal upon detecting the presence of the audio signal in the consonant audio path;
and the controller is used for generating a switching signal when receiving the second interrupt signal.
6. The audio path switching device according to any one of claims 2 to 5, wherein the switching module includes a switch;
and the change-over switch is used for being switched on after receiving the switching signal, so that the audio signal is switched to the main audio channel for transmission.
7. The audio path switching apparatus according to any one of claims 2 to 5, wherein the switching module comprises a transistor, a first capacitor, a second capacitor, a third capacitor, a first resistor, a second resistor, a third resistor, a fourth resistor, a first diode, a second diode, and a power supply, wherein:
the first end of the first capacitor is connected to the audio signal transmitted by the auxiliary audio channel, the second end of the first capacitor is connected to the first end of the first resistor, the anode of the first diode and the base of the triode, the collector of the triode, the first end of the second capacitor, the second end of the first resistor and the first end of the second resistor are all connected to the power supply, the cathode of the first diode is connected to the second end of the second resistor, the first end of the third resistor and the first end of the third capacitor, the anode of the second diode is connected to the audio signal transmitted by the main audio channel, the cathode of the second diode is connected to the emitter of the triode and the first end of the fourth resistor, the second end of the second resistor, the second end of the third resistor and the base of the triode, The second ends of the fourth resistors are all grounded;
and after the power supply is powered on under the action of the switching signal, the triode is conducted.
8. An electronic device comprising an electronic device body, a processor disposed in the electronic device body, a main audio channel, a sub audio channel, the audio channel switching device according to any one of claims 1 to 7, and an audio acquisition device, wherein the main audio channel is connected to a signal input port of the processor.
9. An audio channel switching method is applied to electronic equipment, the electronic equipment comprises a processor, a main audio channel, a secondary audio channel and an audio acquisition device, the main audio channel is connected with a signal input port of the processor, and the audio channel switching method comprises the following steps:
monitoring whether an audio signal exists in the auxiliary audio channel, wherein the audio signal is an audio signal acquired by the audio acquisition device;
if so, switching the audio signal to the main audio channel for transmission so that the processor transmits the audio signal received by the signal input port to a receiver.
10. An audio channel switching device applied to an electronic device, the electronic device comprising a processor, a main audio channel, a sub audio channel and an audio acquisition device, the main audio channel being connected to a signal input port of the processor, the audio channel switching device comprising:
the signal monitoring module is used for monitoring whether an audio signal exists in the auxiliary audio channel, wherein the audio signal is an audio signal acquired by the audio acquisition device, and if so, the channel switching module is triggered;
and the path switching module is used for switching the audio signal to the main audio path for transmission so that the processor can transmit the audio signal received by the signal input port to a receiving party.
CN202110182449.4A 2021-02-10 2021-02-10 Audio channel switching equipment, method and device and electronic equipment Active CN112925502B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110182449.4A CN112925502B (en) 2021-02-10 2021-02-10 Audio channel switching equipment, method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110182449.4A CN112925502B (en) 2021-02-10 2021-02-10 Audio channel switching equipment, method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN112925502A CN112925502A (en) 2021-06-08
CN112925502B true CN112925502B (en) 2022-07-08

Family

ID=76171428

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110182449.4A Active CN112925502B (en) 2021-02-10 2021-02-10 Audio channel switching equipment, method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN112925502B (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1949904A (en) * 2006-10-25 2007-04-18 青岛海信移动通信技术股份有限公司 TD SCDMA music cell phone
CN101193374A (en) * 2006-11-27 2008-06-04 中兴通讯股份有限公司 Audio input switching circuit for TD-SCDMA/GSM dual-mode mobile phone
CN101924526A (en) * 2009-06-11 2010-12-22 音频专用集成电路公司 Audio signal controller
WO2011054592A1 (en) * 2009-11-09 2011-05-12 Robert Bosch Gmbh Transmission unit for at least one mobile microphone module and microphone system having said transmission unit
CN201887933U (en) * 2010-12-08 2011-06-29 冯建元 Intelligent audio signal selector
CN104025699A (en) * 2012-12-31 2014-09-03 展讯通信(上海)有限公司 Adaptive audio capturing
CN105721984A (en) * 2016-03-16 2016-06-29 国网山东省电力公司信息通信公司 Audio input rapid switcher and switching system based on master and backup protection and working methods
CN106653039A (en) * 2016-12-02 2017-05-10 上海木爷机器人技术有限公司 Audio signal processing system and audio signal processing method
CN111182417A (en) * 2020-01-14 2020-05-19 深圳市爱图仕影像器材有限公司 Audio interface adaptation circuit, data line and audio equipment
WO2020118496A1 (en) * 2018-12-10 2020-06-18 深圳市欢太科技有限公司 Audio path switching method and device, readable storage medium and electronic equipment
CN112037825A (en) * 2020-08-10 2020-12-04 北京小米松果电子有限公司 Audio signal processing method and device and storage medium
CN112071324A (en) * 2019-06-10 2020-12-11 谷歌有限责任公司 Audio channel mixing
CN112243182A (en) * 2019-07-17 2021-01-19 北京声智科技有限公司 Pickup circuit, method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8223986B2 (en) * 2009-11-19 2012-07-17 Apple Inc. Electronic device and external equipment with digital noise cancellation and digital audio path

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1949904A (en) * 2006-10-25 2007-04-18 青岛海信移动通信技术股份有限公司 TD SCDMA music cell phone
CN101193374A (en) * 2006-11-27 2008-06-04 中兴通讯股份有限公司 Audio input switching circuit for TD-SCDMA/GSM dual-mode mobile phone
CN101924526A (en) * 2009-06-11 2010-12-22 音频专用集成电路公司 Audio signal controller
WO2011054592A1 (en) * 2009-11-09 2011-05-12 Robert Bosch Gmbh Transmission unit for at least one mobile microphone module and microphone system having said transmission unit
CN201887933U (en) * 2010-12-08 2011-06-29 冯建元 Intelligent audio signal selector
CN104025699A (en) * 2012-12-31 2014-09-03 展讯通信(上海)有限公司 Adaptive audio capturing
CN105721984A (en) * 2016-03-16 2016-06-29 国网山东省电力公司信息通信公司 Audio input rapid switcher and switching system based on master and backup protection and working methods
CN106653039A (en) * 2016-12-02 2017-05-10 上海木爷机器人技术有限公司 Audio signal processing system and audio signal processing method
WO2020118496A1 (en) * 2018-12-10 2020-06-18 深圳市欢太科技有限公司 Audio path switching method and device, readable storage medium and electronic equipment
CN112071324A (en) * 2019-06-10 2020-12-11 谷歌有限责任公司 Audio channel mixing
CN112243182A (en) * 2019-07-17 2021-01-19 北京声智科技有限公司 Pickup circuit, method and device
CN111182417A (en) * 2020-01-14 2020-05-19 深圳市爱图仕影像器材有限公司 Audio interface adaptation circuit, data line and audio equipment
CN112037825A (en) * 2020-08-10 2020-12-04 北京小米松果电子有限公司 Audio signal processing method and device and storage medium

Also Published As

Publication number Publication date
CN112925502A (en) 2021-06-08

Similar Documents

Publication Publication Date Title
CN105245993A (en) Automatic earphone volume adjusting method and system, and smart earphone
CN105120499A (en) Bluetooth master-slave mode automatic switching method and system
CN105100330A (en) Method and mobile terminal for optimizing equipment sound effect
CN105049606A (en) Mobile terminal microphone switching method and switching system
WO2020007174A1 (en) Communication connection establishment method and related device
CN104935361A (en) Method and device for communication between Bluetooth headset and mobile terminal
CN204559840U (en) A kind of earphone with Data Control plate
KR101568301B1 (en) Method and apparatus for improving audio channel cross talk in portable terminal
CN112925502B (en) Audio channel switching equipment, method and device and electronic equipment
CN204948355U (en) Bluetooth earphone acoustic performance self-checking system
RU2616587C2 (en) Aircraft digital audio system
CN107241665A (en) Intelligent earphone
CN112615630B (en) Circuit and method for improving radio frequency isolation and mobile terminal
CN101854574A (en) Microphone circuit in dual-mode dual-standby mobile terminal and implementation method thereof
CN105448306B (en) Voice loop detecting method
CN107872566A (en) A kind of call handover method of terminal, system and terminal
KR0138189B1 (en) Digital key-phone
CN111416909A (en) Volume self-adaptive adjusting method, system, storage medium and mobile terminal
CN216817803U (en) K sings storehouse and wireless earphone K sings system and wireless earphone conversation system of charging
CN214412819U (en) Real-time impedance matching non-polar two-bus fire-fighting telephone system
CN111816201B (en) Electronic equipment and voice signal processing method
CN113259830B (en) Multi-microphone consistency test system and method
CN114245269B (en) Earphone interaction method, earphone kit, earphone part and storage medium
CN219893445U (en) Signal amplitude limiting mute circuit and audio equipment
CN112866858B (en) Earphone and noise reduction processing method and device

Legal Events

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