Audio transmission method and electronic device
By using an ultra-wideband transmission protocol in audio transmission, the left and right channel audio signals are transmitted separately, which solves the problem of sound quality damage caused by transmission bandwidth limitations and achieves high-quality audio transmission and playback effects.
Patent Information
- Application Number
- CN202010181286.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-03-16
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2040-03-16
AI Technical Summary
Due to the limitation of transmission bandwidth, the existing audio transmission methods cause the sound quality of audio files to be damaged. Especially in Bluetooth transmission, the transmission rate is low and cannot meet the demand for high-quality audio.
Using the ultra-wideband transmission protocol, the target audio is decoded into left and right channel audio signals, and transmitted to the left and right channel playback devices respectively through the ultra-wideband transmission protocol (supporting 27Mbps bandwidth), increasing the transmission bandwidth and avoiding damage to the sound quality.
It realizes the transmission of high-quality audio, increases the audio transmission rate, ensures the high quality and playback effect of audio files, while retaining the convenience of Bluetooth networking and pairing.
Smart Images

Figure CN113488062B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to an audio transmission method and electronic equipment. Background Art
[0002] With the rapid development of wireless communication technology and the gradual expansion of the market, the application of wireless audio transmission technology in wireless communication is becoming more and more extensive. At present, when electronic devices transmit audio via Bluetooth, due to the limitation of transmission bandwidth, audio files with large data volume can no longer be transmitted via Bluetooth. Usually, they can only be transmitted through compression-transmission-decompression methods such as Advanced Audio Coding (AAC). However, during the compression-transmission-decompression process, the sound quality of the audio file will be damaged, affecting the playback effect of the audio file. Summary of the invention
[0003] The embodiments of the present invention provide an audio transmission method and an electronic device to solve the problem that the sound quality of an audio file is damaged due to the limitation of the transmission bandwidth in the existing audio transmission method.
[0004] In order to solve the above-mentioned technical problems, the present invention is achieved as follows:
[0005] In a first aspect, an embodiment of the present invention provides an audio transmission method, which is applied to a first electronic device, wherein the first electronic device is wirelessly connected to a second electronic device, and the second electronic device includes a first channel playback device and a second channel playback device; the audio transmission method includes:
[0006] Acquire target audio, and decode the target audio into a first channel audio signal and a second channel audio signal;
[0007] The first channel audio signal is transmitted to the first channel playback device through an ultra-wideband transmission protocol, and the second channel audio signal is transmitted to the second channel playback device through the ultra-wideband transmission protocol.
[0008] In a second aspect, an embodiment of the present invention further provides an electronic device, wherein the electronic device is a first electronic device, the electronic device is wirelessly connected to a second electronic device, the second electronic device includes a first channel playback device and a second channel playback device; the electronic device includes:
[0009] An acquisition module, used for acquiring target audio, and decoding the target audio into a first channel audio signal and a second channel audio signal;
[0010] The transmission module is used to transmit the first channel audio signal to the first channel playback device through an ultra-wideband transmission protocol, and to transmit the second channel audio signal to the second channel playback device through the ultra-wideband transmission protocol.
[0011] In a third aspect, an embodiment of the present invention further provides an electronic device, comprising a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the audio transmission method described in the first aspect.
[0012] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the steps of the audio transmission method as described in the first aspect are implemented.
[0013] In an embodiment of the present invention, a first electronic device obtains target audio, decodes the target audio into a first channel audio signal and a second channel audio signal, and transmits the first channel audio signal to the first channel playback device through an ultra-wideband transmission protocol, and transmits the second channel audio signal to the second channel playback device through the ultra-wideband transmission protocol. In this way, the first electronic device can transmit the left and right channel audio signals respectively by calling the 27Mbps transmission bandwidth of the ultra-wideband transmission protocol, thereby increasing the transmission bandwidth for the left and right channel audio signals, so that the first electronic device can transmit higher quality and higher bandwidth audio to avoid damage to the audio quality. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.
[0015] Figure 1 is a flow chart of an audio transmission method provided by an embodiment of the present invention;
[0016] Figure 2 An electronic device application Figure 1 A schematic diagram of a scenario of the provided audio transmission method;
[0017] Figure 3 is a structural diagram of an electronic device provided by an embodiment of the present invention;
[0018] Figure 4 It is a structural diagram of another electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0019] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0020] An embodiment of the present invention provides an audio transmission method, which is applied to a first electronic device, such as a mobile phone, a tablet computer, a computer, a wearable device, etc. The first electronic device is wirelessly connected to a second electronic device, such as a Bluetooth connection; the second electronic device includes a first channel playback device and a second channel playback device, such as a headset, the first channel playback device is a left headset, and the second channel playback device is a right headset; or the second electronic device is a speaker, the first channel playback device is a left channel speaker, and the second channel playback device is a right channel speaker.
[0021] See also Figure 1 , Figure 1 is a flow chart of an audio transmission method provided by an embodiment of the present invention, such as Figure 1 As shown, the audio transmission method comprises the following steps:
[0022] Step 101: Acquire target audio, and decode the target audio into a first channel audio signal and a second channel audio signal.
[0023] Optionally, the target audio may be audio to be played or being played in the first electronic device. For example, when the first electronic device receives a touch operation of a user on a music play button, the target audio is acquired; or, when the first electronic device receives a touch operation of a user on a video play button, the target audio is acquired. When the first electronic device acquires the target audio, it decodes the target audio into a first channel audio signal and a second channel audio signal.
[0024] Step 102: Transmit the first channel audio signal to the first channel playback device through an ultra-wideband transmission protocol, and transmit the second channel audio signal to the second channel playback device through the ultra-wideband transmission protocol.
[0025] To better describe the present solution, in the following implementation of the embodiment of the present invention, a headset is used as the second electronic device, the left headset of the headset is the first channel playback device, and the right headset of the headset is the second channel playback device.
[0026] In an embodiment of the present invention, when the first electronic device establishes a wireless connection with the earphone, the first electronic device decodes the target audio into a left channel audio signal and a right channel audio signal, and transmits the left channel audio signal to the left earphone via an ultra-wideband (Ultra Wide Band, UWB) transmission protocol, and transmits the right channel audio signal to the right earphone also via the ultra-wideband transmission protocol.
[0027] It is understandable that electronic devices are usually equipped with Bluetooth chips, which can transmit audio signals to headphones based on the Bluetooth transmission protocol. However, the Bluetooth transmission bandwidth is only 3Mbps, and coupled with the overhead of the transmission protocol, the actual audio transmission rate is even lower, which limits the transmission of audio files in electronic devices. The transmission speed supported by the ultra-wideband transmission protocol has reached 27Mbps. In an embodiment of the present invention, the first electronic device can transmit the left channel audio signal to the left earphone and the right channel audio signal to the right earphone based on the ultra-wideband transmission protocol, so that the first electronic device can transmit audio with higher quality and higher resolution requirements, avoid damage to the sound quality caused by the low transmission rate, and ensure the transmission quality and playback effect of the audio.
[0028] As a specific implementation, step 102 may include:
[0029] The switchable media access controller AMP and protocol adaptation layer PAL in the Bluetooth transmission protocol call the media access control MAC and physical layer PHY in the ultra-wideband transmission protocol to transmit the first channel audio signal to the first channel playback device and the second channel audio signal to the second channel playback device.
[0030] It should be noted that there is an AMP (Alternate Medium Access Control / Physical layer) controller in the Bluetooth transmission protocol. AMP is the secondary controller of the Bluetooth transmission system. The primary controller of BR / EDR (Basic Rate / Enhanced Data Rate) is used for search, pairing, connection establishment, and connection maintenance. When the L2CAP (Logical Link Control and Adaptation Protocol) connection between two BR / EDR Bluetooth devices is established, the AMP controller can detect the AMP controller of the other device. When both Bluetooth devices have AMP controllers, the Bluetooth transmission system provides a mechanism to migrate data streams from the primary controller to the secondary controller. Each AMP controller has a PAL (Protocol Adaptation Layer). In the protocol stack layered architecture diagram, PAL is above MAC (Medium Access Control) and PHY (Physical layer). The function of PAL is to map the Bluetooth protocol in the primary controller to the AMP controller.
[0031] In an embodiment of the present invention, the first electronic device and the headset are connected by Bluetooth. The first electronic device can use AMP and PAL as secondary transmission link control interfaces without changing the Bluetooth transmission protocol to call MAC and PHY in the 802.15.4a ultra-wideband transmission protocol to transmit audio signals, thereby transmitting the left channel audio signal to the left earphone and the right channel audio signal to the right earphone. In this way, the first electronic device can call the 27Mbps transmission bandwidth of the ultra-wideband transmission protocol to transmit the left and right channel audio signals respectively based on the already set Bluetooth chip and the existing Bluetooth transmission protocol, thereby increasing the transmission rate of the audio signal, so that the first electronic device can transmit higher quality and higher bandwidth audio, avoiding damage to the audio quality, while retaining the convenience of Bluetooth networking and pairing between the first electronic device and the headset, as well as compatibility with Bluetooth headsets.
[0032] Optionally, the first electronic device may be provided with two first Bluetooth chips and two second Bluetooth chips, wherein the first Bluetooth chip is used to encode the left channel audio signal and transmit the encoded left channel audio signal to the left earphone based on the ultra-wideband transmission protocol, and the second Bluetooth chip is used to encode the right channel audio signal and transmit the encoded right channel audio signal to the right earphone based on the ultra-wideband transmission protocol. In this way, the first electronic device can process and transmit the left channel audio signal and the right channel audio signal respectively through the two Bluetooth chips, further increasing the transmission channel and transmission bandwidth of the audio.
[0033] Alternatively, the first electronic device may be provided with only one Bluetooth chip, which, after encoding the left channel audio signal and the right channel audio signal, transmits the left channel audio signal to the left earphone and the right channel audio signal to the right earphone based on an ultra-wideband transmission protocol.
[0034] Optionally, step 102 may further include:
[0035] If the transmission bandwidth required to transmit the first channel audio signal and the second channel audio signal is greater than the preset bandwidth, the first channel audio signal is transmitted to the first channel playback device via an ultra-wideband transmission protocol, and the second channel audio signal is transmitted to the second channel playback device via the ultra-wideband transmission protocol.
[0036] It can be understood that the first electronic device, based on the existing Bluetooth chip and Bluetooth transmission protocol, calls the MAC and PHY in the ultra-wideband transmission protocol through AMP and PAL to transmit audio signals. The first electronic device still retains the Bluetooth chip, and thus can still transmit audio signals through the Bluetooth transmission protocol.
[0037] It should be noted that the bandwidth of the Bluetooth transmission protocol is 3Mbps, while the transmission bandwidth of the ultra-wideband transmission protocol is 27Mbps. In an embodiment of the present invention, after decoding the target audio into a left channel audio signal and a right channel audio signal, the first electronic device may determine the transmission bandwidth required for transmitting the left channel audio signal and the right channel audio signal, and when the required transmission bandwidth is greater than the preset bandwidth, the left channel audio signal and the right channel audio signal are correspondingly transmitted to the left earphone and the right earphone through the ultra-wideband transmission protocol.
[0038] For example, the preset bandwidth is 3Mbps. When the transmission bandwidth required to transmit the left channel audio signal is greater than 3Mbps, and the transmission bandwidth required to transmit the right channel audio signal is also greater than 3Mbps, it is no longer suitable to transmit the audio signal through the Bluetooth transmission protocol. In this case, you can choose to transmit the left and right channel audio signals through the ultra-wideband transmission protocol to ensure that the first electronic device can transmit high-quality audio without the need to compress, transmit, and decompress the high-quality audio through advanced audio coding (AAC), thereby avoiding damage to the sound quality.
[0039] Furthermore, after step 101, the following steps may be further included:
[0040] If the transmission bandwidth required for transmitting the first channel audio signal and the second channel audio signal is less than or equal to the preset bandwidth, the first channel audio signal is transmitted to the first channel playback device via the Bluetooth transmission protocol, and the second channel audio signal is transmitted to the second channel playback device via the Bluetooth transmission protocol.
[0041] It can be understood that if the transmission bandwidth of the Bluetooth transmission protocol is 3Mbps, the preset bandwidth can be set to 3Mbps; when the transmission bandwidth required to transmit the left channel audio signal is less than or equal to 3Mbps, and the transmission bandwidth required to transmit the right channel audio signal is less than or equal to 3Mbps, the left channel audio signal is transmitted to the left earphone through the Bluetooth transmission protocol, and the right channel audio signal is transmitted to the right earphone. When the transmission bandwidth required to transmit the left channel audio signal is greater than 3Mbps, and the transmission bandwidth required to transmit the right channel audio signal is greater than 3Mbps, the left channel audio signal is transmitted to the left earphone through the ultra-wideband transmission protocol, and the right channel audio signal is transmitted to the right earphone. In this way, the first electronic device can select different transmission methods to transmit the audio signal according to the transmission bandwidth required to transmit the audio signal, expand the transmission method of the first electronic device for audio, increase the transmission rate of the audio signal, and enable the first electronic device to transmit higher quality and higher bandwidth audio.
[0042] Please refer to Figure 2The Bluetooth chip obtains the target audio (the first music or the second music) through the audio application layer, and decodes the target audio into a left channel audio signal (L) and a right channel audio signal (R); when the transmission bandwidth required for the audio signal of the first music (L+R) is less than or equal to the preset bandwidth, the left channel audio signal and the right channel audio signal are encoded through the Bluetooth audio transmission model protocol (Advanced Audio Distribution Profile, A2DP) and the audio / video transmission protocol between Bluetooth devices (Audio / Video Distribution Transport Protocol, AVDTP) and transmitted to the left earphone and the right earphone of the earphone respectively through the baseband unit and the radio frequency unit. It should be noted that the Bluetooth transmission protocol also includes other protocols and control layers that it follows, such as Session Description Protocol (SDP), AMP, Logical Link Control and Adaptation Layer Protocol (L2CAP), Human Computer Interaction (HCI) control plane, Link Manager Protocol (LMP), Bit Torrent (BT) baseband control layer, physical layer (PHY), etc.
[0043] When the transmission bandwidth required for transmitting the audio signal of the second music (L+R) is greater than the preset bandwidth, the MAC and PHY in the ultra-wideband UWB transmission protocol are called through the AMP and PAL of the Bluetooth transmission protocol to transmit the left channel audio signal and the right channel audio signal to the left earphone and the right earphone respectively. In this way, the audio transmission channel of the first electronic device is expanded, thereby improving the transmission quality of the audio file, avoiding damage to the sound quality of the audio file, and ensuring the sound quality of the audio file.
[0044] Optionally, step 102 may further include:
[0045] If the transmission bandwidth required for transmitting the first channel audio signal and the second channel audio signal is greater than the preset bandwidth, transmitting the first channel audio signal of the first bandwidth to the first channel playback device through the ultra-wideband protocol, and transmitting the first channel audio signal of the second bandwidth to the first channel playback device through the Bluetooth transmission protocol;
[0046] as well as,
[0047] The second channel audio signal of the third bandwidth is transmitted to the second channel playback device through the ultra-wideband protocol, and the second channel audio signal of the fourth bandwidth is transmitted to the first channel playback device through the Bluetooth transmission protocol.
[0048] The sum of the first bandwidth and the second bandwidth is the bandwidth required for transmitting the first channel audio signal; the sum of the third bandwidth and the fourth bandwidth is the bandwidth required for transmitting the second channel audio signal.
[0049] That is to say, when the transmission bandwidth required to transmit the left channel audio signal is greater than 3Mbps, a portion of the bandwidth of the left channel audio signal is transmitted to the left earphone through the ultra-wideband transmission protocol, and the remaining portion of the bandwidth of the left channel audio signal is transmitted to the left earphone through the Bluetooth transmission protocol. For example, when the transmission bandwidth required to transmit the left channel audio signal is 30Mbps, 27Mbps of the left channel audio signal can be transmitted to the left earphone through the ultra-wideband transmission protocol, and the remaining 3Mbps of the left channel audio signal is transmitted to the left earphone through the Bluetooth transmission protocol. In this way, the left channel audio signal can be transmitted through the ultra-wideband transmission protocol and the Bluetooth transmission protocol respectively, further expanding the transmission bandwidth and transmission path of the left channel audio signal, so that the first electronic device can transmit high-quality audio, bringing a better listening experience to the user.
[0050] Following the same principle, when the transmission bandwidth required to transmit the right channel audio signal is greater than 3Mbps, a portion of the bandwidth of the right channel audio signal is transmitted to the right earphone via the ultra-wideband transmission protocol, and the remaining portion of the bandwidth of the right channel audio signal is transmitted to the right earphone via the Bluetooth transmission protocol, further expanding the transmission bandwidth and transmission path of the right channel audio signal, ensuring that the first electronic device can transmit high-quality audio.
[0051] In an embodiment of the present invention, a first electronic device obtains target audio, decodes the target audio into a first channel audio signal and a second channel audio signal, and transmits the first channel audio signal to the first channel playback device through an ultra-wideband transmission protocol, and transmits the second channel audio signal to the second channel playback device through the ultra-wideband transmission protocol. In this way, the first electronic device can transmit the left and right channel audio signals respectively by calling the 27Mbps transmission bandwidth of the ultra-wideband transmission protocol, thereby increasing the transmission bandwidth for the left and right channel audio signals, so that the first electronic device can transmit higher quality and higher bandwidth audio to avoid damage to the audio quality.
[0052] See also Figure 3 , Figure 31 is a structural diagram of an electronic device provided by an embodiment of the present invention, wherein the electronic device is a first electronic device, the electronic device is wirelessly connected to a second electronic device, and the second electronic device includes a first channel playback device and a second channel playback device. Figure 3 As shown, the electronic device 300 includes:
[0053] An acquisition module 301 is used to acquire target audio and decode the target audio into a first channel audio signal and a second channel audio signal;
[0054] The transmission module 302 is used to transmit the first channel audio signal to the first channel playback device through an ultra-wideband transmission protocol, and transmit the second channel audio signal to the second channel playback device through the ultra-wideband transmission protocol.
[0055] Optionally, the transmission module 302 is further used for:
[0056] The switchable media access controller AMP and protocol adaptation layer PAL in the Bluetooth transmission protocol call the media access control MAC and physical layer PHY in the ultra-wideband transmission protocol to transmit the first channel audio signal to the first channel playback device and the second channel audio signal to the second channel playback device.
[0057] Optionally, the transmission module 302 is further used for:
[0058] If the transmission bandwidth required to transmit the first channel audio signal and the second channel audio signal is greater than the preset bandwidth, the first channel audio signal is transmitted to the first channel playback device via an ultra-wideband transmission protocol, and the second channel audio signal is transmitted to the second channel playback device via the ultra-wideband transmission protocol.
[0059] Optionally, the transmission module 302 is further used for:
[0060] If the transmission bandwidth required for transmitting the first channel audio signal and the second channel audio signal is greater than the preset bandwidth, transmitting the first channel audio signal of the first bandwidth to the first channel playback device through the ultra-wideband protocol, and transmitting the first channel audio signal of the second bandwidth to the first channel playback device through the Bluetooth transmission protocol;
[0061] as well as,
[0062] The second channel audio signal of the third bandwidth is transmitted to the second channel playback device through the ultra-wideband protocol, and the second channel audio signal of the fourth bandwidth is transmitted to the first channel playback device through the Bluetooth transmission protocol.
[0063] The sum of the first bandwidth and the second bandwidth is the bandwidth required for transmitting the first channel audio signal; the sum of the third bandwidth and the fourth bandwidth is the bandwidth required for transmitting the second channel audio signal.
[0064] Optionally, the transmission module 302 is further used for:
[0065] If the transmission bandwidth required for transmitting the first channel audio signal and the second channel audio signal is less than or equal to the preset bandwidth, the first channel audio signal is transmitted to the first channel playback device via the Bluetooth transmission protocol, and the second channel audio signal is transmitted to the second channel playback device via the Bluetooth transmission protocol.
[0066] It should be noted that the electronic device 300 can achieve Figure 1 The various processes of the audio transmission method embodiment can achieve the same technical effect, and to avoid repetition, they will not be described here.
[0067] In the embodiment of the present invention, the electronic device 300 obtains the target audio, decodes the target audio into a first channel audio signal and a second channel audio signal, and transmits the first channel audio signal to the first channel playback device through an ultra-wideband transmission protocol, and transmits the second channel audio signal to the second channel playback device through the ultra-wideband transmission protocol. In this way, the electronic device 300 can transmit the left and right channel audio signals respectively by calling the 27Mbps transmission bandwidth of the ultra-wideband transmission protocol, thereby increasing the transmission bandwidth of the left and right channel audio signals, so that the electronic device 300 can transmit higher quality and higher bandwidth audio to avoid damage to the audio quality.
[0068] Please refer to Figure 4 , Figure 4 To implement another electronic device structure diagram of an embodiment of the present invention, the electronic device 400 can implement Figure 1 Each process of the audio transmission method embodiment can achieve the same technical effect. Figure 4 As shown, the electronic device 400 includes but is not limited to: a radio frequency unit 401, a network module 402, an audio output unit 403, an input unit 404, a sensor 405, a display unit 406, a user input unit 407, an interface unit 408, a memory 409, a processor 410, and a power supply 411. Those skilled in the art will understand that Figure 4The electronic device structure shown in the figure does not constitute a limitation on the electronic device 400. The electronic device 400 may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. In the embodiment of the present invention, the electronic device 400 includes but is not limited to a mobile phone, a tablet computer, a notebook computer, a PDA, a vehicle-mounted terminal, a wearable device, and a pedometer.
[0069] The processor 410 is used for:
[0070] Acquire target audio, and decode the target audio into a first channel audio signal and a second channel audio signal;
[0071] The radio frequency unit 401 is used to transmit the first channel audio signal to the first channel playback device through an ultra-wideband transmission protocol, and transmit the second channel audio signal to the second channel playback device through the ultra-wideband transmission protocol.
[0072] Optionally, the radio frequency unit 401 is further configured to:
[0073] The switchable media access controller AMP and protocol adaptation layer PAL in the Bluetooth transmission protocol call the media access control MAC and physical layer PHY in the ultra-wideband transmission protocol to transmit the first channel audio signal to the first channel playback device and the second channel audio signal to the second channel playback device.
[0074] Optionally, the radio frequency unit 401 is further configured to:
[0075] If the transmission bandwidth required to transmit the first channel audio signal and the second channel audio signal is greater than the preset bandwidth, the first channel audio signal is transmitted to the first channel playback device via an ultra-wideband transmission protocol, and the second channel audio signal is transmitted to the second channel playback device via the ultra-wideband transmission protocol.
[0076] Optionally, the radio frequency unit 401 is further configured to:
[0077] If the transmission bandwidth required for transmitting the first channel audio signal and the second channel audio signal is greater than the preset bandwidth, the first channel audio signal of the first bandwidth is transmitted to the first channel playback device through the ultra-wideband protocol, and the first channel audio signal of the second bandwidth is transmitted to the first channel playback device through the Bluetooth transmission protocol;
[0078] as well as,
[0079] The second channel audio signal of the third bandwidth is transmitted to the second channel playback device through the ultra-wideband protocol, and the second channel audio signal of the fourth bandwidth is transmitted to the first channel playback device through the Bluetooth transmission protocol.
[0080] The sum of the first bandwidth and the second bandwidth is the bandwidth required for transmitting the first channel audio signal; the sum of the third bandwidth and the fourth bandwidth is the bandwidth required for transmitting the second channel audio signal.
[0081] Optionally, the radio frequency unit 401 is further configured to:
[0082] If the transmission bandwidth required for transmitting the first channel audio signal and the second channel audio signal is less than or equal to the preset bandwidth, the first channel audio signal is transmitted to the first channel playback device via the Bluetooth transmission protocol, and the second channel audio signal is transmitted to the second channel playback device via the Bluetooth transmission protocol.
[0083] In the embodiment of the present invention, the electronic device 400 obtains the target audio, decodes the target audio into a first channel audio signal and a second channel audio signal, and transmits the first channel audio signal to the first channel playback device through an ultra-wideband transmission protocol, and transmits the second channel audio signal to the second channel playback device through the ultra-wideband transmission protocol. In this way, the electronic device 400 can transmit the left and right channel audio signals respectively by calling the 27Mbps transmission bandwidth of the ultra-wideband transmission protocol, thereby increasing the transmission bandwidth of the left and right channel audio signals, so that the electronic device 400 can transmit higher quality and higher bandwidth audio to avoid damage to the audio quality.
[0084] It should be understood that in the embodiment of the present invention, the radio frequency unit 401 can be used for receiving and sending signals during information transmission or communication. Specifically, after receiving downlink data from the base station, it is sent to the processor 410 for processing; in addition, uplink data is sent to the base station. Generally, 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, etc. In addition, the radio frequency unit 401 can also communicate with the network and other devices through a wireless communication system.
[0085] The electronic device 400 provides the user with wireless broadband Internet access through the network module 402, such as helping the user to send and receive emails, browse web pages, and access streaming media.
[0086] The audio output unit 403 can convert the audio data received by the RF unit 401 or the network module 402 or stored in the memory 409 into an audio signal and output it as sound. Moreover, the audio output unit 403 can also provide audio output related to a specific function performed by the electronic device 400 (for example, a call signal reception sound, a message reception sound, etc.). The audio output unit 403 includes a speaker, a buzzer, a receiver, etc.
[0087] The input unit 404 is used to receive audio or video signals. The input unit 404 may include a graphics processor (GPU) 4041 and a microphone 4042, and the graphics processor 4041 processes the image data of a static image or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The processed image frame can be displayed on the display unit 406. The image frame processed by the graphics processor 4041 can be stored in the memory 409 (or other computer-readable storage medium) or sent via the radio frequency unit 401 or the network module 402. The microphone 4042 can receive sound and can process such sound into audio data. The processed audio data can be converted into a format output that can be sent to a mobile communication base station via the radio frequency unit 401 in the case of a telephone call mode.
[0088] 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 and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 4041 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 4041 and / or the backlight when the electronic device 400 is moved to the ear. As a type of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), and can detect the magnitude and direction of gravity when stationary, which can be used to identify the posture of the electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; the sensor 405 can also 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 will not be repeated here.
[0089] The display unit 406 is used to display information input by the user or information provided to the user. The display unit 406 may include a display panel 4041, which may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
[0090] The user input unit 407 can be used to receive input digital or character information, and to generate key signal input related to the 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 known as a touch screen, can collect the user's touch operation on or near it (such as the user's operation on the touch panel 4071 or near the touch panel 4071 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. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into the contact point coordinates, and then sends it to the processor 410, receives the command sent by the processor 410 and executes it. In addition, the touch panel 4071 can be implemented in various types such as resistive, capacitive, infrared and surface acoustic waves. In addition to the touch panel 4071, the user input unit 407 may also include other input devices 4072. Specifically, other input devices 4072 may include but are not limited to a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail here.
[0091] Furthermore, the touch panel 4071 may be overlaid on the display panel 4041. When the touch panel 4071 detects a touch operation on or near it, it is transmitted to the processor 410 to determine the type of touch event. Then, the processor 410 provides corresponding visual output on the display panel 4041 according to the type of touch event. Figure 4 In the figure, the touch panel 4071 and the display panel 4041 are two independent components to realize the input and output functions of the electronic device 400. However, in some embodiments, the touch panel 4071 and the display panel 4041 can be integrated to realize the input and output functions of the electronic device 400, which is not limited here.
[0092] The interface unit 408 is an interface for connecting an external device to the electronic device 400. 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 with an identification module, an audio input / output (I / O) port, a video I / O port, a headphone port, etc. 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 device 400 or may be used to transmit data between the electronic device 400 and an external device.
[0093] The memory 409 can be used to store software programs and various data. The memory 409 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application required for a function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory 409 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0094] The processor 410 is the control center of the electronic device 400. It uses various interfaces and lines to connect various parts of the entire electronic device 400. By running or executing software programs and / or modules stored in the memory 409 and calling data stored in the memory 409, it executes various functions of the electronic device 400 and processes data, thereby monitoring the electronic device 400 as a whole. The processor 410 may include one or more processing units; preferably, the processor 410 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, etc., and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 410.
[0095] The electronic device 400 may also include a power supply 411 (such as a battery) for supplying power to each component. Preferably, the power supply 411 may be logically connected to the processor 410 through a power management system, thereby implementing functions such as charging, discharging, and power consumption management through the power management system.
[0096] In addition, the electronic device 400 includes some functional modules not shown, which will not be described in detail here.
[0097] Optionally, an embodiment of the present invention further provides an electronic device, comprising a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein when the computer program is executed by the processor, Figure 1 The various processes of the audio transmission method embodiment can achieve the same technical effect, and will not be described again here to avoid repetition.
[0098] The embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, which is executed by a processor to implement Figure 1The various processes of the audio transmission method embodiment can achieve the same technical effect, and are not described here to avoid repetition. The computer-readable storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0099] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0100] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0101] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims
1. An audio transmission method, applied to a first electronic device, wherein the first electronic device is wirelessly connected to a second electronic device, wherein the second electronic device comprises a first channel playback device and a second channel playback device; characterized in that: The audio transmission method comprises: Acquire target audio, and decode the target audio into a first channel audio signal and a second channel audio signal; Transmitting the first channel audio signal to the first channel playback device through an ultra-wideband transmission protocol, and transmitting the second channel audio signal to the second channel playback device through the ultra-wideband transmission protocol; The method of transmitting the first channel audio signal to the first channel playback device through an ultra-wideband transmission protocol, and transmitting the second channel audio signal to the second channel playback device through the ultra-wideband transmission protocol, comprises: If the transmission bandwidth required for transmitting the first channel audio signal and the second channel audio signal is greater than the preset bandwidth, the first channel audio signal of the first bandwidth is transmitted to the first channel playback device through the ultra-wideband protocol, and the first channel audio signal of the second bandwidth is transmitted to the first channel playback device through the Bluetooth transmission protocol; as well as, Transmitting the second channel audio signal of the third bandwidth to the second channel playback device via the ultra-wideband protocol, and transmitting the second channel audio signal of the fourth bandwidth to the first channel playback device via the Bluetooth transmission protocol; The sum of the first bandwidth and the second bandwidth is the bandwidth required for transmitting the first channel audio signal; the sum of the third bandwidth and the fourth bandwidth is the bandwidth required for transmitting the second channel audio signal.
2. The method according to claim 1, characterized in that The method of transmitting the first channel audio signal to the first channel playback device through an ultra-wideband transmission protocol, and transmitting the second channel audio signal to the second channel playback device through the ultra-wideband transmission protocol, comprises: The switchable media access controller AMP and protocol adaptation layer PAL in the Bluetooth transmission protocol call the media access control MAC and physical layer PHY in the ultra-wideband transmission protocol to transmit the first channel audio signal to the first channel playback device and the second channel audio signal to the second channel playback device.
3. The method according to claim 1, characterized in that After acquiring the target audio and decoding the target audio into a first channel audio signal and a second channel audio signal, the method further includes: If the transmission bandwidth required for transmitting the first channel audio signal and the second channel audio signal is less than or equal to the preset bandwidth, the first channel audio signal is transmitted to the first channel playback device via the Bluetooth transmission protocol, and the second channel audio signal is transmitted to the second channel playback device via the Bluetooth transmission protocol.
4. An electronic device, the electronic device is a first electronic device, the electronic device is wirelessly connected to a second electronic device, the second electronic device comprises a first channel playback device and a second channel playback device; characterized in that: The electronic device comprises: An acquisition module, used for acquiring target audio, and decoding the target audio into a first channel audio signal and a second channel audio signal; a transmission module, configured to transmit the first channel audio signal to the first channel playback device through an ultra-wideband transmission protocol, and to transmit the second channel audio signal to the second channel playback device through the ultra-wideband transmission protocol; The transmission module is specifically used for: If the transmission bandwidth required for transmitting the first channel audio signal and the second channel audio signal is greater than the preset bandwidth, the first channel audio signal of the first bandwidth is transmitted to the first channel playback device through the ultra-wideband protocol, and the first channel audio signal of the second bandwidth is transmitted to the first channel playback device through the Bluetooth transmission protocol; as well as, Transmitting the second channel audio signal of the third bandwidth to the second channel playback device via the ultra-wideband protocol, and transmitting the second channel audio signal of the fourth bandwidth to the first channel playback device via the Bluetooth transmission protocol; The sum of the first bandwidth and the second bandwidth is the bandwidth required for transmitting the first channel audio signal; the sum of the third bandwidth and the fourth bandwidth is the bandwidth required for transmitting the second channel audio signal.
5. The electronic device according to claim 4, characterized in that: The transmission module is also used for: The switchable media access controller AMP and protocol adaptation layer PAL in the Bluetooth transmission protocol call the media access control MAC and physical layer PHY in the ultra-wideband transmission protocol to transmit the first channel audio signal to the first channel playback device and the second channel audio signal to the second channel playback device.
6. The electronic device according to claim 4, characterized in that: The transmission module is also used for: If the transmission bandwidth required for transmitting the first channel audio signal and the second channel audio signal is less than or equal to the preset bandwidth, the first channel audio signal is transmitted to the first channel playback device via the Bluetooth transmission protocol, and the second channel audio signal is transmitted to the second channel playback device via the Bluetooth transmission protocol.
