WO2023071408A1 - 蓝牙音频播放方法、装置及计算机可读存储介质 - Google Patents

蓝牙音频播放方法、装置及计算机可读存储介质 Download PDF

Info

Publication number
WO2023071408A1
WO2023071408A1 PCT/CN2022/112219 CN2022112219W WO2023071408A1 WO 2023071408 A1 WO2023071408 A1 WO 2023071408A1 CN 2022112219 W CN2022112219 W CN 2022112219W WO 2023071408 A1 WO2023071408 A1 WO 2023071408A1
Authority
WO
WIPO (PCT)
Prior art keywords
bluetooth device
playback
information
application
bluetooth
Prior art date
Application number
PCT/CN2022/112219
Other languages
English (en)
French (fr)
Inventor
许梅
徐旻
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2023071408A1 publication Critical patent/WO2023071408A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/439Processing of audio elementary streams
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/16Central resource management; Negotiation of resources or communication parameters, e.g. negotiating bandwidth or QoS [Quality of Service]
    • H04W28/24Negotiating SLA [Service Level Agreement]; Negotiating QoS [Quality of Service]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/02Access restriction performed under specific conditions
    • H04W48/04Access restriction performed under specific conditions based on user or terminal location or mobility data, e.g. moving direction, speed
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information

Definitions

  • the present application relates to but not limited to the technical field of Bluetooth audio, and in particular relates to a Bluetooth audio playback method, device and computer-readable storage medium.
  • Bluetooth technology is an open global specification for wireless data and voice communication. It is a special short-range wireless technology connection for fixed and mobile devices to establish a communication environment. Now Bluetooth BLE audio is about to be launched, and the terminal Bluetooth BLE audio adopts Bluetooth low power consumption technology, not only can connect multiple Bluetooth devices, but also the terminal can broadcast audio to multiple Bluetooth devices.
  • the terminal when the terminal uses Bluetooth BLE to play audio of multiple audio and video applications, it does not support independently arranging Bluetooth devices for audio sources of different applications to play.
  • Embodiments of the present application provide a Bluetooth audio playback method, device, and computer-readable storage medium.
  • the embodiment of the present application provides a bluetooth audio playback method, including: acquiring information of an available bluetooth device group, where the available bluetooth device group is a collection of multiple available bluetooth devices; information and user operation information; determine the assignment information of the playback application to the Bluetooth device according to the playback information of the Bluetooth device and the user operation information; assign the playback application to the Bluetooth device according to the assignment information , so that the bluetooth device plays the playback application according to the distribution information.
  • the embodiment of the present application also provides a Bluetooth audio playback device, including: a memory, a processor, and a computer program stored on the memory and operable on the processor, wherein the processor executes the computer program
  • the program implements the bluetooth audio playback method as described in the first aspect above.
  • the embodiment of the present application further provides a computer-readable storage medium storing computer-executable instructions, the computer-executable instructions being used to execute the Bluetooth audio playback method as described in the first aspect above.
  • Fig. 1 is a schematic diagram of a system architecture platform for performing a bluetooth audio playback method provided by an embodiment of the present application
  • Fig. 2 is the flowchart of the bluetooth playing method provided by one embodiment of the present application.
  • Fig. 3 is a flow chart of determining allocation information when a playback application prepares to play audio in a Bluetooth playback method provided by an embodiment of the present application;
  • Fig. 4 is a flowchart of determining priority according to historical Bluetooth playback records in the Bluetooth playback method provided by one embodiment of the present application;
  • Fig. 5 is a flowchart of determining priority when the user has not canceled the playback in the Bluetooth playback method provided by an embodiment of the present application
  • FIG. 6 is a flow chart of determining priority according to Bluetooth device playback information in a Bluetooth playback method provided by an embodiment of the present application
  • Fig. 7 is a flow chart of allocating audio according to priority in the bluetooth playback method provided by one embodiment of the present application.
  • FIG. 8 is a flow chart of processing allocation information when there is a new Bluetooth device in the Bluetooth playback method provided by an embodiment of the present application.
  • FIG. 9 is a flow chart of processing a newly added Bluetooth device and a default playback application in a Bluetooth playback method provided by an embodiment of the present application.
  • FIG. 10 is a flow chart of determining allocation information according to location in a Bluetooth playback method provided by an embodiment of the present application.
  • FIG. 11 is a block diagram of a bluetooth playback method provided by an embodiment of the present application.
  • FIG. 12 is a schematic flow diagram of a module-based Bluetooth playback method provided by an embodiment of the present application.
  • Fig. 13 is a schematic flowchart of a module-based Bluetooth playback method provided by another embodiment of the present application.
  • Bluetooth technology is an open global specification for wireless data and voice communication. It is a special short-range wireless technology connection for fixed and mobile devices to establish a communication environment. Now Bluetooth BLE audio is about to be launched, and the terminal Bluetooth BLE audio adopts Bluetooth low power consumption technology, not only can multiple Bluetooth devices be connected, but also the terminal can broadcast audio to multiple Bluetooth devices. The app's audio source schedules playback on Bluetooth devices independently.
  • the embodiment of the present application provides a Bluetooth audio playback method, device and computer-readable storage medium
  • the Bluetooth audio playback method includes but not limited to the following steps: First, obtain the information of the available Bluetooth device group, available Bluetooth
  • the bluetooth device group is a collection of multiple available bluetooth devices; then, detect the bluetooth device playback information and user operation information of the playback application; after that, determine the distribution information assigned to the bluetooth device by the playback application according to the bluetooth device playback information and user operation information; Finally, the playback application is assigned to the Bluetooth device according to the distribution information, so that the Bluetooth device plays the playback application according to the distribution information.
  • the embodiment of the application determines the playback application through the playback information of the Bluetooth device and user operation information.
  • a playback application is assigned to a Bluetooth device to play according to the distribution strategy.
  • the audio sources of different applications can be independently Arrange Bluetooth devices to play, so as to realize the use of one terminal to control multiple Bluetooth devices to play different audio.
  • FIG. 1 is a schematic diagram of a system architecture platform for executing a Bluetooth audio playback method provided by an embodiment of the present application.
  • the system architecture platform 100 is provided with a terminal 110 and a Bluetooth device 120 , wherein the terminal 110 and the Bluetooth device 120 can be connected through a Bluetooth protocol or other methods.
  • FIG. 2 is a flow chart of a Bluetooth playback method provided by an embodiment of the present application.
  • the method includes but is not limited to step S100 , step S200 , step S300 and step S400 .
  • Step S100 obtaining the information of the available bluetooth device group, the available bluetooth device group is a set of multiple available bluetooth devices;
  • Step S200 detecting the playback information of the Bluetooth device and the user operation information of the playback application
  • Step S300 determine the distribution information assigned to the Bluetooth device by the playback application according to the playback information of the Bluetooth device and the user operation information;
  • Step S400 distribute the playing application to the bluetooth device according to the distribution information, so that the bluetooth device plays the playing application according to the distribution information.
  • the embodiment of the present application firstly, the information of the available Bluetooth device group is obtained, and the available Bluetooth available Bluetooth device group is a collection of multiple available Bluetooth devices; then, the Bluetooth device playback information and user operation information of the playback application are detected; after that, Determine the allocation information of the playback application to the Bluetooth device according to the playback information of the Bluetooth device and the user operation information; finally, assign the playback application to the Bluetooth device according to the allocation information, so that the Bluetooth device plays the playback application according to the allocation information.
  • the embodiment of the present application determines the allocation strategy through the Bluetooth device playback information and user operation information of the playback application, and assigns a certain playback application to a certain Bluetooth device according to the allocation strategy. In this way, the terminal adopts Bluetooth BLE When playing the audio of multiple audio and video applications, the audio sources of different applications can be independently arranged for Bluetooth devices to play, so that one terminal can be used to control multiple Bluetooth devices to play different audio.
  • the terminal may be a terminal device such as a mobile phone, a smart vehicle, a smart TV, or a projector;
  • the playback application may include software capable of playing audio on the terminal, such as a mobile phone application, a vehicle application, a TV application, projector application or VR device application, etc.
  • the available Bluetooth device group may include the Bluetooth device connected to the terminal or the Bluetooth device searched by the terminal that can be controlled by the terminal;
  • the playback information of the Bluetooth device playing the application may include the playback application and The distribution and playback records between Bluetooth devices;
  • the user operation information may include the information received by the terminal to cancel the audio playback of the Bluetooth device playing the application, and may also include the information received by the terminal to schedule the playback application to be played by other Bluetooth devices.
  • the allocation information determined by the Bluetooth device playback information of the playback application and the user operation information includes the allocation of the playback application and the Bluetooth device, and can reflect the user's preference to a certain extent, so that the terminal can According to the assignment information, an appropriate assignment strategy is generated to assign the playback application to the Bluetooth device for playback.
  • the Bluetooth device playback information of the playback application may include the distribution and playback records between the playback application and the Bluetooth device; the user operation information may include canceling the playback of the Bluetooth device playback application received by the terminal.
  • the audio information of the audio can also include the information received by the terminal to schedule the playback application to be played by other Bluetooth devices.
  • the distribution mapping relationship between the playback application and the Bluetooth device can be obtained as a distribution Information, and then assign the playback application to the corresponding Bluetooth device according to the distribution information, so that the Bluetooth device plays the playback application according to the distribution information, so as to realize the use of one terminal to control multiple Bluetooth devices to play different audio.
  • FIG. 3 is a flow chart of determining allocation information when a playback application prepares to play audio in a Bluetooth playback method provided by an embodiment of the present application.
  • step S300 of determining the assignment information of the playback application to the Bluetooth device according to the playback information of the Bluetooth device and the user operation information it includes but not limited to Step S610, Step S620 and Step S630.
  • Step S610 when it is detected that the playback application is ready to play audio, obtain the playback information of the Bluetooth device that is ready to play the application;
  • Step S620 determining the priority of the Bluetooth device in the available Bluetooth device group according to the playback information of the Bluetooth device to play the application and the user operation information;
  • Step S630 determining allocation information according to the priority of the Bluetooth device and user operation information.
  • the embodiment of the present application can obtain the playback information of the Bluetooth device that is ready to play the application, and determine the priority of the Bluetooth device in the available Bluetooth device group according to the playback information of the Bluetooth device that is ready to play the application and the user operation information. The allocation information is then determined according to the priority of the Bluetooth device and user operation information.
  • the terminal detects that an application is about to play audio, and before the audio is not played, obtains the Bluetooth device that played the audio of the application for the last time , which is equivalent to obtaining the playback information of the Bluetooth device that is ready to play the application, and then detecting the canceled record of the Bluetooth device that played the audio of the application to be played for the last time, and then the Bluetooth device that is ready to play the application will play the information and the canceled playback Record the priority.
  • a prompt message can pop up at the terminal to prompt the user whether to accept the assignment. If the user does not have any operation feedback within a certain period of time, the user accepts the allocation by default, and the allocation information is finalized.
  • the priority of the Bluetooth device in the available Bluetooth device group is determined according to the playback information of the Bluetooth device and the user operation information of the application to be played, and then the processing process of determining the allocation information according to the priority of the Bluetooth device and the user operation information can be obtained Allocation information that is more in line with user preferences and more reflective of real-time user preferences.
  • the priority of the Bluetooth device in the available Bluetooth device group can be a unilateral priority or a multi-faceted priority; the user operation information can include canceling the Bluetooth device playing the audio of the application received by the terminal.
  • the information may also include the information received by the terminal to schedule the playback application to be played by other bluetooth devices.
  • the unilateral priority can sort the Bluetooth devices in the available Bluetooth device group according to the Bluetooth device playback information and user operation information. The closer the ranking position is to the first rank, the higher the priority. When it is in the first order, the priority is the highest; multiple priorities can be obtained according to various indicators, for example, according to the number of times the Bluetooth device is assigned to play and the number of times the Bluetooth device is canceled to get 2 priority, and then determine the allocation information according to the importance of these two priorities, the importance can be reflected by the weight, so that the allocation information that is more in line with the user's preference can be obtained.
  • Figure 4 is a flow chart of determining priority according to historical Bluetooth playback records in the Bluetooth playback method provided by one embodiment of the present application.
  • determination of the priority of the Bluetooth device in the available Bluetooth device group according to the playback information of the Bluetooth device of the application to be played and the user operation information in the above step S620 it includes but is not limited to step S700.
  • Step S700 when it is detected that there is a playback record in the Bluetooth device playback information of the application to be played, and the historical Bluetooth devices recorded in the playback record exist in the available Bluetooth device group, adjust according to the cancellation of the Bluetooth playback record of the application to be played in the user operation information Priority of historical bluetooth devices in the pool of available bluetooth devices.
  • the embodiment of the present application can obtain the playback information of the Bluetooth device that is ready to play the application.
  • the Bluetooth device group adjust the priority of the historical Bluetooth device in the available Bluetooth device group according to the canceled Bluetooth playback record of the ready-to-play application in the user operation information, so that the priority of the Bluetooth device that is more in line with the user's preference can be obtained.
  • the ready-to-play application refers to a playback application that is ready to play audio
  • the playback record of the Bluetooth device playback information of the ready-to-play application includes historical Bluetooth device information that has played the ready-to-play application.
  • the historical bluetooth device may be a bluetooth device that has been allocated recently, or may be multiple bluetooth devices that have been allocated.
  • the embodiment of the present application when the playing application is ready to play audio, the embodiment of the present application can obtain the playback information of the Bluetooth device of the application to be played, and when it is detected that there is a playback record of the playback information of the Bluetooth device of the application to be played, and The historical Bluetooth devices recorded in the playback record exist in the group of available Bluetooth devices. If the Bluetooth playback record of the ready-to-play application in the user operation information does not include the historical Bluetooth device, that is, the historical Bluetooth device has not been canceled for playback. At this time The priorities of historical Bluetooth devices that have not been canceled for playback can be adjusted, and this processing process can obtain the priorities of Bluetooth devices that are more in line with user preferences, so as to formulate an appropriate allocation strategy.
  • the adjustment method can be to adjust the priority of historical Bluetooth devices to the highest level, or just increase the priority by one level; in the case of multiple priority , you can only increase the priority of one aspect, or increase the priority of multiple aspects at the same time.
  • the way to increase it can be to increase the priority to the highest level, or just increase the priority by one level.
  • the adjustment method is here It is not necessary to go into details one by one, as long as the preferences of the users can be reflected.
  • two priorities can be obtained according to the number of times the Bluetooth device is assigned to play and the device’s playback duration.
  • this embodiment of the application can obtain the Bluetooth Device playback information, when it is detected that there is a playback record of the Bluetooth device playback information of the application to be played, and the historical Bluetooth device recorded in the playback record exists in the available Bluetooth device group, if the Bluetooth playback of the application to be played is canceled in the user operation information
  • the record does not include historical Bluetooth devices, that is, the historical Bluetooth devices have not been canceled for playback.
  • the priority of historical Bluetooth devices that have not been canceled for playback can be adjusted.
  • the adjustment can be related to the number of times the Bluetooth device is assigned to play. Priority, or to increase the priority related to the device's playback time indicator. The way to increase it can be to increase the priority to the highest level, or just increase the priority by one level. The adjustment method will not be described here, as long as it can Just reflect the user's preference.
  • FIG. 5 is a flow chart of determining the priority when the user has not canceled the playback in the Bluetooth playback method provided by an embodiment of the present application.
  • step S700 of adjusting the priority of historical Bluetooth devices in the available Bluetooth device group according to the canceling Bluetooth playback record of the ready-to-play application in the user operation information including but not limited to step S800.
  • Step S800 adjust the priority of the historical Bluetooth devices that have not canceled the playback in the available Bluetooth device group to the highest priority according to the Bluetooth playback record of the application that is ready to play in the user operation information, so that the historical Bluetooth devices that have not canceled the playback are given priority.
  • the embodiment of the present application can obtain the playback information of the Bluetooth device that is ready to play the application.
  • the Bluetooth device group if the record of canceling Bluetooth playback of the ready-to-play application in the user operation information does not include the historical Bluetooth device, that is, the historical Bluetooth device has not been canceled for playback, you can give priority to the historical Bluetooth device that has not been cancelled. Adjust the level to the highest priority, so that the historical Bluetooth devices that have not been canceled will be given priority, so that the priority of the Bluetooth device that is more in line with the user's preference can be obtained.
  • the priority of historical Bluetooth devices can be adjusted to the highest; in the case of multi-aspect priority, only one of the priority can be adjusted to the highest , so that the historical Bluetooth devices that have not been canceled are assigned to the playback application, or the priority of multiple aspects is adjusted to the highest at the same time.
  • the method of adjusting the priority to the highest will not be described here, as long as it can reflect the user Preferences, assign the historical Bluetooth devices that have not been canceled to the playback application first.
  • FIG. 6 is a flowchart of determining a priority according to playback information of a Bluetooth device in a Bluetooth playback method provided by an embodiment of the present application.
  • the determination of the priority of the Bluetooth device in the available Bluetooth device group according to the playback information of the Bluetooth device of the application to be played and the user operation information in the above step S620 it includes but is not limited to step S900.
  • Step S900 when it is detected that the playback information of the Bluetooth device that is ready to play the application is empty, or the historical Bluetooth device recorded in the Bluetooth device playback information does not exist in the available Bluetooth device group, or there is a cancel playback record for the historical Bluetooth device in the user operation information , to update the priority of the Bluetooth device.
  • the terminal in the embodiment of the present application can obtain the playback information of the Bluetooth device that is ready to play the application.
  • the playback record of the Bluetooth device playback information of the application is empty, that is, there is no historical playback information, or The historical Bluetooth device recorded in the record does not exist in the available Bluetooth device group, or there is a record of canceling the Bluetooth playback of the historical Bluetooth device in the user operation information, that is, the user has canceled the playback of the historical Bluetooth device recorded in the playback record.
  • the priorities of the Bluetooth devices in the available Bluetooth device group are updated, so that the playback resources of the Bluetooth devices in the available Bluetooth device group are allocated reasonably.
  • updating the priority of the Bluetooth devices in the available Bluetooth device group can change the priority of an idle Bluetooth device so that the idle Bluetooth device can play the audio from the application to be played , making reasonable use of the playback resources of the bluetooth devices in the available bluetooth device group.
  • an idle Bluetooth device may refer to a Bluetooth device that has been assigned to other applications but does not play audio.
  • the determination of allocation information according to the priority of the Bluetooth device and user operation information in the above step S630 includes, but is not limited to, steps S1010 and S1020.
  • Step S1010 determining pre-allocation information according to the priority of the Bluetooth device
  • Step S1020 determining allocation information according to pre-allocation information and user operation information.
  • the embodiment of the present application can obtain the playback information of the Bluetooth device that is ready to play the application, and determine the priority of the Bluetooth device in the available Bluetooth device group according to the playback information of the Bluetooth device that is ready to play the application and the user operation information. Then the pre-allocation information is determined according to the priority of the Bluetooth device, and then the next allocation information is finally determined according to the pre-allocation information and user operation information.
  • the pre-allocation information is equivalent to a preliminary allocation plan. According to the pre-allocation information and user operation information, a final allocation information that is more in line with the user's real-time preference can be obtained.
  • the terminal detects that an application is about to play audio, and before the audio is not played, obtains the Bluetooth device that played the audio of the application for the last time , which is equivalent to obtaining the playback information of the Bluetooth device that is ready to play the application, and then detecting the record of the canceled playback of the Bluetooth device that played the audio of the application to be played for the last time, and then the Bluetooth device that is ready to play the application will play the information and the canceled playback Record the priority.
  • a preliminary allocation strategy can be determined, that is, a pre-allocation information can be obtained, and the final allocation information can be obtained according to the pre-allocation information.
  • a prompt message can pop up on the terminal to prompt the user whether to accept the allocation, if not, the allocation will be canceled this time, or if the user does not have any operation feedback within a period of time after the prompt message pops up, the default user After accepting the allocation, the allocation information is finally determined.
  • Such a process can determine an allocation information that is more in line with the user's real-time preference.
  • FIG. 7 is a flow chart of allocating audio according to priority in the Bluetooth playback method provided by an embodiment of the present application.
  • the Bluetooth device plays the playback application according to the distribution information, it includes but not limited to step S1100.
  • Step S1100 according to the assignment information, assign the bluetooth device with higher priority to the playback application that runs first, so that the bluetooth device plays the playback application that runs first according to the assignment information.
  • the information of the available Bluetooth device group which is a collection of multiple available Bluetooth devices; then, detect the playback information of the Bluetooth device and user operation information of the playback application; then, according to the playback information of the Bluetooth device and the user
  • the operation information determines the priority of the Bluetooth device in the available Bluetooth device group to determine the allocation information, or, when it is detected that the playback application is ready to play audio, obtain the playback information of the Bluetooth device that is ready to play the application, and based on the playback information of the Bluetooth device that is ready to play the application and the user
  • the operation information determines the priority of the bluetooth device in the available bluetooth device group; finally, according to the assignment information, assign the bluetooth device with higher priority to the player application that runs first, so that the bluetooth device plays the play application according to the assignment information.
  • the priority of the Bluetooth device in the available Bluetooth device group can be a unilateral priority or a multi-faceted priority;
  • the audio information may also include the information received by the terminal to schedule the playback application to be played by other Bluetooth devices.
  • the unilateral priority can sort the Bluetooth devices in the available Bluetooth device group according to the Bluetooth device playback information and user operation information.
  • the priority of aspects can be obtained according to multiple indicators. For example, according to the number of times Bluetooth devices are assigned to play and the number of times Bluetooth devices are canceled to get 2 priorities, and then according to the two priorities Importance to determine its final priority.
  • the Bluetooth device with the second highest level is assigned to the second opened playback application, and the subsequent Bluetooth devices are also assigned according to this rule.
  • FIG. 8 is a flow chart of processing allocation information when there is a new Bluetooth device in the Bluetooth playback method provided by an embodiment of the present application.
  • step S300 of determining the allocation information of the playback application to the Bluetooth device according to the playback information of the Bluetooth device and the user operation information it includes but is not limited to step S1210, step S1220 and step S1230.
  • Step S1210 acquiring the application play records of newly added Bluetooth devices in the available Bluetooth device group
  • Step S1220 determine the default playback information of the newly added Bluetooth device according to the application playback records
  • Step S1230 determine the distribution information according to the default playback information and user operation information of the newly added Bluetooth device.
  • the terminal can obtain the application playback record of the newly added Bluetooth device newly added to the available Bluetooth device group. After obtaining the application playback record, the terminal can determine the application playback record of the newly added Bluetooth device. Default playback information.
  • the default playback information can include the default playback application of the newly added Bluetooth device. The default playback information will be assigned to the newly added Bluetooth device first, so that user preferences can be reflected in the allocation strategy, and the new Bluetooth device is determined. After the default playback information, the allocation information is combined with the user operation information, so as to determine the allocation of the next playback application and the Bluetooth devices in the available Bluetooth device group on the basis of reflecting the user's real-time preferences.
  • the newly added Bluetooth device may include an available Bluetooth device newly detected by the terminal in the embodiment of the present application, and may also include a Bluetooth device newly connected to the terminal in the embodiment of the present application, and the user operation information may include The information received by the terminal to cancel the playback of the audio of the playback application by the Bluetooth device may also include the information received by the terminal to schedule the playback application to be played by other Bluetooth devices.
  • the terminal when there is a new Bluetooth device newly added to the group of available Bluetooth devices, the terminal will obtain the application playback record of the newly added Bluetooth device. At this time, it can detect whether there is a historical playback application in the application playback record. If there is information about the historical playback application, you can set the historical playback application as the default playback application for the newly added Bluetooth device, so as to bind the historical playback application to play on the new Bluetooth device, as a new Bluetooth device If the default playback application is set, the user can also be prompted whether to accept the assignment by popping up a prompt message. If not, the assignment will be cancelled. After accepting this allocation, the allocation information is finally obtained based on the above user operation information. Such a process can obtain an allocation information that is more in line with the user's historical preferences and real-time preferences, so as to determine the final allocation situation.
  • FIG. 9 is a flow chart of processing a newly added Bluetooth device and a default playback application in a Bluetooth playback method provided by an embodiment of the present application.
  • the determination of the default playback information of the newly added Bluetooth device according to the application playback records in the above step S1220 includes but is not limited to step S1300.
  • Step S1300 when it is detected that there is information about historical playback applications in the application playback records, determine the default playback information as setting the historical playback applications as the default playback applications for newly added Bluetooth devices, or when it is detected that the application playback records are empty, determine the default playback information To set the playback application opened first as the default playback application for newly added Bluetooth devices.
  • the terminal can acquire the application playback records of newly added Bluetooth devices newly added to the group of available Bluetooth devices. If there is historical playback application information, then determine the default playback information to set the historical playback application as the default playback application for newly added Bluetooth devices, or if the application playback record is empty, then determine the default playback information to be the first opened playback application The application is set as the default playback application of the new Bluetooth device, so that the playback application is bound to play on the new Bluetooth device.
  • the priority allocation relationship between the default playback application and the new bluetooth device is determined, that is, the default playback application will be assigned to the new bluetooth device, and the priority is determined
  • the allocation information is finally obtained based on the above user operation information.
  • Such a processing process can obtain an allocation information that is more in line with the user's historical preferences and real-time preferences.
  • the Bluetooth device is preferentially assigned to its corresponding default playback application at this time. So that the distribution strategy is more in line with the user's historical preference and user's real-time preference.
  • the application playback record may be a recently played application, or multiple played applications, and at this time, the default playback application may be the application that has been played the most times.
  • the distribution of the playback application to the bluetooth device according to the distribution information in the above step S400 includes but not limited to step S1410, step S1420, step S1430, step S1440 and step S1450.
  • Step S1410 determine the distribution mapping relationship between the playback application and the Bluetooth device according to the distribution information
  • Step S1420 encoding the audio data stream of the playback application to obtain the Bluetooth data packet
  • Step S1430 acquiring the identification information of the Bluetooth device
  • Step S1440 adding identification information to the Bluetooth data packet
  • Step S1450 sending a bluetooth data packet containing identification information to the bluetooth device.
  • the information of the available Bluetooth device group is obtained, and the available Bluetooth available Bluetooth device group is a collection of multiple available Bluetooth devices; then, the Bluetooth device playback information and user operation information of the playback application are detected; after that, Determine the allocation information of the playback application to the Bluetooth device according to the playback information of the Bluetooth device and the user operation information; after obtaining the allocation information, first determine the allocation mapping relationship between the playback application and the Bluetooth device according to the allocation information, and then perform the audio data stream of the playback application Encoding to obtain a Bluetooth data packet, at this time, the terminal obtains the identification information of the Bluetooth device, adds the identification information to the Bluetooth data packet, and finally sends the Bluetooth data packet containing the identification information to the Bluetooth device.
  • the Bluetooth device can use the identification information contained in the data packet to play the corresponding audio, so that one terminal can be used to control multiple Bluetooth devices to play different audio.
  • the terminal can not only use low-power Bluetooth BLE to play, but also use other Bluetooth protocols that can match multiple Bluetooth devices to play. Based on the same idea, it is also possible to use one terminal to control multiple devices. Each Bluetooth device plays different audio.
  • FIG. 10 is a flowchart of determining allocation information according to a location in a Bluetooth playback method provided by an embodiment of the present application.
  • the bluetooth device plays the playing application according to the distribution information, it includes but not limited to step S1510 and step S1520.
  • Step S1510 acquiring the location information of the terminal
  • Step S1520 adjusting the distribution information according to the location information.
  • the location information of the terminal can be obtained through GPS, WiFi, signal base station or Bluetooth, etc., and then the distribution information can be adjusted according to the location information.
  • the mobile terminal can obtain the current terminal location information through GPS.
  • the terminal is in a certain location, such as the terminal is in the previously set home address
  • the The pairing status of the playback application at home and the Bluetooth device set in advance can be used as the allocation information when the terminal is at the home address, so that the allocation strategy can meet the needs of users in different scenarios.
  • the mobile terminal can also obtain the current terminal location information through WiFi.
  • the terminal is at a certain location, such as a certain indoor location
  • the pre-set pairing status of the playback application in the indoor location and the Bluetooth device can be used as the allocation information when the terminal is in a certain indoor location, so that the allocation strategy can meet the needs of users in different scenarios.
  • Figure 11 is a schematic diagram of the modules of the Bluetooth playback method provided by an embodiment of the present application.
  • the terminal may include an application management module 101, a device management module 120, and a GPS module 103 , audio module 104, DSP module 105 and bluetooth module 106.
  • the application management module can be used to save the user's Bluetooth device selection record of each application, and set a priority for the Bluetooth devices in the currently available Bluetooth device group.
  • the device management module can be used to manage each bluetooth device in the currently available bluetooth device group, including bluetooth address code, device type and other information.
  • the GPS module can be used to obtain the current location information of the user, so that the terminal can adjust the allocation strategy according to the location information, such as whether it is in a common home address, when it is in a common home location, adjust the allocation strategy, and expand the usage scenarios of some smart homes.
  • the audio module and DSP module can be used to process the current audio stream data, including encoding, adding identification information to the Bluetooth data packet, selecting the output channel, etc.
  • the Bluetooth module is used to establish a connection with the remote Bluetooth device, and send the received audio stream data to the remote Bluetooth device, etc.
  • Figure 12 is a schematic flowchart of a module-based Bluetooth playback method provided by an embodiment of the present application.
  • the embodiment of the present application includes but is not limited to the following steps or judgments:
  • Step S1601 the application management module obtains the available Bluetooth device group reported by the Bluetooth module, and sorts the Bluetooth devices according to the allocation information to determine the priority of the Bluetooth devices, and detects that the playback application is ready to output audio data;
  • Judgment C1601 query the application management module 101 and the device management module 102, whether the application has device playback records and whether the device is in the currently available Bluetooth device group, if yes, then execute judgment C102, if not, then execute step S1603;
  • Judgment C1602 inquire whether the user of the application management module 101 has not canceled the device, if yes, execute step S102, if not, execute step S1603;
  • Step S1602 setting the bluetooth device as the first order in the device list of the current application in the application management module 101;
  • Step S1603 based on information such as the current device type managed in the device management module 102, the application management module 101 optimizes and sorts the device list of the current application;
  • Step S1604 allocate the Bluetooth device with high priority to the application opened first, and notify the user to display the allocation prompt, and display the cancel button at the same time, and keep the operation result of the cancel button in the application management module 101;
  • Step S1605 the audio module 104 processes the audio data stream sent by the playback application and transmits it to the DSP module 105;
  • Step S1606 the DSP module 105 transmits the encoded audio data stream to the Bluetooth module 106;
  • Step S1607 the bluetooth module 106 obtains the identifier of the remote bluetooth device in the available bluetooth device group, and fills the sent data packet with the identifier as a data packet header.
  • the remote Bluetooth device when the remote Bluetooth device receives the Bluetooth data packet, the remote Bluetooth device can find that the identifier in the header of the data packet is consistent with itself after comparison, and the remote Bluetooth device can receive the data packet and compare the Audio data is decoded and played.
  • the GPS module 103 can be applied before step S1604.
  • the GPS module 103 judges the location of the terminal.
  • the pairing situation of the terminal is used as the allocation information when the terminal is at the home address, so that the allocation strategy can meet the needs of the required users in different scenarios.
  • Figure 13 is a schematic flowchart of a module-based Bluetooth playback method provided by another embodiment of the present application.
  • the embodiment of the present application includes but is not limited to the following steps or judgments:
  • step S1701 the Bluetooth module 106 notifies the application management module 101 that a new Bluetooth device has joined the group of available Bluetooth devices.
  • Judging C1701 querying the application management module 101, whether the newly added Bluetooth device has an application playback record, if yes, then perform step S1702, if not, then perform step S1703;
  • Step S1702 setting the playback application in the playback record as the default playback application of the newly added Bluetooth device
  • Step S1703 setting the currently playing application as the default playback application for the newly added Bluetooth device
  • Step S1704 assigning the newly-added Bluetooth device to the default playback application for playback, and notifying the user to display the distribution prompt notification, and display the cancel button at the same time, and keep the operation result of the cancel button in the application management module 101;
  • Step S1705 the audio module 104 processes the audio data stream sent by the playback application and transmits it to the DSP module 105;
  • Step S1706 the DSP module 105 transmits the encoded audio data stream to the Bluetooth module 106;
  • Step S1707 the bluetooth module 106 obtains the identifier of the newly added bluetooth device in the available bluetooth device group, and fills the sent data packet with the identifier as a data packet header.
  • a new bluetooth device when a new bluetooth device receives a bluetooth data packet, the new bluetooth device can find that the identifier in the header of the data packet is consistent with itself after comparison, and the new bluetooth device can receive the data packet and check the Audio data is decoded and played.
  • the GPS module 103 can be applied before step S1704.
  • the GPS module 103 judges the location of the terminal.
  • the pairing situation of the terminal is used as the allocation information when the terminal is at the home address, so that the allocation strategy can meet the needs of the required users in different scenarios.
  • Bluetooth audio playback device Based on the above-mentioned Bluetooth audio playback method, various embodiments of the Bluetooth audio playback device and the computer-readable storage medium of the present application are proposed below.
  • an embodiment of the present application also provides a Bluetooth audio playback device, which includes: a memory, a processor, and a computer program stored in the memory and operable on the processor.
  • the processor and memory can be connected by a bus or other means.
  • the Bluetooth audio playback device in this embodiment can be applied to the system architecture platform in the embodiment shown in Figure 1, and the Bluetooth audio playback device in this embodiment can constitute the system in the embodiment shown in Figure 1 As a part of the architecture platform, the two belong to the same inventive concept, so they have the same realization principle and beneficial effects, which will not be described in detail here.
  • the non-transitory software programs and instructions required to realize the bluetooth audio playback method of the above-mentioned embodiment are stored in the memory, and when executed by the processor, the bluetooth audio playback method of the above-mentioned embodiment is executed, for example, executing the above-described Fig. 2 to The method steps in FIG. 13, or the steps or judgments in FIG. 15 and FIG. 16 are executed.
  • an embodiment of the present application also provides a computer-readable storage medium, the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to execute the above Bluetooth audio playback method. For example, execute the method steps in FIG. 2 to FIG. 13 described above, or execute the steps or judgments in FIG. 15 and FIG. 16 .
  • the embodiment of the present application includes: firstly, acquiring the information of the available bluetooth device group, the available bluetooth device group is a collection of multiple available bluetooth devices; then, detecting the bluetooth device playing information and user operation information of the playing application ; After that, according to the bluetooth device play information and the user operation information, determine the assignment information of the playback application to the bluetooth device; finally, assign the playback application to the bluetooth device according to the assignment information,
  • the embodiment of the application determines the distribution strategy through the playback information of the Bluetooth device and the user operation information of the application, and according to the distribution The strategy assigns a playback application to a Bluetooth device to play.
  • the terminal uses Bluetooth BLE to play the audio of multiple audio and video applications, it can independently arrange the playback of Bluetooth devices for the audio sources of different applications, thereby realizing Use one terminal to control multiple Bluetooth devices to play different audio.
  • Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cartridges, tape, magnetic disk storage or other magnetic storage devices, or can Any other medium used to store desired information and which can be accessed by a computer.
  • communication media typically embody computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media .

Abstract

本申请实施例提供了一种蓝牙音频播放方法、装置及计算机可读存储介质,包括:获取可用蓝牙设备群的信息,可用蓝牙设备群为多个可用的蓝牙设备的集合(S100);检测播放应用的蓝牙设备播放信息和用户操作信息(S200);根据蓝牙设备播放信息和用户操作信息确定播放应用分配给蓝牙设备的分配信息(S300);根据分配信息将播放应用分配给蓝牙设备,以使蓝牙设备根据分配信息播放播放应用(S400)。

Description

蓝牙音频播放方法、装置及计算机可读存储介质
相关申请的交叉引用
本申请基于申请号为202111256393.9、申请日为2021年10月27日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。
技术领域
本申请涉及但不限于蓝牙音频技术领域,尤其涉及一种蓝牙音频播放方法、装置及计算机可读存储介质。
背景技术
蓝牙技术是一种无线数据和语音通信开放的全球规范,为固定和移动设备建立通信环境的一种特殊的近距离无线技术连接,现蓝牙BLE audio即将推出,终端蓝牙BLE audio采用蓝牙低功耗技术,不仅可连接多个蓝牙设备,而且终端能够以广播的方式发送音频给多个蓝牙设备。
但是,相关技术中,当终端采用蓝牙BLE播放多个音视频应用的音频,并不支持给不同应用的音频源独立地安排蓝牙设备播放。
发明内容
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。
本申请实施例提供了一种蓝牙音频播放方法、装置及计算机可读存储介质。
第一方面,本申请实施例提供了一种蓝牙音频播放方法,包括:获取可用蓝牙设备群的信息,所述可用蓝牙设备群为多个可用的蓝牙设备的集合;检测播放应用的蓝牙设备播放信息和用户操作信息;根据所述蓝牙设备播放信息和所述用户操作信息确定所述播放应用分配给所述蓝牙设备的分配信息;根据所述分配信息将所述播放应用分配给所述蓝牙设备,以使所述蓝牙设备根据所述分配信息播放所述播放应用。
第二方面,本申请实施例还提供了一种蓝牙音频播放装置,包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其中,所述处理器执行所述计算机程序时实现如上述第一方面所述的蓝牙音频播放方法。
第三方面,本申请实施例还提供了一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行如上述第一方面所述的蓝牙音频播放方法。
本申请的其它特征和优点将在随后的说明书中阐述,并且,部分地从说明书中变得显而易见,或者通过实施本申请而了解。本申请的目的和其他优点可通过在说明书、权利要求书以及附图中所特别指出的结构来实现和获得。
附图说明
附图用来提供对本申请技术方案的进一步理解,并且构成说明书的一部分,与本申请的 实施例一起用于解释本申请的技术方案,并不构成对本申请技术方案的限制。
图1是本申请一个实施例提供的用于执行蓝牙音频播放方法的系统架构平台的示意图;
图2是本申请一个实施例提供的蓝牙播放方法的流程图;
图3是本申请一个实施例提供的蓝牙播放方法中当播放应用准备播放音频时确定分配信息的流程图;
图4是本申请一个实施例提供的蓝牙播放方法中根据历史蓝牙播放记录确定优先级的流程图;
图5是本申请一个实施例提供的蓝牙播放方法中当用户未曾取消播放时确定优先级的流程图;
图6是本申请一个实施例提供的蓝牙播放方法中根据蓝牙设备播放信息确定优先级的流程图;
图7是本申请一个实施例提供的蓝牙播放方法中根据优先级分配音频的流程图;
图8是本申请一个实施例提供的蓝牙播放方法中当有新增蓝牙设备时对分配信息处理的流程图;
图9是本申请一个实施例提供的蓝牙播放方法中对新增蓝牙设备与默认播放应用的处理的流程图;
图10是本申请一个实施例提供的蓝牙播放方法中根据位置确定分配信息的流程图;
图11是本申请一个实施例提供的蓝牙播放方法的模块示意图;
图12是本申请一个实施例提供的基于模块的蓝牙播放方法的流程示意图;
图13是本申请另一个实施例提供的基于模块的蓝牙播放方法的流程示意图。
具体实施方式
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本申请,并不用于限定本申请。
需要说明的是,虽然在装置示意图中进行了功能模块划分,在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于装置中的模块划分,或流程图中的顺序执行所示出或描述的步骤。说明书、权利要求书或上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。
蓝牙技术是一种无线数据和语音通信开放的全球规范,为固定和移动设备建立通信环境的一种特殊的近距离无线技术连接,现蓝牙BLE audio即将推出,终端蓝牙BLE audio采用蓝牙低功耗技术,不仅可连接多个蓝牙设备,而且终端能够以广播的方式发送音频给多个蓝牙设备,但是,相关技术中,当终端采用蓝牙BLE播放多个音视频应用的音频,并不支持给不同应用的音频源独立地安排蓝牙设备播放。
基于上述情况,本申请实施例提供了一种蓝牙音频播放方法、装置及计算机可读存储介质,该蓝牙音频播放方法包括但不限于如下步骤:首先,获取可用蓝牙设备群的信息,可用蓝牙可用蓝牙设备群为多个可用的蓝牙设备的集合;接着,检测播放应用的蓝牙设备播放信息和用户操作信息;之后,根据蓝牙设备播放信息和用户操作信息确定播放应用分配给蓝牙设备的分配信息;最后,根据分配信息将播放应用分配给蓝牙设备,以使蓝牙设备根据分配 信息播放播放应用,根据本申请实施例的技术方案,本申请实施例通过播放应用的蓝牙设备播放信息和用户操作信息确定了分配策略,按照该分配策略将某个播放应用分配给某个蓝牙设备播放,如此一来,在终端采用蓝牙BLE播放多个音视频应用的音频的时候,能够给不同应用的音频源独立地安排蓝牙设备播放,从而实现利用一个终端控制多个蓝牙设备播放不同的音频。
下面结合附图,对本申请实施例作进一步阐述。
如图1所示,图1是本申请一个实施例提供的用于执行蓝牙音频播放方法的系统架构平台的示意图。
在图1的示例中,该系统架构平台100设置有终端110和蓝牙设备120,其中,终端110和蓝牙设备120可以通过蓝牙协议或者其他方式连接。
基于上述系统架构平台,下面提出本申请的蓝牙音频播放方法的各个实施例。
另外,如图2所示,图2是本申请一个实施例提供的蓝牙播放方法的流程图,该方法包括但不限于有步骤S100、步骤S200、步骤S300和步骤S400。
步骤S100,获取可用蓝牙设备群的信息,可用蓝牙设备群为多个可用的蓝牙设备的集合;
步骤S200,检测播放应用的蓝牙设备播放信息和用户操作信息;
步骤S300,根据蓝牙设备播放信息和用户操作信息确定播放应用分配给蓝牙设备的分配信息;
步骤S400,根据分配信息将播放应用分配给蓝牙设备,以使蓝牙设备根据分配信息播放播放应用。
在本申请实施例中,首先,获取可用蓝牙设备群的信息,可用蓝牙可用蓝牙设备群为多个可用的蓝牙设备的集合;接着,检测播放应用的蓝牙设备播放信息和用户操作信息;之后,根据蓝牙设备播放信息和用户操作信息确定播放应用分配给蓝牙设备的分配信息;最后,根据分配信息将播放应用分配给蓝牙设备,以使蓝牙设备根据分配信息播放播放应用,根据本申请实施例的技术方案,本申请实施例通过播放应用的蓝牙设备播放信息和用户操作信息确定了分配策略,按照该分配策略将某个播放应用分配给某个蓝牙设备播放,如此一来,在终端采用蓝牙BLE播放多个音视频应用的音频的时候,能够给不同应用的音频源独立地安排蓝牙设备播放,从而实现利用一个终端控制多个蓝牙设备播放不同的音频。
需要说明的是,在本申请实施例中,终端可以是手机、智能车载、智能电视或投影仪等终端设备;播放应用可以包括终端上的能够播放音频的软件,例如手机应用、车载应用、电视应用、投影仪应用或者VR设备应用等等;可用蓝牙设备群可以包括与终端连接上的蓝牙设备或者终端搜索到的可以被终端控制的蓝牙设备;播放应用的蓝牙设备播放信息可以包括播放应用与蓝牙设备之间的分配播放记录;用户操作信息可以包括终端接收到的取消蓝牙设备播放播放应用的音频的信息,也可以包括终端接收到的将播放应用调度给其他蓝牙设备播放的信息。
另外,可以理解的是,由播放应用的蓝牙设备播放信息和用户操作信息所确定的分配信息包括了播放应用与蓝牙设备的分配情况,并且能够在一定程度上反映用户的偏好,从而使得终端能够根据分配信息来生成合适的分配策略将播放应用分配给蓝牙设备播放。
例如,以智能手机终端为应用场景,在本申请实施例中,打开手机蓝牙,通过搜索或连接的方式获取到可用蓝牙设备群的信息,可用蓝牙设备群包括多个可用的蓝牙设备,之后检 测手机内播放应用的蓝牙设备播放信息和用户操作信息,播放应用的蓝牙设备播放信息可以包括播放应用与蓝牙设备之间的分配播放记录;用户操作信息可以包括终端接收到的取消蓝牙设备播放播放应用的音频的信息,也可以包括终端接收到的将播放应用调度给其他蓝牙设备播放的信息,之后,可以根据蓝牙设备播放信息和用户操作信息,得到播放应用与蓝牙设备的分配映射关系,作为分配信息,再根据分配信息,将播放应用分配给对应的蓝牙设备,以使蓝牙设备根据分配信息播放播放应用,从而实现利用一个终端控制多个蓝牙设备播放不同的音频。
另外,如图3所示,图3是本申请一个实施例提供的蓝牙播放方法中当播放应用准备播放音频时确定分配信息的流程图。关于上述步骤S300中的根据蓝牙设备播放信息和用户操作信息确定播放应用分配给蓝牙设备的分配信息,包括但不限于有步骤S610、步骤S620和步骤S630。
步骤S610,当检测到播放应用准备播放音频,获取准备播放应用的蓝牙设备播放信息;
步骤S620,根据准备播放应用的蓝牙设备播放信息和用户操作信息确定蓝牙设备在可用蓝牙设备群中的优先级;
步骤S630,根据蓝牙设备的优先级和用户操作信息确定分配信息。
当播放应用准备播放音频,本申请实施例能够获取到准备播放应用的蓝牙设备播放信息,并根据准备播放应用的蓝牙设备播放信息和用户操作信息确定蓝牙设备在可用蓝牙设备群中的优先级,再根据蓝牙设备的优先级和用户操作信息确定分配信息。
示例性地,当本申请实施例应用于手机终端,在本申请实施例中,终端检测到某个应用即将播放音频,在未播放音频之前,获取最后一次播放了准备播放应用的音频的蓝牙设备,相当于获取准备播放应用的蓝牙设备播放信息,之后再检测最后一次播放了准备播放应用的音频的蓝牙设备的被取消播放的记录,再由准备播放应用的蓝牙设备播放信息和被取消播放的记录得到优先级,在根据优先级进行播放应用与蓝牙设备的分配前,可以在终端处弹出提示消息,提示用户是否接受该分配,如果不接受则取消此次的分配,或者在弹出提示消息一段时间内,如果用户没有任何的操作反馈,则默认用户接受了此次分配,最终确定下分配信息。
上述实施例中的根据准备播放应用的蓝牙设备播放信息和用户操作信息确定蓝牙设备在可用蓝牙设备群中的优先级,再根据蓝牙设备的优先级和用户操作信息确定分配信息的处理过程可以得到更加符合用户偏好、更加反映用户实时偏好的分配信息。
需要说明的是,蓝牙设备在可用蓝牙设备群的优先级可以是单方面的优先级,也可以是多方面的优先级;用户操作信息可以包括终端接收到的取消蓝牙设备播放播放应用的音频的信息,也可以包括终端接收到的将播放应用调度给其他蓝牙设备播放的信息。
例如,在本申请实施例中,单方面的优先级可以根据蓝牙设备播放信息和用户操作信息对可用蓝牙设备群的蓝牙设备进行排序,排序位置越接近第一顺位,优先级越高,当处于第一顺位时,优先级最高;多方面的优先级可以根据多方面的指标得到多个优先级,比如,根据蓝牙设备被分配播放的次数指标和取消蓝牙设备播放的次数指标来得到2个优先级,再根据这2个优先级的重要性来确定分配信息,重要性可以通过权重来反映,这样能够得到更加符合出用户偏好的分配信息。
另外,如图4所示,图4是本申请一个实施例提供的蓝牙播放方法中根据历史蓝牙播放 记录确定优先级的流程图。关于上述步骤S620中的根据准备播放应用的蓝牙设备播放信息和用户操作信息确定蓝牙设备在可用蓝牙设备群中的优先级,包括但不限于有步骤S700。
步骤S700,当检测到准备播放应用的蓝牙设备播放信息存在播放记录,且播放记录所记录的历史蓝牙设备存在于可用蓝牙设备群中,根据用户操作信息中对准备播放应用的取消蓝牙播放记录调整历史蓝牙设备在可用蓝牙设备群中的优先级。
当播放应用准备播放音频,本申请实施例能够获取到准备播放应用的蓝牙设备播放信息,当检测到准备播放应用的蓝牙设备播放信息存在播放记录,且播放记录所记录的历史蓝牙设备存在于可用蓝牙设备群中,再根据用户操作信息中对准备播放应用的取消蓝牙播放记录调整历史蓝牙设备在可用蓝牙设备群中的优先级,这样可以得到更加符合用户偏好的蓝牙设备的优先级。
另外,可以理解的是,准备播放应用指准备播放音频的播放应用,准备播放应用的蓝牙设备播放信息的播放记录包括曾经播放过该准备播放应用的历史蓝牙设备信息。
另外,可以理解的是,历史蓝牙设备可以是一个最近被分配的蓝牙设备,也可以是多个被分配过的蓝牙设备。
示例性地,在本申请实施例中,当播放应用准备播放音频,本申请实施例能够获取到准备播放应用的蓝牙设备播放信息,当检测到准备播放应用的蓝牙设备播放信息存在播放记录,且播放记录所记录的历史蓝牙设备存在于可用蓝牙设备群中,如果在用户操作信息中对准备播放应用的取消蓝牙播放记录没有包括历史蓝牙设备,即该历史蓝牙设备没有被取消播放过,此时可以对未曾取消播放的历史蓝牙设备的优先级进行调整,该处理过程能够得出更加符合用户偏好的蓝牙设备的优先级,从而制定合适的分配策略。
另外,需要说明的是,在单方面优先级的情况下,调整的方式可以是将历史蓝牙设备的优先级调至最高,也可以只是将优先级提高一级;在多方面优先级的情况下,可以只调高一个方面的优先级,又或者将多方面的优先级同时调高,调高的方式可以是将优先级调至最高,或者只是将优先级提高一级,调整的方式在此不一一赘述,只要能够反映出用户的偏好即可。
例如,在本申请实施例中,可以根据蓝牙设备被分配播放的次数指标和设备播放时长指标来得到2个优先级,当当播放应用准备播放音频,本申请实施例能够获取到准备播放应用的蓝牙设备播放信息,当检测到准备播放应用的蓝牙设备播放信息存在播放记录,且播放记录所记录的历史蓝牙设备存在于可用蓝牙设备群中,如果在用户操作信息中对准备播放应用的取消蓝牙播放记录没有包括历史蓝牙设备,即该历史蓝牙设备没有被取消播放过,此时可以对未曾取消播放的历史蓝牙设备的优先级进行调整,调整可以是提高与蓝牙设备被分配播放的次数指标相关的优先级,或者是提高与设备播放时长指标相关的优先级,调高的方式可以是将优先级调至最高,或者只是将优先级提高一级,调整的方式在此不一一赘述,只要能够反映出用户的偏好即可。
另外,如图5所示,图5是本申请一个实施例提供的蓝牙播放方法中当用户未曾取消播放时确定优先级的流程图。关于上述步骤S700中的根据用户操作信息中对准备播放应用的取消蓝牙播放记录调整历史蓝牙设备在可用蓝牙设备群中的优先级,包括但不限于有步骤S800。
步骤S800,根据用户操作信息中对准备播放应用的取消蓝牙播放记录,将未取消播放的历史蓝牙设备在可用蓝牙设备群中的优先级调整到最高优先级,以使未取消播放的历史蓝牙设备被优先分配。
当播放应用准备播放音频,本申请实施例能够获取到准备播放应用的蓝牙设备播放信息,当检测到准备播放应用的蓝牙设备播放信息存在播放记录,且播放记录所记录的历史蓝牙设备存在于可用蓝牙设备群中,如果在用户操作信息中对准备播放应用的取消蓝牙播放记录没有包括历史蓝牙设备,即该历史蓝牙设备没有被取消播放过,此时可以对未取消播放的历史蓝牙设备的优先级调整到最高优先级,使未取消播放的历史蓝牙设备被优先分配,这样可以得到更加符合用户偏好的蓝牙设备的优先级。
另外,需要说明的是,在单方面优先级的情况下,可以是将历史蓝牙设备的优先级调至最高;在多方面优先级的情况下,可以只将其中一个方面的优先级调至最高,从而使未曾取消播放的历史蓝牙设备优先分配给播放应用,又或者将多方面的优先级同时调至最高,将优先级调至最高的方式在此不一一赘述,只要能够反映出用户的偏好,将未曾取消播放的历史蓝牙设备优先分配给播放应用即可。
另外,如图6所示,图6是本申请一个实施例提供的蓝牙播放方法中根据蓝牙设备播放信息确定优先级的流程图。关于上述步骤S620中的根据准备播放应用的蓝牙设备播放信息和用户操作信息确定蓝牙设备在可用蓝牙设备群中的优先级,包括但不限于有步骤S900。
步骤S900,当检测到准备播放应用的蓝牙设备播放信息为空,或者蓝牙设备播放信息所记录的历史蓝牙设备不存在于可用蓝牙设备群,或者用户操作信息中存在对历史蓝牙设备的取消播放记录,更新蓝牙设备的优先级。
当播放应用准备播放音频,本申请实施例的终端能够获取到准备播放应用的蓝牙设备播放信息,当检测到准备播放应用的蓝牙设备播放信息的播放记录为空,即没有历史播放信息,或者播放记录所记录的历史蓝牙设备不存在于可用蓝牙设备群中,又或者用户操作信息中有对历史蓝牙设备的取消蓝牙播放记录,即用户曾经将播放记录所记录的历史蓝牙设备取消播放过,在上述条件都满足的情况下,对可用蓝牙设备群中的蓝牙设备的优先级进行更新,以使可用蓝牙设备群中的蓝牙设备的播放资源得到合理的分配。
另外,需要说明的是,对可用蓝牙设备群中的蓝牙设备的优先级进行更新,可以通过改变某一个空闲的蓝牙设备的优先级,使得这个空闲的蓝牙设备能够播放来自于准备播放应用的音频,合理地利用了可用蓝牙设备群中的蓝牙设备的播放资源。可以理解的是,空闲的蓝牙设备可以指已经被分配给其他应用但是没有播放音频的蓝牙设备。
另外,关于上述步骤S630中的根据蓝牙设备的优先级和用户操作信息确定分配信息,包括但不限于有步骤S1010和步骤S1020。
步骤S1010,根据蓝牙设备的优先级确定预分配信息;
步骤S1020,根据预分配信息和用户操作信息确定分配信息。
当播放应用准备播放音频,本申请实施例能够获取到准备播放应用的蓝牙设备播放信息,并根据准备播放应用的蓝牙设备播放信息和用户操作信息确定蓝牙设备在可用蓝牙设备群中的优先级,之后根据蓝牙设备的优先级来确定预分配信息,之后再进一步根据预分配信息和用户操作信息来最终确定下分配信息。
另外,需要说明的是,预分配信息相当于一个初步的分配方案,根据预分配信息和用户操作信息,能够得出一个更符合用户实时偏好的最终的分配信息。
示例性地,当本申请实施例应用于手机终端,在本申请实施例中,终端检测到某个应用即将播放音频,在未播放音频之前,获取最后一次播放了准备播放应用的音频的蓝牙设备, 相当于获取准备播放应用的蓝牙设备播放信息,之后再检测最后一次播放了准备播放应用的音频的蓝牙设备的被取消播放的记录,再由准备播放应用的蓝牙设备播放信息和被取消播放的记录得到优先级,根据得到的优先级,可以确定一个初步的分配策略,即得到一个预分配信息,之后可以根据预分配信息来得到最终的分配信息,例如,在根据优先级进行播放应用与蓝牙设备的分配前,可以在终端处弹出提示消息,提示用户是否接受该分配,如果不接受则取消此次的分配,或者在弹出提示消息一段时间内,如果用户没有任何的操作反馈,则默认用户接受了此次分配,最终确定下分配信息,这样的处理过程能够确定一个更加符合用户实时偏好的分配信息。
另外,如图7所示,图7是本申请一个实施例提供的蓝牙播放方法中根据优先级分配音频的流程图。关于上述步骤S400中的根据分配信息将播放应用分配给蓝牙设备,以使蓝牙设备根据分配信息播放播放应用,包括但不限于有步骤S1100。
步骤S1100,根据分配信息,将优先级高的蓝牙设备先分配给先运行的播放应用,以使蓝牙设备根据分配信息播放先运行的播放应用。
首先,获取可用蓝牙设备群的信息,可用蓝牙可用蓝牙设备群为多个可用的蓝牙设备的集合;接着,检测播放应用的蓝牙设备播放信息和用户操作信息;之后,根据蓝牙设备播放信息和用户操作信息确定蓝牙设备在可用蓝牙设备群的优先级来确定分配信息,或者,当检测到播放应用准备播放音频,获取准备播放应用的蓝牙设备播放信息,根据准备播放应用的蓝牙设备播放信息和用户操作信息确定蓝牙设备在可用蓝牙设备群中的优先级;最后,根据分配信息,将优先级高的蓝牙设备先分配给先运行的播放应用,以使蓝牙设备根据分配信息播放播放应用。
另外,需要说明的是,蓝牙设备在可用蓝牙设备群的优先级可以是单方面的优先级,也可以是多方面的优先级;用户操作信息可以包括终端接收到的取消蓝牙设备播放播放应用的音频的信息,也可以包括终端接收到的将播放应用调度给其他蓝牙设备播放的信息。
例如,在本申请实施例中,单方面的优先级可以根据蓝牙设备播放信息和用户操作信息对可用蓝牙设备群的蓝牙设备进行排序,排序位置越接近第一顺位,优先级越高;多方面的优先级可以根据多方面的指标得到多个优先级,比如,根据蓝牙设备被分配播放的次数指标和取消蓝牙设备播放的次数指标来得到2个优先级,再根据这2个优先级的重要性来确定其最终的优先级。在确定好优先级后,按照优先级从高到低的顺序,将蓝牙设备依次分配给播放应用,比如,先将优先级最高的蓝牙设备分配给最先打开的播放应用,之后可以再将优先级第二高的蓝牙设备分配给第二个打开的播放应用,之后的蓝牙设备也按照此规律进行分配。
另外,如图8所示,图8是本申请一个实施例提供的蓝牙播放方法中当有新增蓝牙设备时对分配信息处理的流程图。关于上述步骤S300中的根据蓝牙设备播放信息和用户操作信息确定播放应用分配给蓝牙设备的分配信息,包括但不限于有步骤S1210、步骤S1220和步骤S1230。
步骤S1210,获取可用蓝牙设备群的新增蓝牙设备的应用播放记录;
步骤S1220,根据应用播放记录确定新增蓝牙设备的默认播放信息;
步骤S1230,根据新增蓝牙设备的默认播放信息和用户操作信息确定分配信息。
在本申请实施例中,终端能够获取新加入可用蓝牙设备群的新增蓝牙设备的应用播放记录,获取到应用播放记录之后,可以通过新增蓝牙设备的应用播放记录来确定新增蓝牙设备 的默认播放信息,默认播放信息可以包括新增蓝牙设备的默认播放应用,默认播放信息会被优先分配给该新增蓝牙设备,从而能够在分配策略中体现用户偏好,确定好了新增蓝牙设备的默认播放信息后,再结合用户操作信息来得到分配信息,从而在能够体现用户实时偏好的基础上确定接下来播放应用与可用蓝牙设备群中的蓝牙设备的分配情况。
另外,需要说明的是,新增蓝牙设备可以包括本申请实施例的终端新检测到的可用的蓝牙设备,还可以包括与本申请实施例的终端新连接上的蓝牙设备,用户操作信息可以包括终端接收到的取消蓝牙设备播放播放应用的音频的信息,也可以包括终端接收到的将播放应用调度给其他蓝牙设备播放的信息。
示例性地,在本申请实施例中,当有新加入可用蓝牙设备群的新增蓝牙设备,终端会获取新增蓝牙设备的应用播放记录,此时可以检测应用播放记录是否存在有历史播放应用的信息,如果存在有历史播放应用的信息,可以将历史播放应用设为新增蓝牙设备的默认播放应用,从而将该历史播放应用绑定在新增蓝牙设备上播放,当为新增蓝牙设备设置了默认播放应用,还可以通过弹出提示消息,提示用户是否接受该分配,如果不接受则取消此次的分配,或者在弹出提示消息一段时间内,如果用户没有任何的操作反馈,则默认用户接受了此次分配,最终根据以上的用户操作信息得到分配信息,这样的处理过程能够获得一个更加符合用户历史偏好和实时偏好的分配信息,从而确定最终的分配情况。
另外,如图9所示,图9是本申请一个实施例提供的蓝牙播放方法中对新增蓝牙设备与默认播放应用的处理的流程图。关于上述步骤S1220中的根据应用播放记录确定新增蓝牙设备的默认播放信息,包括但不限于有步骤S1300。
步骤S1300,当检测到应用播放记录存在历史播放应用的信息,确定默认播放信息为将历史播放应用设置为新增蓝牙设备的默认播放应用,或者当检测到应用播放记录为空,确定默认播放信息为将最先打开的播放应用设置为新增蓝牙设备的默认播放应用。
在本申请实施例中,终端能够获取新加入可用蓝牙设备群的新增蓝牙设备的应用播放记录,获取到应用播放记录之后,检测到应用播放记录是否存在历史播放应用的信息,当应用播放记录存在历史播放应用的信息,则确定默认播放信息为将历史播放应用设为新增蓝牙设备的默认播放应用,或者,当应用播放记录的为空,则确定默认播放信息为将最先打开的播放应用设置为新增蓝牙设备的默认播放应用,从而将该播放应用绑定在新增蓝牙设备上播放,当为新增蓝牙设备设置了默认播放应用后,之后只要检测到默认播放应用启动或正在运行,且之前记录的新增蓝牙设备存在于可用蓝牙设备群,则确定了默认播放应用与新增蓝牙设备的优先分配关系,即默认播放应用即将要被分配给新增蓝牙设备,确定好优先分配关系后,还可以通过弹出提示消息,提示用户是否接受该分配,如果不接受则取消此次的分配,或者在弹出提示消息一段时间内,如果用户没有任何的操作反馈,则默认用户接受了此次的分配,最终根据以上的用户操作信息得到分配信息,这样的处理过程能够获得一个更加符合用户历史偏好以及实时偏好的分配信息。
另外,可以理解的是,每次蓝牙设备的默认播放应用的启动,只要默认播放应用对应的蓝牙设备在可用蓝牙设备群中,此时则优先将该蓝牙设备分配给其对应的默认播放应用,从而使分配策略更加符合用户历史偏好和用户实时偏好。
另外,可以理解的是,应用播放记录可以是一个最近播放的应用,也可以是多个播放过的应用,那么此时默认播放应用的选取可以是播放次数最多的应用。
另外,关于上述步骤S400中的根据分配信息将播放应用分配给蓝牙设备,包括但不限于有步骤S1410、步骤S1420、步骤S1430、步骤S1440和步骤S1450。
步骤S1410,根据分配信息确定播放应用与蓝牙设备的分配映射关系;
步骤S1420,对播放应用的音频数据流进行编码,得到蓝牙数据包;
步骤S1430,获取蓝牙设备的标识信息;
步骤S1440,将标识信息增添至蓝牙数据包;
步骤S1450,发送含有标识信息的蓝牙数据包至蓝牙设备。
在本申请实施例中,首先,获取可用蓝牙设备群的信息,可用蓝牙可用蓝牙设备群为多个可用的蓝牙设备的集合;接着,检测播放应用的蓝牙设备播放信息和用户操作信息;之后,根据蓝牙设备播放信息和用户操作信息确定播放应用分配给蓝牙设备的分配信息;在得到分配信息后,先根据分配信息确定播放应用与蓝牙设备的分配映射关系,再对播放应用的音频数据流进行编码,得到蓝牙数据包,此时,终端获取蓝牙设备的标识信息,并将标识信息增添至蓝牙数据包,最后发送含有标识信息的蓝牙数据包至蓝牙设备。如此一来,在终端采用蓝牙BLE播放多个音视频应用的音频的时候,蓝牙设备能够数据包中包含的标识信息来播放对应音频,从而实现利用一个终端控制多个蓝牙设备播放不同的音频。
另外,可以理解的是,终端不仅仅只能采用低功耗蓝牙BLE播放,还可以使用其他具有可以匹配多个蓝牙设备的蓝牙协议进行播放,基于同样的思路,也能实现利用一个终端控制多个蓝牙设备播放不同的音频。
另外,如图10所示,图10是本申请一个实施例提供的蓝牙播放方法中根据位置确定分配信息的流程图。在上述步骤S400中的根据分配信息将播放应用分配给蓝牙设备,以使蓝牙设备根据分配信息播放播放应用之前,包括但不限于有步骤S1510和步骤S1520。
步骤S1510,获取终端的位置信息;
步骤S1520,根据位置信息调整分配信息。
可以通过GPS、WiFi、信号基站或蓝牙等方式获取终端的位置信息,之后再根据位置信息调整分配信息。
示例性地,当本申请实施例应用到手机终端,在本申请实施例中,手机终端可以通过GPS获取当前终端位置信息,当终端处于某一个位置,比如终端处于之前设定的家庭地址,此时可以应用提前设置的在家庭的播放应用和蓝牙设备的配对情况作为当终端处于家庭地址时的分配信息,以使分配策略满足需求用户在不同场景下的需求。
此外,例如,当本申请实施例应用到手机终端,在本申请实施例中,手机终端还可以通过WiFi获取当前终端位置信息,当终端处于某一个位置,比如终端处于室内的某个位置,此时可以应用提前设置的在室内位置的播放应用和蓝牙设备的配对情况作为当终端处于某个室内位置时的分配信息,以使分配策略满足需求用户在不同场景下的需求。
基于上述的蓝牙音频播放方法,下面结合模块提出本申请的蓝牙音频播放方法的各个实施例。
如图11所示,图11是本申请一个实施例提供的蓝牙播放方法的模块示意图,根据图14,在本申请实施例中,终端可以包括应用管理模块101、设备管理模块120、GPS模块103、音频模块104、DSP模块105和蓝牙模块106。
其中,在上述实施例中,应用管理模块可用于保存各个应用的用户蓝牙设备选择记录, 并且对当前可用蓝牙设备群中的蓝牙设备设置优先级。设备管理模块可用于管理当前可用蓝牙设备群中的各个蓝牙设备,包括蓝牙地址码、设备类型等信息。GPS模块可用于获取用户当前的位置信息,使得终端能够根据位置信息来调整分配策略,比如是否处于常用家庭地址,当处于常用家庭位置,调整分配策略,扩展一些智能家庭的使用场景。音频模块与DSP模块可用于处理当前音频流数据,包括编码、给蓝牙数据包添加增加标识信息、选择输出通道等。蓝牙模块用于与远端蓝牙设备建立连接、将收到的音频流数据发送给远端的蓝牙设备等。
例如,如图12所示,图12是本申请一个实施例提供的基于模块的蓝牙播放方法的流程示意图,本申请实施例包括但不限于有以下步骤或判断:
步骤S1601,应用管理模块获取蓝牙模块上报的可用蓝牙设备群,并根据分配信息将蓝牙设备排序确定蓝牙设备的优先级,当检测播放应用准备输出音频数据;
判断C1601,查询应用管理模块101与设备管理模块102,此应用是否有设备播放记录以及该设备在目前可用蓝牙设备群中,若是,则执行判断C102,若否,则执行步骤S1603;
判断C1602,查询应用管理模块101用户是否未对此设备进行过取消操作,若是,则执行步骤S102,若否,则执行步骤S1603;
步骤S1602,将该蓝牙设备置为应用管理模块101中当前应用的设备列表第一顺位;
步骤S1603,基于设备管理模块102中所管理的当前设备类型等信息,应用管理模块101对当前应用的设备列表进行优化排序;
步骤S1604,给优先级高的蓝牙设备分配给先打开的应用,并通知用户显示分配提示,同时显示取消按钮,将取消按钮的操作结果保留在应用管理模块101中;
步骤S1605,音频模块104处理播放应用传出的音频数据流将其传输给DSP模块105;
步骤S1606,DSP模块105将编码后的音频数据流传输给蓝牙模块106;
步骤S1607,蓝牙模块106获取远端蓝牙设备在可用蓝牙设备群中的标识符,将标识符作为数据包包头填充进发送的数据包中。
另外,可以理解的是,当远端蓝牙设备收到蓝牙数据包,远端蓝牙设备可以经过比较发现数据包包头中的标识符与自身一致,远端蓝牙设备可以接收该数据包并对其中的音频数据解码并播放。
另外,需要说明的是,GPS模块103可以应用到步骤S1604之前,GPS模块103判断终端的位置,比如终端处于之前设定的家庭地址,此时可以应用提前设置的在家庭的播放应用和蓝牙设备的配对情况作为当终端处于家庭地址时的分配信息,以使分配策略满足需求用户在不同场景下的需求。
又例如,如图13所示,图13是本申请另一个实施例提供的基于模块的蓝牙播放方法的流程示意图,本申请实施例包括但不限于有以下步骤或判断:
步骤S1701,蓝牙模块106通知应用管理模块101有新增蓝牙设备加入可用蓝牙设备群。
判断C1701,查询应用管理模块101,此新增蓝牙设备是否有应用播放记录,若是,则执行步骤S1702,若否,则执行步骤S1703;
步骤S1702,将该播放记录中的播放应用设为新增蓝牙设备的默认播放应用;
步骤S1703,将当前正在播放的应用设为新增蓝牙设备的默认播放应用;
步骤S1704,给新增蓝牙设备分配给默认播放应用进行播放,并通知用户显示分配提示通知,同时显示取消按钮,将取消按钮的操作结果保留在应用管理模块101中;
判断C1702,是否接收到点击取消按钮指令,若否,则执行步骤S105;
步骤S1705,音频模块104处理播放应用传出的音频数据流将其传输给DSP模块105;
步骤S1706,DSP模块105将编码后的音频数据流传输给蓝牙模块106;
步骤S1707,蓝牙模块106获取新增蓝牙设备在可用蓝牙设备群中的标识符,将标识符作为数据包包头填充进发送的数据包中。
另外,可以理解的是,当新增蓝牙设备收到蓝牙数据包,新增蓝牙设备可以经过比较发现数据包包头中的标识符与自身一致,新增蓝牙设备可以接收该数据包并对其中的音频数据解码并播放。
另外,需要说明的是,GPS模块103可以应用到步骤S1704之前,GPS模块103判断终端的位置,比如终端处于之前设定的家庭地址,此时可以应用提前设置的在家庭的播放应用和蓝牙设备的配对情况作为当终端处于家庭地址时的分配信息,以使分配策略满足需求用户在不同场景下的需求。
基于上述的蓝牙音频播放方法,下面提出本申请的蓝牙音频播放装置和计算机可读存储介质的各个实施例。
另外,本申请的一个实施例还提供了一种蓝牙音频播放装置,该蓝牙音频播放装置包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序。
处理器和存储器可以通过总线或者其他方式连接。
需要说明的是,本实施例中的蓝牙音频播放装置可以应用于如图1所示实施例中的系统架构平台,本实施例中的蓝牙音频播放装置能够构成图1所示实施例中的系统架构平台的一部分,两者属于相同的发明构思,因此两者具有相同的实现原理以及有益效果,此处不再详述。
实现上述实施例的蓝牙音频播放方法所需的非暂态软件程序以及指令存储在存储器中,当被处理器执行时,执行上述实施例的蓝牙音频播放方法,例如,执行以上描述的图2至图13中的方法步骤,又或者是执行图15和图16中的步骤或判断。
此外,本申请的一个实施例还提供了一种计算机可读存储介质,该计算机可读存储介质存储有计算机可执行指令,计算机可执行指令用于执行上述的蓝牙音频播放方法。例如,执行以上描述的图2至图13中的方法步骤,又或者是执行图15和图16中的步骤或判断。
本申请实施例包括:首先,获取可用蓝牙设备群的信息,所述可用蓝牙所述可用蓝牙设备群为多个可用的蓝牙设备的集合;接着,检测播放应用的蓝牙设备播放信息和用户操作信息;之后,根据所述蓝牙设备播放信息和所述用户操作信息确定所述播放应用分配给所述蓝牙设备的分配信息;最后,根据所述分配信息将所述播放应用分配给所述蓝牙设备,以使所述蓝牙设备根据所述分配信息播放所述播放应用,根据本申请实施例的技术方案,本申请实施例通过播放应用的蓝牙设备播放信息和用户操作信息确定了分配策略,按照该分配策略将某个播放应用分配给某个蓝牙设备播放,如此一来,在终端采用蓝牙BLE播放多个音视频应用的音频的时候,能够给不同应用的音频源独立地安排蓝牙设备播放,从而实现利用一个终端控制多个蓝牙设备播放不同的音频。
本领域普通技术人员可以理解,上文中所公开方法中的全部或某些步骤、系统可以被实施为软件、固件、硬件及其适当的组合。某些物理组件或所有物理组件可以被实施为由处理器,如中央处理器、数字信号处理器或微处理器执行的软件,或者被实施为硬件,或者被实 施为集成电路,如专用集成电路。这样的软件可以分布在计算机可读介质上,计算机可读介质可以包括计算机存储介质(或非暂时性介质)和通信介质(或暂时性介质)。如本领域普通技术人员公知的,术语计算机存储介质包括在用于存储信息(诸如计算机可读指令、数据结构、程序模块或其他数据)的任何方法或技术中实施的易失性和非易失性、可移除和不可移除介质。计算机存储介质包括但不限于RAM、ROM、EEPROM、闪存或其他存储器技术、CD-ROM、数字多功能盘(DVD)或其他光盘存储、磁盒、磁带、磁盘存储或其他磁存储装置、或者可以用于存储期望的信息并且可以被计算机访问的任何其他的介质。此外,本领域普通技术人员公知的是,通信介质通常包括计算机可读指令、数据结构、程序模块或者诸如载波或其他传输机制之类的调制数据信号中的其他数据,并且可包括任何信息递送介质。
以上是对本申请的一些实施进行了说明,但本申请并不局限于上述实施方式,熟悉本领域的技术人员在不违背本申请精神的共享条件下还可作出种种等同的变形或替换,这些等同的变形或替换均包括在本申请权利要求所限定的范围内。

Claims (11)

  1. 一种蓝牙音频播放方法,应用于终端,所述方法包括:
    获取可用蓝牙设备群的信息,所述可用蓝牙设备群为多个可用的蓝牙设备的集合;
    检测播放应用的蓝牙设备播放信息和用户操作信息;
    根据所述蓝牙设备播放信息和所述用户操作信息确定所述播放应用分配给所述蓝牙设备的分配信息;
    根据所述分配信息将所述播放应用分配给所述蓝牙设备,以使所述蓝牙设备根据所述分配信息播放所述播放应用。
  2. 根据权利要求1所述的方法,其中,所述根据所述蓝牙设备播放信息和所述用户操作信息确定所述播放应用分配给所述蓝牙设备的分配信息,包括:
    当检测到所述播放应用准备播放音频,获取准备播放应用的蓝牙设备播放信息;
    根据所述准备播放应用的蓝牙设备播放信息和所述用户操作信息确定所述蓝牙设备在所述可用蓝牙设备群中的优先级;
    根据所述蓝牙设备的优先级和所述用户操作信息确定所述分配信息。
  3. 根据权利要求2所述的方法,其中,所述根据所述准备播放应用的蓝牙设备播放信息和所述用户操作信息确定所述蓝牙设备在所述可用蓝牙设备群中的优先级,包括:
    当检测到所述准备播放应用的蓝牙设备播放信息存在播放记录,且所述播放记录所记录的历史蓝牙设备存在于所述可用蓝牙设备群中,根据所述用户操作信息中对所述准备播放应用的取消蓝牙播放记录调整所述历史蓝牙设备在所述可用蓝牙设备群中的优先级。
  4. 根据权利要求3所述的方法,其中,所述根据所述用户操作信息中对所述准备播放应用的取消蓝牙播放记录调整所述历史蓝牙设备在所述可用蓝牙设备群中的优先级,包括:
    根据所述用户操作信息中对所述准备播放应用的取消蓝牙播放记录,将未取消播放的所述历史蓝牙设备在所述可用蓝牙设备群中的优先级调整到最高优先级,以使所述未取消播放的所述历史蓝牙设备被优先分配。
  5. 根据权利要求2所述的方法,其中,所述根据所述准备播放应用的蓝牙设备播放信息和所述用户操作信息确定所述蓝牙设备在所述可用蓝牙设备群中的优先级,包括:
    当检测到所述准备播放应用的蓝牙设备播放信息为空,或者所述蓝牙设备播放信息所记录的历史蓝牙设备不存在于所述可用蓝牙备设备群,或者所述用户操作信息中存在对所述历史蓝牙设备的取消播放记录,更新所述蓝牙设备的优先级。
  6. 根据权利要求2至5任意一项所述的方法,其中,根据所述分配信息将所述播放应用分配给所述蓝牙设备,以使所述蓝牙设备根据所述分配信息播放所述播放应用,包括:
    根据所述分配信息,将优先级高的所述蓝牙设备先分配给先运行的所述播放应用,以使所述蓝牙设备根据所述分配信息播放先运行的所述播放应用。
  7. 根据权利要求1所述的方法,其中,所述蓝牙设备播放信息包括应用播放记录,所述根据所述蓝牙设备播放信息和所述用户操作信息确定所述播放应用分配给所述蓝牙设备的分配信息,包括:
    获取所述可用蓝牙设备群的新增蓝牙设备的应用播放记录;
    根据所述应用播放记录确定所述新增蓝牙设备的默认播放信息;
    根据所述新增蓝牙设备的默认播放信息和所述用户操作信息确定所述分配信息。
  8. 根据权利要求7所述的方法,其中,所述根据所述应用播放记录确定所述新增蓝牙设备的默认播放信息,包括:
    当检测到所述应用播放记录存在历史播放应用的信息,确定所述默认播放信息为将所述历史播放应用设为所述新增蓝牙设备的默认播放应用,或者当检测到所述应用播放记录为空,确定所述默认播放信息为将最先打开的所述播放应用设置为所述新增蓝牙设备的默认播放应用。
  9. 根据权利要求1所述的方法,其中,在所述根据所述分配信息将所述播放应用分配给所述蓝牙设备,以使所述蓝牙设备根据所述分配信息播放所述播放应用之前,所述方法还包括:
    获取所述终端的位置信息;
    根据所述位置信息调整所述分配信息。
  10. 一种蓝牙音频播放装置,包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其中,所述处理器执行所述计算机程序时实现如权利要求1至9中任意一项所述播放方法。
  11. 一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求1至9中任意一项所述播放方法。
PCT/CN2022/112219 2021-10-27 2022-08-12 蓝牙音频播放方法、装置及计算机可读存储介质 WO2023071408A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111256393.9A CN116033364A (zh) 2021-10-27 2021-10-27 蓝牙音频播放方法、装置及计算机可读存储介质
CN202111256393.9 2021-10-27

Publications (1)

Publication Number Publication Date
WO2023071408A1 true WO2023071408A1 (zh) 2023-05-04

Family

ID=86069428

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/112219 WO2023071408A1 (zh) 2021-10-27 2022-08-12 蓝牙音频播放方法、装置及计算机可读存储介质

Country Status (2)

Country Link
CN (1) CN116033364A (zh)
WO (1) WO2023071408A1 (zh)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120099594A1 (en) * 2010-10-22 2012-04-26 Phorus Llc Media distribution architecture
CN105682011A (zh) * 2016-03-22 2016-06-15 广东欧珀移动通信有限公司 播放设备的蓝牙模块控制方法、装置及音视频播放系统
CN105703806A (zh) * 2016-03-22 2016-06-22 广东欧珀移动通信有限公司 播放设备的蓝牙模块控制方法、装置及音视频播放系统
CN105828129A (zh) * 2016-03-22 2016-08-03 广东欧珀移动通信有限公司 一种音视频播放系统控制方法、装置和音视频播放系统
WO2017016118A1 (zh) * 2015-07-30 2017-02-02 广东欧珀移动通信有限公司 一种基于蓝牙连接的音频播放方法及装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120099594A1 (en) * 2010-10-22 2012-04-26 Phorus Llc Media distribution architecture
WO2017016118A1 (zh) * 2015-07-30 2017-02-02 广东欧珀移动通信有限公司 一种基于蓝牙连接的音频播放方法及装置
CN105682011A (zh) * 2016-03-22 2016-06-15 广东欧珀移动通信有限公司 播放设备的蓝牙模块控制方法、装置及音视频播放系统
CN105703806A (zh) * 2016-03-22 2016-06-22 广东欧珀移动通信有限公司 播放设备的蓝牙模块控制方法、装置及音视频播放系统
CN105828129A (zh) * 2016-03-22 2016-08-03 广东欧珀移动通信有限公司 一种音视频播放系统控制方法、装置和音视频播放系统

Also Published As

Publication number Publication date
CN116033364A (zh) 2023-04-28

Similar Documents

Publication Publication Date Title
US9271156B2 (en) Location determination for white space utilization
US9271117B2 (en) Computing system with configuration update mechanism and method of operation thereof
CN115633050B (zh) 镜像管理方法、设备及存储介质
CN111638935B (zh) 镜像管理方法、网络系统、设备以及存储介质
US11586413B2 (en) Synchronous sounds for audio assistant on devices
CN103124298A (zh) 媒体播放器与主机设备之间的无线同步
US20130339537A1 (en) System for dynamic stream management in audio video bridged networks
US9118946B2 (en) System, method, and apparatus for sharing contents using groups
US20170206059A1 (en) Apparatus and method for voice recognition device in vehicle
US20210204102A1 (en) Method and apparatus in which a plurality of electronic devices use service linked to one electronic device
US10755707B2 (en) Selectively blacklisting audio to improve digital assistant behavior
CN113300899A (zh) 网络能力开放方法、网络系统、设备及存储介质
KR101256720B1 (ko) 상위-레벨의 단일 주파수 네트워크를 사용하여 다중 주파수 네트워크에 대한 가이드 및 주파수 맵 정보의 통합 방법 및 장치
CN103517243A (zh) 紧急呼叫建立方法、网络设备及通信系统
CN111858050B (zh) 服务器集群混合部署方法、集群管理节点及相关系统
CN111435943A (zh) 数据处理方法、设备、系统及存储介质
US20140068684A1 (en) Digital Video Recorder Program To Mobile Device
WO2023071408A1 (zh) 蓝牙音频播放方法、装置及计算机可读存储介质
TW201543403A (zh) 用於參與及響應應用程序的邀約方法、裝置以及系統
CN113382033B (zh) 中控适配方法、装置、设备和存储介质
CN102647469A (zh) 一种基于云计算的VoIP时移电话系统及其方法
WO2016119353A1 (zh) 流媒体数据共享方法、流媒体数据共享装置和终端
KR20120127694A (ko) 디지털 디바이스의 어플리케이션 처리 속도 향상 방법 및 장치
WO2020063261A1 (zh) 一种音箱的交互方法、音箱及音箱系统
WO2024002298A1 (zh) 一种语音指令处理方法、装置、系统以及存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22885308

Country of ref document: EP

Kind code of ref document: A1