CN108391208B - Signal switching method, device, terminal, earphone and computer readable storage medium - Google Patents

Signal switching method, device, terminal, earphone and computer readable storage medium Download PDF

Info

Publication number
CN108391208B
CN108391208B CN201810290669.7A CN201810290669A CN108391208B CN 108391208 B CN108391208 B CN 108391208B CN 201810290669 A CN201810290669 A CN 201810290669A CN 108391208 B CN108391208 B CN 108391208B
Authority
CN
China
Prior art keywords
signal
audio
switching
paths
converter
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.)
Expired - Fee Related
Application number
CN201810290669.7A
Other languages
Chinese (zh)
Other versions
CN108391208A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810290669.7A priority Critical patent/CN108391208B/en
Publication of CN108391208A publication Critical patent/CN108391208A/en
Application granted granted Critical
Publication of CN108391208B publication Critical patent/CN108391208B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones
    • H04R3/12Circuits for transducers, loudspeakers or microphones for distributing signals to two or more loudspeakers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2430/00Signal processing covered by H04R, not provided for in its groups

Landscapes

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

Abstract

The application relates to a signal switching method, a signal switching device, a terminal, an earphone and a computer readable storage medium. The method comprises the following steps: acquiring audio signals received by at least two audio transceiving units; at least two paths of audio signals are connected into the signal converter through the signal switching unit; and controlling the signal switching unit to switch the signal transmission path according to a preset switching strategy so that the signal converter performs signal conversion on at least two paths of audio signals. By the method, the signal converters in the circuit are reduced, the hardware cost of the signal converters is saved, and the utilization rate of hardware resources is improved.

Description

Signal switching method, device, terminal, earphone and computer readable storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a signal switching method, an apparatus, a terminal, an earphone, and a computer-readable storage medium.
Background
With the intelligent development of communication equipment, people use the communication equipment more and more frequently in daily life, and various activities such as conversation, voice, listening music, watching videos and the like can be performed through the communication equipment. In the process of implementing the above functions, the communication device often needs to switch between an analog signal and a digital signal, that is, the use requirements of an ADC (analog-to-digital converter) and a DAC (digital-to-analog converter) are high. One signal is often configured with one ADC or DAC, and the resource utilization rate is not high.
For example, when a user wears the headset to perform voice communication, two speakers and a microphone on the headset need to be respectively configured with one ADC, which consumes certain hardware resources, and when the speakers or the microphone do not perform signal transmission, the corresponding ADCs are in a spatial state but cannot be provided for other devices to be used, which causes waste of resources.
Disclosure of Invention
Embodiments of the present application provide a signal switching method, apparatus, terminal, earphone, and computer-readable storage medium, which can reduce hardware cost in audio communication and improve resource utilization.
A signal switching method is applied to equipment with an audio communication function, and the equipment comprises an audio processing circuit, wherein the audio processing circuit comprises a signal converter, a signal switching unit and at least two audio receiving and transmitting units, the signal switching unit comprises a control end and at least two switching ends, the control end is connected with the signal converter, and the switching ends are correspondingly connected with the audio receiving and transmitting units one by one so that a signal transmission channel is formed between the signal converter and the at least two audio receiving and transmitting units; the method comprises the following steps:
acquiring audio signals received by at least two audio receiving and transmitting units;
at least two paths of audio signals are connected into a signal converter through a signal switching unit;
and controlling the signal switching unit to switch the signal transmission path according to a preset switching strategy so that the signal converter performs signal conversion on at least two paths of audio signals.
A signal switching apparatus comprising:
the signal acquisition module is used for acquiring the audio signals received by the at least two audio transceiving units;
the signal connection module is used for connecting at least two paths of audio signals into the signal converter through the signal switching unit;
and the signal switching module is used for controlling the signal switching unit to switch the signal transmission path according to a preset switching strategy so that the signal converter performs signal conversion on at least two paths of audio signals.
A terminal comprises an audio processing circuit, wherein the audio processing circuit comprises a signal converter, a signal switching unit and at least two audio receiving and transmitting units, the signal switching unit comprises a control end and at least two switching ends, the control end is connected with the signal converter, and the switching ends are correspondingly connected with the audio receiving and transmitting units one by one so that a signal transmission channel is formed between the signal converter and the at least two audio receiving and transmitting units;
the terminal also includes a memory having computer-readable instructions stored therein that, when executed by the processor, cause the processor to perform the steps of the method.
An earphone comprising an electroacoustic transducer, a memory, a processor and a computer program stored on and executable on the memory, the processor being electrically connected to the electroacoustic transducer and the memory, the steps of the method being carried out when the computer program is executed by the processor.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method.
According to the signal switching method, the signal switching device, the terminal, the earphone and the computer readable storage medium, the at least two paths of audio signals are accessed into the signal converter through the signal switching unit by acquiring the audio signals received by the at least two audio receiving and transmitting units, and the signal switching unit is controlled to switch the signal transmission path according to a preset switching strategy, so that the signal converter performs signal conversion on the at least two paths of audio signals. By the method, the signal converters in the circuit are reduced, the hardware cost of the signal converters is saved, and the utilization rate of hardware resources is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a diagram illustrating an exemplary embodiment of a signal switching method;
fig. 2 is a schematic diagram of the internal structure of the terminal in one embodiment;
FIG. 3 is a flow chart illustrating a signal switching method according to an embodiment;
FIG. 4 is a schematic diagram of an embodiment of an audio processing circuit;
FIG. 5 is a flow chart illustrating a signal switching method according to another embodiment;
FIG. 6 is a flow chart illustrating a signal switching method according to another embodiment;
FIG. 7 is a block diagram showing the structure of a signal switching device according to an embodiment;
fig. 8 is a block diagram of a partial structure of a mobile phone related to a terminal according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein in the description of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application.
Fig. 1 is a schematic diagram of an application environment of a signal switching method according to an embodiment. The signal switching method in the embodiment is applied to a device with an audio communication function, as shown in fig. 1, the application environment includes a terminal 110 and an earphone 120 communicating with the terminal 110.
Wherein the terminal 110 is communicatively connected to the headset 120. Types of headphones 120 include, but are not limited to, in-ear headphones, earbuds. The terminal 110 and the headset 120 can communicate in a wired or wireless manner to realize data transmission.
An audio signal, which may be music, video, voice, etc., may be played on terminal 110, and the audio signal played by terminal 110 is transmitted to the user's ear through earphone 120, so that the user hears the sound. Similarly, the earphone 120 may also collect an audio signal, where the audio signal may be user voice, ambient sound, and the like, and the audio signal collected by the earphone 120 is transmitted to the terminal 110 for processing, and may be used for call voice, sound instruction, audio noise reduction, and the like.
The earphone 120 comprises an electroacoustic transducer 121, the electroacoustic transducer 121 being located at a tip portion of the earphone, the electroacoustic transducer 121 outputting an audio signal played by the terminal 110 into an ear canal of a user when the tip portion of the earphone is positioned in the ear canal of the user. The electroacoustic transducer 121 includes a speaker for playing audio signals transmitted by the terminal 110 and a microphone for recording audio signals around the earphone 120. Optionally, the speaker and the microphone are of a unitary structure.
Fig. 2 is a schematic diagram of an internal structure of the terminal in one embodiment. The terminal 110 includes a processor, a memory, and a display screen connected by a system bus. Wherein the processor is configured to provide computing and control capabilities to support the operation of the entire terminal 110. The memory is used for storing data, programs, and/or instruction codes, etc., and at least one computer program is stored on the memory, and the computer program can be executed by the processor to implement the signal switching method suitable for the terminal 110 provided in the embodiment of the present application. The Memory may include a non-volatile storage medium such as a magnetic disk, an optical disk, a Read-Only Memory (ROM), or a Random-Access-Memory (RAM). For example, in one embodiment, the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a database, and a computer program. The database stores data related to implementing a signal switching method provided in the above embodiments. The computer program can be executed by a processor for implementing a signal switching method provided by various embodiments of the present application. The internal memory provides a cached operating environment for the operating system, databases, and computer programs in the non-volatile storage medium. The display screen may be a touch screen, such as a capacitive screen or an electronic screen, for displaying interface information of the terminal 110, and includes a screen-on state and a screen-off state. The terminal 110 may be a mobile phone, a tablet computer, a personal digital assistant, a wearable device, or the like.
Those skilled in the art will appreciate that the configuration shown in fig. 2 is a block diagram of only a portion of the configuration associated with the present application and does not constitute a limitation on the terminal 110 to which the present application is applied, and that a particular terminal 110 may include more or less components than those shown, or combine certain components, or have a different arrangement of components.
Fig. 3 is a flowchart of a signal switching method in an embodiment, and the signal switching method in this embodiment is described by taking the terminal and/or the headset in fig. 1 as an example. The signal switching method is applied to equipment with an audio communication function, and the equipment comprises an audio processing circuit shown in fig. 4, wherein the audio processing circuit comprises a signal converter, a signal switching unit and at least two audio transceiving units. The signal switching method comprises the following steps 302-306:
step 302: and acquiring audio signals received by at least two audio transceiving units.
The audio processing circuit is used for realizing a conversion process of signals, for example, processing uplink voice and downlink voice during voice call through the audio processing circuit, and converting sound wave signals into electric signals to be transmitted to a circuit when the audio processing circuit processes the uplink voice; when the audio processing circuit processes the downlink voice, the electric signal is converted into a sound wave signal and transmitted to the loudspeaker. The audio transceiving unit is configured to collect an audio signal or emit (play) an audio signal, and optionally, the audio transceiving unit includes a speaker and a microphone, and the speaker may convert an electrical signal into an acoustic signal and the microphone may convert a sound signal into an electrical signal. That is, the audio processing circuit realizes the transceiving process of the audio signal through the audio transceiving unit.
When the audio signals are processed by the audio processing circuit, the audio signals received by the at least two audio transceiving units are obtained to obtain at least two paths of audio signals.
Step 304: and at least two paths of audio signals are connected into the signal converter through the signal switching unit.
The signal switching unit is used for switching a plurality of audio signals, the signal switching unit adopts a single-pole multi-throw switch, and optionally, the signal switching unit can also be a radio frequency switch. The signal Converter is used for converting an Analog signal into a Digital signal, and includes an ADC (Analog-to-Digital Converter) and a DAC (Digital-to-Analog Converter), and when the signal Converter is an ADC, the Analog signal can be converted into the Digital signal, and when the signal Converter is a DAC, the Digital signal can be converted into the Analog signal.
Specifically, the signal switching unit includes a control end and at least two switching ends, the control end is connected to the signal converter, the switching ends are connected to each audio transceiving unit in a one-to-one correspondence manner, and at least two paths of audio signals are accessed to the signal converter through the signal switching unit, so that a signal transmission path is formed between the signal converter and the at least two audio transceiving units.
Step 306: and controlling the signal switching unit to switch the signal transmission path according to a preset switching strategy so that the signal converter performs signal conversion on at least two paths of audio signals.
Specifically, when the signal converter and the two audio transceiving units form at least two signal transmission paths, the signal switching unit can be controlled to switch between the two signal transmission paths in sequence according to a preset time interval. In order to make the signal more continuous, the switching interval is set as time division switching, the time division switching mode divides the time into a plurality of time slots which are not overlapped with each other, different sub-channels are established by different time slots, and the time slot shifting of the signal is completed through a time slot switching network, so that the switching of the audio signal between different signal transmission paths is realized.
Optionally, the signal transmission path may be switched according to the strength of the audio signal, the signal strength of the audio signal received by each audio transceiving unit is detected, and the signal switching unit is controlled to switch to the signal transmission path with the highest strength of the audio signal. For example, when accessing the audio signal collected by each path of audio transceiving unit, the signal strength of the current audio signal needs to be detected and recorded, the signal strength reflects the sound intensity, the signal strength of each path of audio signal is compared, and the switching end of the signal switching unit is connected to the signal transceiving unit corresponding to the audio signal with the highest signal strength.
And the signal transmission path is switched by the control signal switching unit, so that the signal converter performs signal conversion on at least two paths of audio signals. In this embodiment, the signal converter is an ADC, and converts at least two paths of audio signals into electrical signals, where the audio signals are analog signals and the electrical signals are digital signals.
According to the signal switching method, the at least two paths of audio signals are accessed into the signal converter through the signal switching unit by acquiring the audio signals received by the at least two audio receiving and transmitting units, and the signal switching unit is controlled to switch the signal transmission path according to a preset switching strategy, so that the signal converter performs signal conversion on the at least two paths of audio signals. By the method, the number of ADCs in the circuit is reduced, the hardware cost of the ADCs is saved, and the utilization rate of hardware resources is improved.
In one embodiment, the audio transceiving units comprise electroacoustic transducers, and as shown in fig. 5, the acquiring of the audio signals received by at least two of the audio transceiving units comprises the following steps 502 and/or 504:
step 502: and receiving an audio signal acquired by an electroacoustic transducer on the terminal.
Specifically, the terminal has an electroacoustic transducer, which refers to a device for receiving an electrical (or acoustic) input signal and converting the input signal into an acoustic (or electrical) output signal, such as a speaker, a microphone, a receiver, and the like. When audio communication is performed through the terminal, an audio signal acquired by an electroacoustic transducer on the terminal is received. For example, when a call is made through the terminal, the microphone on the terminal collects a sound wave signal generated by the vibration of the vocal cords of the user, and transmits the sound wave signal to the audio processing unit for signal conversion processing.
Step 504: and when the terminal is in communication connection with an earphone, receiving an audio signal acquired by an electroacoustic transducer on the earphone.
When the terminal is connected with the earphone, the audio signal sent out by the terminal and the audio signal required to be collected by the terminal are both carried out through the earphone by default. And receiving the audio signal acquired by the electroacoustic transducer on the earphone when the audio processing circuit processes the audio signal acquired by the signal transceiving unit. Wherein the audio signal comprises a user speech and/or ambient sound.
In particular, the earphone includes an electroacoustic transducer, which may act as a speaker to convert an electrical signal corresponding to an audio signal into a sound wave signal that may be heard by a user. Meanwhile, the electroacoustic transducer is very sensitive to sound waves, and when the electroacoustic transducer receives the sound waves, the loudspeaker cone can vibrate to drive a coil connected with the cone to make a motion of cutting magnetic lines in a magnetic field of a permanent magnet, so that a current which changes along with the change of the sound waves is generated (the phenomenon of generating the current is called as an electromagnetic induction phenomenon in physics), and meanwhile, electromotive force of audio frequency is output at two ends of the coil. Thus, the electroacoustic transducer may also capture an audio signal. That is, the electroacoustic transducer may be used as a microphone.
Electroacoustic transducers, although they differ in their type, function or operating state, comprise two basic components, namely an electrical system and a mechanical vibration system, which are interconnected by some physical effect inside the electroacoustic transducer to accomplish the conversion of energy.
Optionally, the audio signal may be collected by a microphone disposed in the earphone, and the microphone may be disposed on the earphone housing or on the earphone line; it will be understood that the microphone may be disposed at any position near the vocal cords of the user, and the present embodiment is not limited thereto.
In one embodiment, when a call is made through the headset, a user's voice is collected based on an electroacoustic transducer within the headset that plays an audio signal; wherein the electro-acoustic transducer comprises a left microphone and a right microphone. And respectively acquiring a left channel signal and a right channel signal according to a left microphone and a right microphone on the earphone.
It is understood that the earphone generally includes a left channel earphone and a right channel earphone, when sound is collected as a microphone based on an electroacoustic transducer playing audio signals in the earphone, the earphone has a left microphone and a right microphone, and the audio signal collected by the left microphone is a left channel signal and the audio signal collected by the right microphone is a right channel signal. The left sound channel signal is a sound wave signal acquired by a left microphone simulating the auditory range of the left ear of a human, and the right sound channel signal is a sound wave signal acquired by a right microphone simulating the auditory range of the right ear of the human.
Furthermore, the electroacoustic transducer on the earphone transmits the collected left and right channel signals to the audio signal processing circuit, and the audio signal processing circuit controls the signal switching unit to switch the left channel signal and the right channel signal according to a preset time interval, so that the signal converter converts the left channel signal and the right channel signal collected by the earphone into electric signals for sending call information.
Optionally, the audio processing circuit may be further disposed in the earphone, and the earphone further includes a processing chip, where the processing chip completes the processing process of the audio signal.
In one embodiment, as shown in fig. 6, the signal switching method further includes the following steps 602 to 606:
step 602: and acquiring the electric signal sent by the equipment, and performing signal conversion on the electric signal through the signal converter to obtain two paths of audio signals.
The equipment comprises a terminal and an earphone which are in communication connection, when an audio signal is played through an audio processing circuit on the equipment, an electric signal sent by the equipment is obtained, and the electric signal is subjected to signal conversion through a signal converter to obtain two paths of audio signals. For example, when music is played through headphones, the terminal sends an electrical signal containing music information to the DAC, and the DAC converts the electrical signal containing music information into a left channel signal and a right channel signal for the user to listen to in ears.
Step 604: and the two paths of audio signals are accessed to the corresponding audio transceiving units through the signal switching unit.
Specifically, the signal switching unit comprises a control end and at least two switching ends, the control end is connected with the signal converter, the switching ends are connected with each audio transceiving unit in a one-to-one correspondence manner, and two paths of audio signals are respectively connected to the corresponding audio transceiving units through the signal switching unit, so that a signal transmission channel is formed between the signal converter and the two audio transceiving units. For example, the audio transceiving unit includes an electroacoustic transducer on the earphone, the electroacoustic transducer includes a left speaker and a right speaker, the left speaker and the right speaker are respectively used for playing a left channel signal and a right channel signal, and the left channel signal and the right channel signal formed after the conversion by the DAC are respectively transmitted to signal transmission paths corresponding to the left speaker and the right speaker on the earphone.
Step 606: and controlling the signal switching unit to switch the two paths of audio signals according to a preset time interval so that the two paths of audio signals are respectively played through the corresponding audio receiving and transmitting units.
In order to make the signal more continuous, the switching interval is set as time division switching, the time division switching mode divides the time into a plurality of time slots which are not overlapped with each other, different sub-channels are established by different time slots, and the time slot shifting of the signal is completed through a time slot switching network, so that the switching of the audio signal between different signal transmission paths is realized. For example, if the preset time interval is 5ms, the signal switch switches once every 5ms, and when music is played, the left channel signal and the right channel signal converted by the DAC are respectively emitted through the left speaker and the right speaker of the headphone at a time interval of 5ms, so that switching between the left channel and the right channel is achieved.
According to the signal switching method provided by the embodiment, the electric signal sent by the equipment is obtained, the electric signal is subjected to signal conversion by the signal converter to obtain two paths of audio signals, the two paths of audio signals are accessed to the corresponding audio receiving and transmitting units through the signal switching unit, and the signal switching unit is controlled to switch the two paths of audio signals according to the preset time interval, so that the two paths of audio signals are respectively subjected to audio playing through the corresponding audio receiving and transmitting units, the use of a DAC in a circuit is reduced, the hardware cost of the DAC is saved, and the utilization rate of hardware resources is improved.
It should be understood that, although the steps in the flowcharts corresponding to the above-described embodiments are sequentially shown as indicated by arrows, the steps are not necessarily performed sequentially as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 3-6 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternating with other steps or at least some of the sub-steps or stages of other steps.
As shown in fig. 7, in one embodiment, there is provided a signal switching apparatus, comprising: a signal acquisition module 710, a signal connection module 720, and a signal switching module 730.
A signal obtaining module 710, configured to obtain audio signals received by at least two of the audio transceiving units.
A signal connection module 720, configured to connect at least two paths of the audio signals to the signal converter through the signal switching unit.
The signal switching module 730 is configured to control the signal switching unit to switch the signal transmission path according to a preset switching policy, so that the signal converter performs signal conversion on the at least two paths of audio signals.
In the signal switching apparatus, the signal obtaining module 710 obtains the audio signals received by the at least two audio transceiving units, the signal connecting module 720 connects the at least two audio signals to the signal converter through the signal switching unit, and the signal switching module 730 controls the signal switching unit to switch the signal transmission path according to a preset switching strategy, so that the signal converter performs signal conversion on the at least two audio signals. By the device, the signal converters in the circuit are reduced, the hardware cost of the signal converters is saved, and the utilization rate of hardware resources is improved.
In one embodiment, the signal acquisition module 710 is further configured to receive an audio signal acquired by an electroacoustic transducer on the terminal; and/or receiving an audio signal acquired by an electroacoustic transducer on the earphone when the terminal is in communication connection with the earphone. Wherein the audio signal comprises a user speech and/or ambient sound.
In one embodiment, the signal obtaining module 710 is further configured to, when a call is made through the headset, collect a user voice based on an electroacoustic transducer in the headset that plays an audio signal; the electro-acoustic transducer comprises a left microphone and a right microphone; and respectively acquiring a left channel signal and a right channel signal according to a left microphone and a right microphone on the earphone.
In one embodiment, the signal switching module 730 is further configured to control the signal switching unit to switch the left channel signal and the right channel signal according to a preset time interval; the signal converter converts the left channel signal and the right channel signal collected by the earphone into electric signals for sending call information.
In an embodiment, the signal obtaining module 710 is further configured to obtain an electrical signal sent by the device, and perform signal conversion on the electrical signal through the signal converter to obtain two paths of audio signals; the signal connection module 720 is further configured to connect the two paths of audio signals to corresponding audio transceiving units through the signal switching unit; the signal switching module 730 is further configured to control the signal switching unit to switch the two paths of audio signals according to a preset time interval, so that the two paths of audio signals are respectively played through the corresponding audio transceiving units.
In one embodiment, the signal obtaining module 710 is further configured to, when the apparatus plays music, send an electrical signal containing music information to the signal converter; the signal converter converts the electrical signal containing music information into a left channel signal and a right channel signal for binaural listening of a user.
Based on the above embodiments, the signal converter includes an analog-to-digital converter and a digital-to-analog converter.
The division of each module in the signal switching device is only used for illustration, and in other embodiments, the signal switching device may be divided into different modules as needed to complete all or part of the functions of the signal switching device.
For the specific definition of the signal switching device, reference may be made to the above definition of the signal switching method, which is not described herein again. The modules in the signal switching device can be wholly or partially implemented by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
The implementation of each module in the signal switching apparatus provided in the embodiments of the present application may be in the form of a computer program. The computer program may be run on a terminal or a server. The program modules constituted by the computer program may be stored on the memory of the terminal or the server. The computer program, when executed by a processor, implements the steps of the signal switching method described in the embodiments of the present application.
The embodiments of the present application further provide an earphone, which includes an electroacoustic transducer, a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor is electrically connected to the electroacoustic transducer and the memory, and the processor implements the signal switching method described in the above embodiments when executing the computer program. Wherein the electroacoustic transducer comprises a loudspeaker and a microphone, the loudspeaker is used for playing audio signals, and the microphone is used for collecting user voice and/or ambient environment sound. Optionally, the speaker and the microphone are of a unitary structure.
The embodiment of the application also provides a computer readable storage medium. One or more non-transitory computer-readable storage media containing computer-executable instructions that, when executed by one or more processors, cause the processors to perform the signal switching methods as described in the embodiments above.
The embodiment of the application also provides a computer program product. A computer program product comprising instructions which, when run on a computer, cause the computer to perform the signal switching method described in the embodiments above.
The embodiment of the application also provides the terminal equipment. The terminal comprises an audio processing circuit, wherein the audio processing circuit comprises a signal converter, a signal switching unit and at least two audio receiving and transmitting units, the signal switching unit comprises a control end and at least two switching ends, the control end is connected with the signal converter, and the switching ends are correspondingly connected with the audio receiving and transmitting units one by one, so that a signal transmission passage is formed between the signal converter and the at least two audio receiving and transmitting units.
As shown in fig. 8, for convenience of explanation, only the parts related to the embodiments of the present application are shown, and details of the technology are not disclosed, please refer to the method part of the embodiments of the present application. The terminal may be any terminal device including a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), a vehicle-mounted computer, a wearable device, and the like, taking the terminal as the mobile phone as an example:
fig. 8 is a block diagram of a partial structure of a mobile phone related to a computer device provided in an embodiment of the present application. Referring to fig. 8, the handset includes: radio Frequency (RF) circuitry 810, memory 820, input unit 830, display unit 840, sensor 850, audio circuitry 860, wireless fidelity (WiFi) module 870, processor 880, and power supply 890. Those skilled in the art will appreciate that the handset configuration shown in fig. 8 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The RF circuit 810 may be used for receiving and transmitting signals during information transmission and reception or during a call, and may receive downlink information of a base station and then process the downlink information to the processor 880; the uplink data may also be transmitted to the base station. Typically, the RF circuitry includes, but is not limited to, an antenna, at least one Amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuit 810 may also communicate with networks and other devices via wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE)), e-mail, Short Messaging Service (SMS), and the like.
The memory 820 may be used to store software programs and modules, and the processor 880 executes various functional applications and data processing of the cellular phone by operating the software programs and modules stored in the memory 820. The memory 820 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function (such as an application program for a sound playing function, an application program for an image playing function, and the like), and the like; the data storage area may store data (such as audio data, an address book, etc.) created according to the use of the mobile phone, and the like. Further, the memory 820 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The input unit 830 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the cellular phone 800. Specifically, the input unit 830 may include a touch panel 831 and other input devices 832. The touch panel 831, which may also be referred to as a touch screen, may collect touch operations performed by a user on or near the touch panel 831 (e.g., operations performed by the user on the touch panel 831 or near the touch panel 831 using any suitable object or accessory such as a finger, a stylus, etc.) and drive the corresponding connection device according to a preset program. In one embodiment, the touch panel 831 can include two portions, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts it to touch point coordinates, and sends the touch point coordinates to the processor 880, and can receive and execute commands from the processor 880. In addition, the touch panel 831 may be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The input unit 830 may include other input devices 832 in addition to the touch panel 831. In particular, other input devices 832 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), and the like.
The display unit 840 may be used to display information input by the user or information provided to the user and various menus of the cellular phone. The display unit 840 may include a display panel 841. In one embodiment, the Display panel 841 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. In one embodiment, touch panel 831 can overlay display panel 841, and when touch panel 831 detects a touch operation thereon or nearby, communicate to processor 880 to determine the type of touch event, and processor 880 can then provide a corresponding visual output on display panel 841 based on the type of touch event. Although in fig. 8, the touch panel 831 and the display panel 841 are two separate components to implement the input and output functions of the mobile phone, in some embodiments, the touch panel 831 and the display panel 841 may be integrated to implement the input and output functions of the mobile phone.
The cell phone 800 may also include at least one sensor 850, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor that adjusts the brightness of the display panel 841 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 841 and/or the backlight when the mobile phone is moved to the ear. The motion sensor can comprise an acceleration sensor, the acceleration sensor can detect the magnitude of acceleration in each direction, the magnitude and the direction of gravity can be detected when the mobile phone is static, and the motion sensor can be used for identifying the application of the gesture of the mobile phone (such as horizontal and vertical screen switching), the vibration identification related functions (such as pedometer and knocking) and the like; the mobile phone may be provided with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor.
The audio circuitry 860, speaker 861 and microphone 862 may provide an audio interface between the user and the handset. The audio circuit 860 can transmit the electrical signal converted from the received audio data to the speaker 861, and the electrical signal is converted into a sound signal by the speaker 861 and output; on the other hand, the microphone 862 converts the collected sound signal into an electrical signal, which is received by the audio circuit 860 and converted into audio data, and then the audio data is output to the processor 880 for processing, and then the audio data may be transmitted to another mobile phone through the RF circuit 810, or the audio data may be output to the memory 820 for subsequent processing.
WiFi belongs to short-distance wireless transmission technology, and the mobile phone can help a user to send and receive e-mails, browse webpages, access streaming media and the like through the WiFi module 870, and provides wireless broadband Internet access for the user. Although fig. 8 shows WiFi module 870, it is understood that it is not an essential component of cell phone 800 and may be omitted as desired.
The processor 880 is a control center of the mobile phone, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the mobile phone and processes data by operating or executing software programs and/or modules stored in the memory 820 and calling data stored in the memory 820, thereby integrally monitoring the mobile phone. In one embodiment, processor 880 may include one or more processing units. In one embodiment, the processor 880 may integrate an application processor and a modem processor, wherein the application processor primarily handles operating systems, user interfaces, applications, and the like; the modem processor handles primarily wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 880.
The cell phone 800 also includes a power supply 890 (e.g., a battery) for powering the various components, which may be logically coupled to the processor 880 via a power management system that may be used to manage charging, discharging, and power consumption.
In one embodiment, the cell phone 800 may also include a camera, a bluetooth module, and the like.
In the embodiment of the present application, when the processor 880 included in the mobile terminal executes the computer program stored in the memory, the signal switching method described in the above embodiments is implemented.
When the computer program running on the processor is executed, the signal converter in the circuit is reduced, the hardware cost of the signal converter is saved, and the utilization rate of hardware resources is improved.
Any reference to memory, storage, database, or other medium used herein may include non-volatile and/or volatile memory. Suitable non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM), which acts as external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms, such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), Enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and bus dynamic RAM (RDRAM).
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (12)

1. A signal switching method is applied to equipment with an audio communication function, and the equipment comprises an audio processing circuit, wherein the audio processing circuit comprises a signal converter, a signal switching unit and at least two audio transceiving units, the signal switching unit comprises a control end and at least two switching ends, the control end is connected with the signal converter, and the switching ends are connected with each audio transceiving unit in a one-to-one correspondence manner, so that a signal transmission path is formed between the signal converter and the at least two audio transceiving units; the method comprises the following steps:
acquiring audio signals received by at least two audio transceiving units;
at least two paths of audio signals are connected into the signal converter through the signal switching unit;
controlling the signal switching unit to switch the signal transmission path according to a preset switching strategy so that the signal converter performs signal conversion on at least two paths of audio signals; the signal switching unit is controlled to switch between two signal transmission paths in sequence according to a preset time interval; setting a switching interval as time division switching;
acquiring an electric signal sent by the equipment, and performing signal conversion on the electric signal through the signal converter to obtain two paths of audio signals;
the two paths of audio signals are accessed to the corresponding audio transceiving units through the signal switching unit;
and controlling the signal switching unit to switch the two paths of audio signals according to a preset time interval so that the two paths of audio signals are respectively played through the corresponding audio receiving and transmitting units.
2. The method of claim 1, wherein the device comprises a terminal and an earphone, and wherein the audio transceiving unit comprises an electroacoustic transducer;
the acquiring of the audio signals received by at least two of the audio transceiving units includes:
receiving an audio signal acquired by an electroacoustic transducer on a terminal; and/or
When the terminal is in communication connection with an earphone, receiving an audio signal acquired by an electroacoustic transducer on the earphone; wherein the audio signal comprises a user speech and/or ambient sound.
3. The method of claim 2, wherein receiving the audio signal obtained by the electroacoustic transducer on the headset when the headset is communicatively connected to the terminal comprises:
when a call is made through the earphone, acquiring user voice based on an electroacoustic transducer playing an audio signal in the earphone; the electro-acoustic transducer comprises a left microphone and a right microphone;
and respectively acquiring a left channel signal and a right channel signal according to a left microphone and a right microphone on the earphone.
4. The method according to claim 3, wherein the controlling the signal switching unit to switch the signal transmission path according to a preset switching strategy so that the signal converter performs signal conversion on at least two audio signals comprises:
controlling the signal switching unit to switch the left channel signal and the right channel signal according to a preset time interval;
the signal converter converts the left channel signal and the right channel signal collected by the earphone into electric signals for sending call information.
5. The method according to claim 1, wherein the obtaining of the electrical signal sent by the device, and performing signal conversion on the electrical signal by the signal converter to obtain two paths of audio signals comprises:
when the equipment plays music, the equipment sends an electric signal containing music information to a signal converter;
the signal converter converts the electrical signal containing music information into a left channel signal and a right channel signal for binaural listening of a user.
6. The method according to any one of claims 1 to 5, wherein the signal converter comprises an analog-to-digital converter and a digital-to-analog converter.
7. A signal switching device is applied to equipment with an audio communication function, and the equipment comprises an audio processing circuit, wherein the audio processing circuit comprises a signal converter, a signal switching unit and at least two audio transceiving units, the signal switching unit comprises a control end and at least two switching ends, the control end is connected with the signal converter, and the switching ends are connected with each audio transceiving unit in a one-to-one correspondence manner, so that a signal transmission channel is formed between the signal converter and the at least two audio transceiving units; the method comprises the following steps:
the signal acquisition module is used for acquiring audio signals received by at least two audio receiving and transmitting units;
the signal connection module is used for connecting at least two paths of audio signals into the signal converter through the signal switching unit;
the signal switching module is used for controlling the signal switching unit to switch the signal transmission path according to a preset switching strategy so that the signal converter performs signal conversion on at least two paths of audio signals; the signal switching unit is controlled to switch between two signal transmission paths in sequence according to a preset time interval; setting a switching interval as time division switching;
the signal acquisition module is further used for acquiring an electric signal sent by the equipment, and performing signal conversion on the electric signal through the signal converter to obtain two paths of audio signals; the signal connection module is also used for connecting the two paths of audio signals to the corresponding audio receiving and transmitting units through the signal switching unit; the signal switching module is further used for controlling the signal switching unit to switch the two paths of audio signals according to a preset time interval, so that the two paths of audio signals are respectively played through the corresponding audio transceiving units.
8. A terminal is characterized by comprising an audio processing circuit, wherein the audio processing circuit comprises a signal converter, a signal switching unit and at least two audio transceiving units, the signal switching unit comprises a control end and at least two switching ends, the control end is connected with the signal converter, and the switching ends are correspondingly connected with the audio transceiving units one by one so as to form a signal transmission channel between the signal converter and the at least two audio transceiving units;
the terminal further comprises a memory having computer readable instructions stored therein which, when executed by the processor, cause the processor to perform the steps of the method according to any one of claims 1 to 6.
9. An earphone, comprising an electroacoustic transducer, a memory, a processor and a computer program stored on and executable on the memory, the processor being electrically connected to the electroacoustic transducer and the memory, the processor realizing the steps of the method of any one of claims 1 to 6 when executing the computer program.
10. The headset of claim 9, wherein the electro-acoustic transducer comprises a speaker for playing audio signals and a microphone for picking up user speech and/or ambient sounds.
11. The headset of claim 10, wherein the speaker and the microphone are a unitary structure.
12. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 6.
CN201810290669.7A 2018-03-30 2018-03-30 Signal switching method, device, terminal, earphone and computer readable storage medium Expired - Fee Related CN108391208B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810290669.7A CN108391208B (en) 2018-03-30 2018-03-30 Signal switching method, device, terminal, earphone and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810290669.7A CN108391208B (en) 2018-03-30 2018-03-30 Signal switching method, device, terminal, earphone and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN108391208A CN108391208A (en) 2018-08-10
CN108391208B true CN108391208B (en) 2021-02-02

Family

ID=63073295

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810290669.7A Expired - Fee Related CN108391208B (en) 2018-03-30 2018-03-30 Signal switching method, device, terminal, earphone and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN108391208B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110085268B (en) * 2019-05-10 2021-02-19 深圳市智微智能科技股份有限公司 Method and system for real-time switching of double MICs of Android advertisement machine, advertisement machine and storage medium
CN111142831B (en) * 2019-12-02 2021-10-22 联想(北京)有限公司 Information processing method, electronic equipment and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60254994A (en) * 1984-05-31 1985-12-16 Foster Denki Kk Inspecting device for abnormal sound of speaker
US6044307A (en) * 1996-09-02 2000-03-28 Yamaha Corporation Method of entering audio signal, method of transmitting audio signal, audio signal transmitting apparatus, and audio signal receiving and reproducing apparatus
CN101170309A (en) * 2007-11-26 2008-04-30 南京大学 Portable USB digital audio processing device
CN201178493Y (en) * 2008-04-18 2009-01-07 大连捷成实业发展有限公司 Matrix implementing double sound channel analogue audio switching transmission by single path
CN101794574A (en) * 2008-12-29 2010-08-04 Nxp股份有限公司 A device for and a method of processing audio data
CN105874818A (en) * 2013-11-20 2016-08-17 楼氏电子(北京)有限公司 Apparatus with a speaker used as second microphone
CN106685425A (en) * 2015-11-11 2017-05-17 国民技术股份有限公司 Audio signal processing device and analog front-end circuit thereof
CN106921914A (en) * 2015-12-26 2017-07-04 森声数字科技(深圳)有限公司 A kind of multi-channel audio transmission equipment
CN107396238A (en) * 2017-07-17 2017-11-24 广东欧珀移动通信有限公司 Audio signal processing method, device, mobile terminal and readable storage medium storing program for executing

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2629347Y (en) * 2003-06-22 2004-07-28 黄行仁 Wireless audio-video frequency transmitter-receiver set
US20110206211A1 (en) * 2010-02-21 2011-08-25 Orbit Communication System Ltd. Audio management system
CN104661158A (en) * 2013-11-25 2015-05-27 华为技术有限公司 Stereophone, terminal and audio signal processing method of stereophone and terminal
US20150270914A1 (en) * 2013-11-27 2015-09-24 MYE Entertainment, Inc. Multiple Channel Audio Receiver

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60254994A (en) * 1984-05-31 1985-12-16 Foster Denki Kk Inspecting device for abnormal sound of speaker
US6044307A (en) * 1996-09-02 2000-03-28 Yamaha Corporation Method of entering audio signal, method of transmitting audio signal, audio signal transmitting apparatus, and audio signal receiving and reproducing apparatus
CN101170309A (en) * 2007-11-26 2008-04-30 南京大学 Portable USB digital audio processing device
CN201178493Y (en) * 2008-04-18 2009-01-07 大连捷成实业发展有限公司 Matrix implementing double sound channel analogue audio switching transmission by single path
CN101794574A (en) * 2008-12-29 2010-08-04 Nxp股份有限公司 A device for and a method of processing audio data
CN105874818A (en) * 2013-11-20 2016-08-17 楼氏电子(北京)有限公司 Apparatus with a speaker used as second microphone
CN106685425A (en) * 2015-11-11 2017-05-17 国民技术股份有限公司 Audio signal processing device and analog front-end circuit thereof
CN106921914A (en) * 2015-12-26 2017-07-04 森声数字科技(深圳)有限公司 A kind of multi-channel audio transmission equipment
CN107396238A (en) * 2017-07-17 2017-11-24 广东欧珀移动通信有限公司 Audio signal processing method, device, mobile terminal and readable storage medium storing program for executing

Also Published As

Publication number Publication date
CN108391208A (en) 2018-08-10

Similar Documents

Publication Publication Date Title
CN108430003B (en) Sound effect compensation method and device, readable storage medium and terminal
US10466961B2 (en) Method for processing audio signal and related products
CN108391205B (en) Left and right channel switching method and device, readable storage medium and terminal
CN108521621B (en) Signal processing method, device, terminal, earphone and readable storage medium
CN108922537B (en) Audio recognition method, device, terminal, earphone and readable storage medium
CN108684029B (en) Bluetooth pairing connection method and system, Bluetooth device and terminal
CN108668009B (en) Input operation control method, device, terminal, earphone and readable storage medium
CN108540900B (en) Volume adjusting method and related product
CN108710486B (en) Audio playing method and device, earphone and computer readable storage medium
CN107231473B (en) Audio output regulation and control method, equipment and computer readable storage medium
CN108763978B (en) Information prompting method, device, terminal, earphone and readable storage medium
CN108600885B (en) Sound signal processing method and related product
CN108886653A (en) A kind of earphone sound channel control method, relevant device and system
CN112997470B (en) Audio output control method and device, computer readable storage medium and electronic equipment
CN106506437B (en) Audio data processing method and device
CN116684514A (en) Sound masking method and device and terminal equipment
CN108834013B (en) Wearable equipment electric quantity balancing method and related product
CN108391208B (en) Signal switching method, device, terminal, earphone and computer readable storage medium
CN112997471B (en) Audio channel switching method and device, readable storage medium and electronic equipment
CN106126170B (en) Sound effect setting method of terminal and terminal
CN108882084B (en) Wearable equipment electric quantity balancing method and related product
CN115695620A (en) Intelligent glasses and control method and system thereof
CN106817324B (en) Frequency response correction method and device
CN108600906B (en) Playing control method and device for multiple sound boxes
CN105635379B (en) Noise suppression 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
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20210202

CF01 Termination of patent right due to non-payment of annual fee