Audio Transmission Method and Device, Electronic Device, Readable Storage Medium
By transmitting audio streams with different sound effects in parallel in electronic devices, the problem of personalized sound effects of multiple users is solved, and multiple users are able to listen to sounds with different sound effects at the same time, improving the function and battery life of the device.
Patent Information
- Application Number
- CN202110784078.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-12
- Publication Date
- 2025-07-04
- Estimated Expiration
- 2041-07-12
AI Technical Summary
The prior art cannot meet the sound needs of multiple users to listen to different sound effects simultaneously, especially when multiple headphones are connected to the same audio playback device, personalized sound effects cannot be provided.
Audio streams of different sound effects are transmitted to multiple second electronic devices in parallel through the first electronic device, and sound effects parameters are obtained and synchronized through the interactive interface, and audio streaming is performed using Bluetooth technology such as A2DP, ISOAL or broadcasting to ensure that each device obtains personalized sound effects.
It realizes that multiple users listen to different sound effects at the same time, expands the functions of electronic devices, meets personalized sound effects needs, and optimizes the battery life of the device.
Smart Images

Figure CN114501401B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of electronic information, and particularly to a method and device for audio transmission, an electronic device, and a readable storage medium. Background Art
[0002] With the development of the intelligence of electronic devices, it is a common application scenario for multiple electronic devices to achieve certain functions through mutual connection.
[0003] For example, a headphone as an audio output device, after being connected to an electronic device that plays a multimedia file, receives an audio stream from the electronic device and converts the audio stream into a sound signal for output. Summary of the Invention
[0004] This application provides a method and device for audio transmission, an electronic device, and a readable storage medium, aiming to solve the problem of how to improve the audio output function.
[0005] To achieve the above objective, this application provides the following technical solutions:
[0006] The first aspect of this application provides a method for audio transmission, which is applied to a first electronic device. Specifically, the first electronic device transmits audio streams with different sound effects to multiple second electronic devices in parallel, thereby not only expanding the functions of the electronic device but also meeting the needs of multiple users to listen to sounds with different sound effects simultaneously.
[0007] Optionally, before transmitting the audio streams with different sound effects to multiple second electronic devices in parallel, it further includes: displaying an interaction interface, where the interaction interface includes adjustment controls for adjusting the sound effect parameters of at least one of the second electronic devices for setting the sound effects of the audio streams, and receiving the sound effect parameters of the at least one second electronic device by responding to the operation instructions of the adjustment controls. Obtaining sound effect parameters through the interaction interface has high convenience.
[0008] Optionally, before displaying the interaction interface, it further includes: displaying device controls corresponding to the second electronic devices one by one, and sending a prompt audio to the second electronic device corresponding to the device control by responding to a first operation instruction for the device control. The device controls facilitate the user of the second electronic device to identify the use of the second electronic device, and further lay a foundation for setting the sound effect parameters of the second electronic device.
[0009] Optionally, the specific implementation manner of displaying the interaction interface includes: displaying the interaction interface by responding to a second operation instruction for the device control, thereby facilitating the user to call out the interaction interface.
[0010] Optionally, before transmitting the audio streams with different sound effects to multiple second electronic devices in parallel, the method further includes: receiving sound effect parameters transmitted by at least one of the second electronic devices, where any one of the second electronic devices obtains the sound effect parameters by responding to a touch command. Obtaining the sound effect parameters by the second electronic device and transmitting them to the first electronic device can reduce the impact of the setting of the sound effect parameters on the display content of the first electronic device.
[0011] Optionally, before transmitting the audio streams with different sound effects to multiple second electronic devices in parallel, the method further includes: synchronizing the sound effect parameters with the second electronic devices. Since both the first electronic device and the second electronic device can obtain the sound effect parameters, synchronizing the sound effect parameters enables the first electronic device and the second electronic device to obtain the same sound effect parameters, so as to accurately generate the audio streams of the sound effects required by the user.
[0012] Optionally, the process of generating the audio streams with different sound effects includes: generating in parallel the audio streams transmitted to multiple paths of the second electronic devices, and any one of the audio streams is generated using the sound effect parameters of one of the second electronic devices. The way of generating the audio streams in parallel can ensure that the users of multiple second electronic devices can obtain the sound signals with different sound effects simultaneously or with a relatively small delay.
[0013] Optionally, the sound effect parameters include a first type of sound effect parameters and a second type of sound effect parameters, and the computing power resources required to respond to the second type of sound effect parameters are less than those required to respond to the first type of sound effect parameters; the step of generating any one of the audio streams using the sound effect parameters of one of the second electronic devices includes: generating any one of the audio streams using the first type of sound effect parameters of one of the second electronic devices. Assigning the response to the second type of sound effect parameters to the second electronic device can save the computing power resources of the first electronic device, and the computing power resources required to respond to the second type of sound effect parameters assigned to the second electronic device are less, which can ensure that the second electronic device has a strong battery life.
[0014] Optionally, the step of generating any one of the audio streams using the sound effect parameters of one of the second electronic devices includes: when the remaining power of the second electronic device is greater than a threshold, generating any one of the audio streams using the sound effect parameters of one of the second electronic devices, so as to further ensure that the second electronic device has a strong battery life.
[0015] Optionally, the method further includes: when the remaining power of the second electronic device is greater than the threshold, instructing the second electronic device to respond to the second type of sound effect parameters to save the resources of the first electronic device.
[0016] Optionally, the parallel transmission of audio streams with different sound effects to multiple second electronic devices includes: using the A2DP protocol based on Bluetooth to parallelly transmit audio streams with different sound effects to multiple second electronic devices; or using the ISOAL protocol based on Bluetooth Low Energy to parallelly transmit audio streams with different sound effects to multiple second electronic devices; or using the Bluetooth Low Energy-based method to broadcast audio streams with different sound effects to multiple second electronic devices. Multiple Bluetooth methods are available, ensuring compatibility with Bluetooth technology and making the method highly implementable.
[0017] Optionally, the specific implementation of the parallel transmission of audio streams with different sound effects to multiple second electronic devices includes: using time-division multiplexing to parallelly transmit audio streams with different sound effects to multiple second electronic devices, making it highly implementable to parallelly transmit multiple audio streams.
[0018] The second aspect of this application provides an audio transmission method, which is applied to a second electronic device and specifically includes: receiving a first audio stream transmitted by a first electronic device and outputting a sound signal based on the first audio stream. The sound effect of the first audio stream is different from that of the second audio stream received by other devices, and the first audio stream and the second audio stream are parallelly transmitted by the first electronic device, thereby not only expanding the functions of the electronic device but also meeting the needs of multiple users to listen to sounds with different sound effects simultaneously.
[0019] Optionally, before receiving the first audio stream transmitted by the first electronic device, it further includes: obtaining a sound effect parameter by responding to a touch instruction and transmitting the sound effect parameter to the first electronic device, where the sound effect parameter is used to set the sound effect of the first audio stream. Obtaining the sound effect parameter by the second electronic device and transmitting it to the first electronic device can reduce the impact of the setting of the sound effect parameter on the display content of the first electronic device.
[0020] Optionally, before receiving the first audio stream transmitted by the first electronic device, it further includes: synchronizing the sound effect parameter with the first electronic device. Synchronizing the sound effect parameter enables the first electronic device and the second electronic device to obtain the same sound effect parameter, so as to accurately generate an audio stream with the sound effect required by the user.
[0021] Optionally, the audio effect parameters include a first type of audio effect parameters and a second type of audio effect parameters. The computing power resources required to respond to the second type of audio effect parameters are less than those required to respond to the first type of audio effect parameters. The first audio stream is generated based on the first type of audio effect parameters. The outputting of the sound signal based on the first audio stream includes: processing the first audio stream using the second type of audio effect parameters to obtain a processed audio stream; converting the processed audio stream into the sound signal and outputting the sound signal. Assigning the response to the second type of audio effect parameters to the second electronic device can save the computing power resources of the first electronic device, and the computing power resources required for the second type of audio effect parameters assigned to the second electronic device to respond are less, which can ensure that the second electronic device has a strong battery life.
[0022] Optionally, before processing the first audio stream using the second type of audio effect parameters, it further includes: transmitting power information to the first electronic device, and receiving the indication information of the first electronic device sent when the remaining power indicated by the power information is greater than the threshold, where the indication information indicates responding to the second type of audio effect parameters. It can be seen that transmitting the power information to the first electronic device can ensure that the second electronic device has a strong battery life while responding to the second type of audio effect parameters.
[0023] A third aspect of the present application provides an audio output device, which is applied to a first electronic device and includes a transmission unit for transmitting audio streams with different audio effects to a plurality of second electronic devices in parallel. This not only expands the functions of the electronic device but also meets the needs of multiple users to listen to sounds with different audio effects simultaneously.
[0024] Optionally, the device further includes: a display unit for displaying an interaction interface, where the interaction interface includes adjustment controls for adjusting the audio effect parameters of at least one of the second electronic devices; the audio effect parameters are used to set the audio effect of the audio stream; and by responding to the operation instruction of the adjustment control, the audio effect parameters of at least one of the second electronic devices are received. Obtaining the audio effect parameters through the interaction interface is highly convenient.
[0025] Optionally, the display unit is further configured to display device controls corresponding to the second electronic devices one by one before displaying the interaction interface; the transmission unit is further configured to send a prompt audio to the second electronic device corresponding to the device control by responding to a first operation instruction on the device control. The device control facilitates the user of the second electronic device to identify and use the second electronic device, and further lays a foundation for setting the audio effect parameters of the second electronic device.
[0026] Optionally, the specific implementation manner of the display unit for displaying the interactive interface is as follows: by responding to the second operation instruction for the device control, the interactive interface is displayed, thereby providing convenience for the user to call out the interactive interface.
[0027] Optionally, the transmission unit is further configured to receive the sound effect parameters transmitted by at least one of the second electronic devices before parallelly transmitting the audio streams with different sound effects to the plurality of second electronic devices, and any one of the second electronic devices obtains the sound effect parameters by responding to the touch instruction. Obtaining the sound effect parameters by the second electronic device and transmitting them to the first electronic device can reduce the influence of the setting of the sound effect parameters on the display content of the first electronic device.
[0028] Optionally, the transmission unit is further configured to synchronize the sound effect parameters with the second electronic devices before parallelly transmitting the audio streams with different sound effects to the plurality of second electronic devices, so as to accurately generate the audio streams of the sound effects required by the user.
[0029] Optionally, the device further includes: a generating unit, configured to parallelly generate the audio streams transmitted to the multiple second electronic devices, and any one of the audio streams is generated using the sound effect parameters of one of the second electronic devices. The manner of parallelly generating the audio streams can ensure that the users of the multiple second electronic devices can obtain the sound signals with different sound effects simultaneously or with a relatively small delay.
[0030] Optionally, the sound effect parameters include the first type of sound effect parameters and the second type of sound effect parameters, and the computing power resources required to respond to the second type of sound effect parameters are less than those required to respond to the first type of sound effect parameters; specifically, the generating unit is configured to: any one of the audio streams is generated using the first type of sound effect parameters of one of the second electronic devices. Assigning the response to the second type of sound effect parameters to the second electronic device can save the computing power resources of the first electronic device, and the computing power resources required for the second type of sound effect parameters assigned to the second electronic device to respond are less, which can ensure that the second electronic device has a strong battery life.
[0031] Optionally, the generating unit is specifically configured to: when the remaining power of the second electronic device is greater than the threshold, any one of the audio streams is generated using the sound effect parameters of one of the second electronic devices, so as to further ensure that the second electronic device has a strong battery life.
[0032] Optionally, the transmission unit is further configured to: when the remaining power of the second electronic device is greater than the threshold, instruct the second electronic device to respond to the second type of sound effect parameters to save the resources of the first electronic device.
[0033] Optionally, the specific implementation of the transmission unit for parallelly transmitting audio streams with different sound effects to multiple second electronic devices includes: using the A2DP protocol based on Bluetooth to parallelly transmit audio streams with different sound effects to multiple second electronic devices; or, using the ISOAL protocol based on Bluetooth Low Energy to parallelly transmit audio streams with different sound effects to multiple second electronic devices; or, using the Bluetooth Low Energy-based method to broadcast audio streams with different sound effects to multiple second electronic devices. The availability of multiple Bluetooth methods ensures compatibility with Bluetooth technology, making the method highly implementable.
[0034] Optionally, the specific implementation of the transmission unit for parallelly transmitting audio streams with different sound effects to multiple second electronic devices includes: using time-division multiplexing to parallelly transmit audio streams with different sound effects to multiple second electronic devices, making it highly implementable to parallelly transmit multiple audio streams.
[0035] The fourth aspect of this application provides an audio transmission device, which is applied to a second electronic device and includes: a receiving unit and an output unit. The receiving unit is used to receive a first audio stream transmitted by a first electronic device. The sound effect of the first audio stream is different from that of a second audio stream received by other devices, and the first audio stream and the second audio stream are transmitted in parallel by the first electronic device. The output unit is used to output a sound signal according to the first audio stream. The device not only expands the functions of the electronic device but also can meet the needs of multiple users to listen to sounds with different sound effects simultaneously.
[0036] Optionally, the device further includes an acquisition unit. The acquisition unit is used to obtain a sound effect parameter by responding to a touch instruction before the receiving unit receives the first audio stream transmitted by the first electronic device, and transmit the sound effect parameter to the first electronic device. The sound effect parameter is used to set the sound effect of the first audio stream. Obtaining the sound effect parameter by the second electronic device and transmitting it to the first electronic device can reduce the impact of setting the sound effect parameter on the display content of the first electronic device.
[0037] Optionally, the device further includes a synchronization unit. The synchronization unit is used to synchronize the sound effect parameter with the first electronic device before the receiving unit receives the first audio stream transmitted by the first electronic device, so as to accurately generate an audio stream with the sound effect required by the user.
[0038] Optionally, the audio effect parameters include first - type audio effect parameters and second - type audio effect parameters. The computing power resources required to respond to the second - type audio effect parameters are less than those required to respond to the first - type audio effect parameters. The first audio stream is generated according to the first - type audio effect parameters. The specific implementation manner of the output unit for outputting a sound signal based on the first audio stream is as follows: processing the first audio stream with the second - type audio effect parameters to obtain a processed audio stream; converting the processed audio stream into the sound signal and outputting the sound signal. Assigning the response to the second - type audio effect parameters to the second electronic device can save the computing power resources of the first electronic device. Moreover, the computing power resources required for the second - type audio effect parameters assigned to the second electronic device to respond are less, which can ensure that the second electronic device has a strong battery life.
[0039] Optionally, the device further includes a sending unit, configured to transmit power information to the first electronic device before the output unit processes the first audio stream with the second - type audio effect parameters. The receiving unit is further configured to: receive an indication message from the first electronic device, where the indication message indicates responding to the second - type audio effect parameters, and the indication message is sent by the first electronic device when the remaining power indicated by the power information is greater than a threshold. Transmitting the power information to the first electronic device can ensure that the second electronic device still has a strong battery life when responding to the second - type audio effect parameters.
[0040] The fifth aspect of the present application provides an electronic device, including: a processor, a memory, and a wireless communication chip. The memory is used to store programs, and the wireless communication chip is used to implement a transmission function in response to a call from the processor; the processor is used to run the programs to implement the audio transmission method described in the first aspect of the present application.
[0041] The sixth aspect of the present application provides an electronic device, including: a wireless communication chip, a processor, a memory, and a sound - emitting unit. The memory is used to store programs. The sound - emitting unit outputs sound in response to a call from the processor to emit a sound signal. The processor is used to run the programs to implement the audio transmission method described in the second aspect of the present application.
[0042] The seventh aspect of the present application provides a readable storage medium, on which a program is stored. When the program is read and run by a computer device, the audio transmission method described in the first aspect or the second aspect of the present application is implemented. Description of the Drawings
[0043] Figure 1 It is a schematic diagram of an applicable scenario for the audio transmission method provided in the embodiments of the present application;
[0044] Figure 2Schematic diagram of the technical framework for transmitting audio from the first electronic device to the second electronic device disclosed in the embodiments of the present application;
[0045] Figure 3a Schematic diagram of the structure of the first electronic device disclosed in the embodiments of the present application;
[0046] Figure 3b Schematic diagram of the structure of the second electronic device disclosed in the embodiments of the present application;
[0047] Figure 4 Flowchart of a method for transmitting audio disclosed in the embodiments of the present application;
[0048] Figure 5 Example diagram of the controls corresponding to the headphones and triggering headphone prompt audio disclosed in the embodiments of the present application;
[0049] Figure 6 Example diagram of the interactive interface for sound effect parameter setting disclosed in the embodiments of the present application;
[0050] Figure 7 Schematic diagram of a specific transmission method in the method for transmitting audio disclosed in the embodiments of the present application;
[0051] Figure 8 Schematic diagram of another specific transmission method in the method for transmitting audio disclosed in the embodiments of the present application;
[0052] Figure 9 Schematic diagram of another specific transmission method in the method for transmitting audio disclosed in the embodiments of the present application;
[0053] Figure 10 Example diagram of parallel transmission of audio streams using time division multiplexing in the method for transmitting audio disclosed in the embodiments of the present application;
[0054] Figure 11 Example diagram of multiple users simultaneously receiving sounds with different sound effects from the first electronic device in the method for transmitting audio disclosed in the embodiments of the present application;
[0055] Figure 12 Flowchart of another method for transmitting audio disclosed in the embodiments of the present application;
[0056] Figure 13 Scene example of obtaining sound effect parameters by touching the headphones disclosed in the embodiments of the present application;
[0057] Figure 14 Flowchart of another method for transmitting audio disclosed in the embodiments of the present application;
[0058] Figure 15Flow chart of yet another audio transmission method disclosed in the embodiments of this application;
[0059] Figure 16 Example diagram of the audio transmission method implemented in the embodiments of this application, where multiple users wear different earphones of the same pair of earphones and receive sounds with different sound effects from the first electronic device simultaneously. Detailed implementation manners
[0060] Figure 1 Scene example where a user uses an audio output device such as Earphone 1 to receive an audio stream from an audio playback device such as Smart Large Screen 2 and output a sound signal:
[0061] Figure 1 In this example, Earphone 1 is connected to Smart Large Screen 2 via Bluetooth. Smart Large Screen 2 plays a multimedia file. During the playback process, Smart Large Screen transmits the audio stream to Earphone 1. After receiving the audio stream, Earphone 1 outputs a sound signal, and the user wearing Earphone 1 hears the sound.
[0062] During the research process, the applicant found that the audio output function shown in the above scenario can no longer meet the further needs of users, mainly reflected in the following two points:
[0063] 1. A pair of earphones cannot meet the requirement of parallel audio output to multiple people.
[0064] 2. Even if the audio playback device can be connected to multiple pairs of earphones, it cannot meet the requirement of providing personalized sound effects to users wearing different earphones. For example, when Smart Large Screen plays a song, User A and User B wear earphones and listen to this song played by Smart Large Screen 2 at the same time. User A hopes to obtain a heavy bass sound effect, and User B hopes to obtain a soft sound effect. The existing audio output function cannot meet this requirement.
[0065] It can be seen that there is room for further improvement in the existing functions of both the electronic device for audio playback and the electronic device for audio output.
[0066] The embodiments of this application disclose an audio transmission method and device to meet the above requirements, so that the electronic devices have more perfect functions.
[0067] For the convenience of description, in the following content, the electronic device for playing multimedia files is referred to as the first electronic device, and the electronic device for outputting audio as a sound signal is referred to as the second electronic device.
[0068] The technical framework for the first electronic device to transmit audio to the second electronic device is as Figure 2 shown:
[0069] The application layer runs a player (such as an APP) for playing multimedia (such as audio and video) files, and the application layer transmits the audio generated during the process of playing the multimedia file to the audio framework layer. The audio decoder in the audio framework layer is used to decode the audio, and the decoded audio is resampled and formed into an audio stream according to the sound effect parameters. A Bluetooth encoder is set in the Bluetooth hardware abstraction layer of the hardware abstraction layer, which is used to encode the audio stream transmitted by the audio framework layer according to the Bluetooth transmission protocol to obtain a Bluetooth audio stream. The Bluetooth driver set in the core layer drives the Bluetooth chip in the hardware layer to transmit the Bluetooth audio stream to the second electronic device.
[0070] Taking the second electronic device as an example of a Bluetooth headset, the Bluetooth headset performs Bluetooth decoding on the received audio stream, and uses the decoded audio stream to obtain the audio with the sound effect required by the user wearing the Bluetooth headset, that is, the personalized sound effect on the headset side.
[0071] The technical solution described in the embodiments of the present application improves the application layer and the audio framework layer of the first electronic device, and uses the existing or improved Bluetooth technology (such as including Bluetooth drivers, Bluetooth chips, etc.) to transmit the audio stream to multiple second electronic devices in parallel.
[0072] As Figure 2 shown, the improved application layer can obtain the sound effect parameters. The difference between the improved audio framework layer and the prior art is that: multiple threads run in parallel, and each thread is used to generate an audio stream using the sound effect parameters so that the audio stream has a certain sound effect ( Figure 2 in this case, the thread is called a sound effect thread based on this function). Combining the above scenario, it can be understood that any one thread is used to generate the audio stream with the sound effect required by the user wearing a pair (or one) of headphones, Figure 2 in this case, the sound effect parameter is called a personalized sound effect parameter. The personalized sound effect parameter can be obtained from the application in the application layer. The specific implementation process of the function of the sound effect framework layer can refer to the process described in the following embodiments.
[0073] The technical solution described in the embodiments of the present application improves the process of generating audio by the second electronic device according to the sound effect parameters. Compared with the prior art, a function of negotiating with the first electronic device for the sound effect parameters that need to be processed by the second electronic device and sending the locally obtained sound effect parameters to the first electronic device is added ( Figure 2 not shown in this case, and can be referred to the following process).
[0074] The above-mentioned first electronic device can be a smart screen, mobile phone, tablet computer, desktop computer, laptop, notebook computer, Ultra-mobile Personal Computer (UMPC), handheld computer, netbook, Personal Digital Assistant (PDA), wearable electronic device, smart watch, etc.
[0075] The structure of the first electronic device can be as Figure 3a shown, including: a processor 110, a memory 120, and a wireless communication chip, such as a Bluetooth chip 130.
[0076] It can be understood that the structure illustrated in this embodiment does not constitute a specific limitation on the first electronic device. In other embodiments, the first electronic device may include more or fewer components than shown, or combine certain components, or split certain components, or have different component arrangements. The illustrated components can be implemented in hardware, software, or a combination of software and hardware.
[0077] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Among them, different processing units can be independent devices or integrated in one or more processors.
[0078] The wireless communication chip provides wireless communication technologies for the electronic device, including but not limited to: wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (IR), and other wireless communication solutions.
[0079] Taking the Bluetooth chip 130 as an example, the Bluetooth chip 130 provides Bluetooth communication technology for the electronic device. The Bluetooth chip 130 can receive electromagnetic waves via the antenna, perform frequency modulation and filtering processing on the electromagnetic wave signals, and send the processed signals to the processor 110. The Bluetooth chip 130 can also receive the signals to be sent from the processor 110, perform frequency modulation, amplification, etc. on them, and then convert them into electromagnetic waves through the antenna and radiate them out.
[0080] The memory 120 is used to store program codes, such as the program codes for implementing Figure 2 the Bluetooth driver, player, audio framework, and Bluetooth encoder functions in . The processor 110 realizes the audio output function by running the program codes stored in the memory 120.
[0081] The memory 120 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc.
[0082] The above-mentioned second electronic device may be a wireless earphone, wireless speaker, wearable device, etc. An example of a wireless earphone is a True Wireless Stereo (TWS) earphone.
[0083] The structure of the second electronic device is as Figure 3b shown, including: a wireless communication chip such as a Bluetooth chip 210, a processor 211, a memory 212, and a sound generating unit 213.
[0084] The Bluetooth chip 210 is used to receive and decode the Bluetooth audio stream.
[0085] The memory 212 is used to store program codes, such as Figure 2 the codes for implementing the function of personalized sound effects in . The processor 211 is used to run the program codes to realize the personalized processing of the audio stream decoded by the Bluetooth chip 210, and convert the processed audio stream into a sound signal through the sound generating unit 213.
[0086] Next, taking the smart large screen and two pairs of earphones (denoted as earphone 1 and earphone 2 respectively) as an example, the process of the above-mentioned first electronic device and second electronic device collaborating to achieve parallel output of personalized audio will be described in detail. It can be understood that in the scenarios and embodiments described in this application, Bluetooth connection and transmission are taken as examples for description, but it is not limited thereto, and other connection or transmission methods, such as Wi-Fi mentioned above, can also be used.
[0087] Figure 4The process of a method for transmitting audio disclosed in an embodiment of this application includes the following steps:
[0088] S11. After the smart large screen establishes a connection with at least one of two pairs of headphones, obtain the unique identification information of the connected headphones.
[0089] In this embodiment, the unique identification information includes a hardware machine code. The hardware machine code is a 48-bit extended unique identifier (EUI), simply referred to as EUI-48.
[0090] In this embodiment, the EUI-48 can be obtained from the link information connected to the headphones. Taking the example that both headphone 1 and headphone 2 are connected to the smart large screen, headphone 1 is connected to the smart large screen using link 1, and headphone 2 is connected to the smart large screen using link 2. The link information of link 1 includes the EUI-48 of headphone 1, and the link information of link 2 includes the EUI-48 of headphone 2.
[0091] Because the hardware machine code is not conducive to user identification and memory, the user can configure an identifier for the headphones, simply referred to as a user name. Therefore, optionally, the unique identification information may further include a user name.
[0092] It can be understood that the ways for the user to configure a user name for the headphones may include but are not limited to: after the smart large screen connects to the headphones, a dialog box pops up to prompt the user to enter the user name of the headphones. For example, the user enters the user name "Xiaoming's TWS headphones" configured for headphone 1 in the dialog box.
[0093] Optionally, when the unique identification information further includes a user name, the smart large screen saves the correspondence between the user name and the hardware machine code of the same headphone. For example, the smart large screen constructs a mapping table of the user name and the hardware machine code of the headphones.
[0094] S12. The smart large screen displays a control corresponding to the connected headphones.
[0095] As Figure 5 shown, an example of the control is a horn-shaped control. Assuming that both headphone 1 and headphone 2 are connected to the smart large screen, the smart large screen displays the controls corresponding to the two headphones, denoted as a and b respectively.
[0096] S13. The smart large screen responds to the first operation instruction for the control corresponding to the headphones and sends a prompt audio to the headphones.
[0097] After multiple earphones, especially multiple earphones of the same model, are all connected to the smart large screen, the user may not be able to identify which control corresponds to the earphone they are wearing. Therefore, it is not convenient to set the parameters of the earphone through the smart large screen, such as the sound effect parameters of the earphone. Therefore, the function of S13 is to assist the user in identifying the control corresponding to the worn earphone, so as to improve the convenience of the user setting the parameters of the earphone.
[0098] Optionally, the first operation instruction can be a touch instruction for the control, such as an instruction triggered by single-clicking control a or b on the smart large screen, such as Figure 5 the way A shown in
[0099] Or, the first operation instruction can also be a received control instruction, such as an instruction triggered by selecting control a or b through the remote control device of the smart large screen, such as Figure 5 the way B shown in . In this embodiment, the remote control device of the smart large screen includes but is not limited to a remote control or a mobile phone, etc.
[0100] One example of the prompt audio is voice prompt, and another example is the currently playing audio.
[0101] It can be understood that S13 is an optional step.
[0102] S14. The smart large screen responds to the second operation instruction for the control and receives the sound effect parameters of at least one of earphone 1 and earphone 2.
[0103] One example of the second operation instruction is an instruction triggered by double-clicking the control corresponding to the earphone on the smart large screen. Or, while sending a prompt tone to the earphone, the next-level menu of the control can also be displayed, and the second operation instruction is a touch instruction for the sound effect adjustment trigger control in the next-level menu. Or, the second operation instruction can be sent by the remote control device of the smart large screen.
[0104] The sound effect parameters include but are not limited to: volume parameter, heavy bass parameter, dialogue enhancement parameter, and equalization parameter. Taking the heavy bass parameter as an example, the heavy bass parameter is a parameter for achieving the heavy bass effect, which can include at least one specific parameter item, which will not be elaborated here.
[0105] The specific way to receive the sound effect parameters is:
[0106] The smart large screen displays a user interface (UI) as shown in Figure 6 and receives the sound effect parameters by responding to the adjustment instruction for the control on the interface.
[0107] Figure 6In the interface shown, the top row shows the descriptions of the following columns. The leftmost column shows the user names of the connected earphones: "Grandpa's TWS Earphones", etc. The controls in the column below "Volume" are used to adjust the volume parameters of each earphone. The controls in the column below "Bass Boost" are used to adjust whether the Bass Boost function is enabled for each earphone. Black indicates enabled, and white indicates disabled. The controls in the column below "Dialogue Enhancement" are used to adjust whether the Dialogue Enhancement function is enabled for each earphone. Black indicates enabled, and white indicates disabled. The controls in the column below "Equalizer" are used to select the equalizer effect for each earphone. Clicking on the controls in this column switches between different equalizer effects. The controls in the column below "Cancel Personalization" are used to select whether to cancel the personalized setting function for the sound effect parameters. Clicking on the controls selects or deselects, and a black dot indicates the cancellation of the personalized setting function.
[0108] It can be understood that, in order to distinguish from Figure 5 the controls shown, the controls shown in Figure 5 can be referred to as device controls, and the controls shown in Figure 6 can be referred to as sound effect adjustment controls or adjustment controls. Figure 6 In the interactive interface shown, the specific forms and styles of the various sound effect adjustment controls are only examples and are not restrictive.
[0109] The specific way for the interactive interface to receive the adjustment instructions of the adjustment controls is: receiving at least one of the touch instructions for the adjustment controls through the touch screen and receiving the adjustment instructions of the adjustment controls from the remote control. The remote control can be a remote control dedicated to the smart big screen or an electronic device such as a mobile phone.
[0110] It should be noted that after receiving the second operation instruction of the device control corresponding to any one earphone (such as the horn-shaped control shown in Figure 5 ), the interactive interface shown in Figure 6 is displayed. Figure 6 In
[0111]
[0112] S15, the smart big screen uses the sound effect parameters to generate an audio stream.
[0113] It should be noted that this step can be performed by Figure 2The audio framework layer shown is executed. The difference from the prior art is that multiple audio effect threads are executed in parallel, and each audio effect thread is used to generate an audio stream using the audio effect parameters of a headphone.
[0114] It can be understood that the smart large screen can establish the correspondence between the unique identifier of the headphone and the audio stream. For example, the EUI-48 of the headphone can be written in the audio stream for easy distinction.
[0115] S16. The smart large screen transmits the audio stream to Headphone 1 and Headphone 2.
[0116] From the perspective of the transmission path, the following several methods can be used to transmit the audio stream to Headphone 1 and Headphone 2:
[0117] 1. Use the Advanced Audio Distribution Profile (A2DP) protocol to transmit the audio stream to the headphone, as Figure 7 shown.
[0118] The A2DP protocol uses a point-to-point connection method and can achieve parallel transmission of 2-3 audio streams.
[0119] Because the audio stream corresponds to the unique identifier information of the headphone, and the unique identifier information of the headphone comes from the link information, each link is used to transmit the audio stream with the same unique identifier to the headphone with the same unique identifier information.
[0120] 2. Use the method based on the Isochronous adaption layer (ISOAL) to transmit multiple audio streams to Headphone 1 and Headphone 2 respectively.
[0121] ISOAL is a functional layer introduced in the control layer on the basis of the Bluetooth Low Energy (BLE) protocol on the traditional Bluetooth. This method can support the transmission of 3 or more audio streams, as Figure 8 shown.
[0122] 3. Use the broadcast method.
[0123] Broadcast multiple audio streams to Headphone 1 and Headphone 2. In this case, there is no need to distinguish the correspondence between the audio stream and the headphone. After receiving the audio stream, the headphone can use the unique identifier information to identify its corresponding audio stream and discard the audio streams of other headphones, as Figure 9 shown.
[0124] If there are n audio streams, and each audio stream has 2 channels, then the audio of a total of 2n channels is packed and broadcast transmitted according to the Bluetooth protocol. Each TWS earphone can receive all 2n channels, and then only extracts 2 channels corresponding to its own unique identification information for decoding and playing. Its own unique identification information is obtained from the link information when establishing a connection with the smart large screen.
[0125] For 2 and 3, from the perspective of transmission time, the time-division multiplexing method can be used to transmit audio streams, such as Figure 10 As shown, in each time period, a time slot is allocated for each audio stream, and in the order of the time slots from front to back, an audio frame of each audio stream is transmitted in turn. Figure 10 In, each personalized data block refers to any audio data block (audio frame) in the above audio stream.
[0126] It can be understood that based on the above parallel generation and parallel transmission methods of audio, earphone 1 and earphone 2 should receive the audio stream simultaneously. It is also possible that due to device differences and other reasons, there is a time delay difference between the time when earphone 1 and earphone 2 receive the audio stream, but this time delay difference is usually not perceived by the user.
[0127] S17. Earphone 1 and earphone 2 output the sound signals converted from the audio stream.
[0128] In this embodiment, the first electronic device can transmit audio streams to multiple second electronic devices in parallel, and moreover, the sound effects of the audio streams transmitted to different second electronic devices can be different. Therefore, the function of the first electronic device is improved, and the needs of multiple users to simultaneously use the second electronic device to obtain sounds with different sound effects are met.
[0129] Take Figure 11 shown as an example:
[0130] The earphones worn by multiple users are all connected to the smart large screen 2 via Bluetooth. Suppose a certain user clicks on the control corresponding to any earphone on the smart large screen 2, triggering the smart large screen to display Figure 6 the interactive interface shown. Multiple users respectively set the sound effect parameters they need through the touch operations on each control on the interactive interface. Suppose the sound effect parameters set for "Xiaoming's TWS earphone" are: heavy bass, and the sound effect parameters set for "Xiaohong's TWS earphone" are: dialogue enhancement.
[0131] During the process of the smart large screen 2 using the player to play an audio file, using the process of this embodiment, multiple users' audio streams are obtained in parallel and different sound effect audio streams are sent to multiple users in parallel, so that the earphones of multiple users receive the audio stream simultaneously, and moreover, multiple users hear the sound with the personalized sound effect that has been set, that is, multiple users hear different sound effects of the same multimedia.
[0132] It can be seen that Figure 11 compared with Figure 1 it can not only enable multiple users to receive audio simultaneously, but also enable multiple users to receive audio with different sound effects, so as to achieve the purpose of receiving sound signals with different sound effects.
[0133] In the above process, the configuration of the sound effect parameters and the step of generating the audio stream using the sound effect parameters are both executed by the first electronic device. In addition, they can also be executed by the second electronic device. Figure 12 Another audio transmission method disclosed in the embodiments of the present application includes the following steps:
[0134] S21. After establishing a connection with at least one of the smart large screen, earphone 1, and earphone 2, obtain the unique identification information of the connected earphone.
[0135] S22. At least one of earphone 1 and earphone 2 responds to a touch command and transmits the sound effect parameters to the smart large screen.
[0136] The touch commands for the earphone may include, but are not limited to, commands triggered by the user wearing, clicking, double-clicking, or sliding and touching the earphone.
[0137] Different from the above embodiments, in this embodiment, the sound effect parameters are obtained based on the touch commands of the user on the earphone. That is, in response to the touch on the earphone, the earphone obtains the sound effect parameters and then transmits the sound effect parameters to the smart large screen.
[0138] Examples of touching the earphone include, but are not limited to: sliding forward on the left earphone to increase the volume, sliding backward on the left earphone to decrease the volume, squeezing the left earphone with two fingers to turn on or off the bass, squeezing the right earphone with two fingers to turn on or off the dialogue enhancement, as Figure 13 shown, sliding forward on the right earphone to switch the equalizer (tone color), and sliding backward on the right earphone to cancel or turn on the personalized setting.
[0139] Optionally, after the smart large screen receives the sound effect parameters transmitted by the earphone, it can display Figure 6 the interface shown, and, following the received sound effect parameters, control the corresponding controls to make adjustments to indicate the received sound effect parameters. The purpose is to visualize the adjustment of the sound effect parameters on the earphone and obtain a better user experience.
[0140] S23. The smart large screen uses the first type of sound effect parameters to generate an audio stream.
[0141] In this embodiment, the sound effect parameters are divided into first-class sound effect parameters and second-class sound effect parameters. Compared with the first-class sound effect parameters, less computing power resources are required to respond to the second-class sound effect parameters. Responding to the sound effect parameters means generating or processing an audio stream using the sound effect parameters so that the audio stream has the sound effect indicated by the sound effect parameters.
[0142] Responding to the second-class sound effect parameters means generating or processing an audio stream using the second-class sound effect parameters. Less computing power resources are required to respond to the second-class sound effect parameters means that less computing power resources are required to generate or process an audio stream using the second-class sound effect parameters compared with generating or processing an audio stream using the first-class sound effect parameters.
[0143] It can be seen that the first-class sound effect parameters are the sound effect parameters pre-specified for the smart large screen to respond to. Opposite to the first-class sound effect parameters is the second-class sound effect parameters, and the second-class sound effect parameters are the sound effect parameters pre-specified for the earphone to respond to.
[0144] In this embodiment, although the earphone has the function of processing the audio stream according to the sound effect parameters, in order to ensure that the earphone has a high battery life, the second sound effect parameters are responded to by the earphone, and the response of the first-class sound effect parameters is still executed by the smart large screen. Therefore, in this step, the smart large screen only needs to generate the audio stream using the first-class sound effect parameters and does not need to respond to the second-class sound effect parameters.
[0145] The first-class sound effect parameters can be dialogue enhancement parameters (for enhancing dialogue) and equalization parameters. The second sound effect parameters can be sound effect parameters with a relatively low amount of calculation such as volume parameters (for adjusting the volume) and bass boost parameters (for turning on the bass).
[0146] S24. The smart large screen transmits the audio stream to earphone 1 and earphone 2.
[0147] S25. At least one of earphone 1 and earphone 2 uses the second-class sound effect parameters to process the received audio stream and outputs the sound signal converted from the processed audio stream.
[0148] It can be understood that if the smart large screen transmits the audio stream in the broadcast mode described in the above method 3, any earphone may receive the audio stream of other earphones. However, as described above, such audio streams are discarded without being processed. Therefore, in this step, the audio stream received by the earphone refers to the audio stream corresponding to the unique identification information of the earphone and does not include the audio streams of other earphones.
[0149] Optionally, during the process of the earphone receiving and outputting the sound signal converted from the audio stream, if a touch command is received, at least one of the first-class sound effect parameters and the second-class sound effect parameters can still be adjusted, and the smart large screen and the earphone will apply the newly obtained sound effect parameters to the subsequent audio stream.
[0150] It can be seen that the method for adjusting audio effect parameters on the earphone side in this embodiment can play the picture on the intelligent large screen without interference.
[0151] In the scenario of an intelligent large screen and a Bluetooth earphone, compared with the intelligent large screen, the battery life of the Bluetooth earphone is more important. The following embodiments can ensure the battery life of the Bluetooth earphone.
[0152] Figure 14 Another audio transmission method disclosed in the embodiments of the present application includes the following steps:
[0153] S31. After the intelligent large screen establishes a connection with at least one of earphone 1 and earphone 2, obtain the unique identification information of the connected earphone.
[0154] S32. At least one of earphone 1 and earphone 2, and the intelligent large screen obtain audio effect parameters.
[0155] In this embodiment, the method for the earphone and the intelligent large screen to obtain audio effect parameters may be: the intelligent large screen displays an interaction interface, and in response to an operation instruction on a control in the interaction interface, obtains audio effect parameters. Or, receive the audio effect parameters sent by the earphone. Or, obtain audio effect parameters both through the interaction interface and receive the audio effect parameters sent by the earphone.
[0156] It can be understood that the intelligent large screen is not limited to only obtaining the first type of audio effect parameters, and can also obtain the second type of audio effect parameters. The earphone is not limited to only obtaining the second type of audio effect parameters, and can also obtain the first type of audio effect parameters.
[0157] It can be understood that no matter which of the above methods is used, before performing the following steps between the intelligent large screen and each earphone, the audio effect parameters can be periodically synchronized. Synchronizing the audio effect parameters means mutually transmitting the audio effect parameters obtained by each other so that both parties obtain the same audio effect parameters, in order to avoid missing the audio effect parameters set by the user, thereby ensuring the audio effects required by the user.
[0158] S33. The intelligent large screen obtains the battery information of the earphone, and determines whether the remaining battery power of the earphone is greater than a preset threshold according to the battery information. If so, execute S34; if not, execute S35.
[0159] The earphone can use the battery service interface of Bluetooth to transmit the battery information to the intelligent large screen.
[0160] The preset threshold can be set according to requirements. For example, it can be 20% of the total battery power.
[0161] S34. The intelligent large screen uses the first type of audio effect parameters to generate an audio stream and instructs the earphone to respond to the second type of audio effect parameters.
[0162] It is understandable that the first type of audio effect parameters of the headset 1 are used to generate an audio stream transmitted to the headset 1, and the first type of audio effect parameters of the headset 2 are used to generate an audio stream transmitted to the headset 2.
[0163] S35. The smart large screen uses the first type of audio effect parameters and the second type of audio effect parameters to generate an audio stream and instructs the headset not to respond to the second type of audio effect parameters.
[0164] It can be seen that the functions of S33 - S35 are that, when the headset battery is low, the smart large screen responds to the audio effect parameters to give priority to ensuring the battery life of the headset.
[0165] S36. The smart large screen transmits the audio stream to the headset 1 and the headset 2.
[0166] S37. When the headset 1 and the headset 2 are instructed to respond to the second type of audio effect parameters, they process the received audio stream and output the sound signal converted from the processed audio stream. When the headset 1 and the headset 2 are instructed not to respond to the second type of audio effect parameters, they output the sound signal converted from the audio stream.
[0167] The process described in this embodiment can, while ensuring the battery life of the second electronic device, enable multiple second electronic devices to output sound signals with different audio effects simultaneously.
[0168] In the above embodiments, it is described by taking a pair of headsets worn by the same user as an example. In addition, the two of a pair of headsets can also be worn by different users. In this case, a scenario where the same pair of headsets outputs sound signals with different audio effects can be realized.
[0169] Figure 15 Another audio output method disclosed in the embodiments of the present application includes the following steps:
[0170] S41. After the smart large screen establishes a connection with at least one of the headset 1 and the headset 2, it obtains the unique identification information of the connected headset.
[0171] Different from the above embodiments, the headset 1 and the headset 2 described in this step are two of the same pair of headsets.
[0172] The headset 1 and the headset 2 have their respective unique identification information, that is, the unique identification information of the headset 1 and the headset 2 is different. In this step, the unique identification information can be a serial number or a name set by the user, such as "Xiaoming's TWS left headset" or "Xiaoming's TWS right headset", etc.
[0173] S42. At least one of the headset 1, the headset 2, and the smart large screen obtains the audio effect parameters.
[0174] The specific implementation manner of this step can refer to S32.
[0175] It can be understood that when obtaining sound effect parameters through at least one of the earphone 1 and the earphone 2, since the instructions obtained by touching the two earphones of a pair of earphones are different. For example, when swiping down on the left earphone, an instruction to lower the volume is obtained, and when swiping down on the right earphone, an instruction to turn on the heavy bass is obtained. Therefore, it is possible that a user wearing only the left earphone or the right earphone cannot input sound effect parameters by touching the earphone. In this case, the user can reconfigure the correspondence between the touch of the earphone and the instruction. For example, swiping down on the left earphone can be configured to implement the instruction to lower the volume.
[0176] The way to obtain sound effect parameters through the intelligent large screen can be: the user can pre-store the sound effect parameters of the required sound effects into the intelligent large screen.
[0177] For example, the user can register on the intelligent large screen to obtain unique user information, and then through the interaction interface, configure the sound effect parameters corresponding to the user information on the intelligent large screen. After the user wears one earphone and the worn earphone is connected to the intelligent large screen, the intelligent large screen recognizes the user's identity information, such as the face, etc., to confirm the logged-in user, and then through Figure 5 the shown method, display the controls of the earphone, and the user can confirm the device controls of the worn earphone through Figure 5 the shown operation A or B, and inform the intelligent large screen, so that the intelligent large screen establishes the correspondence between the user information and the earphone worn by the user, thereby establishing the correspondence between the sound effect parameters and the earphone.
[0178] S43. The intelligent large screen generates and transmits an audio stream to the earphone according to the sound effect parameters.
[0179] As mentioned above, the intelligent large screen can generate an audio stream only according to the first type of sound effect parameters, or generate an audio stream according to the first type of sound effect parameters and the second type of sound effect parameters.
[0180] The specific transmission method can refer to Figures 7 - 9 , which will not be elaborated here.
[0181] It can be understood that when the earphone 1 and the earphone 2 are pre-configured with sound channels (such as the left channel or the right channel), the transmission method of the intelligent large screen needs to match the sound channel.
[0182] S44. At least one of the earphone 1 and the earphone 2 processes the received audio stream using the second type of sound effect parameters.
[0183] S44 is an optional step, and the execution conditions can refer to those described in the above embodiments.
[0184] S45. The earphone 1 and the earphone 2 convert the obtained audio stream into a sound signal and output it.
[0185] In this embodiment, as Figure 16 shown, the same pair of earphones can be worn by different users, achieving the purpose of obtaining audio streams in parallel from the same electronic device and outputting sound signals with different sound effects, which not only expands the functions of the earphones but also improves the user experience.
[0186] An embodiment of the present application also discloses an audio output device, which is applied to a first electronic device and includes a transmission unit for transmitting audio streams with different sound effects in parallel to a plurality of second electronic devices. This not only expands the functions of the electronic device but also meets the needs of multiple users to listen to sounds with different sound effects simultaneously.
[0187] Another audio output device disclosed in an embodiment of the present application is applied to a second electronic device and includes a receiving unit and an output unit. The receiving unit is used to receive a first audio stream transmitted by the first electronic device. The sound effect of the first audio stream is different from that of a second audio stream received by other devices, and the first audio stream and the second audio stream are transmitted in parallel by the first electronic device. The output unit is used to output a sound signal according to the first audio stream. This not only expands the functions of the electronic device but also meets the needs of multiple users to listen to sounds with different sound effects simultaneously.
[0188] For the specific implementation of the functions of the above device, reference can be made to the above embodiments.
[0189] An embodiment of the present application also discloses a readable storage medium, on which a program is stored. When the program is read and run by a computer device, the audio transmission method described in the above embodiments of the present application is implemented.
Claims
1. A method for transmitting audio, applied to a first electronic device, characterized in that, including: Obtain the sound effect parameters of at least one second electronic device, where the sound effect parameters include first - type sound effect parameters and second - type sound effect parameters, and the computing power resources required to respond to the second - type sound effect parameters are less than those required to respond to the first - type sound effect parameters; Any one audio stream is generated using the sound effect parameters of one of the second electronic devices. Specifically, when the remaining power of one of the second electronic devices is greater than a preset threshold, the first - type sound effect parameters of one of the second electronic devices are used to generate the audio stream, and one of the second electronic devices is instructed to respond to the second - type sound effect parameters; when the remaining power of one of the second electronic devices is not greater than the preset threshold, the first - type sound effect parameters and the second - type sound effect parameters of one of the second electronic devices are used to generate the audio stream, and the second electronic device is instructed not to respond to the second - type sound effect parameters; Different - sound - effect audio streams are transmitted in parallel to multiple second electronic devices.
2. The method according to claim 1, wherein Before transmitting different - sound - effect audio streams in parallel to multiple second electronic devices, it further includes: Display an interaction interface, where the interaction interface includes adjustment controls for adjusting the sound effect parameters of at least one of the second electronic devices; the sound effect parameters are used to set the sound effect of the audio stream; Receive the sound effect parameters of at least one of the second electronic devices by responding to the operation instruction of the adjustment control.
3. The method according to claim 2, wherein Before displaying the interaction interface, it further includes: Display device controls, where the device controls are controls corresponding one - to - one with the second electronic devices; Send a prompt audio to the second electronic device corresponding to the device control by responding to a first operation instruction on the device control.
4. The method according to claim 3, characterized in that The display of the interaction interface includes: Display the interaction interface by responding to a second operation instruction on the device control.
5. The method according to any one of claims 1-4, characterized in that, The obtaining of the sound effect parameters of the second electronic device includes: Receive the sound effect parameters transmitted by at least one of the second electronic devices, and any one of the second electronic devices obtains the sound effect parameters by responding to a touch instruction.
6. The method according to claim 2 or 5, characterized in that, Before transmitting different - sound - effect audio streams in parallel to multiple second electronic devices, it further includes: Synchronize the sound effect parameters with the second electronic devices.
7. The method according to any one of claims 1 to 6, characterized in that, The transmitting of different - sound - effect audio streams in parallel to multiple second electronic devices includes: Use the A2DP protocol based on Bluetooth to transmit different - sound - effect audio streams in parallel to multiple second electronic devices; Or, use the ISOAL protocol based on Bluetooth Low Energy to transmit different - sound - effect audio streams in parallel to multiple second electronic devices; Or, use the Bluetooth Low Energy - based method to broadcast different - sound - effect audio streams to multiple second electronic devices.
8. The method according to claim 7, characterized in that, The transmitting of different - sound - effect audio streams in parallel to multiple second electronic devices includes: Use the time - division multiplexing method to transmit different - sound - effect audio streams in parallel to multiple second electronic devices.
9. A method for transmitting audio, applied to a second electronic device, characterized in that including: Synchronize the sound effect parameters with the first electronic device, where the sound effect parameters include first - type sound effect parameters and second - type sound effect parameters, and the computing power resources required to respond to the second - type sound effect parameters are less than those required to respond to the first - type sound effect parameters; Receive the indication information of the first electronic device. When the remaining power of the second electronic device is greater than the preset threshold, the indication information indicates to respond to the second type of sound effect parameters; or when the remaining power of the second electronic device is not greater than the preset threshold, the indication information indicates not to respond to the second type of sound effect parameters. Receive the first audio stream transmitted by the first electronic device. The sound effect of the first audio stream is different from that of the second audio stream received by other devices. The first audio stream and the second audio stream are transmitted in parallel by the first electronic device, and the first audio stream is generated using the sound effect parameters of the second electronic device. When the indication information indicates not to respond to the second type of sound effect parameters, output a sound signal according to the first audio stream. When the indication information indicates to respond to the second type of sound effect parameters, process the first audio stream using the second type of sound effect parameters, and output a sound signal based on the processed audio stream.
10. The method according to claim 9, wherein Before receiving the first audio stream transmitted by the first electronic device, it further includes: Obtain the sound effect parameters by responding to a touch instruction.
11. An audio transmission device, applied to a first electronic device, characterized in that, It includes: A transmission unit, configured to obtain the sound effect parameters of at least one second electronic device. The sound effect parameters include a first type of sound effect parameters and a second type of sound effect parameters. The computing power resources required to respond to the second type of sound effect parameters are less than those required to respond to the first type of sound effect parameters. Any audio stream is generated using the sound effect parameters of one second electronic device. Among them, when the remaining power of one second electronic device is greater than the preset threshold, an audio stream is generated using the first type of sound effect parameters of one second electronic device, and it is indicated that one second electronic device responds to the second type of sound effect parameters; when the remaining power of one second electronic device is not greater than the preset threshold, an audio stream is generated using the first type of sound effect parameters and the second type of sound effect parameters of one second electronic device, and it is indicated that the second electronic device does not respond to the second type of sound effect parameters, and audio streams with different sound effects are transmitted in parallel to multiple second electronic devices.
12. An audio transmission device, applied to a second electronic device, characterized in that, It includes: A synchronization unit, configured to synchronize the sound effect parameters with the first electronic device. The sound effect parameters include a first type of sound effect parameters and a second type of sound effect parameters. The computing power resources required to respond to the second type of sound effect parameters are less than those required to respond to the first type of sound effect parameters. A receiving unit, configured to receive the indication information of the first electronic device. When the remaining power of the second electronic device is greater than the preset threshold, the indication information indicates to respond to the second type of sound effect parameters; or when the remaining power of the second electronic device is not greater than the preset threshold, the indication information indicates not to respond to the second type of sound effect parameters; and receive the first audio stream transmitted by the first electronic device. The sound effect of the first audio stream is different from that of the second audio stream received by other devices. The first audio stream and the second audio stream are transmitted in parallel by the first electronic device, and the first audio stream is generated using the sound effect parameters of the second electronic device. An output unit, configured to output a sound signal according to the first audio stream when the indication information indicates not to respond to the second type of sound effect parameters, and to process the first audio stream with the second type of sound effect parameters and output a sound signal based on the processed audio stream when the indication information indicates to respond to the second type of sound effect parameters.
13. An electronic device, characterized in that, Comprising: A processor, a memory, and a wireless communication chip; The memory is used for storing programs; The wireless communication chip is configured to implement a transmission function in response to a call from the processor; The processor is configured to run the program to implement the audio transmission method according to any one of claims 1-8.
14. An electronic device, characterized in that, Comprising: A wireless communication chip, a processor, a memory, and a sound generating unit; The memory is used for storing programs; The sound generating unit outputs sound to emit a sound signal in response to a call from the processor; The processor is configured to run the program to implement the audio transmission method according to any one of claims 9-10.
15. A readable storage medium, on which a program is stored, characterized in that, When the program is read and run by a computer device, the audio transmission method according to any one of claims 1-10 is implemented.
Citation Information
Patent Citations
Audio output method and electronic equipment
CN112286481A
Point to multi-point data transmission method and device
WO2020107466A1