CN113223539B - Audio transmission method and electronic equipment - Google Patents

Audio transmission method and electronic equipment Download PDF

Info

Publication number
CN113223539B
CN113223539B CN202010066310.9A CN202010066310A CN113223539B CN 113223539 B CN113223539 B CN 113223539B CN 202010066310 A CN202010066310 A CN 202010066310A CN 113223539 B CN113223539 B CN 113223539B
Authority
CN
China
Prior art keywords
audio signal
earphone
channel
channel audio
electronic device
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
CN202010066310.9A
Other languages
Chinese (zh)
Other versions
CN113223539A (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 CN202010066310.9A priority Critical patent/CN113223539B/en
Priority to PCT/CN2021/071425 priority patent/WO2021147718A1/en
Publication of CN113223539A publication Critical patent/CN113223539A/en
Application granted granted Critical
Publication of CN113223539B publication Critical patent/CN113223539B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L19/00Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis
    • G10L19/0017Lossless audio signal coding; Perfect reconstruction of coded audio signal by transmission of coding error
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L19/00Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computational Linguistics (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

The invention provides an audio transmission method and electronic equipment, wherein the audio transmission method is applied to first electronic equipment and comprises the following steps: decoding the audio file into a first channel audio signal and a second channel audio signal; a first channel playing device for encoding the first channel audio signal through the first wireless chip and then transmitting the encoded first channel audio signal to the second electronic device; and the second channel playing device encodes the second channel audio signal through the second wireless chip and then sends the second channel audio signal to the second electronic equipment. The technical scheme provided by the invention solves the problem that the existing audio transmission mode can cause the tone quality of the audio file to be damaged.

Description

Audio transmission method and electronic equipment
Technical Field
The present invention relates to the field of communications technologies, and in particular, to an audio transmission method and an electronic device.
Background
With the development of wireless communication technology and the gradual expansion of markets, wireless audio transmission technology is also increasingly applied to wireless communication. Currently, an audio file of an electronic device generally includes a dual-channel audio source, that is, the audio file is divided into two audio signals of a left channel and a right channel, when the electronic device performs wireless audio transmission, the electronic device generally can only perform compression-transmission-decompression due to the limitation of transmission bandwidth, that is, the electronic device packs and compresses the audio signals of the left channel and the right channel and then sends the packed and compressed audio signals to an audio playing device, and the audio playing device can acquire the audio signals of the left channel and the right channel after decompressing the audio signals to realize audio playing. However, in the compression-transmission-decompression process, the tone quality of the audio file is damaged, and the playing effect of the audio file is affected.
Disclosure of Invention
The embodiment of the invention provides an audio transmission method and electronic equipment, which are used for solving the problem that the tone quality of an audio file is damaged due to the existing audio transmission mode.
In order to solve the technical problems, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides an audio transmission method, which is applied to a first electronic device including a first wireless chip and a second wireless chip, and includes:
decoding the audio file into a first channel audio signal and a second channel audio signal;
a first channel playing device for encoding the first channel audio signal through the first wireless chip and then transmitting the encoded first channel audio signal to the second electronic device;
and the second channel playing device encodes the second channel audio signal through the second wireless chip and then sends the second channel audio signal to the second electronic equipment.
In a second aspect, an embodiment of the present invention further provides an electronic device, where the electronic device is a first electronic device, and the electronic device includes:
the decoding chip is used for decoding the audio file into a first channel audio signal and a second channel audio signal;
the first wireless chip is used for encoding the first channel audio signal and then transmitting the encoded first channel audio signal to a first channel playing device of the second electronic equipment;
and the second wireless chip is used for encoding the second sound frequency signal and then transmitting the second sound frequency signal to a second sound channel playing device of the second electronic equipment.
In a third aspect, an embodiment of the present invention further provides an electronic device, including a processor, a memory, and a computer program stored on the memory and executable on the processor, the computer program implementing the steps of the audio transmission method as described in the first aspect when executed by the processor.
In a fourth aspect, embodiments of the present invention also provide a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the audio transmission method as described in the first aspect.
According to the scheme provided by the embodiment of the invention, the first electronic equipment can decode the audio file into the first channel audio signal and the second channel audio signal, the first channel audio signal is encoded through the first wireless chip and then sent to the first channel playing device of the second electronic equipment, and the second channel audio signal is encoded through the second wireless chip and then sent to the second channel playing device of the second electronic equipment. Therefore, the audio transmission channel in the first electronic equipment is doubled, the transmission bandwidth is doubled, the transmission quality of the audio file can be improved, the playing effect of the audio file is ensured, and better hearing experience is brought to the user.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the description of the embodiments of the present invention will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort to a person of ordinary skill in the art.
Fig. 1 is a flowchart of an audio transmission method according to an embodiment of the present invention;
FIG. 2 is a schematic illustration of a scenario in which a first electronic device employs the method provided in FIG. 1;
FIG. 3 is a block diagram of an electronic device according to an embodiment of the present invention;
fig. 4 is a block diagram of another electronic device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The embodiment of the invention provides an audio transmission method, which is applied to first electronic equipment, wherein the first electronic equipment can be equipment capable of transmitting audio, such as a mobile phone, a tablet personal computer, a vehicle-mounted computer, an electronic book reader, an MP3 player, an MP4 player, a laptop portable computer, a desktop computer, an intelligent television and a wearable equipment, and the embodiment is not limited to the examples.
Referring to fig. 1, fig. 1 is a flowchart of an audio transmission method according to an embodiment of the present invention, as shown in fig. 1, the audio transmission method includes the following steps:
step 101, decoding an audio file into a first channel audio signal and a second channel audio signal.
As will be readily appreciated, the audio file may be a song, audio in a video file, or the like; the audio file may be stored in the first electronic device or may be an audio file contained in an application of the first electronic device. In other embodiments, the audio file may also be referred to as a sound source file, sound source information, sound file, or the like.
In this step, the first electronic device may decode the audio file into the first channel audio signal and the second channel audio signal in a case where the audio file is acquired. Alternatively, the first channel audio signal may refer to a left channel audio signal and the second channel audio signal may refer to a right channel audio signal. For example, the first electronic device may decode the acquired audio file, decoding the audio file into a left channel audio signal and a right channel audio signal. It is noted that each sub-file in the audio file carries a left channel audio source identifier or a right channel audio source identifier, so as to facilitate the identification of the sub-file by the first electronic device, so as to decode the audio file into a left channel audio signal and a right channel audio signal. The specific decoding operation of the audio file by the first electronic device may refer to related technology, which is not described in detail in this embodiment.
Step 102, the first channel audio signal is encoded by the first wireless chip and then sent to a first channel playing device of the second electronic device.
It should be noted that the second electronic device may refer to an audio playing device, such as an earphone, a sound device, or the like, that can receive the audio file and play the audio file.
In the embodiment of the present invention, after decoding the audio file into the first channel audio signal and the second channel audio signal, the first electronic device may transmit the first channel audio signal to the first wireless chip, encode the first channel audio signal through the first wireless chip, and send the encoded first channel audio signal to the first channel playing device of the second electronic device through the first wireless chip.
And 103, encoding the second sound signal through a second wireless chip and then sending the second sound signal to a second channel playing device of the second electronic equipment.
It can be understood that the first electronic device encodes the second channel audio signal through the second wireless chip and then sends the encoded second channel audio signal to the second channel playing device of the second electronic device, so that the audio file can be decoded into two parts and sent through the two wireless chips respectively. Therefore, compared with the existing audio files which can be sent only through one wireless chip, the scheme provided by the embodiment of the invention expands the transmission channel of the audio by one time, is more beneficial to the transmission of the audio files with large data volume, and ensures the transmission quality of the audio files.
Optionally, the first wireless chip and the second wireless chip are both bluetooth chips. Like this, on the basis of current bluetooth and bluetooth agreement, first electronic equipment can decode into two parts through setting up two bluetooth chips with audio file, encode and transmit respectively through two bluetooth chips, just so also with the transmission channel of audio in the first electronic equipment expanded one time, transmission bandwidth has also promoted one time, and then can not need compress the operation to audio file, can not cause audio file's tone quality impaired, guaranteed audio file's transmission quality, guaranteed audio file's broadcast effect, bring better hearing experience for the user.
Optionally, in a specific embodiment, the first channel audio signal is a left channel audio signal, the second channel audio signal is a right channel audio signal, the second electronic device is an audio playing device, the first channel playing device of the second electronic device is a left channel playing device, and the second channel playing device is a right channel playing device. For example, the first wireless chip is a first bluetooth chip, the second wireless chip is a second bluetooth chip, and the audio playing device is a bluetooth headset, so that the left channel playing device of the bluetooth headset is a left headset, and the right channel playing device is a right headset. In this embodiment, the first electronic device may decode the audio file into a left channel audio signal and a right channel audio signal, encode the left channel audio signal by using the first bluetooth chip, and then transmit the encoded left channel audio signal to the left earphone of the bluetooth earphone, encode the right channel audio signal by using the second bluetooth chip, and then transmit the encoded right channel audio signal to the right earphone of the bluetooth earphone.
It should be noted that, the transmission bandwidth of bluetooth is about 3Mbps, and in the case of only one bluetooth chip, this limits the available transmission bandwidth of the left and right channel audio signals to a maximum of 1.5Mbps. According to the scheme provided by the embodiment of the invention, the first electronic equipment can respectively send the left channel audio signal to the left earphone of the Bluetooth earphone and the right channel audio signal to the right earphone of the Bluetooth earphone through the two independent Bluetooth chips, so that the left channel audio signal and the right channel audio signal can both enjoy the transmission bandwidth of 3Mbps, the transmission bandwidth of the audio file is improved, the transmission quality of the audio file is ensured, and the tone quality of the audio file is prevented from being damaged.
In addition, the first electronic equipment can respectively send the left and right channel audio signals to the corresponding left and right earphones according to the playing characteristics of the Bluetooth earphone, compared with the existing Bluetooth earphone, which receives the packed files comprising the left and right channel audio signals compressed together, the Bluetooth earphone does not need to decompress the audio files and extract the corresponding left and right channel audio signals after decompression, and the processing operation of the Bluetooth earphone on the audio files is simplified.
It should be noted that, the above is only an example of a specific embodiment of the present invention, and the first Wireless chip, the second Wireless chip and the audio playing device in the present invention may be other embodiments, for example, the first Wireless chip and the second Wireless chip may be Wireless-Fidelity (WIFI) chips, ultra Wideband (UWB) chips, or the like; the second electronic device may also be a wireless sound, such as a bluetooth sound, etc.
Alternatively, since the first channel audio signal and the second channel audio signal are encoded and transmitted through the first wireless chip and the second wireless chip, respectively, the encoding and the transmitting of the first channel audio signal by the first wireless chip may be performed simultaneously with the encoding and the transmitting of the second channel audio signal by the second wireless chip, or may be performed separately based on the operating state of the second electronic device.
For example, when the second electronic device is an earphone, the left channel playing device is a left earphone, and the right channel playing device is a right earphone, the first electronic device may acquire working states of the left earphone and the right earphone, and then execute corresponding operations according to the working states of the left earphone and the right earphone. Specifically, the step 102 may include:
when the left earphone of the earphone is in a use state and the right earphone of the earphone is in an unused state, the left channel audio signal is encoded by the first wireless chip and then sent to the left earphone;
the step 103 includes:
and under the condition that the right earphone of the earphone is in a use state and the left earphone of the earphone is in an unused state, the right channel audio signal is encoded through the second wireless chip and then sent to the right earphone.
Optionally, the left earphone and the right earphone may be respectively provided with a start switch, if the start switch is turned on, the corresponding left earphone or right earphone is in a use state, and if the start switch is not turned on, the corresponding left earphone or right earphone is in an unused state. The first electronic device may learn the working state of the headset through a signal sent by the headset. Alternatively, the left earphone and the right earphone of the earphone may be respectively provided with an infrared sensor, and whether the left earphone or the right earphone is in contact with the left ear or the right ear of the user is detected by the infrared sensor to determine whether the left earphone and the right earphone are in a use state or a non-use state.
For example, when the contact between the left earphone and the left ear of the user is detected and the right earphone is separated from the right ear of the user, the user is indicated to be using the left earphone at the moment or needs to use the left earphone, and the first electronic device encodes the left channel audio signal through the first wireless chip and then sends the encoded left channel audio signal to the left earphone; when the right earphone is detected to be contacted with the right ear of the user and the left earphone is separated from the left ear of the user, the user is indicated to be using the right earphone at the moment or needs to use the right earphone, and the first electronic device encodes the right channel audio signal through the second wireless chip and then sends the encoded right channel audio signal to the right earphone. Therefore, the corresponding left and right channel audio signals can be sent according to the working states of the left and right earphones in the earphone, when the left earphone or the right earphone is in the unused state, the audio signals can not be sent to the left earphone or the right earphone, and further unnecessary transmission bandwidth can be avoided, and the use power consumption of the first electronic equipment is reduced. Of course, if the left earphone and the right earphone are both in the use state, the first electronic device can send the encoded left channel audio signal to the left earphone through the first wireless chip, and send the encoded right channel audio signal to the right earphone through the second wireless chip.
According to the audio transmission method provided by the embodiment of the invention, the first electronic device can decode the audio file into the first sound channel audio signal and the second sound channel audio signal, encode the first sound channel audio signal through the first wireless chip and then send the encoded first sound channel audio signal to the first sound channel playing device of the second electronic device, encode the second sound channel audio signal through the second wireless chip and then send the encoded second sound channel audio signal to the second sound channel playing device of the second electronic device. Therefore, the audio transmission channel in the first electronic equipment is doubled, the transmission bandwidth is doubled, the transmission quality of the audio file can be improved, the playing effect of the audio file is ensured, and better hearing experience is brought to the user.
In order to better understand the scheme of the embodiment of the present invention, a specific description will be given below taking a first wireless chip as a first bluetooth chip, a second wireless chip as a second bluetooth chip, and a second electronic device as a bluetooth headset. Referring to fig. 2, the first electronic device transmits the decoded audio file through Pulse code modulation (Pulse CodeModulation, PCM) to form a left channel audio file (L) and a right channel audio file (R), processes the left channel audio file (L) through a first bluetooth chip, and processes the right channel audio file (R) through a second bluetooth chip.
Specifically, the first Bluetooth chip receives a left channel Audio file (L) through a sound Audio application layer; the left channel Audio file (L) is encoded by the bluetooth Audio transmission model protocol (Advanced Audio Distribution Profile, A2 DP) and the Audio/video transmission protocol (Audio/Video Distribution TransportProtocol, AVDTP) between bluetooth devices and transmitted to the left earpiece of the bluetooth earpiece by the baseband unit and the radio frequency unit. It should be noted that, the first bluetooth chip further includes other protocols and control layers, such as session description protocol (Session Description Protocol, SDP), switchable media access controller and Physical layer (Alternate Media Access Controller/PhysicalLayer, AMP), logical link control and adaptation layer protocol (Logical Link Control and AdaptationLayer Protocol, L2 CAP), human-computer interaction (Human-Computer Interaction, HCI) control plane, link management protocol (Link Manager Protocol, LMP), bit stream (BT) baseband control layer, port Physical layer (PHY), etc., and the specific working principle of the first bluetooth chip may be referred to the related art, which will not be described in detail in this embodiment. In addition, the related structure and working principle of the second bluetooth chip are consistent with those of the first bluetooth chip, and reference may be made to the above description, which is not repeated in this embodiment. After receiving the right channel audio file (R), the second Bluetooth chip encodes the right channel audio file based on the related Bluetooth protocol and Bluetooth technology and transmits the right channel audio file to the right earphone of the Bluetooth earphone. Therefore, the first electronic equipment can respectively transmit the left channel audio file (L) and the right channel audio file (R) through the two Bluetooth chips, the audio transmission channel of the first electronic equipment is expanded, the transmission quality of the audio file can be improved, the damage to the tone quality of the audio file is avoided, and the tone quality effect of the audio file is ensured.
Referring to fig. 3, fig. 3 is a block diagram of an electronic device according to an embodiment of the present invention, where the electronic device is a first electronic device. As shown in fig. 3, the electronic device 300 includes:
a decoding chip 301 for decoding an audio file into a first channel audio signal and a second channel audio signal;
a first wireless chip 302, configured to encode the first channel audio signal and send the encoded first channel audio signal to a first channel playing device of a second electronic device;
and the second wireless chip 303 is configured to encode the second audio signal and send the encoded second audio signal to a second channel playing device of the second electronic device.
Optionally, the first channel audio signal is a left channel audio signal, the second channel audio signal is a right channel audio signal, the first channel playing device is a left channel playing device, and the second channel playing device is a right channel playing device.
Optionally, the second electronic device is an earphone, the left channel playing device is a left earphone, and the right channel playing device is a right earphone;
the first wireless chip 302 is further configured to: when the left earphone of the earphone is in a use state and the right earphone of the earphone is in an unused state, encoding the left channel audio signal and then transmitting the encoded left channel audio signal to the left earphone;
the second wireless chip 303 is further configured to: and when the right earphone of the earphone is in a use state and the left earphone of the earphone is in an unused state, encoding the right channel audio signal and then transmitting the encoded right channel audio signal to the right earphone.
Optionally, the first wireless chip and the second wireless chip are both bluetooth chips.
It should be noted that, the electronic device 300 can implement the processes of the embodiment of the audio transmission method described in fig. 1 and achieve the same technical effects, and in order to avoid repetition, the description is omitted here.
In the embodiment of the present invention, the electronic device 300 is capable of decoding an audio file into a first channel audio signal and a second channel audio signal, encoding the first channel audio signal through the first wireless chip, and then transmitting the encoded first channel audio signal to the first channel playing device of the second electronic device, encoding the second channel audio signal through the second wireless chip, and then transmitting the encoded second channel audio signal to the second channel playing device of the second electronic device. In this way, the audio transmission channel in the electronic device 300 is expanded by one time, and the transmission bandwidth is also increased by one time, so that the transmission quality of the audio file can be improved, the playing effect of the audio file is ensured, and better hearing experience is brought to the user.
Referring to fig. 4, fig. 4 is a block diagram of another electronic device implementing an embodiment of the present invention. As shown in fig. 4, electronic device 400 includes, but is not limited to: radio frequency unit 401, network module 402, audio output unit 403, input unit 404, sensor 405, display unit 406, user input unit 407, interface unit 408, memory 409, processor 410, and power source 411. Those skilled in the art will appreciate that the electronic device structure shown in fig. 4 is not limiting of the electronic device and that the electronic device may include more or fewer components than shown, or may combine certain components, or a different arrangement of components. In the embodiment of the invention, the electronic equipment comprises, 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.
In the embodiment of the present invention, the electronic device 400 is a first electronic device, and the electronic device 400 includes a first wireless chip and a second wireless chip; wherein the processor 410 is configured to:
decoding the audio file into a first channel audio signal and a second channel audio signal;
a first channel playing device for encoding the first channel audio signal through the first wireless chip and then transmitting the encoded first channel audio signal to the second electronic device;
and the second channel playing device encodes the second channel audio signal through the second wireless chip and then sends the second channel audio signal to the second electronic equipment.
Optionally, the first channel audio signal is a left channel audio signal, the second channel audio signal is a right channel audio signal, the first channel playing device is a left channel playing device, and the second channel playing device is a right channel playing device.
Optionally, the second electronic device is an earphone, the left channel playing device is a left earphone, and the right channel playing device is a right earphone; the processor 410 is further configured to:
when the left earphone of the earphone is in a use state and the right earphone of the earphone is in an unused state, the left channel audio signal is encoded by the first wireless chip and then sent to the left earphone;
and under the condition that the right earphone of the earphone is in a use state and the left earphone of the earphone is in an unused state, the right channel audio signal is encoded through the second wireless chip and then sent to the right earphone.
Optionally, the first wireless chip and the second wireless chip are both bluetooth chips.
It should be noted that, in this embodiment, the electronic device 400 can implement the respective processes of the embodiment of the audio transmission method described in fig. 1, and achieve the same technical effects, and for avoiding repetition, a detailed description is omitted herein.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 401 may be used for receiving and transmitting signals during the process of receiving and transmitting information or communication, specifically, receiving downlink data from a base station and then processing the received downlink data by the processor 410; and, the uplink data is transmitted to the base station. Typically, the radio frequency unit 401 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 401 may also communicate with networks and other devices through a wireless communication system.
The electronic device 400 provides wireless broadband internet access to users, such as helping users send and receive e-mail, browse web pages, and access streaming media, through the network module 402.
The audio output unit 403 may convert audio data received by the radio frequency unit 401 or the network module 402 or stored in the memory 409 into an audio signal and output as sound. Also, the audio output unit 403 may also provide audio output (e.g., a call signal reception sound, a message reception sound, etc.) related to a specific function performed by the electronic device 400. The audio output unit 403 includes a speaker, a buzzer, a receiver, and the like.
The input unit 404 is used to receive an audio or video signal. The input unit 404 may include a graphics processor (Graphics Processing Unit, GPU) 4041 and a microphone 4042, the graphics processor 4041 processing image data of still images 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 406. The image frames processed by the graphics processor 4041 may be stored in memory 409 (or other computer readable storage medium) or transmitted via the radio frequency unit 401 or the network module 402. The microphone 4042 may receive sound and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output that can be transmitted to the mobile communication base station via the radio frequency unit 401 in the case of a telephone call mode.
The electronic device 400 also includes at least one sensor 405, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 4061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 4061 and/or the backlight when the electronic device 400 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the acceleration in all directions (generally three axes), and can detect the gravity and direction when stationary, and can be used for recognizing the gesture of the electronic equipment (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and knocking), and the like; the sensor 405 may further include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which are not described herein.
The display unit 406 is used to display information input by a user or information provided to the user. The display unit 406 may include a display panel 4061, and the display panel 4061 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 407 may be used to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the electronic device 400. Specifically, the user input unit 407 includes a touch panel 4071 and other input devices 4072. The touch panel 4071, also referred to as a touch screen, may collect touch operations thereon or thereabout by a user (e.g., operations of the user on the touch panel 4071 or thereabout using any suitable object or accessory such as a finger, stylus, etc.). The touch panel 4071 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch azimuth 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 detection device, converts it into touch point coordinates, and sends the touch point coordinates to the processor 410, and receives and executes commands sent from the processor 410. In addition, the touch panel 4071 may be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. The user input unit 407 may include other input devices 4072 in addition to the touch panel 4071. In particular, other input devices 4072 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 4071 may be overlaid on the display panel 4061, and when the touch panel 4071 detects a touch operation thereon or thereabout, the touch operation is transferred to the processor 410 to determine the type of touch event, and then the processor 410 provides a corresponding visual output on the display panel 4061 according to the type of touch event. Although in fig. 4, the touch panel 4071 and the display panel 4061 are two independent components to implement the input and output functions of the electronic device 400, in some embodiments, the touch panel 4071 may be integrated with the display panel 4061 to implement the input and output functions of the electronic device 400, which is not limited herein.
The interface unit 408 is an interface to which an external device is connected to the electronic apparatus 400. For example, the external devices may include a wired or wireless headset port, an external power (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 408 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the electronic apparatus 400 or may be used to transmit data between the electronic apparatus 400 and an external device.
Memory 409 may be used to store software programs as well as various data. The memory 409 may mainly include a storage program area that may store an operating system, application programs required for at least one function (such as a sound playing function, an image playing function, etc.), and a storage data area; the storage data area may store data (such as audio data, phonebook, etc.) created according to the use of the handset, etc. In addition, memory 409 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 410 is a control center of the electronic device 400, connects various parts of the entire electronic device 400 using various interfaces and lines, and performs various functions of the electronic device 400 and processes data by running or executing software programs and/or modules stored in the memory 409 and invoking data stored in the memory 409, thereby performing overall monitoring of the electronic device 400. Processor 410 may include one or more processing units; preferably, the processor 410 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 410.
The electronic device 400 may also include a power supply 411 (e.g., a battery) for powering the various components, and preferably the power supply 411 may be logically connected to the processor 410 via a power management system that performs functions such as managing charging, discharging, and power consumption.
In addition, the electronic device 400 includes some functional modules, which are not shown, and are not described herein.
Optionally, the embodiment of the present invention further provides an electronic device, including 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 embodiment of the audio transmission method, and the process can achieve the same technical effect, so that repetition is avoided, and details are not repeated herein.
The embodiment of the invention also provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor, implements the processes of the above-mentioned embodiments of the audio transmission method, and can achieve the same technical effects, so that repetition is avoided, and no further description is given here. Wherein the computer readable storage medium is selected from Read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic disk or 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 one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing is merely illustrative of the present invention, and the present invention is not limited thereto, and any person skilled in the art will readily recognize that variations or substitutions are within the scope of the present invention. Therefore, the protection scope of the invention is subject to the protection scope of the claims.

Claims (6)

1. An audio transmission method applied to a first electronic device including a first wireless chip and a second wireless chip, the method comprising:
decoding the audio file into a first channel audio signal and a second channel audio signal;
a first channel playing device for encoding the first channel audio signal through the first wireless chip and then transmitting the encoded first channel audio signal to the second electronic device;
the second channel playing device encodes the second channel audio signal through the second wireless chip and sends the second channel audio signal to the second electronic equipment;
the first channel audio signal is a left channel audio signal, the second channel audio signal is a right channel audio signal, the first channel playing device is a left channel playing device, and the second channel playing device is a right channel playing device;
the second electronic device is an earphone, the left sound channel playing device is a left earphone, and the right sound channel playing device is a right earphone;
the first channel playing device for encoding the first channel audio signal through the first wireless chip and then sending the encoded first channel audio signal to the second electronic device includes:
when the left earphone of the earphone is in a use state and the right earphone of the earphone is in an unused state, the left channel audio signal is encoded by the first wireless chip and then sent to the left earphone;
the second channel playing device for encoding the second channel audio signal through the second wireless chip and then sending the encoded second channel audio signal to the second electronic device includes:
and under the condition that the right earphone of the earphone is in a use state and the left earphone of the earphone is in an unused state, the right channel audio signal is encoded through the second wireless chip and then sent to the right earphone.
2. The method of claim 1, wherein the first wireless chip and the second wireless chip are both bluetooth chips.
3. An electronic device, the electronic device being a first electronic device, the electronic device comprising:
the decoding chip is used for decoding the audio file into a first channel audio signal and a second channel audio signal;
the first wireless chip is used for encoding the first channel audio signal and then transmitting the encoded first channel audio signal to a first channel playing device of the second electronic equipment;
the second wireless chip is used for encoding the second sound signal and then sending the second sound signal to a second sound playing device of the second electronic equipment;
the first channel audio signal is a left channel audio signal, the second channel audio signal is a right channel audio signal, the first channel playing device is a left channel playing device, and the second channel playing device is a right channel playing device;
the second electronic device is an earphone, the left sound channel playing device is a left earphone, and the right sound channel playing device is a right earphone;
the first wireless chip is further configured to: when the left earphone of the earphone is in a use state and the right earphone of the earphone is in an unused state, encoding the left channel audio signal and then transmitting the encoded left channel audio signal to the left earphone;
the second wireless chip is further configured to: and when the right earphone of the earphone is in a use state and the left earphone of the earphone is in an unused state, encoding the right channel audio signal and then transmitting the encoded right channel audio signal to the right earphone.
4. The electronic device of claim 3, wherein the first wireless chip and the second wireless chip are both bluetooth chips.
5. An electronic device comprising a processor, a memory and a computer program stored on the memory and executable on the processor, which when executed by the processor implements the steps of the audio transmission method according to any one of claims 1 to 2.
6. A computer-readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the audio transmission method according to any one of claims 1 to 2.
CN202010066310.9A 2020-01-20 2020-01-20 Audio transmission method and electronic equipment Active CN113223539B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202010066310.9A CN113223539B (en) 2020-01-20 2020-01-20 Audio transmission method and electronic equipment
PCT/CN2021/071425 WO2021147718A1 (en) 2020-01-20 2021-01-13 Audio transmission method and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010066310.9A CN113223539B (en) 2020-01-20 2020-01-20 Audio transmission method and electronic equipment

Publications (2)

Publication Number Publication Date
CN113223539A CN113223539A (en) 2021-08-06
CN113223539B true CN113223539B (en) 2023-05-26

Family

ID=76992833

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010066310.9A Active CN113223539B (en) 2020-01-20 2020-01-20 Audio transmission method and electronic equipment

Country Status (2)

Country Link
CN (1) CN113223539B (en)
WO (1) WO2021147718A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113488062B (en) * 2020-03-16 2024-08-27 维沃移动通信有限公司 Audio transmission method and electronic equipment
CN113630695B (en) * 2021-08-06 2023-05-26 维沃移动通信有限公司 Sound channel switching method and device and electronic equipment
CN113676820B (en) * 2021-09-18 2024-10-22 合肥中感微电子有限公司 Wireless multichannel audio transmission method and device and electronic equipment
CN115171706A (en) * 2022-06-27 2022-10-11 哲库科技(上海)有限公司 Data encoding method, data decoding method, device, equipment and medium
CN115567086B (en) * 2022-09-09 2024-03-26 安克创新科技股份有限公司 Audio transmission device, audio playing device and audio transmission and synchronization system

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
ATE378677T1 (en) * 2004-03-12 2007-11-15 Nokia Corp SYNTHESIS OF A MONO AUDIO SIGNAL FROM A MULTI-CHANNEL AUDIO SIGNAL
KR20110110093A (en) * 2008-10-01 2011-10-06 톰슨 라이센싱 Decoding apparatus, decoding method, encoding apparatus, encoding method, and editing apparatus
CN104936102A (en) * 2015-05-15 2015-09-23 广东欧珀移动通信有限公司 Stereo control method, stereo control device and split type stereo sound boxes
CN106209130B (en) * 2016-07-26 2019-01-04 维沃移动通信有限公司 A kind of wireless headset and the method using wireless headset output audio data
CN206775493U (en) * 2017-06-01 2017-12-19 歌尔科技有限公司 A kind of double wireless headset call bracelets
CN107124674B (en) * 2017-06-20 2019-11-08 歌尔科技有限公司 A kind of audio-frequency inputting method of bluetooth headset, device and bluetooth headset
CN108200495A (en) * 2018-01-23 2018-06-22 恒玄科技(上海)有限公司 A kind of method realized bluetooth headset and be played simultaneously
CN108718361B (en) * 2018-04-25 2021-03-02 维沃移动通信有限公司 Audio file playing method and wireless answering device
CN109086027B (en) * 2018-07-24 2021-01-08 维沃移动通信有限公司 Audio signal playing method and terminal
CN109817232A (en) * 2019-01-30 2019-05-28 维沃移动通信有限公司 A kind of transmission method, terminal device and apparatus for processing audio

Also Published As

Publication number Publication date
CN113223539A (en) 2021-08-06
WO2021147718A1 (en) 2021-07-29

Similar Documents

Publication Publication Date Title
CN113223539B (en) Audio transmission method and electronic equipment
CN108684029B (en) Bluetooth pairing connection method and system, Bluetooth device and terminal
CN109089330B (en) Audio data transmission method and terminal
CN108540655B (en) Caller identification processing method and mobile terminal
CN109819450B (en) Signal receiving method, device and terminal
US12120541B2 (en) Method for processing communication range information and terminal
CN110457716B (en) Voice output method and mobile terminal
US20230006711A1 (en) Audio transmission method and electronic device
CN111093137B (en) Volume control method, volume control equipment and computer readable storage medium
CN111158815B (en) Dynamic wallpaper blurring method, terminal and computer readable storage medium
WO2020052635A1 (en) Communication method for mobile terminal, and mobile terminal
CN108900706B (en) Call voice adjustment method and mobile terminal
CN113411446B (en) Sound channel switching method and electronic equipment
CN115037831B (en) Mode control method and device, electronic equipment and earphone
CN113488062B (en) Audio transmission method and electronic equipment
CN113411702B (en) Sound channel configuration method and electronic equipment
CN113411447B (en) Sound channel switching method and electronic equipment
CN110933513A (en) Audio and video data transmission method and device
CN111083528A (en) Information playing method, information sending method and electronic equipment
WO2021185117A1 (en) Audio transmission method and electronic device
CN112929793B (en) Audio framework, audio control method, device and equipment
CN110366273B (en) Communication method and related equipment
CN109068370A (en) Communication means, mobile terminal and computer readable storage medium
CN118259865A (en) Screen-throwing audio output method, device and computer readable storage medium
CN118215025A (en) Voice call system and method of vehicle-mounted Bluetooth, electronic equipment and storage medium

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