Sound source switching method, Bluetooth audio receiving device, sound source device and playback system

By switching the sound source in the Bluetooth audio receiving device, the problem of interruption of audio data transmission when users move between different rooms is solved, and timely switching between data roaming and audio source devices is realized, improving the user experience.

CN115086925BActive Publication Date: 2025-07-11GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202110276638.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-15
Publication Date
2025-07-11
Estimated Expiration
2041-03-15

AI Technical Summary

Technical Problem

In Bluetooth audio systems, when users move between different rooms, the audio data transmission is easily interrupted, affecting the user experience.

Method used

By switching the sound source in the Bluetooth audio receiving device, the audio data of the sound source device is received, the audio playback information is obtained and the timing is sent to the second sound source device to obtain the second audio data, the switching of the sound source device is realized, and the data roaming is ensured.

Benefits of technology

It realizes data roaming between different audio source devices by Bluetooth audio receiving devices, timely switches audio source devices to avoid interruptions in audio data and improve user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115086925B_ABST
    Figure CN115086925B_ABST
Patent Text Reader

Abstract

The present invention discloses a sound source switching method, a Bluetooth audio receiving device, a sound source device and a playback system. Among them, the method for switching sound sources in the Bluetooth audio receiving device receives the first audio data of the first sound source device, obtains the audio playback information of the first sound source device, starts timing after obtaining the audio playback information, stops timing under a predetermined condition to obtain the timing time, and sends the audio playback information and the timing time to the second sound source device, so that the second sound source device can obtain the second audio data according to the audio playback information and the timing time, and receives the second audio data of the second sound source device, thereby enabling the Bluetooth audio receiving device to perform data roaming among various Bluetooth sound source devices. Furthermore, when the audio data received from a certain sound source device is poor, it can be timely switched to other sound source devices, realizing the switching of sound source devices and meeting the various usage scenario requirements of users.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of audio playback, and particularly to a sound source switching method, a Bluetooth audio receiving device, a sound source device, and a playback system. Background Art

[0002] Currently, Bluetooth technology has been widely popularized in people's daily life and work. For example, a Bluetooth headset can establish a Bluetooth communication connection with a user's smartphone and then play the audio of the smartphone. Traditional Bluetooth playback systems support one-to-one audio transmission between devices, that is, a Bluetooth sound source device can transmit audio data to a Bluetooth audio receiving device.

[0003] However, for users, in some application scenarios, one-to-one transmission of audio data cannot meet user needs. As Figure 1 shown, in a home application scenario, a user can connect a Bluetooth headset to a smartphone in the dining room through the kitchen and listen to music through the smartphone in the dining room. However, when the user moves to the balcony, due to the wall barrier between the dining room and the balcony, the smartphone in the dining room cannot continue to connect to the Bluetooth headset, resulting in the music stopping playback and affecting the user experience. Summary of the Invention

[0004] The present invention aims to solve one of the technical problems in related technologies to a certain extent. For this reason, the first object of the present invention is to propose a method for switching sound sources in a Bluetooth audio receiving device, which can achieve roaming of audio data between multiple sound source devices, avoid Figure 1 the problem of interruption of audio data playback in the scenario, and improve the user experience.

[0005] The second object of the present invention is to propose a sound source switching method for a sound source device.

[0006] The third object of the present invention is to propose a method for switching sound sources in a Bluetooth audio receiving device.

[0007] The fourth object of the present invention is to propose a sound source switching method for a sound source device.

[0008] The fifth object of the present invention is to propose a computer-readable storage medium.

[0009] The sixth object of the present invention is to propose a Bluetooth audio receiving device.

[0010] The seventh object of the present invention is to propose a sound source device.

[0011] The eighth object of the present invention is to propose a playback system.

[0012] To achieve the above object, an embodiment of the first aspect of the present invention provides a method for switching audio sources in a Bluetooth audio receiving device, the method comprising the following steps: receiving first audio data of a first audio source device; obtaining audio playing information of the first audio source device, and starting timing after obtaining the audio playing information; stopping timing under a predetermined condition to obtain a timing time; sending the audio playing information and the timing time to a second audio source device so that the second audio source device can obtain second audio data according to the audio playing information and the timing time; and receiving second audio data of the second audio source device.

[0013] According to the method for switching audio sources in a Bluetooth audio receiving device of the embodiment of the present invention, by receiving first audio data of a first audio source device, obtaining audio playing information of the first audio source device, starting timing after obtaining the audio playing information, stopping timing under a predetermined condition to obtain a timing time, sending the audio playing information and the timing time to a second audio source device so that the second audio source device can obtain second audio data according to the audio playing information and the timing time, and receiving second audio data of the second audio source device, the Bluetooth audio receiving device can receive audio data from different audio source devices, enabling the Bluetooth audio receiving device to perform data roaming among various Bluetooth audio source devices. Furthermore, when the received audio data is poor, the audio source device can be switched in a timely manner, realizing the switching of the audio source device and meeting the needs of various usage scenarios of users.

[0014] To achieve the above object, an embodiment of the second aspect of the present invention provides a method for switching audio sources for an audio source device, the method comprising the following steps: receiving audio playing information and a timing time from a Bluetooth audio receiving device; obtaining second audio data according to the audio playing information and the timing time; and sending the second audio data to the Bluetooth audio receiving device so that the Bluetooth audio receiving device can play the second audio data.

[0015] According to the audio source switching method for an audio source device according to an embodiment of the present invention, by establishing a communication connection with a Bluetooth audio receiving device, receiving audio playback information and a timing time sent by the Bluetooth audio receiving device, wherein the audio playback information is obtained from a first audio source device by the Bluetooth audio receiving device during the process of receiving first audio data from other audio source devices and playing the first audio data, the timing time is obtained by the Bluetooth audio receiving device after receiving the audio playback information and timing, obtaining second audio data according to the audio playback information and the timing time, and sending the second audio data to the Bluetooth audio receiving device so that the Bluetooth audio receiving device plays the second audio data, thereby enabling the second audio source device to obtain the latest playback progress according to the audio playback information and the timing time, such that the Bluetooth audio receiving device only needs to forward the audio playback information without processing, which can reduce the data processing amount of the Bluetooth audio receiving device, and enabling the Bluetooth audio receiving device to receive audio data from different audio source devices, and further enabling the Bluetooth audio receiving device to perform data roaming among various Bluetooth audio source devices. When the received audio data is poor, the audio source device can be switched in time, realizing the switching of the audio source device and meeting the various usage scenario requirements of users.

[0016] To achieve the above object, an embodiment of the third aspect of the present invention proposes a method for switching an audio source in a Bluetooth audio receiving device, the method including the following steps: receiving first audio data of a first audio source device; obtaining audio playback information of the first audio source device and starting timing after obtaining the audio playback information; stopping timing under a predetermined condition to obtain a timing time; obtaining the latest playback progress according to the audio playback information and the timing time; sending the latest playback progress and the audio playback information to a second audio source device so that the second audio source device obtains second audio data according to the latest playback progress and the audio playback information; and receiving second audio data of the second audio source device.

[0017] A method for switching audio sources in a Bluetooth audio receiving device according to an embodiment of the present invention includes receiving first audio data from a first audio source device, obtaining audio playback information of the first audio source device, starting timing after obtaining the audio playback information, stopping timing under a predetermined condition to obtain a timing time, obtaining a latest playback progress according to the audio playback information and the timing time, sending the latest playback progress and the audio playback information to a second audio source device, so that the second audio source device obtains second audio data according to the latest playback progress and the audio playback information, and receiving the second audio data from the second audio source device. Thus, the Bluetooth audio receiving device obtains the latest playback progress according to the audio playback information and the timing time, and directly sends the latest playback progress and the audio playback information to the second audio source device, without the second audio source device calculating the latest playback progress, reducing the data processing amount and processing time of the second audio source device, and the Bluetooth audio receiving device can receive audio data from different audio source devices, so that the Bluetooth audio receiving device can perform data roaming among various Bluetooth audio source devices, and can switch the audio source device in time when the received audio data is poor, realizing the switching of the audio source device and meeting the various usage scenario requirements of users.

[0018] To achieve the above object, an embodiment of the fourth aspect of the present invention provides a method for switching audio sources for an audio source device, the method including the following steps: receiving a latest playback progress and audio playback information from a Bluetooth audio receiving device; obtaining second audio data according to the latest playback progress and the audio playback information; and sending the second audio data to the Bluetooth audio receiving device, so that the Bluetooth audio receiving device plays the second audio data.

[0019] A method for switching audio sources for an audio source device according to an embodiment of the present invention includes receiving a latest playback progress and audio playback information from a Bluetooth audio receiving device, obtaining second audio data according to the latest playback progress and the audio playback information, and sending the second audio data to the Bluetooth audio receiving device, so that the Bluetooth audio receiving device plays the second audio data. Thus, the Bluetooth audio receiving device can receive audio data from different audio source devices, so that the Bluetooth audio receiving device can perform data roaming among various Bluetooth audio source devices, and can switch the audio source device in time when the received audio data is poor, realizing the switching of the audio source device and meeting the various usage scenario requirements of users.

[0020] To achieve the above object, an embodiment of the fifth aspect of the present invention provides a computer-readable storage medium, on which a program for switching audio sources is stored, and when the program for switching audio sources is executed by a processor, it implements the aforementioned method for switching audio sources in a Bluetooth audio receiving device, or implements the aforementioned method for switching audio sources for an audio source device.

[0021] A computer-readable storage medium according to an embodiment of the present invention enables a Bluetooth audio receiving device to receive audio data from different audio source devices through the foregoing method of switching audio sources in the Bluetooth audio receiving device or the foregoing audio source switching method for an audio source device. Furthermore, the Bluetooth audio receiving device can perform data roaming among various Bluetooth audio source devices, and can promptly switch the audio source device when the received audio data is poor, thereby realizing the switching of the audio source device and meeting the requirements of various usage scenarios of users.

[0022] To achieve the above object, an embodiment of the sixth aspect of the present invention provides a Bluetooth audio receiving device, including a memory, a processor, and an audio source switching program stored in the memory and executable on the processor. When the processor executes the audio source switching program, the foregoing method of switching audio sources in the Bluetooth audio receiving device is implemented.

[0023] A Bluetooth audio receiving device according to an embodiment of the present invention enables the Bluetooth audio receiving device to receive audio data from different audio source devices through the foregoing method of switching audio sources in the Bluetooth audio receiving device. Furthermore, the Bluetooth audio receiving device can perform data roaming among various Bluetooth audio source devices, and can promptly switch the audio source device when the received audio data is poor, thereby realizing the switching of the audio source device and meeting the requirements of various usage scenarios of users.

[0024] To achieve the above object, an embodiment of the seventh aspect of the present invention provides an audio source device, including a memory, a processor, and an audio source switching program stored in the memory and executable on the processor. When the processor executes the audio source switching program, the foregoing audio source switching method for the audio source device is implemented.

[0025] An audio source device according to an embodiment of the present invention enables a Bluetooth audio receiving device to receive audio data from different audio source devices through the foregoing audio source switching method for the audio source device. Furthermore, the Bluetooth audio receiving device can perform data roaming among various Bluetooth audio source devices, and can promptly switch the audio source device when the received audio data is poor, thereby realizing the switching of the audio source device and meeting the requirements of various usage scenarios of users.

[0026] To achieve the above object, an embodiment of the eighth aspect of the present invention provides a playback system, including the foregoing Bluetooth audio receiving device and / or the foregoing audio source device.

[0027] In a playback system according to an embodiment of the present invention, the Bluetooth audio receiving device can receive audio data from different audio source devices. Furthermore, the Bluetooth audio receiving device can perform data roaming among various Bluetooth audio source devices, and can promptly switch the audio source device when the received audio data is poor, thereby realizing the switching of the audio source device and meeting the requirements of various usage scenarios of users.

[0028] Additional aspects and advantages of the present invention will be given in part in the following description, become apparent in part from the following description, or be learned through the practice of the present invention. Description of the Drawings

[0029] Figure 1 Schematic diagram of Bluetooth audio playback in a traditional home application scenario;

[0030] Figure 2 Architecture diagram of a playback system according to an embodiment of the present invention;

[0031] Figure 3 Flowchart of a method for switching audio sources in a Bluetooth audio receiving device according to the first embodiment of the present invention;

[0032] Figure 4 Schematic diagram of obtaining the latest playback progress according to an embodiment of the present invention;

[0033] Figure 5 Schematic diagram of obtaining the latest playback progress according to another embodiment of the present invention;

[0034] Figure 6 Flowchart of a Bluetooth audio receiving device establishing a communication connection with a second audio source device according to an embodiment of the present invention;

[0035] Figure 7 Flowchart of a Bluetooth audio receiving device establishing a communication connection with a second audio source device according to another embodiment of the present invention;

[0036] Figure 8 Flowchart of a method for switching audio sources for an audio source device according to the first embodiment of the present invention;

[0037] Figure 9 Flowchart of a method for switching audio sources in a Bluetooth audio receiving device according to the second embodiment of the present invention;

[0038] Figure 10 Flowchart of a method for switching audio sources for an audio source device according to the second embodiment of the present invention. Detailed Description of the Embodiments

[0039] Embodiments of the present invention will be described in detail below. Examples of the embodiments are shown in the drawings, where the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the drawings are exemplary and are intended to explain the present invention, and should not be construed as limiting the present invention.

[0040] The present invention utilizes multiple audio source devices to enable a Bluetooth audio receiving device to achieve uninterrupted roaming of Bluetooth audio data transmission in a certain scenario (such as a smart home scenario). AsFigure 2 as shown Figure 2 Figure 2 is a playback system according to an embodiment of the present invention. The playback system includes a Bluetooth audio receiving device 110 and at least two sound source devices 120. Among them, the Bluetooth audio receiving device 110 can be a Bluetooth headset, etc., and the sound source device 120 can be a smart phone, a tablet computer, a notebook, a smart TV, a smart speaker, etc. The above-mentioned sound source devices 120 all have Bluetooth communication functions, can establish a connection with the Bluetooth audio receiving device 110, send audio data to the Bluetooth audio receiving device 110 through a Bluetooth link, and also have Internet access functions and can obtain audio data from the cloud.

[0041] Figure 3 Figure 3 is a flowchart of a method for switching sound sources in a Bluetooth audio receiving device according to the first embodiment of the present invention. This method is applied to Figure 2 the Bluetooth audio receiving device as shown. Refer to Figure 3 as shown, the method may include the following steps:

[0042] Step S101, receive the first audio data of the first sound source device.

[0043] Specifically, the playback system may include at least two sound source devices. In this embodiment, the case where the playback system includes two sound source devices is taken as an example for illustration. Specifically, the playback system includes a first sound source device and a second sound source device. Among them, the first sound source device is the sound source device that establishes Bluetooth communication with the Bluetooth audio receiving device and sends audio data before the sound source is switched, and the second sound source device is the sound source device that establishes Bluetooth communication with the Bluetooth audio receiving device and sends audio data after the sound source is switched. After the Bluetooth audio receiving device establishes a connection with the first sound source device, it can receive the first audio data of the first sound source device, and store, decode, and play the first audio data.

[0044] Step S102, obtain the audio playback information of the first sound source device, and start timing after obtaining the audio playback information.

[0045] Specifically, the Bluetooth audio receiving device can actively obtain the audio playback information of the first sound source device, and start the local timer to start timing at the moment when the audio playback information is obtained, so that when switching the sound source device subsequently, the latest playback progress can be obtained according to the timing duration.

[0046] In this embodiment, the Bluetooth audio receiving device can detect the Bluetooth link quality with the first sound source device in real time, and judge whether to obtain the audio playback information of the first sound source device according to the Bluetooth link quality; or, the Bluetooth audio receiving device can periodically obtain the audio playback information of the first sound source device at preset time intervals. Among them, the Bluetooth link quality can be the Bluetooth signal strength of the first sound source device.

[0047] Step S103, stop timing under a predetermined condition to obtain a timing time.

[0048] Specifically, in this embodiment, the Bluetooth audio receiving device can determine whether to stop timing according to the Bluetooth link quality between the Bluetooth audio receiving device and the first sound source device. When the Bluetooth link quality between the Bluetooth audio receiving device and the first sound source device is lower than a preset threshold, stop timing to prevent the bit error rate of audio data between the Bluetooth audio receiving device and the first sound source device from affecting the communication quality, and prepare to switch to the second sound source device.

[0049] As an example, obtaining the audio playback information of the first sound source device includes: obtaining the first Bluetooth link quality between the Bluetooth audio receiving device and the first sound source device, and obtaining the audio playback information when the first Bluetooth link quality is lower than a first preset threshold. Further, under a predetermined condition, stopping timing to obtain a timing time includes: obtaining the first Bluetooth link quality between the Bluetooth audio receiving device and the first sound source device, and stopping timing to obtain a timing time when the first Bluetooth link quality is lower than a second preset threshold, where the second preset threshold is lower than the first preset threshold.

[0050] Specifically, during the playback of the first audio data by the Bluetooth audio receiving device, the Bluetooth audio receiving device can obtain the first Bluetooth link quality between the Bluetooth audio receiving device and the first sound source device in real time, and compare the first Bluetooth link quality with the first preset threshold pre-stored in the Bluetooth audio receiving device. When the first Bluetooth link quality is lower than the first preset threshold, it indicates that the Bluetooth link quality between the Bluetooth audio receiving device and the first sound source device has deteriorated. At this time, the Bluetooth audio receiving device actively obtains the audio playback information of the first sound source device, and starts timing after obtaining the audio playback information. After starting timing, the Bluetooth audio receiving device continues to monitor the first Bluetooth link quality between the Bluetooth audio receiving device and the first sound source device. When the first Bluetooth link quality is lower than the second preset threshold, it indicates that the bit error rate of audio data between the Bluetooth audio receiving device and the first sound source device has a tendency to increase. Then the Bluetooth audio receiving device stops timing to obtain a timing time, and prepares to switch the sound source device.

[0051] As another example, obtaining the audio playback information of the first sound source device includes: obtaining the audio playback information at preset time intervals. Further, under a predetermined condition, stopping timing to obtain a timing time further includes: obtaining the first Bluetooth link quality between the Bluetooth audio receiving device and the first sound source device, and stopping timing to obtain a timing time if the first Bluetooth link quality is lower than a third preset threshold before the current timing time reaches the preset time.

[0052] Specifically, the Bluetooth audio receiving device can obtain the audio playback information of the first sound source device at the start of each time period and start timing after obtaining the audio playback information. After starting to time, the Bluetooth audio receiving device continuously obtains the first Bluetooth link quality with the first sound source device and compares the first Bluetooth link quality with a third preset threshold. If the first Bluetooth link quality is always greater than or equal to the third preset threshold before the timing time reaches the preset time, indicating that the Bluetooth link quality between the Bluetooth audio receiving device and the first sound source device is stable, the Bluetooth audio receiving device re-obtains the audio playback information at the start of the next time period and starts timing after obtaining the audio playback information; if it is detected that the first Bluetooth link quality is lower than the third preset threshold before the timing time reaches the preset time, indicating that the Bluetooth link quality between the Bluetooth audio receiving device and the first sound source device has decreased at this time, the Bluetooth audio receiving device stops timing to obtain the timing time when it detects that the first Bluetooth link quality is lower than the third preset threshold and prepares to switch the sound source device. Among them, the third preset threshold can be equal to the second preset threshold, or lower or slightly higher than the second preset threshold.

[0053] Step S104: Send the audio playback information and the timing time to the second sound source device so that the second sound source device can obtain the second audio data according to the audio playback information and the timing time.

[0054] In this embodiment, the Bluetooth audio receiving device first establishes a communication connection with the second sound source device. Specifically, before the Bluetooth audio receiving device stops timing, such as between the start of timing and the stop of timing, the Bluetooth audio receiving device can send a connection request to the second sound source device and establish a connection. Among them, in order to ensure the Bluetooth communication quality, the second sound source device can be the sound source device with the strongest Bluetooth link quality at the current moment. It should be noted that at this time, the Bluetooth audio receiving device still maintains a connection with the first sound source device and receives and plays the first audio data sent by the first sound source device.

[0055] Step S105: Receive the second audio data of the second sound source device.

[0056] Specifically, after the second sound source device obtains the second audio data, it sends the second audio data to the Bluetooth audio receiving device. The Bluetooth audio receiving device receives the second audio data of the second sound source device, switches the sound source to the second sound source device to decode and play the second audio data; at the same time, it notifies the first sound source device to stop transmitting the first audio data. For example, it sends an instruction to stop transmitting the first audio data to the first sound source device. After receiving this instruction, the first sound source device stops sending the first audio data to the Bluetooth audio receiving device. It should be noted that in this embodiment, the Bluetooth audio receiving device can choose whether to retain the Bluetooth connection with the first sound source device based on service requirements.

[0057] In the above embodiments, the Bluetooth audio receiving device may be a Bluetooth headset. Of course, it may also be an audio playback device such as a Bluetooth speaker.

[0058] The method for switching audio sources in the Bluetooth audio receiving device provided in the above embodiments includes receiving the first audio data of the first audio source device, obtaining the audio playback information of the first audio source device, starting timing after obtaining the audio playback information, stopping timing under a predetermined condition to obtain the timing time, sending the audio playback information and the timing time to the second audio source device, so that the second audio source device can obtain the second audio data according to the audio playback information and the timing time, and receiving the second audio data of the second audio source device. Thus, the Bluetooth audio receiving device can receive audio data from different audio source devices, enabling the Bluetooth audio receiving device to perform data roaming among various Bluetooth audio source devices. Furthermore, when the received audio data is poor, the audio source device can be switched in a timely manner, realizing the switching of the audio source device and meeting the various usage scenario requirements of users.

[0059] In one embodiment, the audio playback information includes at least one of the source of the currently playing track, the total duration of the currently playing track, the current playback progress, the current playback speed, the current playback state, the source of the current playlist, and the current playback order.

[0060] In one embodiment, when the second audio source device obtains the latest playback progress, the second audio source device receives the audio playback information and the timing time from the Bluetooth audio receiving device, and obtains the second audio data according to the audio playback information and the timing time.

[0061] As an example, if the current playback state is playing, the latest playback progress is obtained according to the current playback progress, the current playback speed, and the timing time; if the latest playback progress is less than the total duration of the currently playing track, the second audio data is obtained according to the latest playback progress and the source of the currently playing track.

[0062] Specifically, after the timing ends, the Bluetooth audio receiving device sends the audio playback information and the timing time to the second audio source device. The second audio source device calculates the latest playback progress according to the current playback progress and the current playback speed in the audio playback information and the received timing duration. Among them, the second audio source device can obtain the playback progress during the timing time according to the timing time and the current playback speed, and the latest playback progress is the sum of the current playback progress and the playback progress during the timing time. That is, as Figure 4 shown, the current playback progress is t1, the timing time is Δt, and the current playback speed is v, then the latest playback progress t = t1 + Δt * v.

[0063] If the second sound source device determines that the latest playback progress t is less than the total duration T of the currently playing track, the second sound source device generates second audio data based on the latest playback progress t and the source of the currently playing track and sends it to the Bluetooth audio receiving device, so that the Bluetooth audio receiving device starts playing from the latest playback progress of the current track.

[0064] Further, as an example, if the second sound source device determines that the current playback state is playing, the latest playback progress is greater than or equal to the total duration of the currently playing track, and the current playback order is sequential playback, the second audio data is obtained according to the latest playback progress, the current playback order, and the source of the current playlist.

[0065] Specifically, in this embodiment, if the current playback order is sequential playback, the latest playback progress of the next track is the difference between the latest playback progress and the total duration of the currently playing track, that is, as Figure 5 shown, the latest playback progress t2 of the next track = t - T. If the latest playback progress calculated by the second sound source device is greater than or equal to the total duration of the currently playing track, it indicates that the next track needs to be played currently. Then, the second sound source device obtains the source of the next track according to the playback order and the playlist, and generates second audio data according to the calculated latest playback progress and the source of the next track, so that the Bluetooth audio receiving device can play the next track from the latest playback progress according to the second audio data, thereby realizing the switching of the sound source device. Among them, both the source of the current playlist and the source of the currently playing track have URL (Uniform Resource Locator) links, and the corresponding currently playing track and current playlist can be obtained by acquiring the URL link. It can be understood that both the first sound source device and the second sound source device in this application can obtain the source of the currently playing track and the source of the current playlist from the same third-party software.

[0066] As another example, obtaining the second audio data according to the audio playback information and the timing time further includes: if the current playback state is playing, the latest playback progress is greater than or equal to the total duration of the currently playing track, and the current playback order is random playback, or if the current playback state is paused, the audio playback information is retrieved again, and the second audio data is obtained according to the retrieved audio playback information.

[0067] Specifically, if the second sound source device determines that the current playing state is playing and the latest playing progress is greater than or equal to the total duration of the current playing track, the second sound source device should play the next track. However, since the current playing order is random play and only the source of the previous track (i.e., the URL link) is carried in the audio playing information, the second sound source device cannot determine which track in the list the next track is specifically. At this time, the Bluetooth audio receiving device can be used to re-obtain the audio playing information of the first sound source device without timing, and directly send the re-obtained audio playing information to the second sound source device, so that the second sound source device can obtain the second audio data to be played currently according to the current playing track source, current playing progress, and current playing speed in the re-obtained audio playing information.

[0068] Similarly, if the second sound source device determines that the current playing state is paused, the Bluetooth audio receiving device can also be used to re-obtain the audio playing information of the first sound source device without timing, and directly send the re-obtained audio playing information to the second sound source device, so that the second sound source device can directly obtain the current playing track source, current playing progress, and current playing speed according to the re-obtained audio playing information.

[0069] For the sound source switching method provided in the above embodiment, the second sound source device can obtain the latest playing progress according to the audio playing information and the timing time. Thus, the Bluetooth audio receiving device only needs to forward the audio playing information without processing, which can reduce the data processing amount of the Bluetooth audio receiving device and can also implement sound source switching.

[0070] As Figure 6 shown, in one of the embodiments, when there are at least two second sound source devices, establishing a communication connection with the second sound source devices includes:

[0071] Step S201, obtaining the second Bluetooth link quality of each of the at least two second sound source devices.

[0072] Step S202, establishing a communication connection with the second sound source device having the best second Bluetooth link quality.

[0073] For example, in the smart home application scenario, there may be multiple second sound source devices, such as tablet computers, laptops, smart TVs, smart speakers, etc. The Bluetooth audio receiving device can establish a Bluetooth communication connection with the above devices.

[0074] The Bluetooth audio receiving device respectively obtains the second Bluetooth link quality of each second sound source device, and sorts the obtained multiple second Bluetooth link qualities to obtain the maximum value among them. Thus, by establishing a connection with the second sound source device having the best Bluetooth link quality, the communication quality can be guaranteed.

[0075] As Figure 7 shown, in one of the embodiments, when there are at least two second sound source devices, establishing a communication connection with the second sound source devices includes:

[0076] Step S301, obtaining the distance between the Bluetooth audio receiving device and each of the at least two second sound source devices.

[0077] Step S302, establishing a communication connection with the second sound source device having the minimum distance.

[0078] For example, the Bluetooth audio receiving device can be connected to each second sound source device through ultra-wideband technology and / or Bluetooth technology, and measure the distance to each second sound source device through ultra-wideband technology and / or Bluetooth technology to obtain the distance between each second sound source device and the Bluetooth audio receiving device. When the Bluetooth audio receiving device simultaneously uses ultra-wideband technology and Bluetooth technology to obtain the distance to each sound source device, it can first obtain the first distance to each second sound source device through ultra-wideband technology, and then obtain the second distance to each second sound source device through Bluetooth technology, and calculate the average distance between the first distance and the second distance. This average distance can be used to represent the distance between the Bluetooth audio receiving device and each second sound source device. Sort the distances to obtain the minimum value of the distances. By establishing a connection with the second sound source device having the minimum distance, the communication quality between the Bluetooth audio receiving device and the second sound source device can be guaranteed.

[0079] The method for switching the sound source in the Bluetooth audio receiving device provided in the above embodiment receives the first audio data of the first sound source device, obtains the audio playback information of the first sound source device, starts timing after obtaining the audio playback information, and stops timing under a predetermined condition to obtain the timing time, and sends the audio playback information and the timing time to the second sound source device, so that the second sound source device can obtain the second audio data according to the audio playback information and the timing time, and receives the second audio data of the second sound source device. Thus, the Bluetooth audio receiving device can receive audio data from different sound source devices, enabling the Bluetooth audio receiving device to perform data roaming among various Bluetooth sound source devices. Furthermore, when the received audio data is poor, the sound source device can be switched in a timely manner, realizing the switching of the sound source device and meeting the various usage scenario requirements of users.

[0080] As Figure 8 shown, an embodiment of the present application further provides a sound source switching method for a sound source device. This sound source switching method is applied to the above-mentioned second sound source device, and the method includes the following steps:

[0081] Step S401, receiving the audio playback information and the timing time from the Bluetooth audio receiving device.

[0082] Step S402: Obtain second audio data according to the audio playback information and the timing time.

[0083] Step S403: Send the second audio data to the Bluetooth audio receiving device so that the Bluetooth audio receiving device plays the second audio data.

[0084] In one embodiment, the audio playback information includes at least one of the current playback track source, the total duration of the current playback track, the current playback progress, the current playback speed, the current playback state, the current playlist source, and the current playback order.

[0085] In one embodiment, obtaining second audio data according to the audio playback information and the timing time includes: if the current playback state is playing, obtain the latest playback progress according to the current playback progress, the current playback speed, and the timing time; if the latest playback progress is less than the total duration of the current playback track, obtain the second audio data according to the latest playback progress and the current playback track source.

[0086] In one embodiment, obtaining second audio data according to the audio playback information and the timing time further includes: if the current playback state is playing, the latest playback progress is greater than or equal to the total duration of the current playback track, and the current playback order is sequential playback, obtain the second audio data according to the latest playback progress, the current playback order, and the current playlist source.

[0087] In one embodiment, obtaining second audio data according to the audio playback information and the timing time further includes: if the current playback state is playing, the latest playback progress is greater than or equal to the total duration of the current playback track, and the current playback order is random playback, or if the current playback state is paused, re-obtain the audio playback information and obtain the second audio data according to the re-obtained audio playback information.

[0088] In one embodiment, the method further includes: establishing a communication connection with the Bluetooth audio receiving device.

[0089] It should be noted that for the description of the audio source switching method for the audio source device in this application, please refer to the description of the method for switching the audio source in the Bluetooth audio receiving device in this application, and details are not described here again.

[0090] The above audio source switching method for an audio source device receives audio playback information and timing time from a Bluetooth audio receiving device, obtains second audio data based on the audio playback information and the timing time, and sends the second audio data to the Bluetooth audio receiving device so that the Bluetooth audio receiving device plays the second audio data. Thus, the second audio source device obtains the latest playback progress based on the audio playback information and the timing time, enabling the Bluetooth audio receiving device to simply forward the audio playback information without processing, reducing the data processing volume of the Bluetooth audio receiving device. Moreover, the Bluetooth audio receiving device can receive audio data from different audio source devices, and then the Bluetooth audio receiving device can perform data roaming among various Bluetooth audio source devices, and can promptly switch the audio source device when the received audio data is poor, achieving the switching of the audio source device and meeting the various usage scenario requirements of users.

[0091] As Figure 9 shown, an embodiment of the present application provides another method for switching the audio source in a Bluetooth audio receiving device. The method includes the following steps:

[0092] Step S501: Receive the first audio data of the first audio source device.

[0093] Step S502: Obtain the audio playback information of the first audio source device and start timing after obtaining the audio playback information.

[0094] Step S503: Under a predetermined condition, stop timing to obtain the timing time.

[0095] Step S504: Obtain the latest playback progress based on the audio playback information and the timing time.

[0096] Step S505: Send the latest playback progress and the audio playback information to the second audio source device so that the second audio source device obtains the second audio data based on the latest playback progress and the audio playback information.

[0097] Step S506: Receive the second audio data of the second audio source device.

[0098] It should be noted that for the descriptions of steps S501, S502, S503, and S506 in this embodiment, please refer to the descriptions of steps S101, S102, S104, and S105 in the aforementioned method for switching the audio source in a Bluetooth audio receiving device in the present application, and details are not elaborated here. The differences between this embodiment and the aforementioned embodiment of the method for switching the audio source in a Bluetooth audio receiving device lie in steps S504 and S505. The implementation manners of steps S504 and S505 are introduced in detail below.

[0099] Specifically, in the present application, the Bluetooth audio receiving device can obtain the latest playback progress according to the audio playback information and the timing time, and send the audio playback information and the latest playback progress to the second sound source device.

[0100] As an example, when the Bluetooth audio receiving device obtains the latest playback progress, obtaining the latest playback progress according to the audio playback information and the timing time includes: if the current playback state is playing, obtaining the latest playback progress according to the current playback progress, the current playback speed, and the timing time.

[0101] Sending the latest playback progress and the audio playback information to the second sound source device includes: if the latest playback progress is less than the total duration of the current playback track, or, if the current playback state is playing, and the latest playback progress is greater than or equal to the total duration of the current playback track, and the current playback order is sequential playback, then sending the latest playback progress and the audio playback information to the second sound source device, so that the second sound source device can obtain the second audio data according to the latest playback progress and the source of the current playback track in the audio playback information.

[0102] Specifically, the playback states in the audio playback information include two states: playing and pausing. The Bluetooth audio receiving device determines whether the current playback state is playing according to the obtained audio playback information. If the current playback state is playing, the Bluetooth audio receiving device obtains the latest playback progress according to the current playback progress, the current playback speed, and the timing time. Among them, the playback progress within the timing time can be obtained according to the timing time and the current playback speed, and the latest playback progress is the sum of the current playback progress and the playback progress within the timing time. That is, as Figure 4 shown, the current playback progress is t1, the timing time is Δt, and the current playback speed is v, then the latest playback progress t = t1 + Δt * v.

[0103] If the latest playback progress t is less than the total duration T of the current playback track, then send the latest playback progress t of the current track and the audio playback information to the second sound source device. The second sound source device can obtain the second audio data according to the latest playback progress t and the source of the current playback track in the audio playback information and send it to the Bluetooth audio receiving device, so that the Bluetooth audio receiving device can continue to play the current track from the latest playback progress t. After the current track is played, the second sound source device can also play the next track according to the current playback order and the source of the current playlist. For example, if the current playback order is sequential playback, then the second sound source device plays the next track after the current track in the current playlist source.

[0104] Further, as an example, as Figure 5As shown, if the Bluetooth audio receiving device determines that the latest playback progress t is greater than or equal to the total duration T of the current playing track, the track being played should be the next track of the current playing track recorded in the audio playback information. The Bluetooth audio receiving device first obtains the current playback order according to the audio playback information. Among them, the playback order includes sequential playback and random playback. Sequential playback includes forward playback, reverse playback, single-track loop, etc. If the current playback order is sequential playback, the latest playback progress of the next track is the difference between the latest playback progress and the total duration of the current playing track, that is, as Figure 5 shown, the latest playback progress t2 of the next track = t - T. Furthermore, the Bluetooth audio receiving device sends the obtained latest playback progress of the next track and the audio playback information to the second sound source device. The second sound source device obtains the next track according to the current playback order and the current playlist source in the audio playback information, and obtains the second audio data according to the next track and the latest playback progress and sends it to the Bluetooth audio receiving device, so that the Bluetooth audio receiving device can play the next track from the latest playback progress of the next track, thereby realizing the switching of the sound source device.

[0105] As another example, if the Bluetooth audio receiving device determines that the current playback state is playing, and the latest playback progress is greater than or equal to the total duration of the current playing track, and the current playback order is random playback, or, if the current playback state is paused, the Bluetooth audio receiving device re-obtains the audio playback information from the first sound source device and sends the re-obtained audio playback information to the second sound source device, so that the second sound source device can obtain the second audio data according to the re-obtained audio playback information.

[0106] Specifically, if the Bluetooth audio receiving device determines that the current playback state is playing and the latest playback progress is greater than or equal to the total duration of the current playing track, after switching to the second sound source device, the second sound source device should play the next track. However, since the current playback order is random playback, the second sound source device will not be able to determine the next track according to the current playlist source. Therefore, at this time, the Bluetooth audio receiving device can re-obtain the audio playback information of the first sound source device without timing and directly send the re-obtained audio playback information to the second sound source device, so that the second sound source device can obtain the second audio data according to the current track source, current playback progress and current playback speed in the re-obtained audio playback information.

[0107] Similarly, if the Bluetooth audio receiving device determines that the current playback state is paused, the Bluetooth audio receiving device can also re-obtain the audio playback information of the first sound source device without timing and directly send the re-obtained audio playback information to the second sound source device, so that the second sound source device can directly obtain the current track source, current playback progress and current playback speed according to the re-obtained audio playback information.

[0108] The audio source switching method provided by the above embodiments enables the Bluetooth audio receiving device to obtain the latest playback progress based on the audio playback information and the timing time, and directly send the latest playback progress and the audio playback information to the second audio source device. As a result, the second audio source device does not need to calculate the latest playback progress, reducing the data processing volume and processing time of the second audio source device, and at the same time enabling audio source switching.

[0109] In one embodiment, the method further includes: establishing a communication connection with the second audio source device.

[0110] In one embodiment, when there are at least two second audio source devices, establishing a communication connection with the second audio source device includes: obtaining the second Bluetooth link quality between each of the at least two second audio source devices; establishing a communication connection with the second audio source device having the best second Bluetooth link quality.

[0111] In one embodiment, when there are at least two second audio source devices, establishing a communication connection with the second audio source device includes: obtaining the distance between each of the at least two second audio source devices; establishing a communication connection with the second audio source device having the minimum distance.

[0112] In one embodiment, the distance between each of the at least two second audio source devices is obtained by ultra-wideband technology and / or Bluetooth technology.

[0113] In one embodiment, the method further includes: based on the requirements of the service, selecting whether to retain the communication connection with the first audio source device.

[0114] In one embodiment, the Bluetooth audio receiving device includes a Bluetooth headset.

[0115] In one embodiment, the method further includes: playing the first audio data.

[0116] In one embodiment, the method further includes: playing the second audio data.

[0117] In one embodiment, the method further includes: sending an instruction to stop transmitting the first audio data to the first audio source device.

[0118] It should be noted that for the method of establishing a communication connection with the audio source device and other details not described above, please refer to the description of the method of switching the audio source in the Bluetooth audio receiving device in the foregoing embodiments of the present application, and will not be elaborated here specifically.

[0119] The above method for switching audio sources in a Bluetooth audio receiving device receives the first audio data of the first audio source device, obtains the audio playback information of the first audio source device, starts timing after obtaining the audio playback information, stops timing under a predetermined condition to obtain the timing time, obtains the latest playback progress according to the audio playback information and the timing time, and sends the latest playback progress and the audio playback information to the second audio source device, so that the second audio source device can obtain the second audio data according to the latest playback progress and the audio playback information, receives the second audio data of the second audio source device, and thus the Bluetooth audio receiving device obtains the latest playback progress according to the audio playback information and the timing time, and directly sends the latest playback progress and the audio playback information to the second audio source device, without the second audio source device calculating the latest playback progress, reducing the data processing amount and processing time of the second audio source device, and the Bluetooth audio receiving device can receive audio data from different audio source devices, thereby enabling the Bluetooth audio receiving device to perform data roaming among various Bluetooth audio source devices, and can timely switch the audio source device when the received audio data is poor, realizing the switching of the audio source device and meeting the needs of various usage scenarios of users.

[0120] As Figure 10 shown, an embodiment of the present application provides another audio source switching method for an audio source device. This audio source switching method is applied to the second audio source device in the above Figure 9 corresponding example. The method includes the following steps:

[0121] Step S601, receive the latest playback progress and audio playback information from the Bluetooth audio receiving device.

[0122] Step S602, obtain the second audio data according to the latest playback progress and the audio playback information.

[0123] Step S603, send the second audio data to the Bluetooth audio receiving device so that the Bluetooth audio receiving device can play the second audio data.

[0124] It should be noted that for the descriptions of steps S601, S602, and S603 in this embodiment, please refer to the descriptions of steps S504, S505, and S506 above, and details are not repeated here.

[0125] In one embodiment, the audio playback information includes at least one of the current playlist source, the current track source, the total duration of the current track, the current playback progress, the current playback speed, the current playback status, and the current playback order.

[0126] In one embodiment, obtaining second audio data according to the latest playback progress and audio playback information includes: if the latest playback progress is less than the total duration of the currently playing track, obtaining second audio data according to the latest playback progress and the source of the currently playing track in the audio playback information; if the current playback state is playing, and the latest playback progress is greater than or equal to the total duration of the currently playing track, and the current playback order is sequential playback, obtaining second audio data according to the latest playback progress, the current playback order in the audio playback information, and the source of the current playlist.

[0127] In one embodiment, the method further includes: receiving the re-obtained audio playback information from a Bluetooth audio receiving device; obtaining second audio data according to the re-obtained audio playback information.

[0128] In one embodiment, the method further includes: establishing a communication connection with a Bluetooth audio receiving device.

[0129] It should be noted that for the specific description of the audio source switching method for the audio source device in this application, please refer to the description of the method for switching the audio source in the Bluetooth audio receiving device in the foregoing part of this application, and details are not elaborated here.

[0130] The above audio source switching method for the audio source device receives the latest playback progress and audio playback information from a Bluetooth audio receiving device, obtains second audio data according to the latest playback progress and audio playback information, and sends the second audio data to the Bluetooth audio receiving device so that the Bluetooth audio receiving device can play the second audio data. Thus, the Bluetooth audio receiving device can receive audio data from different audio source devices, and further enables the Bluetooth audio receiving device to perform data roaming among various Bluetooth audio source devices. When the received audio data is poor, the audio source device can be switched in time, realizing the switching of the audio source device and meeting the various usage scenario requirements of users.

[0131] Another embodiment of the present application provides a computer-readable storage medium, on which an audio source switching program is stored. When the audio source switching program is executed by a processor, it implements the foregoing method for switching the audio source in a Bluetooth audio receiving device, or implements the foregoing audio source switching method for an audio source device.

[0132] The above computer-readable storage medium enables the Bluetooth audio receiving device to receive audio data from different audio source devices through the foregoing method for switching the audio source in a Bluetooth audio receiving device or the foregoing audio source switching method for an audio source device. Further, the Bluetooth audio receiving device can perform data roaming among various Bluetooth audio source devices. When the received audio data is poor, the audio source device can be switched in time, realizing the switching of the audio source device and meeting the various usage scenario requirements of users.

[0133] Another embodiment of the present application provides a Bluetooth audio receiving device, including a memory, a processor, and a sound source switching program stored on the memory and executable on the processor. When the processor executes the sound source switching program, the method for switching sound sources in the Bluetooth audio receiving device described above is implemented.

[0134] For the above Bluetooth audio receiving device, by means of the method for switching sound sources in the Bluetooth audio receiving device described above, the Bluetooth audio receiving device can receive audio data from different sound source devices, and thus the Bluetooth audio receiving device can perform data roaming among various Bluetooth sound source devices. When the received audio data is poor, the sound source device can be switched in a timely manner, realizing the switching of the sound source device and meeting the needs of various usage scenarios of users.

[0135] Another embodiment of the present application provides a sound source device, including a memory, a processor, and a sound source switching program stored on the memory and executable on the processor. When the processor executes the sound source switching program, the sound source switching method for the sound source device described above is implemented.

[0136] For the above sound source device, by means of the sound source switching method for the sound source device described above, the Bluetooth audio receiving device can receive audio data from different sound source devices, and thus the Bluetooth audio receiving device can perform data roaming among various Bluetooth sound source devices. When the received audio data is poor, the sound source device can be switched in a timely manner, realizing the switching of the sound source device and meeting the needs of various usage scenarios of users.

[0137] Another embodiment of the present application provides a playback system, including the above Bluetooth audio receiving device and / or the above sound source device.

[0138] In the above playback system, the Bluetooth audio receiving device can receive audio data from different sound source devices, and thus the Bluetooth audio receiving device can perform data roaming among various Bluetooth sound source devices. When the received audio data is poor, the sound source device can be switched in a timely manner, realizing the switching of the sound source device and meeting the needs of various usage scenarios of users.

[0139] It should be noted that the logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a definite sequence list of executable instructions for implementing logical functions, and can be specifically implemented in any computer-readable medium for use by an instruction execution system, apparatus, or device (such as a computer-based system, a system including a processor, or other systems that can fetch and execute instructions from the instruction execution system, apparatus, or device), or in combination with these instruction execution systems, apparatuses, or devices. For the purposes of this specification, a "computer-readable medium" can be any device that can contain, store, communicate, propagate, or transport a program for use by or in combination with an instruction execution system, apparatus, or device. More specific examples (non-exhaustive list) of computer-readable media include the following: an electrical connection portion having one or more wirings (electronic device), a portable computer diskette (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium can even be paper or other suitable media on which the program can be printed, as the program can be obtained electronically, for example, by optically scanning the paper or other media, followed by editing, interpretation, or otherwise processing as appropriate, and then storing it in a computer memory.

[0140] It should be understood that the various parts of the present invention can be implemented using hardware, software, firmware, or a combination thereof. In the above-described embodiments, multiple steps or methods can be implemented using software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented using hardware, as in another embodiment, any one or a combination of the following techniques well known in the art can be used: discrete logic circuits having logic gate circuits for implementing logical functions on data signals, application-specific integrated circuits having appropriate combinational logic gate circuits, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), and the like.

[0141] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples", etc. means that the specific features, structures, materials, or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described can be combined in a suitable manner in any one or more embodiments or examples.

[0142] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the quantity of the indicated technical features. Thus, features defined with "first" and "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "a plurality of" means at least two, such as two, three, etc., unless otherwise specifically defined.

[0143] In the present invention, unless otherwise clearly specified and defined, terms such as "mounted", "connected", "coupled", "fixed", etc. shall be construed in a broad sense. For example, they may be directly connected, or indirectly connected through an intermediate medium, and may be the internal communication of two components or the interaction relationship between two components, unless otherwise clearly defined. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0144] Although the embodiments of the present invention have been shown and described above, it can be understood that the above embodiments are exemplary and should not be construed as limiting the present invention. Those of ordinary skill in the art can make changes, modifications, substitutions, and variations to the above embodiments within the scope of the present invention.

Claims

1. A method for switching audio sources in a Bluetooth audio receiving device, characterized in that, The method includes: Receiving first audio data from a first sound source device; Obtaining a first Bluetooth link quality with the first sound source device, obtaining audio playback information of the first sound source device when the first Bluetooth link quality is lower than a first preset threshold, and starting timing after obtaining the audio playback information; Continuing to monitor the first Bluetooth link quality with the first sound source device; Stopping the timing to obtain a timing duration when the first Bluetooth link quality is lower than a second preset threshold, where the second preset threshold is lower than the first preset threshold; Based on a pre-established communication connection with a second sound source device, sending the audio playback information and the timing duration to the second sound source device, so that the second sound source device obtains second audio data according to the audio playback information and the timing duration, where the communication connection is established between the start of timing and the stop of timing; and Receiving second audio data from the second sound source device.

2. The method for switching audio sources in a Bluetooth audio receiving device according to claim 1, characterized in that, The audio playback information includes at least one of a current playlist source, a current track source, a total duration of the current track, a current playback progress, a current playback speed, a current playback state, and a current playback order.

3. The method for switching audio sources in a Bluetooth audio receiving device according to claim 1, wherein The method further includes: establishing a communication connection with the second sound source device.

4. The method for switching audio sources in a Bluetooth audio receiving device according to claim 3, wherein When there are at least two second sound source devices, the establishing a communication connection with the second sound source device includes: Obtaining a second Bluetooth link quality with each of the at least two second sound source devices; Establishing a communication connection with the second sound source device having the best second Bluetooth link quality.

5. The method for switching audio sources in a Bluetooth audio receiving device according to claim 4, characterized in that, When there are at least two second sound source devices, the establishing a communication connection with the second sound source device includes: Obtaining a distance between the Bluetooth audio receiving device and each of the at least two second sound source devices; Establishing a communication connection with the second sound source device having the minimum distance.

6. The method for switching sound sources in a Bluetooth audio receiving device according to claim 5, wherein Obtaining the distance between the Bluetooth audio receiving device and each of the at least two second sound source devices through ultra-wideband technology and / or Bluetooth technology.

7. The method for switching audio sources in a Bluetooth audio receiving device according to claim 1, characterized in that, The method further includes: selecting whether to retain the communication connection with the first sound source device based on service requirements.

8. The method for switching audio sources in a Bluetooth audio receiving device according to claim 1, wherein The Bluetooth audio receiving device includes a Bluetooth headset.

9. The method for switching audio sources in a Bluetooth audio receiving device according to claim 1, characterized in that, The method further includes: playing the first audio data.

10. The method for switching audio sources in a Bluetooth audio receiving device according to claim 1, characterized in that, The method further includes: playing the second audio data.

11. The method for switching audio sources in a Bluetooth audio receiving device according to claim 10, wherein, The method further includes: sending an instruction to stop transmitting the first audio data to the first sound source device.

12. A sound source switching method for a sound source device, characterized in that, The method includes the following steps: Receiving audio playback information and a timing duration from a Bluetooth audio receiving device; Obtaining second audio data according to the audio playback information and the timing duration; and Sending the second audio data to the Bluetooth audio receiving device so that the Bluetooth audio receiving device plays the second audio data; wherein the Bluetooth audio receiving device sends the audio playback information and the timing duration in the following manner: Receiving first audio data from a first sound source device; Obtain the first Bluetooth link quality with the first sound source device. When the first Bluetooth link quality is lower than the first preset threshold, obtain the audio playback information of the first sound source device, and start timing after obtaining the audio playback information; Continue to monitor the first Bluetooth link quality with the first sound source device; Stop timing to obtain the timing time when the first Bluetooth link quality is lower than the second preset threshold, where the second preset threshold is lower than the first preset threshold; Based on the pre-established communication connection with the second sound source device, send the audio playback information and the timing time to the second sound source device, where the communication connection is established between the start of timing and the stop of timing.

13. The audio source switching method for an audio source device according to claim 12, characterized in that, The audio playback information includes at least one of the current playback track source, the total duration of the current playback track, the current playback progress, the current playback speed, the current playback status, the current playlist source, and the current playback order.

14. The audio source switching method for an audio source device according to claim 13, wherein, The obtaining the second audio data according to the audio playback information and the timing time includes: If the current playback status is playing, obtain the latest playback progress according to the current playback progress, the current playback speed, and the timing time; and If the latest playback progress is less than the total duration of the current playback track, obtain the second audio data according to the latest playback progress and the current playback track source.

15. The audio source switching method for an audio source device according to claim 14, characterized in that, The obtaining the second audio data according to the audio playback information and the timing time further includes: If the current playback status is playing, and the latest playback progress is greater than or equal to the total duration of the current playback track, and the current playback order is sequential playback, obtain the second audio data according to the latest playback progress, the current playback order, and the current playlist source.

16. The audio source switching method for an audio source device according to claim 14 or 15, characterized in that, The obtaining the second audio data according to the audio playback information and the timing time further includes: If the current playback status is playing, and the latest playback progress is greater than or equal to the total duration of the current playback track, and the current playback order is random playback, or if the current playback status is paused, re-obtain the audio playback information, and obtain the second audio data according to the re-obtained audio playback information.

17. The audio source switching method for an audio source device according to claim 12, characterized in that, The method further includes: establishing a communication connection with the Bluetooth audio receiving device.

18. A method for switching audio sources in a Bluetooth audio receiving device, characterized in that, The method includes: Receive the first audio data of the first sound source device; Obtain the first Bluetooth link quality with the first sound source device. When the first Bluetooth link quality is lower than the first preset threshold, obtain the audio playback information of the first sound source device, and start timing after obtaining the audio playback information; Continue to monitor the first Bluetooth link quality with the first sound source device; Stop timing to obtain the timing time when the first Bluetooth link quality is lower than the second preset threshold, where the second preset threshold is lower than the first preset threshold; Obtain the latest playback progress according to the audio playback information and the timing time; Based on a pre-established communication connection with the second sound source device, send the latest playback progress and the audio playback information to the second sound source device, so that the second sound source device can obtain second audio data according to the latest playback progress and the audio playback information, wherein the communication connection is established between the start time and the stop time; and Receive the second audio data of the second sound source device.

19. The method for switching a sound source in a Bluetooth audio receiving device according to claim 18, characterized in that, The audio playback information includes at least one of the current playlist source, the current track source, the total duration of the current track, the current playback progress, the current playback speed, the current playback status, and the current playback order.

20. The method for switching audio sources in a Bluetooth audio receiving device according to claim 19, characterized in that, The obtaining the latest playback progress according to the audio playback information and the timing time includes: If the current playback status is playing, obtain the latest playback progress according to the current playback progress, the current playback speed, and the timing time.

21. The method for switching audio sources in a Bluetooth audio receiving device according to claim 19, characterized in that, The sending the latest playback progress and the audio playback information to the second sound source device includes: If the latest playback progress is less than the total duration of the current track, or, if the current playback status is playing, and the latest playback progress is greater than or equal to the total duration of the current track, and the current playback order is sequential playback, send the latest playback progress and the audio playback information to the second sound source device.

22. The method for switching audio sources in a Bluetooth audio receiving device according to claim 21, wherein, The method further includes: If the current playback status is playing, and the latest playback progress is greater than or equal to the total duration of the current track, and the current playback order is random playback, or, if the current playback status is paused, re-obtain the audio playback information and send the re-obtained audio playback information to the second sound source device, so that the second sound source device can obtain second audio data according to the re-obtained audio playback information.

23. The method for switching audio sources in a Bluetooth audio receiving device according to claim 18, wherein The method further includes: establishing a communication connection with the second sound source device.

24. The method for switching audio sources in a Bluetooth audio receiving device according to claim 23, wherein, When there are at least two second sound source devices, the establishing a communication connection with the second sound source device includes: Obtain the second Bluetooth link quality between each second sound source device and the at least two second sound source devices; Establish a communication connection with the second sound source device with the best second Bluetooth link quality.

25. The method for switching audio sources in a Bluetooth audio receiving device according to claim 23, wherein, When there are at least two second sound source devices, the establishing a communication connection with the second sound source device includes: Obtain the distance between each second sound source device and the at least two second sound source devices; Establish a communication connection with the second sound source device with the minimum distance.

26. The method for switching sound sources in a Bluetooth audio receiving device according to claim 25, characterized in that, Obtain the distance between each second sound source device and the at least two second sound source devices through ultra-wideband technology and / or Bluetooth technology.

27. The method for switching audio sources in a Bluetooth audio receiving device according to claim 18, wherein, The method further includes: based on service requirements, select whether to retain the communication connection with the first sound source device.

28. The method for switching audio sources in a Bluetooth audio receiving device according to claim 18, characterized in that, The Bluetooth audio receiving device includes a Bluetooth headset.

29. The method for switching sound sources in a Bluetooth audio receiving device according to claim 18, wherein The method further includes: playing the first audio data.

30. The method for switching audio sources in a Bluetooth audio receiving device according to claim 18, wherein, The method further includes: playing the second audio data.

31. The method for switching audio sources in a Bluetooth audio receiving device according to claim 30, wherein, The method further includes: sending an instruction to stop transmitting the first audio data to the first sound source device.

32. A sound source switching method for a sound source device, characterized in that, The method includes: Receive the latest playback progress and audio playback information from a Bluetooth audio receiving device; Obtain second audio data based on the latest playback progress and the audio playback information; and Send the second audio data to the Bluetooth audio receiving device so that the Bluetooth audio receiving device plays the second audio data; Wherein, the Bluetooth audio receiving device sends the latest playback progress and audio playback information in the following manner: Receive first audio data from a first sound source device; Obtain the first Bluetooth link quality with the first sound source device, obtain the audio playback information of the first sound source device when the first Bluetooth link quality is lower than a first preset threshold, and start timing after obtaining the audio playback information; Continue to monitor the first Bluetooth link quality with the first sound source device; Stop timing to obtain a timing time when the first Bluetooth link quality is lower than a second preset threshold, wherein the second preset threshold is lower than the first preset threshold; Obtain the latest playback progress based on the audio playback information and the timing time; Based on a pre-established communication connection with a second sound source device, send the latest playback progress and the audio playback information to the second sound source device, wherein the communication connection is established between the start of timing and the stop of timing.

33. The audio source switching method for an audio source device according to claim 32, wherein, The audio playback information includes at least one of the current playlist source, the current track source, the total duration of the current track, the current playback progress, the current playback speed, the current playback state, and the current playback order.

34. The audio source switching method for an audio source device according to claim 33, wherein The obtaining the second audio data according to the latest playback progress and the audio playback information includes: If the latest playback progress is less than the total duration of the current track, obtain the second audio data according to the latest playback progress and the current track source in the audio playback information; If the current playback state is playing, and the latest playback progress is greater than or equal to the total duration of the current track, and the current playback order is sequential playback, obtain the second audio data according to the latest playback progress, the current playback order and the current playlist source in the audio playback information.

35. The audio source switching method for an audio source device according to claim 32, characterized in that, The method further includes: Receive the re-obtained audio playback information from the Bluetooth audio receiving device; Obtain the second audio data according to the re-obtained audio playback information.

36. The audio source switching method for an audio source device according to claim 32, wherein The method further includes: establishing a communication connection with the Bluetooth audio receiving device.

37. A computer-readable storage medium, characterized in that, Stored thereon is a computer program which, when executed by a processor, implements the method for switching sound sources in a Bluetooth audio receiving device as described in any one of claims 1-11, or implements the sound source switching method for a sound source device as described in any one of claims 12-17, or implements the method for switching sound sources in a Bluetooth audio receiving device as described in any one of claims 18-31, or implements the sound source switching method for a sound source device as described in any one of claims 32-36.

38. A Bluetooth audio receiving device, characterized in that, It includes a memory, a processor, and a program for switching audio sources stored on the memory and executable on the processor. When the processor executes the program for switching audio sources, it implements the method for switching audio sources in a Bluetooth audio receiving device as described in any one of claims 1 - 11, or implements the method for switching audio sources in a Bluetooth audio receiving device as described in any one of claims 18 - 31.

39. A sound source device, characterized in that, It includes a memory, a processor, and an audio source switching program stored on the memory and executable on the processor. When the processor executes the audio source switching program, it implements the audio source switching method for an audio source device as described in any one of claims 12 - 17, or implements the audio source switching method for an audio source device as described in any one of claims 32 - 36.

40. A playback system, characterized in that, It includes the Bluetooth audio receiving device as described in claim 38 and / or the audio source device as described in claim 39.

Citation Information

Patent Citations

  • Method for changing type of streamed content for an audio system

    US9904508B1