Audio playback method, audio playback device, and storage medium
By connecting the audio playback device to multiple audio source devices and using multiple sets of speakers to synchronously play audio data from different audio source devices, the problem that Bluetooth audio playback devices can only play a single audio source device is solved, and the synchronous playback of multiple audio data is achieved, thereby improving the user experience.
Patent Information
- Application Number
- CN202211563100.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-07
- Publication Date
- 2025-09-05
- Estimated Expiration
- 2042-12-07
AI Technical Summary
Existing Bluetooth audio playback devices can only play audio data from one audio source device at a time, and cannot meet the user's demand for playing audio from multiple audio source devices at the same time.
By connecting the audio playback device to multiple audio source devices at the same time, multiple sets of speakers are used to play the audio data of different audio source devices respectively, and the playback strategy is adjusted by judging the audio type and priority to achieve synchronous playback of multi-channel audio data.
Users can listen to audio data from multiple audio source devices at the same time, meeting the needs of multi-channel audio playback, providing a more reasonable audio data playback solution, and improving user experience.
Smart Images

Figure CN118158598B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to an audio playback method, an audio playback device, and a storage medium. Background Art
[0002] Bluetooth technology is a short-range wireless technology that enables flexible, low-cost data communication. It has numerous real-world applications, such as audio players, printers, and smart locks.
[0003] Bluetooth audio devices, such as True Wireless Stereo (TWS) Bluetooth headsets and Bluetooth speakers, are popular among users due to their compact size and portability. For example, users can conveniently connect their phones to Bluetooth headsets to listen to music and answer calls.
[0004] However, Bluetooth audio playback devices currently only support playing audio data from a single audio source device. If the user wants to play audio from two audio source devices at the same time, they can only play the audio from different audio source devices one by one. Summary of the Invention
[0005] In view of this, the present application provides an audio playback method, an audio playback device and a storage medium, which can realize the simultaneous playback of audio data from different audio source devices.
[0006] In a first aspect, the present application provides an audio playback method, which is applied to an audio playback device. The audio playback device includes a first group of speakers and a second group of speakers, the first group of speakers includes at least one speaker, the second group of speakers includes at least one speaker, and the audio playback device is connected to the first sound source device and the second sound source device at the same time. The audio playback device receives first audio data from the first sound source device, and plays the first audio data together through the first group of speakers and the second group of speakers. While the audio playback device is playing the first audio data, it receives second audio data from the second sound source device, and the audio playback device plays the first audio data through the first group of speakers, stops playing the first audio data through the second group of speakers, and plays the second audio data through the second group of speakers.
[0007] In this way, the audio playback device can play the first audio data and the second audio data at the same time, and the user can listen to the audio data from multiple audio source devices at the same time, meeting the user's demand for the audio playback device to play multiple audio channels at the same time.
[0008] In a possible implementation of the first aspect, the audio playback device is a Bluetooth headset, comprising a first earbud and a second earbud. A first speaker group comprises at least two speakers, a portion of the speakers in the first speaker group is disposed in the first earbud, and another portion of the speakers in the first speaker group is disposed in the second earbud. A second speaker group comprises at least two speakers, a portion of the speakers in the second speaker group is disposed in the first earbud, and another portion of the speakers in the second speaker group is disposed in the second earbud.
[0009] In this way, when the audio playback device plays the first audio data and the second audio data, the audio playback device can play the first audio data through multiple speakers belonging to the first group of speakers in the first earbud and the second earbud, and play the second audio data through multiple speakers belonging to the second group of speakers in the first earbud and the second earbud. Both the first earbud and the second earbud can play audio data from multiple audio source devices at the same time.
[0010] In another possible implementation of the first aspect, when the audio playback device receives the second audio data from the second audio source device while playing the first audio data, the audio playback device may compare the audio type of the second audio data with the audio type of the first audio data to determine whether there is a playback conflict between the second audio data and the first audio data. If there is no playback conflict between the second audio data and the first audio data, the first audio data is played through the first set of speakers, playback of the first audio data through the second set of speakers is stopped, and the second audio data is played through the second set of speakers.
[0011] Here, the audio data of the voice call class and the video call class have a playback conflict with each other. In this way, the audio playback device can provide users with a more reasonable multi-channel audio data playback solution.
[0012] In another possible implementation of the first aspect, if there is a playback conflict between the second audio data and the first audio data, the first audio data continues to be played through the first group of speakers and the second group of speakers.
[0013] In this way, the audio playback device can provide a solution to the situation where there is a playback conflict. That is, when there is a playback conflict between the audio type of the first audio data and the audio type of the second audio data, the audio playback device can only play the first audio data, providing the user with a more reasonable multi-channel audio data playback solution.
[0014] In another possible implementation of the first aspect, the first audio data is audio data of a voice call type, a video call type, or an audio and video type; if the second audio data is audio data of a notification type, the audio playback device controls the playback volume of the second audio data to be higher than the playback volume of the first audio data.
[0015] In this way, if the audio playback device receives notification-type second audio data while playing the first audio data, the audio playback device can increase the playback volume of the second audio data to attract the user's attention, thereby providing convenience for the user.
[0016] In another possible implementation of the first aspect, the audio playback device compares the priorities of the audio type of the second audio data and the audio type of the first audio data. If the priority of the audio type of the second audio data is higher than the priority of the audio type of the first audio data, the audio playback device controls the playback volume of the second audio data to be higher than the playback volume of the first audio data. If the priority of the audio type of the second audio data is lower than the priority of the audio type of the first audio data, the audio playback device controls the playback volume of the first audio data to be higher than the playback volume of the second audio data.
[0017] Here, the order of priority from high to low is: notification type, voice call type or video call type, audio and video type. In this way, the audio playback device can also automatically adjust the playback volume of each audio data according to the audio type of each audio data.
[0018] In another possible implementation of the first aspect, while the audio playback device is simultaneously playing first audio data and second audio data, a first volume adjustment instruction is received from a first sound source device, and the audio playback device adjusts the playback volume of the first audio data in response to the first volume adjustment instruction, but does not adjust the playback volume of the second audio data; or
[0019] When the audio playback device is playing the first audio data and the second audio data simultaneously, it receives a second volume adjustment instruction from the second sound source device. In response to the second volume adjustment instruction, the audio playback device adjusts the playback volume of the second audio data but does not adjust the playback volume of the first audio data.
[0020] In this way, the audio playback device can adjust the playback volume of a single channel of audio data among multiple channels of audio data played simultaneously in response to the first volume adjustment instruction or the second volume adjustment instruction.
[0021] In another possible implementation of the first aspect, the audio playback device receives a volume adjustment operation of the audio playback device from the user. In response to the volume adjustment operation, the audio playback device adjusts the playback volume of the first audio data and / or the second audio data.
[0022] In this way, the audio playback device can adjust the playback volume of a single channel or multiple channels of audio data among multiple channels of audio data played simultaneously in response to the user's volume adjustment operation.
[0023] In another possible implementation of the first aspect, a master-slave relationship between a first audio source device and a second audio source device is preconfigured in the audio playback device, where the first audio source device is the master device and the second audio source device is the slave device. Alternatively, the first audio source device is the slave device and the second audio source device is the master device. While the audio playback device is simultaneously playing first audio data and second audio data, a third volume adjustment instruction is received from the first audio source device or the second audio source device. In response to the third volume adjustment instruction, the audio playback device adjusts the playback volume of the first audio data and the second audio data. After the adjustment, the playback volume of the audio data from the master device is higher than the playback volume of the audio data from the slave device.
[0024] In this way, if there is a master device among multiple audio source devices, when the user adjusts the playback volume of audio data from any of the multiple audio source devices, the audio playback device will simultaneously adjust the playback volume of the audio data from multiple audio source devices. This way, the playback volume of the audio data played by the audio playback devices is relatively stable, and the audio data played by the master device is at the highest volume, allowing the user to clearly hear the audio data from the master device.
[0025] In another possible implementation of the first aspect, the audio playback device is a Bluetooth headset, comprising a first earbud and a second earbud, wherein a first set of speakers is disposed in the first earbud and a second set of speakers is disposed in the second earbud. While the audio playback device is playing first audio data, if second audio data is received from a second audio source device, and if both the first earbud and the second earbud are being worn, the audio playback device plays the first audio data through the first set of speakers disposed in the first earbud, stops playing the first audio data through the second set of speakers disposed in the second earbud, and plays the second audio data through the second set of speakers disposed in the second earbud.
[0026] In this way, the audio playback device can identify whether the first earplug and the second earplug are in the wearing state. When both the first earplug and the second earplug are in the wearing state, the audio playback device can play the first audio data and the second audio data respectively through different earplugs.
[0027] In a second aspect, the present application provides an audio playback method, applied to an audio playback device, the audio playback device being connected to a first audio source device and a second audio source device, respectively. The audio playback device receives first audio data from the first audio source device and plays the first audio data. While playing the first audio data, the audio playback device receives second audio data from the second audio source device, and then plays target audio data obtained by synthesizing the first audio data and the second audio data.
[0028] Here, since the target audio data is synthesized from the first audio data and the second audio data, when the audio playback device plays the target audio data, the user can hear the sounds of the first audio data and the second audio data at the same time, thereby achieving simultaneous playback of multiple audio data.
[0029] In a possible implementation of the second aspect, the audio playback device synthesizes the first audio data and the second audio data to obtain target audio data, and plays the target audio data. In this way, the audio playback device can simultaneously play audio data from multiple audio source devices by synthesizing multiple audio channels into one audio channel.
[0030] In another possible implementation of the second aspect, the audio playback device obtains target audio data obtained by synthesizing the first audio data and the second audio data from the first audio source device or the second audio source device, and plays the target audio data.
[0031] The audio playback device synthesizes target audio data through the first audio source device or the second audio source device, which can reduce the power consumption of the audio playback device and improve the battery life of the audio playback device.
[0032] In another possible implementation of the second aspect, the audio playback device acquiring, from the first audio source device or the second audio source device, target audio data obtained by synthesizing the first audio data and the second audio data may include:
[0033] Sending second audio data to a first sound source device, instructing the first sound source device to synthesize the first audio data and the second audio data; receiving target audio data from the first sound source device; or, sending first audio data to a second sound source device, instructing the second sound source device to synthesize the first audio data and the second audio data; receiving target audio data from the second sound source device; or, instructing the second sound source device to send second audio data to the first sound source device, and having the first sound source device synthesize the first audio data and the second audio data; receiving target audio data from the first sound source device; or, instructing the first sound source device to send first audio data to the second sound source device, and having the second sound source device synthesize the first audio data and the second audio data; receiving target audio data from the second sound source device.
[0034] In this way, the audio playback device can obtain target audio data from the first audio source device or the second audio source device through various implementation methods.
[0035] In another possible implementation of the second aspect, the target audio data obtained by synthesizing the first audio data and the second audio data is played, including: comparing the audio type of the second audio data with the audio type of the first audio data, and determining whether there is a playback conflict between the second audio data and the first audio data; wherein, there is a playback conflict between the audio data of the voice call type and the audio data of the video call type; if there is no playback conflict between the second audio data and the first audio data, then the target audio data obtained by synthesizing the first audio data and the second audio data is played.
[0036] In another possible implementation of the second aspect, the first audio data is audio data of a voice call type, a video call type, and an audio and video type; the method also includes: if the second audio data is audio data of a notification type, then when synthesizing the first audio data and the second audio data, the playback volume of the second audio data is controlled to be higher than the playback volume of the first audio data.
[0037] In another possible implementation of the second aspect, the method also includes: comparing the priority of the audio type of the second audio data and the audio type of the first audio data; if the priority of the audio type of the second audio data is higher than the priority of the audio type of the first audio data, controlling the playback volume of the second audio data to be higher than the playback volume of the first audio data when synthesizing the first audio data and the second audio data; if the priority of the audio type of the second audio data is lower than the priority of the audio type of the first audio data, controlling the playback volume of the first audio data to be higher than the playback volume of the second audio data when synthesizing the first audio data and the second audio data; wherein the order of priority from high to low is: notification category, voice call category or video call category, audio and video category.
[0038] In another possible implementation of the second aspect, the method further includes: during the process of playing the target audio data, receiving a first volume adjustment instruction from a first audio source device, and in response to the first volume adjustment instruction, adjusting the playback volume of the first audio data when synthesizing the first audio data and the second audio data, without adjusting the playback volume of the second audio data; or, during the process of playing the target audio data, receiving a second volume adjustment instruction from a second audio source device, and in response to the second volume adjustment instruction, adjusting the playback volume of the second audio data when synthesizing the first audio data and the second audio data, without adjusting the playback volume of the first audio data.
[0039] In another possible implementation of the second aspect, the method further includes: receiving a volume adjustment operation of the user on the audio playback device; and in response to the volume adjustment operation, adjusting the playback volume of the first audio data and / or the second audio data when synthesizing the first audio data and the second audio data.
[0040] In another possible implementation of the second aspect, a master-slave relationship between a first audio source device and a second audio source device is pre-configured in the audio playback device, where the first audio source device is the master device and the second audio source device is the slave device; or, the first audio source device is the slave device and the second audio source device is the master device; the method further includes: during playback of target audio data, receiving a third volume adjustment instruction from the first audio source device or the second audio source device; in response to the third volume adjustment instruction, adjusting the playback volume of the first audio data and the second audio data when synthesizing the first audio data and the second audio data; wherein, after adjustment, the playback volume of the audio data from the master device is higher than the playback volume of the audio data from the slave device.
[0041] In a third aspect, the present application provides an audio playback device comprising: a memory, a communication module, a speaker, and one or more processors, wherein the memory, the communication module, and the speaker are coupled to the processor. The communication module is used to transmit data or signaling with a first audio source device or a second audio source device, and the speaker is used to play audio data. The memory stores computer program code, which includes computer instructions. When the computer instructions are executed by the processor, the audio playback device executes the method described in the first aspect and any possible implementation thereof, or executes the method described in the second aspect and any possible implementation thereof.
[0042] In a fourth aspect, the present application provides a computer-readable storage medium comprising computer instructions. When the computer instructions are executed on an audio playback device, the audio playback device executes the method described in the first aspect and any possible implementation thereof, or executes the method described in the second aspect and any possible implementation thereof.
[0043] In a fifth aspect, the present application provides a computer program product comprising program instructions, which, when run on a computer, enables the computer to execute the method described in the first aspect and any possible implementation thereof, or to execute the method described in the second aspect and any possible implementation thereof. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Figure 1 A schematic diagram of an example of an audio playback scenario provided in an embodiment of the present application;
[0045] Figure 2 A schematic diagram of another example of an audio playback scenario provided in an embodiment of the present application;
[0046] Figure 3 A schematic diagram of another example of an audio playback scenario provided in an embodiment of the present application;
[0047] Figure 4A structural block diagram of an audio playback device provided in an embodiment of the present application;
[0048] Figure 5 A structural block diagram of a sound source device provided in an embodiment of the present application;
[0049] Figure 6 A flowchart of an example of an audio playback method provided in an embodiment of the present application;
[0050] Figure 7 A flowchart of another example of an audio playback method provided in an embodiment of the present application;
[0051] Figure 8 A flowchart of another example of an audio playback method provided in an embodiment of the present application;
[0052] Figure 9 A flowchart of another example of an audio playback method provided in an embodiment of the present application;
[0053] Figure 10 A flowchart of another example of an audio playback method provided in an embodiment of the present application;
[0054] Figure 11 This is a flowchart of another example of an audio playback method provided in an embodiment of the present application. DETAILED DESCRIPTION
[0055] Various exemplary embodiments, features, and aspects of the present application will be described in detail below with reference to the accompanying drawings. Like reference numerals in the drawings represent elements with the same or similar functions. Although various aspects of the embodiments are shown in the drawings, the drawings are not necessarily drawn to scale unless otherwise indicated. The word "exemplary" is used herein to mean "serving as an example, example, or illustration." Any embodiment described herein as "exemplary" is not necessarily to be construed as superior or preferred over other embodiments.
[0056] The term "and / or" herein simply describes an association relationship between associated objects, indicating that three relationships can exist. For example, "A and / or B" can represent the existence of three situations: A alone, A and B simultaneously, and B alone. Furthermore, the term "at least one" herein refers to any combination of at least two of any one or more of a plurality of items. For example, "at least one of A, B, and C" can represent any one or more elements selected from the set consisting of A, B, and C.
[0057] In addition, numerous specific details are provided in the following detailed description to better illustrate the present application. Those skilled in the art will appreciate that the present application can be practiced without certain specific details. In some instances, methods, means, components, and circuits well known to those skilled in the art are not described in detail in order to highlight the main purpose of the present application.
[0058] For ease of understanding, the specific process of an audio playback device receiving audio data from at least two audio source devices simultaneously in conventional technology is introduced here.
[0059] When an audio playback device is playing audio data from one audio source device, if it receives audio data sent by another audio source device, the audio playback device will pause the currently playing audio data and switch to playing the audio data transmitted by the other audio source device. After the audio data from the other audio source device is finished playing, the audio playback device will continue to play the unfinished audio data. For example, when a user is wearing a Bluetooth headset (i.e., an audio playback device) and is playing the audio data of a TV series on a tablet computer (a sound source device) through the Bluetooth headset, the mobile phone (another sound source device) receives a voice message. At this time, if the user clicks on the voice message on the mobile phone, the Bluetooth headset will first pause playing the audio data of the TV series and switch to playing the audio data of the voice message. The user can only hear the audio data of one sound source device through the Bluetooth headset at the same time.
[0060] The audio playback method provided in the embodiment of the present application can be applied to an audio playback system. The audio playback system may include: an audio playback device and at least two sound source devices. The audio playback device is connected to each of the at least two sound source devices respectively. For example, the audio playback device is connected to a sound source device via a wired or wireless method. The audio playback device can simultaneously receive audio data transmitted by at least two sound source devices and simultaneously play the audio data of each sound source device. The audio playback device plays multiple audio data simultaneously, allowing the user to listen to audio data from multiple sound source devices at the same time, meeting the user's demand for the audio playback device to play multiple audio channels simultaneously.
[0061] The following describes several possible application scenarios of the embodiments of this application:
[0062] For example, the audio playback device is Figure 1 The Bluetooth speaker shown, at least two audio source devices include Figure 1 Take the mobile phone and laptop computer as an example. The Bluetooth speaker has established a wireless connection with the laptop computer, and the Bluetooth speaker has also established a wireless connection with the mobile phone.
[0063] A Bluetooth speaker can simultaneously receive audio data from a laptop computer (such as the audio data of a TV series played by a laptop computer) and audio data from a mobile phone (such as voice messages from a mobile phone). For example, while a user is listening to a TV series played by a laptop computer through a Bluetooth speaker, the Bluetooth speaker plays the audio data from the laptop computer. During this process, the mobile phone may receive a voice message, and in response to the user's operation of playing the voice message on the mobile phone, the mobile phone can transmit the audio data of the voice message to the Bluetooth speaker. At this time, the Bluetooth speaker will not pause the playback of the audio data from the laptop computer, nor will it block the audio data from the mobile phone. Instead, it can play the audio data from the laptop computer and the audio data from the mobile phone at the same time. In other words, when a user is using a Bluetooth speaker, he can listen to the audio data of the above-mentioned voice message through the Bluetooth speaker while listening to the audio data of the TV series played by the laptop computer.
[0064] For example, the audio playback device is Figure 2 The Bluetooth headset shown, at least two audio source devices include Figure 2 Take the tablet computer and mobile phone shown as an example. While the Bluetooth headset establishes a wireless connection with the tablet computer, the Bluetooth headset also establishes a wireless connection with the mobile phone. The Bluetooth headset can simultaneously receive audio data from the tablet computer (such as audio data of music played by the tablet computer) and audio data from the mobile phone (such as audio data of a learning video played by the mobile phone). For example, when a user wears a Bluetooth headset and uses a tablet computer to play music, the user can listen to the audio data from the tablet computer through the Bluetooth headset. During this process, the user can also play a learning video through the mobile phone. In response to the user's operation of playing a learning video on the mobile phone, the mobile phone can transmit the audio data of the learning video to the Bluetooth headset. At this time, the Bluetooth headset will not temporarily play the audio data from the tablet computer, nor will it block the audio data from the mobile phone. Instead, it can play the audio data from the tablet computer and the audio data from the mobile phone at the same time. In other words, when the user wears a Bluetooth headset, through the Bluetooth headset, while using the tablet computer to play music and listen to the audio data of the music, he can also listen to the audio data of the learning video played by the mobile phone. The audio data of the tablet computer music can be used as background music for the audio data of the learning video.
[0065] For example, the audio playback device is Figure 3 The TWS earphones shown in the figure have at least two audio source devices including Figure 3Take the tablet computer and mobile phone shown as an example. While the TWS headset establishes a wireless connection with the tablet computer, the TWS headset also establishes a wireless connection with the mobile phone. The TWS headset can simultaneously receive audio data from the tablet computer (such as the audio data of the video conference played by the tablet computer) and audio data from the mobile phone (such as the voice message of the mobile phone). For example, when a user wears a TWS headset and uses a tablet computer to play a video conference, the audio data from the tablet computer can be played through the TWS headset. During this process, the mobile phone may receive a voice message. In response to the user's operation on the mobile phone to play the voice message, the mobile phone can transmit the audio data of the voice message to the TWS headset. At this time, the TWS headset will not pause the playback of the audio data from the tablet computer, nor will it block the audio data from the mobile phone, but can play the audio data from the tablet phone and the audio data from the mobile phone at the same time. That is to say, when the user is wearing a TWS headset, through the TWS headset, while using the tablet computer to watch the video conference and listen to the audio data of the video conference, he can also operate the mobile phone to listen to the audio data of the above-mentioned voice message.
[0066] For example, the audio playback device described in the embodiments of the present application may be a Bluetooth speaker, a Bluetooth headset, a multimedia player, a smart watch, a Bluetooth TV, or the like. The sound source device described in the embodiments of the present application may be a mobile phone, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone, a personal digital assistant (PDA), an augmented reality (AR) or virtual reality (VR) device, a media player, a television, or the like. The embodiments of the present application do not impose any particular restrictions on the specific forms of the audio playback device and the sound source device.
[0067] In the embodiment of the present application, the audio playback device is taken as an example of a TWS headset, and the hardware structure of the audio playback device is introduced through an earplug in the TWS headset. Figure 4 This is a block diagram of the structure of an audio playback device provided in an embodiment of the present application. As shown in the figure, an earbud of a TWS headset may include: a processor 301, a memory 302, a wireless communication module 303, a speaker unit 304, a receiver unit 305, a microphone 306, a power module 307, and an input / output interface 308.
[0068] It should be understood that the structures illustrated in the embodiments of the present application do not constitute specific limitations on the audio playback device. In some implementations of the embodiments of the present application, the audio playback device may include more or fewer components than shown, or may combine or separate certain components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0069] The processor 301 may include one or more processing units. For example, the processor 301 may include an application processor (AP), a modem processor, a controller, a digital signal processor (DSP), etc. The different processing units may be independent devices or integrated into one or more processors.
[0070] Memory 302 can be used to store computer-executable program code, which includes instructions. Processor 301 executes the instructions stored in memory 302 to perform various functional applications and data processing of the audio playback device. In addition, memory 302 may include high-speed random access memory and non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc.
[0071] The wireless communication module 303 can provide a solution for Bluetooth (BT) wireless communication applied to audio playback devices, and can support short-range data communication between the two earbuds of the TWS headset and between the earbuds and each sound source device. In some implementations, the wireless communication module 303 can be one or more devices integrating at least one communication processing module. In some implementations, the wireless communication module 303 can be a Bluetooth transceiver. The earbuds of the TWS headset can establish a Bluetooth connection with the above-mentioned sound source device through the Bluetooth transceiver, thereby realizing short-range data communication between the TWS headset and multiple sound source devices.
[0072] The audio playback device can implement audio functions through a speaker unit 304, a receiver unit 305, a microphone 306, and an application processor. For example, music playback, recording, etc. The speaker in the embodiment of the present application may include a speaker unit 304 and / or a receiver unit 305. In some embodiments of the present application, the audio playback device may include multiple groups of speakers, and each group of speakers may include one or more speakers (i.e., a speaker unit 304 or a receiver unit 305). The above-mentioned wireless communication module 303 can simultaneously receive audio data from multiple sound source devices. After the audio data from multiple sound source devices are processed by the processor 301, each group of speakers in the multiple groups of speakers plays the audio data from one sound source device respectively.
[0073] The speaker unit 304, also known as a "speaker", is used to convert the audio electrical signal into a sound signal. The audio playback device can play the received audio through the speaker unit 304. The speaker unit 304 can also be called a loudspeaker.
[0074] The receiver unit 305, also called the "earpiece", is used to convert the audio electrical signal into a sound signal. The audio playback device can play the received audio through the receiver unit 305.
[0075] Microphone 306, also known as a "microphone" or "microphone", is used to convert sound signals into electrical signals. For example, when a TWS headset is used as the audio input device of the above-mentioned audio source device, the user can speak by approaching the microphone 306 with their mouth to input the sound signal into the microphone 306. The audio playback device can be equipped with at least one microphone 306. In addition to collecting sound signals, the microphone 306 can also implement noise reduction.
[0076] The power module 307 can be used to supply power to various components included in the earplug of the TWS headset. In some implementations, the power module 307 can be a battery, such as a rechargeable battery.
[0077] The input / output interface 308 can be used to provide any wired connection between the earbuds of the TWS headset and the charger. In some implementations, the input / output interface 308 can be an electrical connector. For example, when the earbuds of the TWS headset are placed in an earphone case, the earbuds of the TWS headset can be electrically connected to the earphone case through the electrical connector. The earphone case can charge the power module 307 of the TWS headset.
[0078] In some implementations, the earplugs of the TWS headset may not include the input / output interface 308. In this case, the earplugs can realize charging or data communication functions based on the Bluetooth connection established with the charger through the wireless communication module 303.
[0079] It is understandable that the structures of the left and right earbuds of the TWS headset can be the same. For example, the left and right earbuds of the TWS headset can both include Figure 4 Alternatively, the structures of the left and right earbuds of the TWS headset may also be different. For example, one earbud of the TWS headset (such as the right earbud) may include Figure 4 , the other earbud (such as the left earbud) may include Figure 4 Other components except microphone 306.
[0080] In the embodiment of the present application, a mobile phone is taken as an example to introduce the hardware structure of the audio source device. Figure 5 This is a block diagram of the structure of a sound source device provided in an embodiment of the present application. As shown in the figure, the sound source device 100 may include a processor 110, an internal memory 121, a universal serial bus (USB) connector 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a sensor module 180, a button 190, a camera 193, a display 194, and a subscriber identification module (SIM) card interface 195.
[0081] It should be understood that the structure illustrated in the embodiments of this application does not constitute a specific limitation on the audio source device 100. In other embodiments of this application, the audio source device 100 may include more or fewer components than shown, or may combine or separate certain components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0082] 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). The different processing units may be independent devices or integrated into one or more processors.
[0083] The processor can generate operation control signals based on instruction opcodes and timing signals to complete the control of instruction fetching and execution.
[0084] Processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 110 may be a cache memory. This memory can store instructions or data that have been used or are frequently used by processor 110. When processor 110 needs to use the instruction or data, it can directly access it from this memory. This avoids duplicate accesses, reduces processor 110 latency, and thus improves system efficiency.
[0085] In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface. The processor 110 may be connected to modules such as a touch sensor, an audio module, a wireless communication module, a display, and a camera through at least one of the above interfaces.
[0086] It should be understood that the interface connection relationships between the modules illustrated in the embodiments of the present application are merely illustrative and do not constitute a structural limitation on the audio source device 100. In other embodiments of the present application, the audio source device 100 may also adopt different interface connection methods from those in the above embodiments, or a combination of multiple interface connection methods.
[0087] The internal memory 121 can be used to store computer executable program code, which includes instructions. The internal memory 121 may include a program storage area and a data storage area. The program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the sound source device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 110 executes various functional methods or data processing of the sound source device 100 by running instructions stored in the internal memory 121 and / or instructions stored in a memory provided in the processor.
[0088] The USB connector 130 is an interface that complies with USB standard specifications and can be used to connect the audio source device 100 and peripheral devices. Specifically, it can be a Mini USB connector, a Micro USB connector, a USB Type C connector, etc. The USB connector 130 can be used to connect a charger to enable the charger to charge the audio source device 100, and can also be used to connect other electronic devices to enable data transmission between the audio source device 100 and other electronic devices. It can also be used to connect headphones to output audio stored in the audio source device through the headphones. The connector can also be used to connect other electronic devices, such as VR devices. In some embodiments, the standard specifications of the universal serial bus can be USB1.x, USB2.0, USB3.x and USB4.
[0089] The charging management module 140 is used to receive charging input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 can receive charging input from the wired charger via the USB connector 130. In some wireless charging embodiments, the charging management module 140 can receive wireless charging input via the wireless charging coil of the audio source device 100. While charging the battery 142, the charging management module 140 can also power the audio source device through the power management module 141.
[0090] The power management module 141 is used to connect the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and provides power to the processor 110, the internal memory 121, the display 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage, impedance). In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.
[0091] The wireless communication function of the audio source device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
[0092] The mobile communication module 150 can provide wireless communication solutions including 2G / 3G / 4G / 5G applied to the audio source device 100.
[0093] The wireless communication module 160 can provide wireless communication solutions for application on the audio source device 100, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), Bluetooth low energy (BLE), ultra wide band (UWB), global navigation satellite system (GNSS), frequency modulation (FM), near field communication technology (NFC), infrared technology (IR), etc.
[0094] The buttons 190 may include a power button, a volume button, etc. The buttons 190 may be mechanical buttons or touch buttons. The audio source device 100 may receive key inputs and generate key signal inputs related to user settings and function control of the audio source device 100.
[0095] Display screen 194 is used to display images, videos, etc. Display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a MiniLED, a MicroLED, a Micro-OLED, a quantum dot light-emitting diode (QLED), etc.
[0096] The audio source device 100 can realize the camera function through the camera 193, ISP, video codec, GPU, display screen 194, application processor AP, neural network processor NPU, etc.
[0097] Camera 193 can be used to capture color image data and depth data of the subject. The ISP can be used to process the color image data captured by camera 193. For example, when taking a photo, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, which is then transmitted to the ISP for processing and converted into an image visible to the naked eye. The ISP can also perform algorithmic optimization on image noise, brightness, and color. The ISP can also optimize parameters such as exposure and color temperature of the captured scene. In some embodiments, the ISP can be located in camera 193.
[0098] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to or disconnected from the sound source device 100 by inserting it into or removing it from the SIM card interface 195. The sound source device 100 can support one or more SIM card interfaces. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 can also be compatible with external memory cards. The sound source device 100 interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the sound source device 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the sound source device 100 and cannot be separated from the sound source device 100.
[0099] The at least two audio source devices may include a first audio source device and a second audio source device. The following audio playback methods may be implemented in an audio playback device or an audio source device (such as the first audio source device and the second audio source device) having the above hardware structure.
[0100] In one embodiment of the present application, the audio playback device may include multiple groups of speakers (e.g., a first group of speakers and a second group of speakers). The first group of speakers includes at least one speaker, and the second group of speakers also includes at least one speaker. The audio playback device can simultaneously play multiple audio data from multiple audio source devices through the multiple groups of speakers. Specifically, a group of speakers can be used to play audio data from one audio source device.
[0101] by Figure 1 For example, the audio playback device can be Figure 1 The Bluetooth speaker shown. Figure 1 As shown, the Bluetooth speaker includes a first set of speakers and a second set of speakers. The first sound source device can be Figure 1 The laptop shown, the second source device is Figure 1 The first audio data is the audio data corresponding to the TV series played by the laptop (ie, the first audio source device), and the second audio data is the audio data corresponding to the voice message of the mobile phone (ie, the second audio source device).
[0102] The Bluetooth speaker establishes Bluetooth connections with the laptop and the mobile phone, respectively. For example, the Bluetooth speaker may first establish a Bluetooth connection with the laptop, and then establish a Bluetooth connection with the mobile phone. Alternatively, the Bluetooth speaker may first establish a Bluetooth connection with the mobile phone, and then establish a Bluetooth connection with the laptop. This embodiment of the application does not limit the order in which the Bluetooth speaker establishes connections with the laptop and the mobile phone. The Bluetooth speaker can maintain connections with the laptop and the mobile phone at the same time.
[0103] The following combination Figure 1 The application scenario shown here introduces the method of the embodiment of the present application. Figure 6 As shown, the audio playback method provided in the embodiment of the present application may include S601-S604:
[0104] S601: The Bluetooth speaker receives audio data corresponding to the TV series played by the laptop computer.
[0105] In an embodiment of the present application, when a user plays a TV series on a laptop computer, the laptop computer transmits audio data corresponding to the TV series to a Bluetooth speaker via a Bluetooth connection. The Bluetooth speaker receives the audio data corresponding to the TV series. After receiving the audio data corresponding to the TV series played by the laptop computer, the Bluetooth speaker can process the audio data corresponding to the TV series. For example, the Bluetooth speaker converts the digital audio data into analog audio data.
[0106] S602: The Bluetooth speaker plays audio data corresponding to the TV series through the first group of speakers and the second group of speakers.
[0107] Here, the Bluetooth speaker includes a first set of speakers and a second set of speakers. When the Bluetooth speaker receives only one channel of audio data, it can play the audio data through the first set of speakers and the second set of speakers. That is, the Bluetooth speaker plays the audio data corresponding to the TV series from the laptop through the first set of speakers and the second set of speakers.
[0108] S603 , while the Bluetooth speaker is playing the audio data corresponding to the TV series, the mobile phone sends the audio data corresponding to the voice message to the Bluetooth speaker.
[0109] In the embodiment of the present application, when the user is watching a TV series, he can operate the mobile phone to play the voice message in the mobile phone. At this time, the mobile phone responds to the user's operation of playing the voice message and sends the audio data corresponding to the voice message to the Bluetooth speaker.
[0110] S604, the Bluetooth speaker plays the audio data corresponding to the TV series from the laptop through the first set of speakers, stops playing the audio data corresponding to the TV series through the second set of speakers, and plays the audio data corresponding to the voice message from the mobile phone through the second set of speakers.
[0111] In an embodiment of the present application, if a Bluetooth speaker receives audio data corresponding to a voice message transmitted from a mobile phone while playing audio data corresponding to a TV series, the Bluetooth speaker can simultaneously process the audio data corresponding to the TV series and the audio data corresponding to the voice message. For example, the Bluetooth speaker converts the digital audio data corresponding to the TV series into analog audio data, and converts the digital audio data corresponding to the voice message into analog audio data. After processing, the Bluetooth speaker plays the audio data corresponding to the TV series through the first set of speakers, stops playing the audio data corresponding to the TV series through the second set of speakers, and plays the audio data corresponding to the voice message through the second set of speakers.
[0112] In this way, by setting multiple groups of speakers that play different audio data in the Bluetooth speaker, the Bluetooth speaker can play the audio data corresponding to the TV series and the audio data corresponding to the voice message through different speakers, thereby playing the audio data of multiple audio source devices at the same time.
[0113] Next, Figure 2 Taking the application scenario shown in the figure as an example, the method provided by the embodiment of this application is introduced. Figure 2 In the application scenario shown, the audio playback device is a Bluetooth headset, such as a TWS headset. The Bluetooth headset includes a first earbud and a second earbud. The Bluetooth headset also includes a first group of speakers and a second group of speakers. Each group of speakers of the Bluetooth headset includes at least two speakers. Some of the speakers in the first group of speakers are arranged in the first earbud, and another part of the speakers in the first group of speakers are arranged in the second earbud. Some of the speakers in the second group of speakers are arranged in the first earbud, and another part of the speakers in the second group of speakers are arranged in the second earbud. That is, the first earbud and the second earbud are both provided with the speakers of the first group of speakers and the speakers of the second group of speakers.
[0114] The first audio source device may be Figure 2 The tablet shown, the second source device is Figure 2 The first audio data is the audio data corresponding to the music played by the tablet computer (i.e., the first audio source device), and the second audio data is the audio data corresponding to the learning video played by the mobile phone (i.e., the second audio source device). The Bluetooth headset establishes wireless connections with the tablet computer and the mobile phone respectively.
[0115] The following combination Figure 2 The application scenario shown takes the first earbud of the Bluetooth headset as an example to introduce the method of the embodiment of the present application. Figure 7 As shown, the audio playback method provided in the embodiment of the present application may include S701-S704:
[0116] S701: A first earbud of the Bluetooth headset receives audio data corresponding to music played by a tablet computer.
[0117] In an embodiment of the present application, when a user plays music on a tablet computer, the tablet computer sends audio data corresponding to the music to a first earbud of a Bluetooth headset via a Bluetooth connection, and the first earbud of the Bluetooth headset receives the audio data corresponding to the music.
[0118] S702: The first earbud of the Bluetooth headset plays audio data corresponding to the music from the tablet computer through some speakers in the first speaker group and some speakers in the second speaker group.
[0119] Here, the first earbud of the Bluetooth headset includes some speakers of the first speaker group and some speakers of the second speaker group. When the first earbud of the Bluetooth headset receives only one channel of audio data, it plays the audio data through the first speaker group and the second speaker group. That is, the first earbud of the Bluetooth headset plays the audio data corresponding to the music from the tablet computer through some speakers of the first speaker group and some speakers of the second speaker group.
[0120] S703 , while the Bluetooth headset is playing audio data corresponding to music, the mobile phone sends audio data corresponding to the learning video to the first earbud of the Bluetooth headset.
[0121] Here, when the user is listening to music, he can operate the mobile phone to play the learning video in the mobile phone. At this time, the mobile phone responds to the user's operation of playing the learning video and sends the audio data corresponding to the learning video to the first earplug of the Bluetooth headset.
[0122] S704, the first earbud of the Bluetooth headset plays the audio data corresponding to the music from the tablet computer through some of the speakers in the set first group of speakers, stops playing the audio data corresponding to the music through some of the speakers in the set second group of speakers, and plays the audio data corresponding to the learning video through some of the speakers in the set second group of speakers.
[0123] Here, if the first earbud of the Bluetooth headset receives audio data corresponding to a learning video transmitted from a mobile phone while playing audio data corresponding to music, the first earbud plays the audio data from different audio source devices through different sets of speakers. That is, the first earbud plays the audio data corresponding to the music from the tablet computer through some of the speakers in the first set of speakers, and plays the audio data corresponding to the learning video from the mobile phone through some of the speakers in the second set of speakers.
[0124] It is understood that in some implementations, the second earbud of the Bluetooth headset performs the same process as the first earbud described above. Specifically, the second earbud receives audio data corresponding to the music played on the tablet (i.e., the first audio data) and plays the corresponding audio data through the internal first and second sets of speakers. If the second earbud of the Bluetooth headset receives the second audio data while playing the first audio data, it can then play the first audio data through the internal first set of speakers and the second audio data through the second set of speakers, thereby achieving simultaneous playback of multiple audio channels.
[0125] It is understood that in other implementations, the second earbud of the Bluetooth headset receives the audio source data transmitted by the first earbud. That is, the first earbud can be the master earbud and the second earbud can be the slave earbud. The audio data received by the second earbud is the audio data transmitted by the first earbud. In this case, the execution process of the second earbud is similar to that of the first earbud, except that the audio data received by the second earbud does not come from the tablet (i.e., the first audio source device) or the mobile phone (the second audio source device), but from the first earbud of the Bluetooth headset.
[0126] By arranging part of the speakers of the first speaker group and part of the speakers of the second speaker group in the first earbud of the Bluetooth headset, and arranging another part of the speakers of the first speaker group and another part of the speakers of the second speaker group in the second earbud of the Bluetooth headset, the first earbud and the second earbud of the Bluetooth headset can both play audio data from multiple audio source devices simultaneously. The user can listen to audio data from different audio source devices through any earbud.
[0127] For example, the first group of speakers may include a first speaker and a second speaker. The second group of speakers may include a third speaker and a fourth speaker. The first earbud of the Bluetooth headset is configured with the first speaker of the first group of speakers and the third speaker of the second group of speakers. The second earbud of the Bluetooth headset is configured with the second speaker of the first group of speakers and the fourth speaker of the second group of speakers.
[0128] While the Bluetooth headset is playing audio data corresponding to music from the tablet (i.e., first audio data), if it receives audio data corresponding to a learning video from the mobile phone (i.e., second audio data), the first earbud of the Bluetooth headset plays the audio data corresponding to the music through the first speaker and the audio data corresponding to the learning video through the third speaker. The second earbud of the Bluetooth headset plays the audio data corresponding to the music through the second speaker and the audio data corresponding to the learning video through the fourth speaker. Both the first earbud and the second earbud play the audio data corresponding to the music and the audio data corresponding to the learning video simultaneously.
[0129] Next, Figure 3 Taking the application scenario shown in the figure as an example, the method provided by the embodiment of this application is introduced. Figure 3 In the application scenario shown, the audio playback device is a TWS headset. The TWS headset includes a first earplug and a second earplug. The TWS headset also includes a first set of speakers and a second set of speakers. The first set of speakers is set in the first earplug of the TWS headset, and the second set of speakers is set in the second earplug of the TWS headset. The first sound source device can be Figure 3 The tablet shown, the second source device is Figure 3The first audio data is the audio data corresponding to the conference played by the tablet computer (i.e., the first audio source device), and the second audio data is the audio data corresponding to the voice message of the mobile phone (i.e., the second audio source device). The Bluetooth headset establishes wireless connections with the tablet computer and the mobile phone respectively.
[0130] The following combination Figure 3 The application scenario shown here introduces the method of the embodiment of the present application. Figure 8 As shown, the audio playback method provided in the embodiment of the present application may include S801-S804:
[0131] S801: The TWS headset receives audio data corresponding to the conference played from the tablet computer.
[0132] In an embodiment of the present application, when a user uses a tablet computer to attend a meeting, the tablet computer sends audio data corresponding to the meeting to the TWS headset via a Bluetooth connection. The first earbud and / or the second earbud of the TWS headset receives the audio data corresponding to the meeting.
[0133] It is understandable that the two earbuds of the TWS headset can receive audio data from the tablet computer (ie, the first audio source device) at the same time. That is, the first earbud and the second earbud of the TWS headset receive audio data corresponding to the conference played from the tablet computer. In some implementations, there are a master earbud and a slave earbud in the two earbuds of the TWS headset, and the master earbud and the slave earbud establish a Bluetooth connection. The master earbud receives audio data from the tablet computer (ie, the first audio source device) and forwards the received audio data to the slave earbud. The slave earbud receives audio data sent from the master earbud.
[0134] S802: The first earbud and the second earbud of the TWS headset play audio data corresponding to the conference.
[0135] Here, the first earbud of the TWS headset is provided with a first set of speakers, and the second earbud of the TWS headset is provided with a second set of speakers. When the TWS headset receives only one audio data channel, the first set of speakers in the first earbud and the second set of speakers in the second earbud jointly play the audio data corresponding to the conference from the tablet computer.
[0136] S803, while the TWS headset is playing the audio data corresponding to the meeting, the mobile phone sends the audio data corresponding to the voice message to the TWS headset.
[0137] Here, the user can operate the mobile phone to play the voice message in the mobile phone when attending the meeting. At this time, the mobile phone responds to the user's operation of playing the voice message and sends the audio data corresponding to the voice message to the TWS headset.
[0138] S804, the TWS headset plays the audio data corresponding to the meeting through the first group of speakers set in the first earbud, stops playing the audio data corresponding to the meeting through the second group of speakers set in the second earbud, and plays the audio data corresponding to the voice message through the second group of speakers set in the second earbud.
[0139] Here, when the TWS headset is playing the audio data corresponding to the meeting, if it receives audio data corresponding to a voice message transmitted from a mobile phone, the TWS headset will play the audio data from different audio source devices through different sets of speakers. That is, the TWS headset plays the audio data corresponding to the meeting through the first set of speakers set in the first earbud, and plays the audio data corresponding to the voice message through the second set of speakers set in the second earbud. The two earbuds of the TWS headset play audio data from different audio source devices respectively.
[0140] It is understandable that the two earbuds of the TWS headset can receive audio data from the mobile phone (ie, the second audio source device) at the same time. That is, the first earbud and the second earbud of the TWS headset receive audio data corresponding to the voice message from the mobile phone. In some implementations, when there is a master earbud and a slave earbud in the two earbuds of the TWS headset, the master earbud and the slave earbud establish a Bluetooth connection. The master earbud receives the audio data corresponding to the voice message from the mobile phone (ie, the second audio source device), and forwards the audio data corresponding to the received voice message to the slave earbud. The slave earbud receives and plays the audio data sent from the master earbud.
[0141] By setting the same set of speakers in the first or second earbud of the TWS headset, the TWS headset can play audio data from different audio source devices through different earbuds. Users can listen to audio data from different audio source devices through different earbuds of the TWS headset.
[0142] For example, in order to allow the user to listen to the first audio data (i.e., the audio data corresponding to the meeting from the tablet) and the second audio data (i.e., the audio data corresponding to the voice message from the mobile phone) at the same time, in some implementations, the TWS headset can also identify whether the first earplug and the second earplug are in the wearing state. If both the first earplug and the second earplug are in the wearing state, the TWS headset can play the first audio data and the second audio data respectively through different earplugs.
[0143] Specifically, after S803 and before S804, the above method may further include S805:
[0144] S805: Determine whether the first earplug and the second earplug are both in the wearing state. If both the first earplug and the second earplug are in the wearing state, execute S804.
[0145] For example, the TWS headset can detect changes in received light through an internal sensor to identify whether the first earbud and the second earbud are in the wearing state. When both the first earbud and the second earbud of the TWS headset are in the wearing state, audio data from different sound source devices can be played through different earbuds. When the user wears the first earbud and the second earbud of the TWS headset at the same time, audio data from multiple sound source devices can be heard at the same time.
[0146] In some embodiments, the TWS headset receives second audio data from a mobile phone while playing first audio data from a tablet. If only one of the first and second earbuds of the TWS headset is in a worn state, the TWS headset can continue to play the first audio data through the first and second earbuds in the worn state, without playing the second audio data. Alternatively, the TWS headset can stop playing the first audio data and play the second audio data through the first and second earbuds in the worn state.
[0147] In order to meet users' diverse playback habits and needs, when the TWS headset receives multiple channels of audio data (such as first audio data and second audio data) at the same time, the TWS headset can determine the speaker that plays the first audio data and the speaker that plays the second audio data based on user operations.
[0148] For example, a play button may be provided on any one or more earbuds of the TWS headset. A first speaker and a third speaker may be provided in the first earbud of the TWS headset. A second speaker and a fourth speaker may be provided in the second earbud of the TWS headset.
[0149] When the user performs the first preset operation, such as clicking the play button once, the TWS headset can play the first audio data using the first speaker and the second speaker, and play the second audio data using the third speaker and the fourth speaker. In this case, the first speaker and the second speaker belong to the first speaker group, and the third speaker and the fourth speaker belong to the second speaker group.
[0150] When the user performs the second preset operation, such as clicking the second play button, the TWS headset can play the first audio data using the first and third speakers, and play the second audio data using the second and fourth speakers. In this case, the first and third speakers belong to the first speaker group, and the second and fourth speakers belong to the second speaker group.
[0151] In some implementations, the TWS headset can also determine the speaker that plays the first audio data and the speaker that plays the second audio data based on the playback instruction sent by the first audio source device or the second audio source device.
[0152] Exemplarily, the first earbud of the TWS headset may be provided with a first speaker and a third speaker. The second earbud of the TWS headset may be provided with a second speaker and a fourth speaker. The user can select the first group of speakers for playing the first audio data and the second group of speakers for playing the second audio data in the TWS headset through user operation in the first sound source device or the second sound source device. The first sound source device or the second sound source device sends a play instruction to the TWS headset in response to the user operation. The play instruction is used to instruct the TWS headset to use the first group of speakers for playing the first audio data and the second group of speakers for playing the second audio data when receiving audio data from multiple sound source devices. The TWS headset receives the play instruction and determines the first group of speakers and the second group of speakers according to the play instruction. During the process of playing the first audio data, if the second audio data is received from the second sound source device, the TWS headset uses the corresponding speakers to play the first audio data and the second audio data according to the play instruction.
[0153] For example, the user instructs through a play instruction that the first group of speakers playing the first audio data includes a first speaker and a second speaker, and that the second group of speakers playing the second audio data includes a third speaker and a fourth speaker. If the TWS headset receives the first audio data from the first audio source device as the first sound source, the first audio data is played through the first group of speakers and the second group of speakers. In the process of playing the first audio data, if the TWS headset receives the second audio data from the second audio source device, the first audio data is played through the first speaker in the first earplug and the second speaker in the second earplug, and the first audio data is stopped from being played through the third speaker in the first earplug and the fourth speaker in the second earplug, and the second audio data is played through the third speaker in the first earplug and the fourth speaker in the second earplug. In this way, the different playback habits of users and the diverse playback requirements for TWS headsets can be met, thereby improving the user experience.
[0154] In an embodiment of the present application, when the audio playback device is playing the first audio data, if it receives the second audio data from the second audio source device, the first audio data and the second audio data are played respectively through multiple different groups of speakers, thereby achieving simultaneous playback of multiple channels of audio data. However, in some scenarios, there may be a playback conflict between the first audio data and the second audio data. For example, when the first audio data is a call voice and the second audio data is also a call voice, there will be a playback conflict between the call voices from different audio source devices. In this case, the audio playback device can also determine whether there is a playback conflict between the audio data of each channel when receiving multiple channels of audio data.
[0155] by Figure 1 For example, the audio playback device can be Figure 1 The Bluetooth speaker shown. The Bluetooth speaker includes a first set of speakers and a second set of speakers. The first sound source device can be Figure 1 The laptop shown, the second source device is Figure 1 After S603 and before S604, the method provided in the embodiment of the present application may further include the following steps:
[0156] In step S605, the Bluetooth speaker compares the audio type of the second audio data with the audio type of the first audio data to determine whether there is a playback conflict between the second audio data and the first audio data. If there is no playback conflict between the second audio data and the first audio data, the Bluetooth speaker executes step S604 above.
[0157] Here, the audio data types may include notification, voice call, video call, and audio and video. Among them, audio data in the voice call and video call categories may conflict with each other. There may also be a playback conflict between audio data in the voice call category and audio data in the video call category, between audio data in the voice call category and audio data in the voice call category, and between audio data in the video call category and audio data in the video call category.
[0158] Here, in addition to transmitting audio data to the Bluetooth speaker, the laptop or mobile phone can also notify the Bluetooth speaker of the audio type of the audio data. For example, the laptop or mobile phone can include the audio type of the audio data in the audio data transmitted to the Bluetooth speaker. Alternatively, the laptop or mobile phone can send a message containing the audio type of the audio data to the Bluetooth speaker. The Bluetooth speaker can compare the audio type of the second audio data with the audio type of the first audio data to determine whether there is a playback conflict between the second audio data and the first audio data.
[0159] If the first audio data is the audio data corresponding to the TV series played by the laptop computer (i.e., the first audio source device), and the second audio data is the audio data corresponding to the voice message of the mobile phone (i.e., the second audio source device), then the audio type of the first audio data is the audio and video type, and the audio type of the second audio data is the notification type. There is no playback conflict between the audio and video type audio data and the notification type audio data. In this case, the Bluetooth speaker can play the first audio data and the second audio data through different groups of speakers. That is, the above S604 is executed, and the Bluetooth speaker plays the audio data corresponding to the TV series from the laptop computer through the first group of speakers, stops playing the audio data through the second group of speakers, and plays the audio data corresponding to the voice message from the mobile phone through the second group of speakers.
[0160] Based on the audio type of the audio data, the Bluetooth speaker can determine whether there is a playback conflict between the second audio data and the first audio data. If there is no playback conflict, the Bluetooth speaker can play the first and second audio data simultaneously. In this way, the Bluetooth speaker can provide users with a more reasonable multi-channel audio data playback solution.
[0161] In this example, if the second audio data conflicts with the first audio data, the Bluetooth speaker continues to play the first audio data through the first and second speakers. For example, the first audio data is of the voice call type, while the second audio data is of the video call type. There is a playback conflict between audio data for video calls and audio data for voice calls. It is difficult for a user to answer a video call while making a voice call. In this case, the Bluetooth speaker can continue to play the first audio data without playing the second audio data.
[0162] In this way, the Bluetooth speaker can provide a solution to the situation where there is a playback conflict. That is, when there is a playback conflict between the audio type of the first audio data and the audio type of the second audio data, the Bluetooth speaker can only play the first audio data, providing users with a more reasonable multi-channel audio data playback solution.
[0163] In an embodiment of the present application, if an audio playback device receives second audio data from a second audio source device while playing first audio data from a first audio source device, the audio playback device can simultaneously play the first audio data and the second audio data through multiple sets of speakers. The user can hear the first audio data and the second audio data at the same time. To enable the user to listen to audio data at an appropriate playback volume, the embodiment of the present application also provides some implementation methods for setting the playback volume of the first audio data and the second audio data.
[0164] by Figure 1 For example, the audio playback device can be Figure 1 The Bluetooth speaker shown. The Bluetooth speaker includes a first set of speakers and a second set of speakers. The first sound source device can be Figure 1 The laptop shown, the second source device is Figure 1 In the above S604, that is, when the Bluetooth speaker plays the first audio data and the second audio data simultaneously, the method provided in the embodiment of the present application may further include the following steps:
[0165] S606: If the second audio data is notification audio data, the Bluetooth speaker controls the playback volume of the second audio data to be higher than the playback volume of the first audio data.
[0166] In this example, the audio type of the first audio data is different from the audio type of the second audio data. The first audio data is audio data of a voice call, a video call, or an audio and video type. If the second audio data is audio data of a notification type, notification audio data is generally shorter, such as a notification sound or a prompt sound. In order for the second audio data to attract the user's attention, the Bluetooth speaker can control the playback volume of the second audio data to be higher than the playback volume of the first audio data. For example, the Bluetooth speaker can adjust the signal strength of the second audio data to increase the playback volume of the second audio data.
[0167] In this way, when the Bluetooth speaker receives the second audio data of the notification type during the process of playing the first audio data, the Bluetooth speaker can attract the user's attention by increasing the playback volume of the second audio data, thereby providing convenience for the user.
[0168] In some implementations, the Bluetooth speaker can also automatically adjust the playback volume of each audio data channel according to the audio type of each audio data channel. Specifically, if the Bluetooth speaker receives second audio data from a second audio source device while playing the first audio data, the above S604 is executed. In the above S604, when the Bluetooth speaker plays the first audio data and the second audio data simultaneously, the method provided in the embodiment of the present application can also include the following steps:
[0169] S607: The Bluetooth speaker compares the priorities of the audio type of the second audio data and the audio type of the first audio data.
[0170] In this example, the order of priority of audio types from high to low can be: notification type, voice call type or video call type, audio and video type. This priority can be pre-set. In some examples, the Bluetooth speaker can also determine the priority corresponding to the audio type based on the order of user operation instructions.
[0171] S608: If the priority of the audio type of the second audio data is higher than the priority of the audio type of the first audio data, the Bluetooth speaker controls the playback volume of the second audio data to be higher than the playback volume of the first audio data.
[0172] For example, the audio type of the first audio data is audio and video, and the audio type of the second audio data is voice call. The voice call type has a higher priority than the audio and video type. In this case, the Bluetooth speaker can control the playback volume of the second audio data to be higher than the playback volume of the first audio data.
[0173] S609: If the priority of the audio type of the second audio data is lower than the priority of the audio type of the first audio data, the Bluetooth speaker controls the playback volume of the first audio data to be higher than the playback volume of the second audio data.
[0174] For example, the audio type of the first audio data is video call, and the audio type of the second audio data is audio and video. The video call type has a higher priority than the audio and video type. In this case, the Bluetooth speaker can control the playback volume of the first audio data to be higher than the playback volume of the second audio data.
[0175] In some examples, if the priority of the audio type of the second audio data is the same as the priority of the audio type of the first audio data, the Bluetooth speaker may not adjust the playback volume of the first audio data and the second audio data, or may adjust the playback volume of the first audio data and the playback volume of the second audio data to be the same. For example, the audio type of the first audio data is audio and video, and the audio type of the first audio data is audio and video. The priority corresponding to the first audio data is the same as the priority of the second audio data. In this case, the Bluetooth speaker can control the playback volume of the first audio data to be the same as the playback volume of the second audio data.
[0176] In this way, if a Bluetooth speaker receives second audio data while playing first audio data, it can adjust the playback volume of the first or second audio data by comparing the audio type priorities of the first and second audio data. This allows for automatic volume adjustment of audio data from different channels, allowing the first and second audio data to be played at appropriate volumes.
[0177] In other implementations, in order for the user to listen to the audio data at an appropriate playback volume, the user can also adjust the playback volume of the first audio data and / or the second audio data in the embodiments of the present application. The following describes the process of the Bluetooth speaker adjusting the playback volume of the first audio data and / or the second audio data based on user operations through some implementations.
[0178] In one implementation, the user can adjust the playback volume of the first audio data by operating the first audio source device, or adjust the playback volume of the second audio data by operating the second audio source device, thereby adjusting the playback volume of the first audio data and / or the second audio data played by the Bluetooth speaker. Specifically, after the above S604, the method provided in the embodiment of the present application further includes S610 or S611:
[0179] S610, during the simultaneous playback of first audio data and second audio data, the Bluetooth speaker receives a first volume adjustment instruction from the laptop computer. In response to the first volume adjustment instruction, the Bluetooth speaker adjusts the playback volume of the first audio data but does not adjust the playback volume of the second audio data.
[0180] Here, the first volume adjustment instruction may be sent by a laptop computer (i.e., the first audio source device). The first volume adjustment instruction is used to instruct adjustment of the playback volume of the first audio data. For example, the laptop computer may send the first volume adjustment instruction to the Bluetooth speaker based on a user operation to adjust the volume. The Bluetooth speaker adjusts the playback volume of the first audio data in response to the first volume adjustment instruction. For example, in response to the first volume adjustment instruction, the Bluetooth speaker increases or decreases the playback volume of the first audio data without adjusting the playback volume of the second audio data.
[0181] S611, during the simultaneous playback of first audio data and second audio data, the Bluetooth speaker receives a second volume adjustment instruction from the mobile phone. In response to the second volume adjustment instruction, the Bluetooth speaker adjusts the playback volume of the second audio data but does not adjust the playback volume of the first audio data.
[0182] Here, the second volume adjustment instruction may be sent by a mobile phone (i.e., the second audio source device). The second volume adjustment instruction is used to instruct adjustment of the playback volume of the second audio data. For example, the mobile phone may send the second volume adjustment instruction to the Bluetooth speaker based on a user operation to adjust the volume. The Bluetooth speaker adjusts the playback volume of the second audio data in response to the second volume adjustment instruction. For example, in response to the second volume adjustment instruction, the Bluetooth speaker increases or decreases the playback volume of the second audio data without adjusting the playback volume of the first audio data.
[0183] In this way, the Bluetooth speaker can adjust the playback volume of a single channel of audio data among multiple channels of audio data played simultaneously in response to the first volume adjustment instruction or the second volume adjustment instruction.
[0184] In another implementation, the user can also adjust the playback volume of the first audio data and / or the second audio data by operating the Bluetooth speaker while the Bluetooth speaker is playing the first audio data and the second audio data at the same time. Specifically, after the above S604, the method provided in the embodiment of the present application further includes the following steps:
[0185] S612: The Bluetooth speaker receives a volume adjustment operation of the audio playback device by the user.
[0186] S613: In response to the volume adjustment operation, the Bluetooth speaker adjusts the playback volume of the first audio data and / or the second audio data.
[0187] In the example, the Bluetooth speaker adjusts the playback volume of the first audio data, or adjusts the playback volume of the second audio data, or adjusts the playback volume of the first audio data and the second audio data in response to the user's volume adjustment operation.
[0188] For example, a Bluetooth speaker may be provided with a volume adjustment button. When the volume adjustment operation is a long press of the volume adjustment button, the Bluetooth speaker adjusts the playback volume of the first audio data and the second audio data in response to the volume adjustment operation. When the volume adjustment operation is a short press of the volume adjustment button, the Bluetooth speaker adjusts the playback volume of the first audio data in response to the volume adjustment operation. When the volume adjustment operation is a short press of the volume adjustment button twice, the Bluetooth speaker adjusts the playback volume of the second audio data in response to the volume adjustment operation.
[0189] In this way, the Bluetooth speaker can adjust the playback volume of a single channel or multiple channels of audio data among the multiple channels of audio data played simultaneously by the Bluetooth speaker in response to the user's volume adjustment operation.
[0190] In another implementation, the audio playback device may be pre-configured with a master-slave relationship between a laptop computer (i.e., the first audio source device) and a mobile phone (i.e., the second audio source device). The laptop computer is the master device and the mobile phone is the slave device. Alternatively, the laptop computer is the slave device and the mobile phone is the master device. In the first audio data and the second audio data played simultaneously by the Bluetooth speaker, the audio data of the master device may be dominant. It can be understood that the playback volume of the audio data of the master device is higher than that of the audio data of the slave device. The user can use the audio data of the master device as the main audio data to be listened to, and the audio data of the slave device as the background audio data. Specifically, after the above S604, the method provided in the embodiment of the present application further includes the following steps:
[0191] S614 , during the process of simultaneously playing the first audio data and the second audio data, the Bluetooth speaker receives a third volume adjustment instruction from the laptop computer or the mobile phone.
[0192] S615: In response to the third volume adjustment instruction, the Bluetooth speaker adjusts the playback volume of the first audio data and the second audio data, so that the playback volume of the audio data from the master device is higher than the playback volume of the audio data from the slave device.
[0193] It is understandable that the pre-configured master-slave relationship among multiple audio source devices connected to the Bluetooth speaker at the same time can be implemented in a variety of ways. For example, if there is a target audio source device among the multiple audio source devices, such as a mobile phone, the Bluetooth speaker can default to the target audio source device as the master device. For another example, the Bluetooth speaker can use the audio source device that first establishes a Bluetooth connection with the Bluetooth speaker as the master device, and the other audio source devices that establish Bluetooth connections later as slave devices. For another example, the Bluetooth speaker can confirm the master-slave relationship among multiple audio source devices based on the master-slave relationship setting instruction sent by any audio source device. The master-slave relationship setting instruction can be triggered based on a user operation to set the master-slave relationship.
[0194] In this example, the third volume adjustment instruction can be triggered by a user operation on a laptop or mobile phone to adjust the volume. The third volume adjustment instruction can be used to instruct adjustment of the playback volume of the first audio data or the second audio data. If a pre-configured master-slave relationship exists between the laptop and the mobile phone, the Bluetooth speaker can adjust the playback volume of both the first audio data and the second audio data in response to the third volume adjustment instruction. After the adjustment, the playback volume of the audio data on the master device is higher than the playback volume of the audio data on the slave device.
[0195] In this way, when there is a master device among multiple audio source devices, when the user adjusts the playback volume of the audio data of any of the multiple audio source devices, the Bluetooth speaker will also adjust the playback volume of the audio data of the multiple audio source devices at the same time. In this way, the playback volume of the audio data played by the Bluetooth speaker is relatively stable, and the audio data of the master device is played at the highest volume, so that the user can hear the audio data of the master device clearly.
[0196] It is understood that among the multiple audio source devices connected to the Bluetooth speaker, there is only one master device, and all other audio source devices except the master device are slave devices. If the Bluetooth speaker receives a master-slave relationship setting instruction after receiving it, and then receives another master-slave relationship setting instruction, the Bluetooth speaker may use the audio source device indicated by the last received master-slave relationship setting instruction as the master device.
[0197] The following is an example of the process of adjusting the playback volume of audio data in the embodiment of the present application. In the example, the laptop sends a third volume adjustment instruction to the Bluetooth speaker according to the user's operation of adjusting the volume. Figure 9 As shown, the method provided in the embodiment of the present application may include:
[0198] S901: While the Bluetooth speaker is playing first audio data and second audio data simultaneously, it receives a third volume adjustment instruction from a laptop computer.
[0199] In the example, the third volume adjustment instruction is used to instruct to adjust the playback volume of the first audio data from the laptop computer. The Bluetooth speaker receives the third volume adjustment instruction while playing the first audio data and the second audio data simultaneously.
[0200] S902, if a master-slave relationship is pre-configured in the laptop computer and the mobile phone, the Bluetooth speaker adjusts the playback volume of the first audio data and the second audio data in response to the third volume adjustment instruction, so that the playback volume of the audio data from the master device is higher than the playback volume of the audio data from the slave device.
[0201] In this example, if a master-slave relationship is preconfigured between the laptop and the mobile phone, the Bluetooth speaker simultaneously raises or lowers the playback volume of the first and second audio data in response to the third volume adjustment command. After the adjustment, the playback volume of the audio data from the master device is higher than the playback volume of the audio data from the slave device. This way, the audio data from the master device plays at the highest volume, allowing the user to clearly hear the audio data from the master device.
[0202] S903: If a master-slave relationship is not pre-configured between the laptop computer and the mobile phone, the Bluetooth speaker adjusts the playback volume of the first audio data in response to the third volume adjustment instruction.
[0203] In this example, if there is no master-slave relationship between the laptop and the mobile phone, the Bluetooth speaker responds to the third volume adjustment instruction by increasing or decreasing the playback volume of the audio data indicated by the third volume adjustment instruction, that is, increasing or decreasing the playback volume of the first audio data. In this way, if there is no master device among the multiple audio source devices connected to the Bluetooth speaker, the Bluetooth speaker can adjust the playback volume corresponding to any one or more audio source devices from the multiple audio source devices.
[0204] Here, the Bluetooth speaker can use different volume adjustment schemes according to whether there is a master-slave relationship among multiple audio source devices. In this way, the Bluetooth speaker can provide users with multiple optional schemes to meet their diverse needs for the volume of multi-channel audio data playback.
[0205] In another solution of the embodiment of the present application, the audio playback device can play audio data obtained by synthesizing multiple audio data from multiple audio source devices to achieve simultaneous playback of multiple audio data from multiple audio source devices.
[0206] In one implementation, an audio playback device can synthesize multiple audio data from multiple audio source devices. For example, if the multiple audio source devices include a first audio source device and a second audio source device, the audio playback device receives second audio data from the second audio source device while playing the first audio data from the first audio source device. The audio playback device can synthesize the first audio data and the second audio data, and play the synthesized first and second audio data to obtain target audio data, thereby achieving simultaneous playback of multiple channels of audio data from the multiple audio source devices. For ease of description, the audio data synthesized from the first and second audio data can be referred to as the target audio data.
[0207] by Figure 1 For example, the audio playback device can be Figure 1 The first audio source device can be the Bluetooth speaker shown. Figure 1 The laptop shown, the second source device is Figure 1The mobile phone shown in the figure has Bluetooth connections with the laptop and mobile phone respectively. Figure 1 The application scenario shown here introduces the method of the embodiment of the present application. Figure 10 As shown, the audio playback method provided in the embodiment of the present application may include the following steps:
[0208] S1001: The laptop computer transmits first audio data to the Bluetooth speaker.
[0209] Here, when the user uses a laptop computer to play the first audio data, the laptop computer sends the first audio data to the Bluetooth speaker via a Bluetooth connection.
[0210] S1002: The Bluetooth speaker plays the first audio data transmitted by the laptop computer.
[0211] Here, after receiving the first audio data transmitted by the laptop, the Bluetooth speaker may process the first audio data. For example, the Bluetooth speaker may convert the first audio data as a digital signal into the first audio data as an analog signal. The Bluetooth speaker may then play the processed first audio data.
[0212] S1003: While the Bluetooth speaker is playing the first audio data, the mobile phone sends the second audio data to the Bluetooth speaker.
[0213] Here, when the user plays the first audio data through the laptop, he can operate the mobile phone to play the second audio data. At this time, the mobile phone responds to the user's operation of playing the second audio data and sends the second audio data to the Bluetooth speaker.
[0214] S1004: The Bluetooth speaker synthesizes the first audio data and the second audio data to obtain target audio data.
[0215] Here, the Bluetooth speaker can process the first audio data and the second audio data at the same time. For example, the Bluetooth speaker converts the first audio data of the digital signal into the first audio data of the analog signal, and converts the second audio data of the digital signal into the second audio data of the analog signal. After processing, the first audio data and the second audio data of the analog signal are merged into one channel of target audio data. For example, the Bluetooth speaker can superimpose the first audio data and the second audio data to obtain the target audio data. Alternatively, the Bluetooth speaker can synthesize the first audio data and the second audio data through some audio synthesis algorithms, such as the Straight algorithm and the Tacotron algorithm, to obtain the target audio data.
[0216] S1005: The Bluetooth speaker plays the target audio data.
[0217] In this example, when the Bluetooth speaker plays the target audio data, the user can hear the first audio data and the second audio data at the same time. In this way, by combining multiple audio channels into one audio channel, the Bluetooth speaker can play multiple audio channels of multiple audio source devices at the same time.
[0218] In another implementation, the first audio source device or the second audio source device may synthesize the target audio data from multiple audio source devices, and the audio playback device may obtain the synthesized multiple audio data from the first audio source device or the second audio source device to obtain the target audio data.
[0219] Here, taking the example of multiple audio source devices including a first audio source device and a second audio source device, the audio playback device obtains the target audio data obtained by synthesizing the first audio data and the second audio data from the first audio source device or the second audio source device, which can be implemented in various ways:
[0220] For example, while playing first audio data, the audio playback device receives second audio data from a second audio source device. After receiving the second audio data, the audio playback device can send the second audio data to the first audio source device, instructing the first audio source device to synthesize the first audio data and the second audio data. After receiving the second audio data sent by the audio playback device, the first audio source device can synthesize the first audio data and the second audio data to obtain target audio data, and send the target audio data to the audio playback device. The audio playback device can then receive the target audio data from the first audio source device.
[0221] Alternatively, after receiving the second audio data from the second audio source device, the audio playback device may send the first audio data to the second audio source device, instructing the second audio source device to synthesize the first audio data and the second audio data. After receiving the first audio data sent by the audio playback device, the second audio source device may synthesize the first audio data and the second audio data to obtain target audio data, and send the target audio data to the audio playback device. The audio playback device may then receive the target audio data from the second audio source device.
[0222] Alternatively, after receiving the second audio data from the second sound source device, the audio playback device may instruct the second sound source device to send the second audio data to the first sound source device, and the first sound source device may synthesize the first audio data and the second audio data. In response to the instruction of the audio playback device, the second sound source device sends the second audio data to the first sound source device. After receiving the second audio data sent by the second sound source device, the first sound source device may synthesize the first audio data and the second audio data to obtain target audio data, and send the target audio data to the audio playback device. The audio playback device may then receive the target audio data from the first sound source device.
[0223] Alternatively, after receiving the second audio data from the second audio source device, the audio playback device may instruct the first audio source device to send the first audio data to the second audio source device, and the second audio source device may synthesize the first audio data and the second audio data. In response to the instruction of the audio playback device, the first audio source device sends the second audio data to the second audio source device. After receiving the first audio data sent by the first audio source device, the second audio source device may synthesize the first audio data and the second audio data to obtain target audio data, and send the target audio data to the audio playback device. The audio playback device may then receive the target audio data from the second audio source device.
[0224] Alternatively, a master-slave relationship is pre-configured in multiple audio source devices. For an explanation of the master-slave relationship, please refer to the description of the master-slave relationship in S615 above, which will not be repeated here. In this case, if there is audio data to be played on the slave devices in the first audio source device and the second audio source device, the slave device can send audio data directly to the master device after confirming that the master device has established a connection with the Bluetooth speaker and has also established a connection with the master device (such as a Bluetooth connection or a mobile hotspot connection). The master device synthesizes the first audio data and the second audio data to obtain the target audio data.
[0225] It is understandable that the audio playback device can reduce power consumption of the audio playback device and improve the battery life of the audio playback device by synthesizing the target audio data through the first audio source device or the second audio source device.
[0226] The following combination Figure 1 The application scenario shown takes the audio playback device as a Bluetooth speaker, the first audio source device as a laptop computer, and the second audio source device as a mobile phone as an example to introduce the method of the embodiment of the present application. The Bluetooth speaker establishes Bluetooth connections with the laptop computer and the mobile phone respectively. If the Bluetooth speaker receives the second audio data during the process of playing the first audio data, the Bluetooth speaker instructs the mobile phone (i.e., the second audio source device) to send the second audio data to the laptop computer (i.e., the first audio data and the second audio data) and the laptop computer synthesizes the first audio data and the second audio data. Figure 11As shown, the audio playback method provided in the embodiment of the present application may include the following steps:
[0227] S1101: The laptop computer transmits first audio data to the Bluetooth speaker.
[0228] S1102: The Bluetooth speaker plays the first audio data transmitted by the laptop computer.
[0229] S1103: While the Bluetooth speaker is playing the first audio data, the mobile phone sends the second audio data to the Bluetooth speaker.
[0230] It can be understood that the description of S1101-S1103 can refer to the description of S1001-S1003 above, and will not be repeated here.
[0231] S1104: The Bluetooth speaker instructs the mobile phone to send second audio data to the laptop computer, and the laptop computer synthesizes the first audio data and the second audio data.
[0232] For example, while playing first audio data, the Bluetooth speaker receives a play request from the mobile phone. The play request may include second audio data. In response to the play request, the Bluetooth speaker instructs the mobile phone to send the second audio data to the laptop computer.
[0233] S1105 , the mobile phone sends second audio data to the laptop computer in response to the instruction of the Bluetooth speaker.
[0234] For example, in response to the instruction of the Bluetooth speaker, the mobile phone can establish a connection with the laptop (such as establishing a Bluetooth connection or a mobile hotspot connection) and send the second audio data to the laptop. Alternatively, if the mobile phone and the laptop are already connected, the mobile phone can directly send the second audio data to the laptop in response to the instruction of the Bluetooth speaker.
[0235] S1106 , the laptop computer synthesizes the first audio data and the second audio data to obtain target audio data.
[0236] For example, the laptop computer may superimpose the first audio data and the second audio data to obtain the target audio data. Alternatively, the laptop computer may synthesize the first audio data and the second audio data using some audio synthesis algorithms, such as the Straight algorithm or the Tacotron algorithm, to obtain the target audio data.
[0237] S1107: The laptop computer sends target audio data to the Bluetooth speaker.
[0238] Here, after merging the multi-channel audio data to obtain the target audio data, the laptop computer sends the synthesized target audio data to the Bluetooth speaker.
[0239] S1108: The Bluetooth speaker receives and plays the target audio data.
[0240] Here, after receiving the target audio data transmitted by the laptop, the Bluetooth speaker can process the target audio data. For example, the Bluetooth speaker converts the target audio data into an analog signal. The Bluetooth speaker can then play the target audio data.
[0241] In this way, the Bluetooth speaker can synthesize the first audio data and the second audio data through the audio source device to achieve simultaneous playback of multiple audio data.
[0242] In some implementations, there may be a playback conflict between the first audio data and the second audio data. For example, if the first audio data is a call voice and the second audio data is also a call voice, there will be a playback conflict between the call voices from different audio source devices. In this case, the audio playback device can compare the audio type of the second audio data with the audio type of the first audio data to determine whether there is a playback conflict between the second audio data and the first audio data. If there is no playback conflict between the second audio data and the first audio data, the audio playback device plays the target audio data obtained by synthesizing the first audio data and the second audio data.
[0243] For example, the audio type of the first audio data is a voice call type, and the audio type of the second audio data is a notification type. There is no playback conflict between the audio data of the voice call type and the audio data of the notification type.
[0244] Regarding the implementation method of synthesizing multiple audio data to obtain target audio data by an audio playback device, the audio playback device can synthesize the first audio data and the second audio data to obtain the target audio data and play the target audio data when there is no playback conflict between the second audio data and the first audio data.
[0245] Regarding the implementation method of synthesizing multiple audio data to obtain target audio data by a first audio source device or a second audio source device, upon receiving audio data from another audio source device, the first audio source device or the second audio source device can determine whether there is a playback conflict between the second audio data and the first audio data. If there is no playback conflict between the second audio data and the first audio data, the first audio source device or the second audio source device synthesizes the first audio data and the second audio data, and sends the synthesized target audio data to the audio playback device. The audio playback device can play the target audio data synthesized from the first audio data and the second audio data.
[0246] By using the audio type of the audio data, the audio playback device can play the target audio data synthesized by the first audio data and the second audio data without any playback conflicts, thereby achieving simultaneous playback of multiple audio channels. In this way, the audio playback device can provide users with a more reasonable multi-channel audio data playback solution.
[0247] For another example, the audio type of the first audio data is a voice call type, and the audio type of the second audio data is a video call type. There is a playback conflict between the audio data of the video call type and the audio data of the voice call type. It is difficult for a user to answer a video call while making a voice call. In this case, for the implementation method in which the audio playback device synthesizes multiple channels of audio data to obtain target audio data, the audio playback device may not synthesize the target audio data and continue to play the first audio data. For the implementation method in which the first sound source device or the second sound source device synthesizes multiple channels of audio data to obtain target audio data, the first sound source device or the second sound source device does not synthesize the target audio data and only sends one channel of audio data, such as the first audio data, to the audio playback device. The audio playback device may continue to play the first audio data.
[0248] In this way, a solution can be provided for situations where there is a playback conflict. That is, when there is a playback conflict between the audio type of the first audio data and the audio type of the second audio data, the audio playback device can only play the first audio data, providing users with a more reasonable multi-channel audio data playback solution.
[0249] In the embodiment of the present application, in order to allow the user to listen to audio data with an appropriate playback volume, the following introduces the method of setting the playback volume of the first audio data and the second audio data in the embodiment of the present application through some implementation methods.
[0250] In one implementation, for an implementation in which an audio playback device synthesizes multiple channels of audio data to obtain target audio data, the audio playback device may automatically adjust the playback volume of the first audio data and the second audio data.
[0251] For example, if the second audio data is notification-type audio data, the audio playback device controls the playback volume of the second audio data to be higher than the playback volume of the first audio data when synthesizing the first audio data and the second audio data. For example, after receiving the second audio data, the audio playback device can first amplify the signal strength of the second audio data, and then synthesize the first audio data and the second audio data, thereby increasing the playback volume of the second audio data. In this way, if the audio playback device receives the second audio data of the notification type while playing the first audio data, the audio playback device can increase the playback volume of the second audio data during the synthesis, so that the second audio data attracts the user's attention and provides convenience for the user.
[0252] For another example, the audio playback device may also compare the priority of the audio type of the second audio data and the audio type of the first audio data, and automatically adjust the playback volume of each audio data according to the audio type of each audio data. The first audio data and the second audio data may be played at appropriate playback volumes.
[0253] If the priority of the audio type of the second audio data is higher than the priority of the audio type of the first audio data, the audio playback device controls the playback volume of the second audio data to be higher than the playback volume of the first audio data when synthesizing the first audio data and the second audio data. For example, the audio type of the first audio data is audio and video, and the audio type of the second audio data is voice call. The priority of the voice call type is higher than the priority of the audio and video type. In this case, the audio playback device can amplify the signal strength of the second audio data when synthesizing the first audio data and the second audio data, and control the playback volume of the second audio data to be higher than the playback volume of the first audio data.
[0254] If the priority of the audio type of the second audio data is lower than the priority of the audio type of the first audio data, the audio playback device controls the playback volume of the first audio data to be higher than the playback volume of the second audio data when synthesizing the first audio data and the second audio data. For example, the audio type of the first audio data is a video call type, and the audio type of the second audio data is an audio and video type. The priority of the video call type is higher than the priority of the audio and video type. In this case, the audio playback device can amplify the signal strength of the first audio data when synthesizing the first audio data and the second audio data, and control the playback volume of the first audio data to be higher than the playback volume of the second audio data.
[0255] If the priority of the audio type of the second audio data is the same as the priority of the audio type of the first audio data, the audio playback device may not adjust the playback volume of the first audio data and the second audio data, or may adjust the playback volume of the first audio data and the playback volume of the second audio data to be the same. For example, the audio type of the first audio data is audio and video, and the audio type of the first audio data is audio and video. The priority corresponding to the first audio data is the same as the priority of the second audio data. In this case, the audio playback device can control the playback volume of the first audio data to be the same as the playback volume of the second audio data.
[0256] It is understandable that the description of the priority of the audio type can refer to the description in S606 above, which will not be repeated here.
[0257] For the implementation method of the first sound source device or the second sound source device synthesizing multiple audio data to obtain target audio data, the first sound source device or the second sound source device can also automatically adjust the playback volume of the first audio data and / or the second audio data. Specifically, after receiving the second audio data, the first sound source device can automatically adjust the playback volume of the first audio data and / or the second audio data when synthesizing the first audio data and the second audio data. Alternatively, after receiving the first audio data, the second sound source device automatically adjusts the playback volume of the first audio data and / or the second audio data when synthesizing the first audio data and the second audio data. The implementation method of the first sound source device and the second sound source device automatically adjusting the playback volume can be the same as the implementation method of the audio playback device automatically adjusting the playback volume. Please refer to the description of the automatic adjustment of the playback volume of the audio playback device above, which will not be repeated here.
[0258] In another implementation, in order for the user to listen to the audio data at an appropriate playback volume, in an embodiment of the present application, the user can also adjust the playback volume of the first audio data and / or the second audio data.
[0259] Regarding the implementation method in which the audio playback device synthesizes multiple audio data to obtain target audio data, the audio playback device adjusts the playback volume of the first audio data and / or the second audio data when synthesizing the first audio data and the second audio data.
[0260] For example, during the process of playing target audio data, the audio playback device receives a first volume adjustment instruction from the first sound source device. The first volume adjustment instruction is used to instruct to adjust the playback volume of the first audio data. In response to the first volume adjustment instruction, the audio playback device adjusts the playback volume of the first audio data when synthesizing the first audio data and the second audio data, and does not adjust the playback volume of the second audio data. For example, in response to the first volume adjustment instruction, the audio playback device amplifies or reduces the signal strength of the first audio data when synthesizing the first audio data and the second audio data, and does not adjust the signal strength of the second audio data, thereby adjusting the playback volume of the first audio data.
[0261] For another example, during the process of playing the target audio data, the audio playback device receives a second volume adjustment instruction from the second audio source device. The second volume adjustment instruction is used to instruct to adjust the playback volume of the second audio data. In response to the second volume adjustment instruction, the audio playback device adjusts the playback volume of the second audio data when synthesizing the first audio data and the second audio data, and does not adjust the playback volume of the first audio data. For example, in response to the second volume adjustment instruction, the audio playback device amplifies or reduces the signal strength of the second audio data when synthesizing the first audio data and the second audio data, without adjusting the signal strength of the first audio data, thereby adjusting the playback volume of the second audio data.
[0262] In this manner, the audio playback device can adjust the playback volume of a single channel of audio data among multiple channels of audio data received simultaneously in response to the first volume adjustment instruction or the second volume adjustment instruction. The user can adjust the playback volume of the first audio data or the second audio data being simultaneously played by the audio playback device by operating the first audio source device to adjust the playback volume of the first audio data, or by operating the second audio source device to adjust the playback volume of the second audio data.
[0263] For another example, the audio playback device may receive a volume adjustment operation from the user and, in response to the volume adjustment operation, adjust the playback volume of the first audio data and / or the second audio data when synthesizing the first audio data and the second audio data.
[0264] For example, in response to a user's long press of the volume adjustment button, the audio playback device adjusts the playback volume of the first audio data and the second audio data when synthesizing the first audio data and the second audio data. In response to a user's short press of the volume adjustment button, the audio playback device adjusts the playback volume of the first audio data when synthesizing the first audio data and the second audio data. In response to a user's short press of the volume adjustment button twice, the audio playback device adjusts the playback volume of the second audio data when synthesizing the first audio data and the second audio data.
[0265] In this way, the audio playback device can adjust the playback volume of a single channel or multiple channels of audio data among multiple channels of audio data played simultaneously in response to the user's volume adjustment operation.
[0266] Regarding the implementation method in which the first sound source device or the second sound source device synthesizes multiple audio data to obtain target audio data, the first sound source device or the second sound source device may also adjust the playback volume of the first audio data and / or the second audio data when synthesizing the multiple audio data.
[0267] Take the example of a first sound source device synthesizing multiple audio data to obtain target audio data. During the process of the audio playback device playing the target audio data, if the first sound source device receives a volume adjustment operation from the user (such as an instruction to adjust the playback volume of the first audio data), the first sound source device responds to the volume adjustment operation and adjusts the playback volume of the first audio data when synthesizing the first audio data and the second audio data. During the process of the audio playback device playing the target audio data, if the first sound source device receives a volume adjustment instruction sent by the audio playback device or the second sound source device (such as an instruction to adjust the playback volume of the second audio data), the first sound source device responds to the volume adjustment instruction and adjusts the playback volume of the second audio data when synthesizing the first audio data and the second audio data.
[0268] It can be understood that, with regard to the implementation method in which the first audio source device or the second audio source device synthesizes multiple audio data to obtain target audio data, reference can be made to the description of the audio playback device adjusting the playback volume of the first audio data and / or the second audio data in the implementation method in which the audio playback device synthesizes multiple audio data to obtain target audio data, which will not be repeated here.
[0269] In another implementation, as described above, the audio playback device may also be pre-configured with a master-slave relationship between the first audio source device and the second audio source device. The first audio source device is the master device, and the second audio source device is the slave device. Alternatively, the first audio source device is the slave device, and the second audio source device is the master device.
[0270] In an implementation method in which an audio playback device synthesizes multiple audio data channels to obtain target audio data, the audio playback device can simultaneously adjust the playback volume of the first audio data and the second audio data when synthesizing the first audio data and the second audio data. After the adjustment, the playback volume of the audio data from the master device is higher than the playback volume of the audio data from the slave device.
[0271] For example, while playing target audio data, the audio playback device receives a third volume adjustment instruction from a first audio source device or a second audio source device. The third volume adjustment instruction may be triggered by a user operation of the first audio source device or the second audio source device to adjust the volume. In response to the third volume adjustment instruction, the audio playback device adjusts the playback volume of the first audio data and the second audio data when synthesizing the first audio data and the second audio data, so that the playback volume of the audio data from the master device is higher than the playback volume of the audio data from the slave device.
[0272] In an implementation method in which a first audio source device or a second audio source device synthesizes multiple audio data channels to obtain target audio data, a master device among the first and second audio source devices synthesizes the first and second audio data channels to obtain the target audio data. While synthesizing the first and second audio data channels, the master device can simultaneously adjust the playback volume of the first and second audio data channels. After the adjustment, the playback volume of the audio data from the master device is higher than the playback volume of the audio data from the slave device.
[0273] For example, the master device and the slave device are connected wirelessly (such as a Bluetooth connection or a hotspot connection). When there is audio data to be played on the slave device, the audio data to be played can be sent to the master device. The master device synthesizes the first audio data and the second audio data to obtain target audio data, and sends the target audio data to the audio playback device. The audio playback device receives and plays the target audio data. If the master device receives a volume adjustment instruction (the instruction can be sent by the audio playback device or the slave device), the master device can adjust the playback volume of the first audio data and the second audio data at the same time when synthesizing the first audio data and the second audio data. For example, the signal strength of the first audio data and the second audio data is adjusted at the same time. After adjustment, the playback volume of the audio data of the master device is greater than the playback volume of the audio data of the slave device.
[0274] In this way, the playback volume of each channel of audio data played by the audio playback device is relatively stable, and the playback volume of the audio data of the master device is the largest, so that the user can hear the audio data of the master device clearly.
[0275] In some implementations, the audio playback device can determine whether to use the multi-channel audio playback mode or the single-channel audio playback mode based on the playback mode selected by the user. If the playback mode selected by the user is the multi-channel audio playback mode, if the audio playback device receives the second audio data while playing the first audio data, the audio playback device can play the first audio data and the second audio data at the same time. If the playback mode selected by the user is the single-channel audio playback mode, if the audio playback device receives the second audio data while playing the first audio data, the audio playback device can pause playing the first audio data and play the second audio data instead. In this way, the audio playback device can switch between the multi-channel audio playback mode and the single-channel audio playback mode according to the playback mode set by the user, thereby meeting the user's diverse audio playback needs and improving the user experience.
[0276] Some other embodiments of the present application provide an audio playback device, which includes: a memory and one or more processors. The memory is coupled to the processor. The memory stores computer program code, which includes computer instructions. When the computer instructions are executed by the processor, the audio playback device can perform various functions or steps in the above method embodiments. The structure of the audio playback device can refer to Figure 4 The structure of the TWS earphones shown.
[0277] An embodiment of the present application also provides a chip system, which includes at least one processor and at least one interface circuit. The processor and the interface circuit can be interconnected through lines. For example, the interface circuit can be used to receive signals from other devices (such as the memory of an audio playback device). For another example, the interface circuit can be used to send signals to other devices (such as a processor). Exemplarily, the interface circuit can read instructions stored in the memory and send the instructions to the processor. When the instructions are executed by the processor, the audio playback device can execute the various steps in the above embodiments. Of course, the chip system can also include other discrete components, which is not specifically limited in the embodiment of the present application.
[0278] An embodiment of the present application further provides a computer-readable storage medium, which includes computer instructions. When the computer instructions are executed on the above-mentioned audio playback device, the audio playback device executes each function or step in the above-mentioned method embodiment.
[0279] The embodiment of the present application further provides a computer program product, which, when executed on a computer, enables the computer to execute each function or step in the above method embodiment.
[0280] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0281] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the modules or units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0282] The units described as separate components may or may not be physically separate, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple places. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0283] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.
[0284] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0285] The above content is only a specific embodiment of this application, but the scope of protection of this application is not limited to this. Any changes or replacements within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.
Claims
1. An audio playback method, characterized in that: The method is applied to an audio playback device, the audio playback device including a first group of speakers and a second group of speakers, the first group of speakers including at least one speaker, the second group of speakers including at least one speaker, the audio playback device being connected to a first sound source device, and the audio playback device being connected to a second sound source device; the method comprising: receiving first audio data from the first audio source device, and playing the first audio data through the first group of speakers and the second group of speakers; During playback of the first audio data, receiving the second audio data from the second audio source device, comparing the audio type of the second audio data with the audio type of the first audio data, and determining whether there is a playback conflict between the second audio data and the first audio data; wherein the audio data of a voice call and the audio data of a video call conflict with each other; If there is no playback conflict between the second audio data and the first audio data, the first audio data is played through the first group of speakers, the first audio data is stopped from being played through the second group of speakers, and the second audio data is played through the second group of speakers.
2. The method according to claim 1, characterized in that The audio playback device is a Bluetooth headset, and the Bluetooth headset includes a first earplug and a second earplug; The first group of speakers includes at least two speakers, a portion of the speakers in the first group of speakers is disposed in the first earplug, and another portion of the speakers in the first group of speakers is disposed in the second earplug; The second group of speakers includes at least two speakers, a portion of the speakers in the second group of speakers is arranged in the first earplug, and another portion of the speakers in the second group of speakers is arranged in the second earplug.
3. The method according to claim 1 or 2, characterized in that The method further comprises: If there is a playback conflict between the second audio data and the first audio data, the first audio data continues to be played through the first group of speakers and the second group of speakers.
4. The method according to claim 1 or 2, characterized in that The first audio data is audio data of a voice call, a video call, or an audio and video type; the method further includes: If the second audio data is notification audio data, the playback volume of the second audio data is controlled to be higher than the playback volume of the first audio data.
5. The method according to claim 1 or 2, characterized in that The method further comprises: comparing priorities of an audio type of the second audio data and an audio type of the first audio data; If the priority of the audio type of the second audio data is higher than the priority of the audio type of the first audio data, controlling the playback volume of the second audio data to be higher than the playback volume of the first audio data; If the priority of the audio type of the second audio data is lower than the priority of the audio type of the first audio data, controlling the playback volume of the first audio data to be higher than the playback volume of the second audio data; The order of priority from high to low is: notification category, voice call category or video call category, and audio and video category.
6. The method according to claim 1 or 2, characterized in that The method further comprises: During the simultaneous playback of the first audio data and the second audio data, a first volume adjustment instruction is received from the first audio source device, and in response to the first volume adjustment instruction, the playback volume of the first audio data is adjusted, while the playback volume of the second audio data is not adjusted; or During the simultaneous playback of the first audio data and the second audio data, a second volume adjustment instruction is received from the second audio source device. In response to the second volume adjustment instruction, the playback volume of the second audio data is adjusted, and the playback volume of the first audio data is not adjusted.
7. The method according to claim 1 or 2, characterized in that The method further comprises: receiving a volume adjustment operation of the audio playback device by a user; In response to the volume adjustment operation, the playback volume of the first audio data and / or the second audio data is adjusted.
8. The method according to claim 1 or 2, characterized in that The audio playback device is pre-configured with a master-slave relationship between the first audio source device and the second audio source device, wherein the first audio source device is a master device and the second audio source device is a slave device; Alternatively, the first audio source device is a slave device, and the second audio source device is a master device; and the method further comprises: During the simultaneous playback of the first audio data and the second audio data, a third volume adjustment instruction is received from the first audio source device or the second audio source device; In response to the third volume adjustment instruction, the playback volume of the first audio data and the second audio data is adjusted; wherein, after adjustment, the playback volume of the audio data from the master device is higher than the playback volume of the audio data from the slave device.
9. The method according to claim 1, characterized in that The audio playback device is a Bluetooth headset, which includes a first earplug and a second earplug, the first group of speakers is set in the first earplug, and the second group of speakers is set in the second earplug; Wherein, during the process of playing the first audio data, if the second audio data is received from the second audio source device, the first audio data is played through the first group of speakers, the first audio data is stopped from being played through the second group of speakers, and the second audio data is played through the second group of speakers, including: During the process of playing the first audio data, second audio data is received from the second audio source device. If both the first earbud and the second earbud are in the worn state, the first audio data is played through the first group of speakers set in the first earbud, the first audio data is stopped from being played through the second group of speakers set in the second earbud, and the second audio data is played through the second group of speakers set in the second earbud.
10. An audio playback method, characterized in that: Applied to an audio playback device, the audio playback device is connected to a first sound source device, and the audio playback device is connected to a second sound source device; the method includes: receiving first audio data from the first audio source device and playing the first audio data; During the process of playing the first audio data, if the second audio data is received from the second audio source device, target audio data obtained by synthesizing the first audio data and the second audio data is played.
11. The method according to claim 10, characterized in that The playing of the target audio data obtained by synthesizing the first audio data and the second audio data includes: The first audio data and the second audio data are synthesized to obtain the target audio data, and the target audio data is played.
12. The method according to claim 10, characterized in that The playing of the target audio data obtained by synthesizing the first audio data and the second audio data includes: Acquire the target audio data obtained by synthesizing the first audio data and the second audio data from the first audio source device or the second audio source device; Play the target audio data.
13. The method according to claim 12, characterized in that The acquiring, from the first audio source device or the second audio source device, the target audio data obtained by synthesizing the first audio data and the second audio data comprises: sending the second audio data to the first audio source device, instructing the first audio source device to synthesize the first audio data and the second audio data; receiving the target audio data from the first audio source device; or sending the first audio data to the second audio source device, instructing the second audio source device to synthesize the first audio data and the second audio data; receiving the target audio data from the second audio source device; or instructing the second audio source device to send the second audio data to the first audio source device, and for the first audio source device to synthesize the first audio data and the second audio data; receiving the target audio data from the first audio source device; or, Instruct the first sound source device to send the first audio data to the second sound source device, and the second sound source device to synthesize the first audio data and the second audio data; and receive the target audio data from the second sound source device.
14. The method according to any one of claims 10 to 13, characterized in that The playing of the target audio data obtained by synthesizing the first audio data and the second audio data includes: Comparing the audio type of the second audio data with the audio type of the first audio data, and determining whether there is a playback conflict between the second audio data and the first audio data; wherein the audio data of the voice call type and the audio data of the video call type have a playback conflict with each other; If there is no playback conflict between the second audio data and the first audio data, the target audio data obtained by synthesizing the first audio data and the second audio data is played.
15. The method according to claim 10 or 11, characterized in that The method further comprises: comparing priorities of an audio type of the second audio data and an audio type of the first audio data; If the priority of the audio type of the second audio data is higher than the priority of the audio type of the first audio data, controlling the playback volume of the second audio data to be higher than the playback volume of the first audio data when synthesizing the first audio data and the second audio data; If the priority of the audio type of the second audio data is lower than the priority of the audio type of the first audio data, controlling the playback volume of the first audio data to be higher than the playback volume of the second audio data when synthesizing the first audio data and the second audio data; The order of priority from high to low is: notification category, voice call category or video call category, and audio and video category.
16. The method according to claim 10 or 11, characterized in that The audio playback device is pre-configured with a master-slave relationship between the first audio source device and the second audio source device, wherein the first audio source device is a master device and the second audio source device is a slave device; Alternatively, the first audio source device is a slave device, and the second audio source device is a master device; and the method further comprises: During the playback of the target audio data, a third volume adjustment instruction is received from the first audio source device or the second audio source device; In response to the third volume adjustment instruction, the playback volume of the first audio data and the second audio data is adjusted when synthesizing the first audio data and the second audio data; wherein, after adjustment, the playback volume of the audio data from the master device is higher than the playback volume of the audio data from the slave device.
17. An audio playback device, characterized in that: include: A memory, a communication module, a speaker, and one or more processors; the memory, the communication module, the speaker, and the processor are coupled; wherein the communication module is used to transmit data or signaling with the first audio source device or the second audio source device; and the speaker is used to play audio data. Wherein, the memory stores computer program code, which includes computer instructions. When the computer instructions are executed by the processor, the audio playback device executes the method as described in any one of claims 1 to 9; or, when the computer instructions are executed by the processor, the audio playback device executes the method as described in any one of claims 10 to 16.
18. A computer-readable storage medium, characterized in that The method comprises computer instructions, which, when executed on an audio playback device, cause the audio playback device to execute the method as described in any one of claims 1 to 9; or, when executed on an audio playback device, cause the audio playback device to execute the method as described in any one of claims 10 to 16.
Citation Information
Patent Citations
Audio playing method and device, electronic equipment, computer readable medium and product
CN113885827A
Sound effect control method and device, electronic equipment and computer readable storage medium
CN114466107A