Search

CN-121996192-A - Audio playing control method and device, equipment and storage medium

CN121996192ACN 121996192 ACN121996192 ACN 121996192ACN-121996192-A

Abstract

The embodiment of the application discloses a control method and device for audio playing, equipment and a storage medium. According to the technical scheme, the audio device receives a target request from first equipment or second equipment, the target request is used for requesting the target equipment to acquire the use permission of the audio device, the target equipment comprises at least one of the first equipment and the second equipment, then a target data transmission channel between the audio device and the target equipment is set to be in a usable state according to the target request, and finally audio data sent by the target equipment is received through the target data transmission channel and played. The control method of the audio playing can improve the efficiency of switching the audio device among a plurality of devices under the scene that the plurality of devices are connected with the audio device.

Inventors

  • LIN JIEWEI

Assignees

  • 东莞市小精灵教育软件有限公司

Dates

Publication Date
20260508
Application Date
20241107

Claims (20)

  1. 1. A control method for audio playback, applied to an audio device, the audio device being communicatively connected to a first apparatus, the first apparatus including a storage compartment for storing the audio device, the method comprising: Receiving a target request from the first device or the second device, wherein the target request is used for requesting a target device to acquire the use permission of the audio device, and the target device comprises at least one of the first device and the second device; Setting a target data transmission channel between the audio device and the target equipment to be in a usable state according to the target request; And receiving the audio data sent by the target equipment through the target data transmission channel and playing the audio data.
  2. 2. The method of claim 1, wherein the setting a target data transmission channel between the audio device and the target apparatus to a usable state according to the target request comprises: determining whether the target equipment acquires the use permission of the audio device according to the target request; and setting a target data transmission channel between the audio device and the target equipment to be in a usable state under the condition that the target equipment acquires the use permission of the audio device.
  3. 3. The method of claim 2, wherein the determining whether the target device has acquired the usage rights for the audio device based on the target request comprises: And determining whether the target equipment acquires the use permission of the audio device according to the target request and the current playing state of the audio device, wherein the current playing state comprises at least one of a state that the audio device is currently in a state of not playing audio and a state that the audio device is playing audio.
  4. 4. The method of claim 2, wherein the determining whether the target device has acquired the usage rights for the audio device based on the target request comprises: In the case that the target requests are multiple, sending a first confirmation request to the first device so as to display a confirmation interface of the target requests from different devices through the first device; Receiving a first instruction, wherein the first instruction is triggered by a user according to the operation of the first confirmation request on the first device; and determining whether the target equipment acquires the use permission of the audio device according to the first instruction.
  5. 5. A method according to claim 3, wherein the audio device receives a target request from the second apparatus, the target apparatus being the second apparatus, the second apparatus comprising an apparatus having a pairing record with the audio device and an apparatus establishing a classical bluetooth BT connection with the audio device, the determining whether the target apparatus has acquired usage rights of the audio device based on the target request and a current play state of the audio device comprising: and under the condition that the audio device is in the state of not playing audio currently, determining that the second equipment acquires the use permission of the audio device according to the target request.
  6. 6. The method of claim 3, wherein the audio device receives a target request from the first apparatus, the target apparatus being the first apparatus, and wherein determining whether the target apparatus obtains the usage rights of the audio device based on the target request and the current playing state of the audio device comprises: And under the condition that the audio device is in the state of not playing audio currently, determining that the first equipment acquires the use permission of the audio device according to the target request.
  7. 7. The method of claim 3, wherein the audio device receives a target request from the first apparatus, the target apparatus being the second apparatus, and wherein the determining whether the target apparatus obtains the usage rights of the audio device based on the target request and the current playing state of the audio device comprises: And under the condition that the audio device is in the state of not playing audio currently, determining that the second equipment acquires the use permission of the audio device according to the target request.
  8. 8. A method according to claim 3, wherein the target request includes a data type requested to be played, and the priorities of different data types are different; The determining whether the target device obtains the use permission of the audio device according to the target request and the current playing state of the audio device includes: acquiring the data type of the audio being played under the condition that the current playing state of the audio device is the state of the audio being played; Determining that the target device acquires the use authority of the audio device and setting the target data transmission channel between the audio device and the target device to be in a usable state under the condition that the priority of the data type of the audio being played is lower than the priority of the data type of the request to be played in the target request; In the case that the priority of the data type of the audio being played is higher than the priority of the data type requested to be played in the target request, it is determined that the apparatus currently using the audio device has the use authority of the audio device.
  9. 9. The method of claim 8, wherein the method further comprises: sending a second confirmation request to the first device, where the priority of the data type of the audio being played is equal to the priority of the data type requested to be played in the target request, where the second confirmation request is used to request a user to confirm whether the target device is allowed to acquire the use permission of the audio device; Receiving a second instruction, wherein the second instruction is triggered by a first operation of a user on the first equipment according to the second confirmation request, and the first operation indicates that the user allows the target equipment to acquire the use permission of the audio device; And according to the second instruction, determining that the target equipment acquires the use permission of the audio device.
  10. 10. The method of claim 8, wherein the data types include music data and call data, and wherein the call data has a higher priority than the music data.
  11. 11. The method of claim 1, wherein prior to the receiving the target request sent by the target device, the method further comprises: completing low-power Bluetooth BLE pairing and BT pairing with the first equipment and BT pairing with the second equipment; And under the condition that the audio device is detected to be in a non-storage state, establishing BLE connection and BT connection with the first equipment and BT connection with the second equipment, wherein the audio device comprises a storage state and the non-storage state, and the storage state is a state that the audio device is stored in the storage bin.
  12. 12. The method of claim 11, wherein receiving the target request sent by the target device comprises: Establishing BT connection with the target equipment under the condition that the audio device is in a storage state and receives a target request sent by the target equipment; And under the condition that the audio device is in a non-storage state and a target request sent by the target equipment is received, determining whether the target equipment acquires the use permission of the audio device according to the target request.
  13. 13. The method according to claim 12, wherein the method further comprises: And under the condition that the audio device is in the storage state and the BT connection is established with the target equipment, if the audio device is detected to be in the non-storage state, determining that the target equipment acquires the use authority of the audio device.
  14. 14. The method according to claim 12, wherein the method further comprises: if the audio device is in the storage state and a BT connection is not established with any apparatus, if the audio device is detected to be in the non-storage state, it is determined that the first apparatus acquires the usage right of the audio device.
  15. 15. The method according to claim 1, wherein the method further comprises: And switching the use authority of the audio device to a device which establishes a BT connection with the audio device at the last time in the case that the audio device is disconnected from the device which is using the audio device.
  16. 16. A control method for audio playback, applied to a first apparatus, the first apparatus being communicatively connected to an audio device, the first apparatus including a storage compartment for storing the audio device, the method comprising: And sending a target request to the audio device, wherein the target request is used for requesting target equipment to acquire the use permission of the audio device, and the target equipment comprises at least one of the first equipment and the second equipment.
  17. 17. The method of claim 16, wherein the method further comprises: receiving a first confirmation request from the audio device and displaying a confirmation interface of the target requests from different devices in the case that the target requests are multiple; And receiving the operation of the user on the first device according to the first confirmation request.
  18. 18. A control device for audio playback, applied to an audio device, the audio device being in communication with a first apparatus, the first apparatus comprising a magazine for holding the audio device, the device comprising: a receiving module, configured to receive a target request from the first device or the second device, where the target request is used to request a target device to obtain a usage right of the audio apparatus, and the target device includes at least one of the first device and the second device; the setting module is used for setting a target data transmission channel between the audio device and the target equipment to be in a usable state according to the target request; And the processing module is used for receiving the audio data sent by the target equipment through the target data transmission channel and playing the audio data.
  19. 19. A control device for audio playback, applied to a first apparatus, the first apparatus being in communication with an audio device, the first apparatus comprising a magazine for storing the audio device, the device comprising: and the sending module is used for sending a target request to the audio device, wherein the target request is used for requesting target equipment to acquire the use permission of the audio device, and the target equipment comprises at least one of the first equipment and the second equipment.
  20. 20. A computer device comprising a memory and a processor, the memory storing a computer program executable on the processor, characterized in that the processor implements the steps of the method of any one of claims 1 to 15 or 16 to 17 when the program is executed.

Description

Audio playing control method and device, equipment and storage medium Technical Field The embodiment of the application relates to the technical field of audio playing, and relates to a control method, a device, equipment and a storage medium for audio playing. Background In the related art, for an apparatus in which an intelligent device and an audio device are integrated, for example, an apparatus in which an intelligent device and a real wireless bluetooth (true wireless stereo, TWS) earphone are integrated, after the TWS earphone is connected to the intelligent device, the connection between the TWS earphone and the intelligent device needs to be manually disconnected when the TWS earphone is used for switching the apparatus, then other intelligent devices can be continuously connected to use the TWS earphone, and under the scene that multiple devices are connected to the audio device, the switching operation of the apparatus is complex and the efficiency is low. Therefore, how to improve the efficiency of switching the audio device among multiple devices in the scenario of connecting multiple devices to the audio device is a problem to be solved. Disclosure of Invention In view of this, the method, apparatus, device and storage medium for controlling audio playback provided by the embodiments of the present application can improve the efficiency of switching use of an audio device among a plurality of devices in a scenario where a plurality of devices are connected to the audio device. The method, the device, the equipment and the storage medium for controlling the audio playing provided by the embodiment of the application are realized in the following way: The control method for audio playing provided by the embodiment of the application is applied to an audio device, the audio device is in communication connection with first equipment, the first equipment comprises a storage bin, the storage bin is used for storing the audio device, the method comprises the steps of receiving a target request from the first equipment or second equipment, the target request is used for requesting target equipment to acquire the use authority of the audio device, the target equipment comprises at least one of the first equipment and the second equipment, a target data transmission channel between the audio device and the target equipment is set to be in a usable state according to the target request, and the audio data sent by the target equipment are received through the target data transmission channel and played. In some embodiments, the setting the target data transmission channel between the audio device and the target equipment to be in a usable state according to the target request comprises determining whether the target equipment acquires the use permission of the audio device according to the target request, and setting the target data transmission channel between the audio device and the target equipment to be in a usable state when the target equipment acquires the use permission of the audio device. In some embodiments, the determining whether the target device obtains the usage rights of the audio apparatus according to the target request includes determining whether the target device obtains the usage rights of the audio apparatus according to the target request and a current playing state of the audio apparatus, the current playing state including at least one of a state in which the audio apparatus is currently in a state in which audio is not playing and a state in which audio is being played. In some embodiments, the method for determining whether the target device obtains the use right of the audio device according to the target request comprises the steps of sending a first confirmation request to the first device to display a confirmation interface of the target request from different devices through the first device when the target request is multiple, receiving a first instruction, wherein the first instruction is triggered by a user according to the operation of the first confirmation request on the first device, and determining whether the target device obtains the use right of the audio device according to the first instruction. In some embodiments, the audio device receives a target request from the second apparatus, the target apparatus is the second apparatus, the second apparatus includes an apparatus having a paired record with the audio device and an apparatus establishing a classical bluetooth BT connection with the audio device, and determining whether the target apparatus obtains the usage right of the audio device according to the target request and the current playing state of the audio device includes determining that the second apparatus obtains the usage right of the audio device according to the target request if the audio device is in a state where audio is not currently played. In some embodiments, the audio device receives a target request from the first apparatus, the targ