CN108683980B - Audio signal transmission method and mobile terminal - Google Patents

Audio signal transmission method and mobile terminal Download PDF

Info

Publication number
CN108683980B
CN108683980B CN201810552721.1A CN201810552721A CN108683980B CN 108683980 B CN108683980 B CN 108683980B CN 201810552721 A CN201810552721 A CN 201810552721A CN 108683980 B CN108683980 B CN 108683980B
Authority
CN
China
Prior art keywords
distance
mobile terminal
audio signal
earplug
obtaining
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
CN201810552721.1A
Other languages
Chinese (zh)
Other versions
CN108683980A (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201810552721.1A priority Critical patent/CN108683980B/en
Publication of CN108683980A publication Critical patent/CN108683980A/en
Application granted granted Critical
Publication of CN108683980B publication Critical patent/CN108683980B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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

Abstract

The embodiment of the invention provides an audio signal transmission method and a mobile terminal, which solve the problem that when a user only wears one earplug of a Bluetooth headset, the user can only listen to the audio signal of one sound channel and miss the audio signal of the other sound channel. The method of the invention comprises the following steps: acquiring a processing instruction; responding to the processing instruction, and mixing at least two single-channel audio signals of the audio signal to be played to obtain a mixed audio signal; transmitting the mixed audio signal to at least one earpiece of a headset that establishes a communication connection with the mobile terminal. In the embodiment of the invention, the mixed audio signal obtained by mixing at least two single-channel audio signals is sent to at least one earplug, so that the audio signal sent by a single earplug is the mixed audio signal instead of the single-channel audio signal, thereby effectively preventing a user from missing the audio signal of any channel.

Description

Audio signal transmission method and mobile terminal
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method for transmitting an audio signal and a mobile terminal.
Background
Bluetooth headsets are now well known to many users and include primarily monaural bluetooth headsets (primarily for talking) and stereo bluetooth headsets (primarily for playing music, the headset including two earplugs, hereinafter referred to as a left earpiece and a right earpiece). Compared with wired earphones, the wired earphone cancels cable connection between the earphones and playing equipment (such as a mobile phone), brings great convenience for users, especially True Wireless (TWS) earphones, cancels connecting wires between two earplugs of a Stereo Bluetooth earphone, and is provided with a storage box (charging box), so that the wired earphone is more convenient to use. The current market of true wireless stereo bluetooth headsets mainly has the following two types:
one is the earphone of master-slave relation, the stereo earplug is one to master, one is from, the signal distribution is given to from after the master earplug receives; the other is a stereo earphone bi-pass type earphone, and the mobile phone simultaneously sends audio data to two earplugs.
In the two earphones, the audio data played by each earphone of the earphones is relatively fixed, the left earphone plays a left channel audio signal, and the right earphone plays a right channel audio signal, but when a user only wears one earphone of the bluetooth earphones, the user can only receive the audio signal of one channel, and the audio signal of the other channel is missed.
Disclosure of Invention
The invention aims to provide an audio signal transmission method and a mobile terminal, which aim to solve the problem that when a user only wears one earplug of a Bluetooth headset, the user can only listen to the audio signal of one channel and miss the audio signal of the other channel.
In a first aspect, the present invention provides an audio signal transmission method applied to a mobile terminal, including:
acquiring a processing instruction;
responding to the processing instruction, and mixing at least two single-channel audio signals of the audio signal to be played to obtain a mixed audio signal;
transmitting the mixed audio signal to at least one earpiece of a headset that establishes a communication connection with the mobile terminal.
In a second aspect, an embodiment of the present invention further provides a mobile terminal, including:
the acquisition module is used for acquiring a processing instruction;
the processing module is used for responding to the processing instruction and mixing at least two single-channel audio signals of the audio signal to be played to obtain a mixed audio signal;
a transmission module for transmitting the mixed audio signal to at least one earpiece of a headset that establishes a communication connection with the mobile terminal.
In a third aspect, an embodiment of the present invention further provides a mobile terminal, including: a memory, a processor and a computer program stored on the memory and executable on the processor, which computer program, when executed by the processor, carries out the steps of the method of transmission of an audio signal as described above.
In a fourth aspect, the embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the audio signal transmission method as described above.
The embodiment of the invention has the following beneficial effects:
according to the technical scheme of the embodiment of the invention, a processing instruction is obtained; responding to the processing instruction, and mixing at least two single-channel audio signals of the audio signal to be played to obtain a mixed audio signal; transmitting the mixed audio signal to at least one earpiece of a headset that establishes a communication connection with the mobile terminal. In the embodiment of the invention, the mixed audio signal obtained by mixing at least two single-channel audio signals is sent to at least one earplug, so that the audio signal sent by a single earplug is the mixed audio signal instead of the single-channel audio signal, thereby effectively preventing a user from missing the audio signal of any channel.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive exercise.
Fig. 1 is a flowchart illustrating a method for transmitting an audio signal according to an embodiment of the invention;
FIG. 2 is a diagram illustrating an exemplary display effect of a system interface;
fig. 3 is a block diagram of a mobile terminal according to an embodiment of the present invention;
fig. 4 is a second block diagram of a mobile terminal according to the embodiment of the present invention;
fig. 5 is a block diagram of a mobile terminal according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be described clearly and completely with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As shown in fig. 1, an embodiment of the present invention provides an audio signal transmission method applied to a mobile terminal, including:
step 101: a processing instruction is fetched.
Specifically, after the mobile terminal is connected to the earphone, the processing instruction is obtained, where the processing instruction may specifically be an instruction input by a user, or may also be a processing instruction automatically generated when the mobile terminal detects that a playing condition of the mixed audio signal is satisfied, and the processing instruction is generated when it is detected that a distance between two earplugs of the earphone satisfies a predetermined condition or distances between the mobile terminal and the two earplugs respectively satisfy a predetermined condition.
Step 102: and responding to the processing instruction, and mixing at least two single-channel audio signals of the audio signal to be played to obtain a mixed audio signal.
The mixed audio signal is a mixed signal of at least two mono audio signals.
It should be noted that, the mixed audio signal does not include at least two independent monaural audio signals, but at least two monaural audios have been mixed in the process of decoding the audio file to be played by the terminal.
After the terminal is connected with the earphone, according to the processing instruction, at least two single-channel audio signals of the audio file to be played can be mixed through a mixing matrix to obtain a mixed audio signal. For example, a left channel audio signal and a right channel audio signal of an audio file to be played are mixed to obtain a mixed audio signal.
Specifically, decoding a sound source file to be played stored in a NAND or RAM in a mobile phone, decoding the sound source file to be played into a PCM (pulse code modulation) code stream that can be recognized by a processing unit, and processing the PCM code stream, such as adding sound effects (surround sound, heavy bass, and the like), is mainly to perform signal mixing processing on left and right channels, so that an output signal contains signal information of each channel, and perform mixing processing on at least two monaural audio signals through a mixing matrix to form a relatively mature sound mixing technology, which will not be described in detail herein.
Step 103: transmitting the mixed audio signal to at least one earpiece of a headset that establishes a communication connection with the mobile terminal.
In particular, the mixed audio signal is transmitted to at least one earpiece of the headset by means of wireless communication, for example by means of bluetooth. For example, the mixed audio signal may be first output from the mono audio signal of the terminal and then the output mono audio signal may be transmitted to at least one earpiece of the headset via bluetooth.
The output port for the mono audio signal comprises at least one of an output port for a left channel audio signal and an output port for a right channel audio signal.
Preferably, the mixed audio signal is output through an output port of the target mono audio signal.
The target single-channel audio signal is determined according to the wearing state of the earphone, for example, when only the left earplug is detected to be worn, the mixed audio signal can be transmitted to the left earplug through the output port of the left channel audio signal; when only the right earplug is detected to be worn, the mixed audio signal can be transmitted to the right earplug through the output port of the right channel audio signal; when the left earplug and the right earplug are detected to be worn at the same time, the mixed audio signal can be respectively transmitted to the output port of the left channel audio signal and the output port of the right channel audio channel, so that the left earplug and the right earplug can play the mixed audio signal at the same time, and the audio signal of any channel can be prevented from being missed by a user.
In an embodiment of the present invention, the mobile terminal establishes a wireless communication connection with the headset, for example, establishes a bluetooth connection, where the headset includes a first earplug (left earplug) and a second earplug (right earplug), and based on this, as a first optional implementation manner, the step 101 of obtaining a processing instruction includes:
and acquiring a processing instruction triggered by a key on the mobile terminal.
The keys on the mobile terminal are physical keys or virtual keys.
Specifically, as shown in fig. 2, a menu option may be made on a user interface UI of the mobile phone system, for example, in a "sharing mode", when a user needs to share content, the user presses the menu button, and the system automatically mixes and outputs the left channel signal and the right channel signal, so that the content output by each headset is the same.
In the realization mode, a situation that one earplug is shared by others is provided for the real wireless earphone, the Bluetooth earplug is manually clicked to share, the transmission mode of the left and right sound channel signals is changed into the mode of the left and right sound channel mixed signal output, the user can freely control, the special requirements of the user are met, and the user experience is improved.
Further, as a second optional implementation manner, the acquiring of a processing instruction in step 101 includes:
obtaining a target distance, wherein the target distance comprises a first distance between the first earplug and the second earplug or a difference between a second distance and a third distance, the second distance is a distance between the mobile terminal and the first earplug, and the third distance is a distance between the mobile terminal and the second earplug; and when the target distance is greater than a preset threshold value, acquiring the processing instruction.
For a master-slave version of the stereo bluetooth headset, where the target distance is a first distance, obtaining the first distance between the first earpiece and the second earpiece includes:
obtaining a first wireless signal strength at which the first earpiece is in wireless communication with the second earpiece;
and acquiring a first distance corresponding to the first wireless signal strength according to the corresponding relation between the wireless signal strength and the distance.
Because the Bluetooth signal strength between the Bluetooth master device and the Bluetooth slave device is increased along with the increase of the distance, and the signal strength and the distance have a certain proportional relation, the target distance can be obtained by obtaining the wireless signal strength when the two earplugs communicate. For the stereo earphones in a master-slave relationship, one of the two earplugs is used as a master earplug, the other one is used as a slave earplug, the master earplug receives signals and distributes the signals to the slave earplug, the slave earplug and the master earplug are subjected to Bluetooth pairing, the distance between the master earplug and the slave earplug is P1 and is fixed under the normal wearing condition, the distance between the master earplug and the slave earplug is P2 after the slave earplug is removed, when P2 is not equal to P1 and is out of an allowable error range, an earplug is considered to be removed from the ear of a person, at the moment, the processing instruction is generated, and mixing processing is carried out according to the processing instruction to obtain a mixed audio signal.
For a two-way stereo Bluetooth headset, the target distance is a difference value between the second distance and the third distance;
obtaining a difference between the second distance and the third distance, comprising:
acquiring second wireless signal strength when the first earplug is in wireless communication with the mobile terminal, and acquiring a second distance corresponding to the second wireless signal strength according to the corresponding relation between the wireless signal strength and the distance;
acquiring a third wireless signal strength when the second earplug is in wireless communication with the mobile terminal, and acquiring a third distance corresponding to the third wireless signal strength according to the corresponding relation between the wireless signal strength and the distance;
and obtaining a difference value between the second distance and the third distance according to the second distance and the second distance.
It should be noted that, the order of obtaining the second distance and the third distance is not specifically limited.
For the dual-pass earphone, the mobile phone is respectively in Bluetooth pairing with the two earplugs, and under the normal wearing condition, along with the position change of the mobile phone and the head of a person, the minimum value of the distance difference | P2-P1| between the mobile phone and the two earplugs is 0, and the maximum value is the straight-line distance between the two ears of the person. When P2-P1 is larger than the straight distance between two human ears and is out of the error tolerance range, an earplug is considered to be removed from the human ear, and the processing instruction is generated and mixing processing is performed according to the processing instruction to obtain a mixed audio signal.
Of course, in the embodiment of the present invention, the target distance may also be obtained according to a proximity sensor on the earplug.
The transmission method of the audio signal of the embodiment of the invention obtains a processing instruction; responding to the processing instruction, and mixing at least two single-channel audio signals of the audio signal to be played to obtain a mixed audio signal; transmitting the mixed audio signal to at least one earpiece of a headset that establishes a communication connection with the mobile terminal. In the embodiment of the invention, the mixed audio signal obtained by mixing at least two single-channel audio signals is sent to at least one earplug, so that the audio signal sent by a single earplug is the mixed audio signal instead of the single-channel audio signal, thereby effectively preventing a user from missing the audio signal of any channel.
As shown in fig. 3, an embodiment of the present invention further provides a mobile terminal 300, including:
an obtaining module 301, configured to obtain a processing instruction;
the processing module 302 is configured to respond to the processing instruction, and perform mixing processing on at least two monaural audio signals of the audio signal to be played to obtain a mixed audio signal;
a transmitting module 303, configured to transmit the mixed audio signal to at least one earpiece of a headset that establishes a communication connection with the mobile terminal.
According to the mobile terminal provided by the embodiment of the invention, the mobile terminal is in wireless communication connection with the earphone, and the earphone comprises a first earphone and a second earphone;
the acquiring module 301 is configured to acquire a processing instruction triggered by a key on the mobile terminal;
or, for obtaining a target distance; when the target distance is larger than a preset threshold value, acquiring the processing instruction;
wherein the target distance comprises a first distance between the first and second earplugs or a difference between a second distance that is a distance between the mobile terminal and the first earpiece and a third distance that is a distance between the mobile terminal and the second earpiece.
As shown in fig. 4, the obtaining module 301 of the mobile terminal according to the embodiment of the present invention includes:
a first obtaining sub-module 3011, configured to obtain a first wireless signal strength when the first ear bud performs wireless communication with the second ear bud;
the second obtaining sub-module 3012 is configured to obtain, according to a correspondence between a wireless signal strength and a distance, a first distance corresponding to the first wireless signal strength.
In the mobile terminal of the embodiment of the present invention, the obtaining module 301 includes:
a third obtaining sub-module 3013, configured to obtain a second wireless signal strength when the first ear bud performs wireless communication with the mobile terminal, and obtain a second distance corresponding to the second wireless signal strength according to a correspondence between the wireless signal strength and the distance;
a fourth obtaining sub-module 3014, configured to obtain a third wireless signal strength when the second ear bud performs wireless communication with the mobile terminal, and obtain a third distance corresponding to the third wireless signal strength according to a correspondence between the wireless signal strength and the distance;
the fifth obtaining sub-module 3015 is configured to obtain a difference between the second distance and the third distance according to the second distance and the second distance.
It should be noted that the mobile terminal is a mobile terminal corresponding to the above method embodiment, and all implementation manners in the above method embodiment are applicable to the embodiment of the mobile terminal, and the same technical effect can be achieved.
The mobile terminal of the embodiment of the invention obtains a processing instruction; responding to the processing instruction, and mixing at least two single-channel audio signals of the audio signal to be played to obtain a mixed audio signal; transmitting the mixed audio signal to at least one earpiece of a headset that establishes a communication connection with the mobile terminal. In the embodiment of the invention, the mixed audio signal obtained by mixing at least two single-channel audio signals is sent to at least one earplug, so that the audio signal sent by a single earplug is the mixed audio signal instead of the single-channel audio signal, thereby effectively preventing a user from missing the audio signal of any channel.
Fig. 5 is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present invention, where the mobile terminal 500 includes, but is not limited to: a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, a processor 510, and a power supply 511. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 5 is not intended to be limiting of mobile terminals, and that a mobile terminal may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The processor 510 is configured to obtain a processing instruction; responding to the processing instruction, and mixing at least two single-channel audio signals of the audio signal to be played to obtain a mixed audio signal; transmitting the mixed audio signal to at least one earpiece of a headset that establishes a communication connection with the mobile terminal.
According to the technical scheme of the embodiment of the invention, a processing instruction is obtained; responding to the processing instruction, and mixing at least two single-channel audio signals of the audio signal to be played to obtain a mixed audio signal; transmitting the mixed audio signal to at least one earpiece of a headset that establishes a communication connection with the mobile terminal. In the embodiment of the invention, the mixed audio signal obtained by mixing at least two single-channel audio signals is sent to at least one earplug, so that the audio signal sent by a single earplug is the mixed audio signal instead of the single-channel audio signal, thereby effectively preventing a user from missing the audio signal of any channel.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 501 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 510; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 501 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 501 can also communicate with a network and other devices through a wireless communication system.
The mobile terminal provides the user with wireless broadband internet access through the network module 502, such as helping the user send and receive e-mails, browse webpages, access streaming media, and the like.
The audio output unit 503 may convert audio data received by the radio frequency unit 501 or the network module 502 or stored in the memory 509 into an audio signal and output as sound. Also, the audio output unit 503 may also provide audio output related to a specific function performed by the mobile terminal 500 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 503 includes a speaker, a buzzer, a receiver, and the like.
The input unit 504 is used to receive an audio or video signal. The input Unit 504 may include a Graphics Processing Unit (GPU) 5041 and a microphone 5042, and the Graphics processor 5041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 506. The image frames processed by the graphic processor 5041 may be stored in the memory 509 (or other storage medium) or transmitted via the radio frequency unit 501 or the network module 502. The microphone 5042 may receive sounds and may be capable of processing such sounds into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 501 in case of the phone call mode.
The mobile terminal 500 also includes at least one sensor 505, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of the display panel 5061 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 5061 and/or a backlight when the mobile terminal 500 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 505 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 506 is used to display information input by the user or information provided to the user. The Display unit 506 may include a Display panel 5061, and the Display panel 5061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 507 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 507 includes a touch panel 5071 and other input devices 5072. Touch panel 5071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or near touch panel 5071 using a finger, stylus, or any suitable object or attachment). The touch panel 5071 may include two parts of 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 the touch information into touch point coordinates, sends the touch point coordinates to the processor 510, and receives and executes commands sent by the processor 510. In addition, the touch panel 5071 may be implemented in various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 5071, the user input unit 507 may include other input devices 5072. In particular, other input devices 5072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 5071 may be overlaid on the display panel 5061, and when the touch panel 5071 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 510 to determine the type of the touch event, and then the processor 510 provides a corresponding visual output on the display panel 5061 according to the type of the touch event. Although in fig. 5, the touch panel 5071 and the display panel 5061 are two independent components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 5071 and the display panel 5061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 508 is an interface through which an external device is connected to the mobile terminal 500. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 508 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 500 or may be used to transmit data between the mobile terminal 500 and external devices.
The memory 509 may be used to store software programs as well as various data. The memory 509 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 509 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 processor 510 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 509 and calling data stored in the memory 509, thereby performing overall monitoring of the mobile terminal. Processor 510 may include one or more processing units; preferably, the processor 510 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 510.
The mobile terminal 500 may further include a power supply 511 (e.g., a battery) for supplying power to various components, and preferably, the power supply 511 may be logically connected to the processor 510 via a power management system, so that functions of managing charging, discharging, and power consumption are performed via the power management system.
In addition, the mobile terminal 500 includes some functional modules that are not shown, and thus, are not described in detail herein.
Preferably, an embodiment of the present invention further provides a mobile terminal, which includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor, where the computer program, when executed by the processor, implements each process of the foregoing audio signal transmission method embodiment, and can achieve the same technical effect, and details are not repeated here to avoid repetition.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the foregoing audio signal transmission method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, 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 like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (9)

1. A transmission method of audio signals is applied to a mobile terminal, and is characterized by comprising the following steps:
acquiring a processing instruction;
responding to the processing instruction, and mixing at least two single-channel audio signals of the audio signal to be played to obtain a mixed audio signal;
transmitting the mixed audio signal to at least one earpiece of a headset that establishes a communication connection with the mobile terminal;
the mobile terminal establishes a wireless communication connection with the headset, wherein the headset comprises a first earplug and a second earplug;
obtaining a processing instruction, comprising:
acquiring a target distance;
when the target distance is larger than a preset threshold value, acquiring the processing instruction;
wherein the target distance comprises a first distance between the first and second earplugs or a difference between a second distance that is a distance between the mobile terminal and the first earpiece and a third distance that is a distance between the mobile terminal and the second earpiece.
2. The method for transmitting an audio signal according to claim 1,
obtaining a processing instruction, comprising:
and acquiring a processing instruction triggered by a key on the mobile terminal.
3. The method of claim 1, wherein obtaining the first distance between the first earpiece and the second earpiece comprises:
obtaining a first wireless signal strength at which the first earpiece is in wireless communication with the second earpiece;
and acquiring a first distance corresponding to the first wireless signal strength according to the corresponding relation between the wireless signal strength and the distance.
4. The method for transmitting audio signals according to claim 1, wherein obtaining the difference between the second distance and the third distance comprises:
acquiring second wireless signal strength when the first earplug is in wireless communication with the mobile terminal, and acquiring a second distance corresponding to the second wireless signal strength according to the corresponding relation between the wireless signal strength and the distance;
acquiring a third wireless signal strength when the second earplug is in wireless communication with the mobile terminal, and acquiring a third distance corresponding to the third wireless signal strength according to the corresponding relation between the wireless signal strength and the distance;
and obtaining a difference value between the second distance and the third distance according to the second distance and the second distance.
5. A mobile terminal, comprising:
the acquisition module is used for acquiring a processing instruction;
the processing module is used for responding to the processing instruction and mixing at least two single-channel audio signals of the audio signal to be played to obtain a mixed audio signal;
a transmission module for transmitting the mixed audio signal to at least one earpiece of a headset that establishes a communication connection with the mobile terminal;
the mobile terminal establishes a wireless communication connection with the headset, wherein the headset comprises a first earplug and a second earplug;
the acquisition module is used for acquiring a target distance; when the target distance is larger than a preset threshold value, acquiring the processing instruction;
wherein the target distance comprises a first distance between the first and second earplugs or a difference between a second distance that is a distance between the mobile terminal and the first earpiece and a third distance that is a distance between the mobile terminal and the second earpiece.
6. The mobile terminal of claim 5,
the acquisition module is used for acquiring a processing instruction triggered by a key on the mobile terminal.
7. The mobile terminal of claim 6, wherein the obtaining module comprises:
the first acquisition sub-module is used for acquiring first wireless signal strength when the first earplug and the second earplug are in wireless communication;
and the second obtaining submodule is used for obtaining a first distance corresponding to the first wireless signal strength according to the corresponding relation between the wireless signal strength and the distance.
8. The mobile terminal of claim 6, wherein the obtaining module comprises:
the third obtaining submodule is used for obtaining a second wireless signal strength when the first earplug is in wireless communication with the mobile terminal, and obtaining a second distance corresponding to the second wireless signal strength according to the corresponding relation between the wireless signal strength and the distance;
the fourth obtaining submodule is used for obtaining third wireless signal strength when the second earplug is in wireless communication with the mobile terminal, and obtaining a third distance corresponding to the third wireless signal strength according to the corresponding relation between the wireless signal strength and the distance;
and the fifth obtaining submodule is used for obtaining a difference value between the second distance and the third distance according to the second distance and the second distance.
9. A mobile terminal, comprising: memory, processor and computer program stored on the memory and executable on the processor, which computer program, when being executed by the processor, carries out the steps of the method of transmitting an audio signal according to any one of claims 1 to 4.
CN201810552721.1A 2018-05-31 2018-05-31 Audio signal transmission method and mobile terminal Active CN108683980B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810552721.1A CN108683980B (en) 2018-05-31 2018-05-31 Audio signal transmission method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810552721.1A CN108683980B (en) 2018-05-31 2018-05-31 Audio signal transmission method and mobile terminal

Publications (2)

Publication Number Publication Date
CN108683980A CN108683980A (en) 2018-10-19
CN108683980B true CN108683980B (en) 2020-06-30

Family

ID=63809610

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810552721.1A Active CN108683980B (en) 2018-05-31 2018-05-31 Audio signal transmission method and mobile terminal

Country Status (1)

Country Link
CN (1) CN108683980B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111246346A (en) * 2020-01-10 2020-06-05 北京塞宾科技有限公司 Wireless multi-audio acquisition interoperation system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202014358U (en) * 2011-04-20 2011-10-19 深圳市兴达实电子有限公司 Wireless earphones for online games
WO2017070262A1 (en) * 2015-10-20 2017-04-27 Alwin Co., Ltd. Transducer module and sound delivery device having same

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090279722A1 (en) * 2008-05-09 2009-11-12 Pi-Fen Lin Wireless headset device capable of providing balanced stereo and method thereof
CN102395097A (en) * 2011-09-29 2012-03-28 深圳市万兴软件有限公司 Method and system for down-mixing multi-channel audio signals
CN204362270U (en) * 2015-01-13 2015-05-27 易力声科技(深圳)有限公司 A kind of bluetooth earphone
US20160205462A1 (en) * 2015-01-14 2016-07-14 Well Being Digital Limited Method of transmiting data and a device and system thereof
CN107295434A (en) * 2017-05-26 2017-10-24 广东思派康电子科技有限公司 TWS earphones and realize the vocal music of TWS earphones with the computer-readable recording medium broadcast

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202014358U (en) * 2011-04-20 2011-10-19 深圳市兴达实电子有限公司 Wireless earphones for online games
WO2017070262A1 (en) * 2015-10-20 2017-04-27 Alwin Co., Ltd. Transducer module and sound delivery device having same

Also Published As

Publication number Publication date
CN108683980A (en) 2018-10-19

Similar Documents

Publication Publication Date Title
CN108319445B (en) Audio playing method and mobile terminal
CN110034876B (en) PUCCH resource indication and processing method, network side equipment and user terminal
CN108551534B (en) Method and device for multi-terminal voice call
CN110545351B (en) Incoming call processing method, electronic equipment and computer readable storage medium
CN110460721B (en) Starting method and device and mobile terminal
WO2020025034A1 (en) Master/slave switching method for wearable apparatus and related product
CN109086027B (en) Audio signal playing method and terminal
CN108966067B (en) Play control method and related product
CN108540642B (en) Mobile terminal and operation method thereof
CN108683980B (en) Audio signal transmission method and mobile terminal
CN111093137B (en) Volume control method, volume control equipment and computer readable storage medium
CN109819118B (en) Volume adjusting method and mobile terminal
CN111078186A (en) Playing method and electronic equipment
CN109873894B (en) Volume adjusting method and mobile terminal
CN110012143B (en) Telephone receiver control method and terminal
CN108319440B (en) Audio output method and mobile terminal
CN111061404A (en) Control method and first electronic device
CN108632468B (en) Method for adjusting CABC level and mobile terminal
CN108955641B (en) Depth camera shooting method, depth camera shooting equipment and mobile terminal
CN108882084B (en) Wearable equipment electric quantity balancing method and related product
CN108536272B (en) Method for adjusting frame rate of application program and mobile terminal
CN109982208B (en) Control method and terminal equipment
CN110891217B (en) Earphone, earphone control method and electronic equipment
CN111526248B (en) Audio output mode switching method and electronic equipment
CN108848267B (en) Audio playing method and mobile terminal

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