[go: up one dir, main page]

WO2018152679A1 - 音频文件的传输、接收方法及装置、设备及其系统 - Google Patents

音频文件的传输、接收方法及装置、设备及其系统 Download PDF

Info

Publication number
WO2018152679A1
WO2018152679A1 PCT/CN2017/074295 CN2017074295W WO2018152679A1 WO 2018152679 A1 WO2018152679 A1 WO 2018152679A1 CN 2017074295 W CN2017074295 W CN 2017074295W WO 2018152679 A1 WO2018152679 A1 WO 2018152679A1
Authority
WO
WIPO (PCT)
Prior art keywords
audio
bluetooth
transmission protocol
audio data
audio file
Prior art date
Legal status (The legal status 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 status listed.)
Ceased
Application number
PCT/CN2017/074295
Other languages
English (en)
French (fr)
Inventor
谢冠宏
夏波
于世璿
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
1More Inc
Original Assignee
1More Inc
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 1More Inc filed Critical 1More Inc
Priority to PCT/CN2017/074295 priority Critical patent/WO2018152679A1/zh
Priority to CN201780000128.XA priority patent/CN107005800B/zh
Publication of WO2018152679A1 publication Critical patent/WO2018152679A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/14Multichannel or multilink protocols
    • 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

Definitions

  • the present invention relates to the field of Bluetooth technology, and in particular, to a method and a device, a device and a system for transmitting and receiving an audio file.
  • Bluetooth wireless technology is a specification for a small, low-cost wireless communication solution that provides short-range wireless connectivity for personal PCs, mobile phones, and other Bluetooth devices such as Bluetooth headsets, Bluetooth speakers, and more.
  • a Bluetooth device such as a Bluetooth headset or a Bluetooth speaker
  • the music player of the user terminal device such as a telephone selects music for playing, and the user terminal device converts the music file in the music player into audio data conforming to the Bluetooth audio transmission protocol, and transmits the audio data to the Bluetooth device, and the Bluetooth device decodes The music is then played on the Bluetooth device.
  • the inventors have found that at least the following problems exist in the related art: in the process of playing music using a Bluetooth device such as a Bluetooth headset or a Bluetooth speaker, it is necessary to establish a connection between the Bluetooth device and a user terminal device such as a personal PC or a mobile phone.
  • a user terminal device such as a personal PC or a mobile phone
  • the Bluetooth device playing music depends on the audio data transmitted by the user terminal device, the Bluetooth device itself has no audio file, and the music playing mode is single. , affecting the user experience.
  • Embodiments of the present invention provide a method and a device, a device, and a system for transmitting and receiving an audio file, so as to provide an audio file to a Bluetooth device, enrich the playing mode of the audio file, and improve the user experience.
  • an embodiment of the present invention provides an audio file receiving method, where the method is applied to a Bluetooth device, and the method includes:
  • the audio information of the audio file is received in a second Bluetooth transmission protocol.
  • the method further includes:
  • the buffer end instruction is received in the second Bluetooth transmission protocol.
  • the method further includes:
  • the audio data is stored.
  • the storing the audio data includes:
  • An audio folder is created based on the audio information, and the audio data is stored to the audio folder.
  • storing the audio data to the audio folder includes:
  • the received audio data is directly stored to the audio folder.
  • the first Bluetooth audio transmission protocol is a Bluetooth advanced audio transmission model protocol
  • the second Bluetooth transmission protocol is a Bluetooth low energy transmission protocol
  • an embodiment of the present invention provides an audio file transmission method, where the method is applied to a user terminal device that transmits an audio file, and the method includes:
  • the audio information of the audio file is transmitted to the Bluetooth device in a second Bluetooth transmission protocol.
  • the method further includes:
  • the method further includes:
  • a communication event is received, and whether the communication event is responded to is determined according to a preset priority.
  • the first Bluetooth audio transmission protocol is a Bluetooth advanced audio transmission model protocol
  • the second Bluetooth transmission protocol is a Bluetooth low energy transmission protocol
  • the audio information of the audio file is used to create an audio folder, and the audio information includes: a song name, a singer name, and/or a song category.
  • an embodiment of the present invention provides an audio file receiving apparatus, where the apparatus is applied to Bluetooth device, the device comprising:
  • An audio data receiving unit configured to receive audio data of an audio file by using a first Bluetooth audio transmission protocol
  • an audio information receiving unit configured to receive audio information of the audio file by using a second Bluetooth transmission protocol.
  • the audio information receiving unit is further configured to:
  • the buffer end instruction is received in the second Bluetooth transmission protocol.
  • the device further includes:
  • a storage unit for storing the audio data.
  • the storage unit includes:
  • An audio folder creating module configured to create an audio folder according to the audio information
  • an audio data storage module configured to store the audio data to the audio folder.
  • the audio data storage module is specifically configured to:
  • the received audio data is directly stored to the audio folder.
  • the first Bluetooth audio transmission protocol is a Bluetooth advanced audio transmission model protocol
  • the second Bluetooth transmission protocol is a Bluetooth low energy transmission protocol
  • an embodiment of the present invention provides an audio file transmission device, where the device is applied to a user terminal device that transmits an audio file, and the device includes:
  • An audio data sending unit configured to transmit audio data of the audio file to a Bluetooth device by using a first Bluetooth audio transmission protocol
  • an audio information sending unit configured to transmit the audio information of the audio file to the Bluetooth device by using a second Bluetooth transmission protocol.
  • the audio information sending unit is further configured to:
  • the device further includes:
  • a communication event response unit configured to receive a communication event, and determine whether to respond to the communication event according to a preset priority.
  • the first Bluetooth audio transmission protocol is a Bluetooth advanced audio transmission model protocol
  • the second Bluetooth transmission protocol is a Bluetooth low energy transmission protocol
  • the audio information of the audio file is used to create an audio folder, and the audio information includes:
  • an embodiment of the present invention provides a user terminal device, including:
  • At least one processor and,
  • the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform a method of transmitting any of the audio files described above.
  • an embodiment of the present invention provides a Bluetooth device, including:
  • At least one processor and,
  • the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the audio file receiving method of any of the above .
  • an embodiment of the present invention provides a processing system for an audio file, including the foregoing user terminal device and a Bluetooth device.
  • an embodiment of the present invention provides a computer program product, the computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions, when the program When the instruction is executed by the user terminal device, the user terminal device is caused to execute the above-described audio file transmitting method.
  • the embodiment of the present invention further provides a non-transitory computer readable storage medium storing computer executable instructions for causing a Bluetooth device to perform the above The audio file receiving method.
  • the embodiment of the present invention transmits the audio data of the audio file between the user terminal device and the Bluetooth device through the first Bluetooth audio transmission protocol, and passes the second Bluetooth transmission protocol. Transmitting audio information corresponding to the audio data of the audio file to provide an audio file to the Bluetooth device, thereby enriching the playing mode of the audio file and improving the user experience.
  • FIG. 1 is a schematic diagram of an application environment of an audio file processing system according to an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of an audio file transmission method according to an embodiment of the present invention.
  • FIG. 3 is a schematic flowchart of another audio file transmission method according to an embodiment of the present invention.
  • FIG. 4 is a schematic flowchart of an audio file receiving method according to an embodiment of the present invention.
  • FIG. 5 is a schematic flowchart of another audio file receiving method according to an embodiment of the present disclosure.
  • FIG. 6 is a schematic diagram of an audio file processing workflow between a mobile phone and a Bluetooth headset according to an embodiment of the present invention
  • FIG. 7 is a schematic diagram of an audio file transmission apparatus according to an embodiment of the present invention.
  • FIG. 8 is a schematic diagram of an audio file receiving apparatus according to an embodiment of the present invention.
  • FIG. 9 is a schematic structural diagram of hardware of a user terminal device according to an embodiment of the present invention.
  • FIG. 10 is a schematic structural diagram of a hardware device of a Bluetooth device according to an embodiment of the present disclosure.
  • FIG. 11 is a schematic diagram of an audio file processing system according to an embodiment of the present invention.
  • Embodiments of the present invention provide an audio file transmission method, apparatus, and audio receiving method and apparatus.
  • the foregoing method and apparatus can provide audio files in a user terminal device such as a personal PC or a mobile phone to a Bluetooth headset, a Bluetooth speaker, and the like.
  • Bluetooth device, and audio file storage on the Bluetooth device side the following examples illustrate the application environment of the above method and device.
  • Figure 1 is a schematic diagram of an application environment of an audio file processing system according to an embodiment of the present invention
  • Figure 1 (a), Figure 1 (b) and Figure 1 (c) show three application scenarios for providing an audio file to the Bluetooth device 10 through the user terminal device 20, wherein the application scenario may further include a user
  • Figure 1 may interact with the user terminal device 20 and the Bluetooth device 10 through any suitable type of one or more user interaction devices, for example, the user interaction device may be a mouse, a button, a remote controller.
  • the touch screen, the somatosensory camera or the smart wearable device controls the user terminal device 20 and the Bluetooth device 10 to perform one or more operations, such as an audio playback operation, by inputting an instruction.
  • the user terminal device may be any suitable type of user terminal device providing one or more audio content, such as a smartphone, a tablet, an MP3 player, a personal computer, a laptop, a personal stereo, a CD player or the like. Intelligent / non-intelligent terminal equipment.
  • the user terminal device is coupled to at least one storage medium for storing audio data, which may be a memory within the user terminal device, or may be a storage medium on the Internet, and acquire an audio file from the storage medium.
  • the user terminal device may also be a combination of one or more electronic devices, such as a smartphone and an analog to digital converter (DAC) connected thereto.
  • DAC analog to digital converter
  • the Bluetooth device can be any suitable device having the ability to play audio data and storage capabilities, such as a Bluetooth headset, a Bluetooth speaker, or other suitable type of speaker set.
  • Fig. 1(a) shows a scenario in which audio data is supplied to a Bluetooth speaker through a personal PC.
  • the FIG. 1(b) shows a scenario in which audio data is supplied to a Bluetooth speaker through a personal PC
  • FIG. 1(c) shows a scenario in which audio data is supplied to a Bluetooth headset through a mobile phone.
  • the user terminal device can connect to the Bluetooth device through an internal integration or an external Bluetooth module or a Bluetooth chip.
  • Bluetooth-enabled devices When two Bluetooth-enabled devices establish a connection, they get the protocol provided by the corresponding device. Only devices that use the same protocol can exchange data.
  • Bluetooth-enabled devices do not need to implement the full Bluetooth specification.
  • some application layer profiles are defined in the Bluetooth specification to define how a connection or application is implemented between Bluetooth-enabled devices.
  • A2DP Advanced Audio Distribution Profile
  • a protocol stack and method of use for transferring high quality music file data A2DP is specifically designed to transmit stereo audio using Bluetooth.
  • HFP Hands Free Profile
  • HFP can only transmit mono encrypted audio, and the transmission quality is much worse than A2DP.
  • A2DP can transmit (16bits, 44.1kHz) audio
  • HFP can only transmit (8bits, 8kHz) audio
  • HFP can be used to transmit voice signals.
  • BLE Bluetooth low energy
  • Bluetooth low energy which is a Bluetooth low energy protocol, is mainly used for short-time small data transmission.
  • the user terminal device can establish a Bluetooth connection with the Bluetooth device according to the user instruction, wherein the user terminal device can transmit the audio data to the Bluetooth device through the first Bluetooth audio transmission protocol (for example, A2DP protocol or HFP protocol), and pass the second Bluetooth.
  • a transport protocol eg, the BLE protocol
  • delivers audio information related to the audio data to the Bluetooth device eg, the name of the music, the name of the singer or player, the music category, and the voice issuer, etc.
  • An audio folder is created in a memory of the Bluetooth device according to the audio information, and the audio data is stored in the audio folder to implement storage of the audio file in the Bluetooth device.
  • the embodiments of the present invention are not limited to the above Bluetooth protocol. In practical applications, other suitable Bluetooth protocols may be used as needed to transmit audio data and other suitable protocols for transmitting audio information.
  • the Bluetooth chip can receive an audio signal through a Pulse Code Modulation (PCM) wired CODEC interface (for example, a standard hardware stereo PCM interface) (the audio signal can be in MP3 format or other format) Decoding the audio signal and outputting PCM audio bare data. Since the PCM audio bare data requires a large bandwidth, that is, inefficient and power-consuming, and is not suitable for wireless transmission, it is necessary to perform audio encoding on the PCM audio bare data to compress it, and then, the compressed audio data is sub-packaged and combined. Into the audio data of the Bluetooth transmission protocol.
  • PCM Pulse Code Modulation
  • the Bluetooth device When the A2DP protocol is adopted, it is combined into an A2DP audio data frame, such as frame1, frame2, ... frameN. After receiving the compressed and packetized audio data, the Bluetooth device can directly store the compressed and packetized audio data in the audio folder, and then decode it when it needs to be played. After decoding, The audio data is then stored in an audio folder.
  • audio coding formats that satisfy the A2DP protocol include SBC (Sub Band Coding), AAC (Advanced Audio Coding), and Apt-X.
  • SBC Sub Band Coding
  • AAC Advanced Audio Coding
  • Apt-X the encoding rate of the SBC encoding format is 44.1 kHz and the maximum is 328 kbit/s
  • the encoding rate of the AAC encoding format is 320 kbit/s
  • the encoding rate of the Apt-X encoding format is 352 kbit/s.
  • FIG. 2 is a schematic flowchart of an audio file transmission method according to an embodiment of the present invention.
  • An audio file transmission method of the embodiment of the present invention may be performed by various user terminal devices shown in FIG. 1, as shown in FIG. 2, the method includes:
  • the operation of the user terminal device to transmit the audio data to the Bluetooth device through the first Bluetooth audio transmission protocol, such as A2DP, may be triggered in multiple manners, for example, when the user establishes the user terminal device and the Bluetooth device. After the connection, the audio player of the user terminal device is turned on, and at this time, the user terminal device will transmit the audio data to the Bluetooth device.
  • A2DP first Bluetooth audio transmission protocol
  • the audio data of the audio file may be a user terminal device, such as a smart phone, converting the MP3 format of the audio file into a PCM format, and encoding the PCM format into a format such as SBC, AAC, Apt-X, or the like. And divide the music of various formats into one frame and one frame, for example, frame1, frame2, ... frameN, and then transmit the audio data of each frame to the Bluetooth device through A2DP, for example, a Bluetooth earphone.
  • A2DP for example, a Bluetooth earphone.
  • the user terminal device sends the audio information corresponding to the audio data to the Bluetooth device at the same time as the audio data is transmitted, or at intervals.
  • the user terminal device can play an audio file stored locally in the user terminal device, and transmit the audio information of the audio file in a second Bluetooth transmission protocol during the process of transmitting the audio data of the audio file through the A2DP.
  • the network audio file can also be played online, and the audio data and the audio information in the audio file are respectively transmitted to the Bluetooth device by A2DP and BLE, wherein the second Bluetooth transmission protocol is BLE, and the audio information is used to create an audio file.
  • the audio information may include a song name, a singer name, and/or a song category, and the audio information and the audio data belong to the same audio file.
  • the user terminal device can also play the network audio file online, and transmit the audio data and the audio information in the audio file to the Bluetooth device by A2DP and BLE, respectively.
  • the audio data of the audio file is transmitted through the first Bluetooth audio transmission protocol
  • the audio information of the audio file is transmitted to the Bluetooth device through the second Bluetooth transmission protocol to provide an audio file to the Bluetooth device, thereby enriching the playing mode of the audio file.
  • FIG. 3 is a schematic flowchart of another audio file transmission method according to an embodiment of the present invention; the method may also be performed by using various user terminal devices shown in FIG. 1 , as shown in FIG. 3 , the method includes:
  • the audio data may be first stored in a cache, for example, in a static random access memory (SRAM), the Bluetooth device will audio data.
  • the operation of storing the buffer may be controlled by the user terminal device end, and the user terminal device sends a buffer start instruction to the Bluetooth device while transmitting the audio data, or after a period of time interval, and after receiving the audio data and the cache start instruction, the Bluetooth device will The audio data is stored in a cache.
  • SRAM static random access memory
  • the audio data may be transmitted by A2DP after the BLE transmission buffer start instruction, in which case the Bluetooth device buffers the received audio data.
  • the Bluetooth device buffers the received audio data.
  • the BLE transmission buffer end instruction may be used to the Bluetooth device, and the Bluetooth device is received. Terminate the storage of audio data in the cache by the end of the cache.
  • the audio data in order to store the audio data to the audio folder, the audio data may be transmitted at the same time or at intervals, or at the same time as the transmission buffer start instruction or at intervals, or in the transmission buffer.
  • the audio information is sent to the Bluetooth device through BLE at the same time as the end instruction or at intervals.
  • the buffer start instruction and the cache end instruction may exist at the same time in different embodiments, or only one type of instruction may exist, for example, a buffer start instruction and a cache end instruction may be sent, or only a cache end instruction or a cache may be sent. Start the instruction.
  • the method further includes:
  • a communication event is received, and whether the communication event is responded to is determined according to a preset priority.
  • the user terminal device may receive a communication event, such as an incoming call or an instant message, during the playing of the audio file.
  • a priority may be preset to determine whether to respond to the corresponding communication event. For example, if the priority of the incoming call is higher than the audio file playback priority, the audio file can be terminated if an incoming call event is received during the playback of the audio file. The transmission is in response to the incoming call event.
  • the audio data of the audio file is transmitted through the first Bluetooth audio transmission protocol, and the audio information of the audio file is transmitted to the Bluetooth device through the second Bluetooth transmission protocol to provide an audio file to the Bluetooth device, thereby enriching the playing mode of the audio file.
  • the transmission buffer start instruction and the cache end instruction are advantageous for controlling the storage of the audio data to improve the transmission speed of the audio data.
  • FIG. 4 is a schematic flowchart of a method for receiving an audio file according to an embodiment of the present invention. The method may be performed by using various Bluetooth devices shown in FIG. 1 . As shown in FIG. 4 , the method includes:
  • the Bluetooth device can receive the audio file audio data sent by the user terminal device through the A2DP, and the audio data includes multiple data frames.
  • the Bluetooth device can receive the audio information of the audio file sent by the user terminal device through the BLE, and the audio information is used to create an audio folder, and the audio information may include a song name, a singer name, and/or a song category, and The audio information and the audio data belong to the same audio file.
  • steps 401 and 402 do not necessarily have a certain order, and those skilled in the art may understand according to the description of the embodiments of the present invention. Steps 401 and 402 can have different execution sequences.
  • the audio data of the audio file is received by the first Bluetooth audio transmission protocol
  • the audio information of the audio file is received by the second Bluetooth transmission protocol to the Bluetooth device, so that the Bluetooth device stores the audio file, thereby enriching the playing mode of the audio file.
  • FIG. 5 is a schematic flowchart of another method for receiving an audio file according to an embodiment of the present invention; the method may also be performed by using various user terminal devices shown in FIG. 1 , as shown in FIG. 5 , the method includes:
  • the audio data may be first stored in a cache, for example, in a static random access memory (SRAM), the operation of the Bluetooth device to store the audio data in the cache may be performed by the user terminal.
  • the device end controls, and the user terminal device sends a buffer start instruction to the Bluetooth device through the BLE while transmitting the audio data, or at intervals.
  • the Bluetooth device After receiving the audio data and the cache start command, the Bluetooth device stores the audio data in a cache.
  • the audio data may be received by the A2DP after receiving the buffer start instruction with the BLE, in which case the Bluetooth device buffers the received audio data.
  • the Bluetooth device buffers the received audio data.
  • the audio data in order to store the audio data to the audio folder, the audio data may be received at the same time or at intervals, or the audio information may be received through the BLE while receiving the buffer start instruction or at intervals. .
  • the received audio data may be cached or may be stored in an audio folder.
  • an audio folder can be created based on the received audio information, and the audio data can be stored to an audio folder.
  • the storing the audio data to the audio folder may include: buffering the audio data in a Bluetooth device random access memory, and when the audio data buffered in the random access memory exceeds a preset storage capacity, the audio is The data is stored to the audio folder, or the received audio data is directly stored to the audio folder.
  • the audio folder may be in a solid state memory built into the Bluetooth device, such as eMMC or Tcard or UFS.
  • the storage of audio data is first stored in the SRAM through the cache, which can speed up the storage of the audio data, save time and power consumption, and can write the received audio data into the solid state when the audio data stored in the cache reaches a preset capacity.
  • the audio folder of the memory is first stored in the SRAM through the cache, which can speed up the storage of the audio data, save time and power consumption, and can write the received audio data into the solid state when the audio data stored in the cache reaches a preset capacity.
  • the BLE transmission buffer end instruction can be used to the Bluetooth device, and the Bluetooth device can When the buffer end instruction is received through BLE, the storage of the audio data in the cache is terminated.
  • the foregoing steps 501, 502, 503, 504, and 505 do not necessarily have a certain order, and those skilled in the art can understand according to the description of the embodiments of the present invention.
  • the foregoing steps 501, 502, 503, 504, 505 may have different execution orders, and in the different embodiments, for the cache start instruction and the cache end instruction, It may exist at the same time, or there may be only one type of instruction, for example, a buffer start instruction and a buffer end instruction may be received, or only a buffer end instruction or a cache start instruction may be received.
  • the audio data of the audio file is received by the first Bluetooth audio transmission protocol
  • the audio information of the audio file is received by the second Bluetooth transmission protocol to the Bluetooth device, so that the Bluetooth device stores the audio file, thereby enriching the playing mode of the audio file.
  • the Bluetooth device stores the audio file, thereby enriching the playing mode of the audio file.
  • the audio file transmission method and the audio file receiving method embodiment of the present invention are exemplified in the following with reference to specific application scenarios.
  • the specific application scenario is that the music is played to the Bluetooth headset through the mobile phone.
  • the audio file processing workflow between the mobile phone and the Bluetooth headset is used in the embodiment of the present invention.
  • the mobile phone plays music files through the music app, such as playing an MP3 format song;
  • the mobile phone converts the MP3 format into a PCM format
  • the Bluetooth IC of the mobile phone encodes the PCM format into SBC, AAC, Apt-X, etc., and divides the music of the format into one frame and one frame, such as frame1, frame2, ... frameN;
  • the mobile phone sends a start buffer instruction to the Bluetooth headset, and the music of frame1, frame2, ... frameN is transmitted to the Bluetooth headset through A2DP, and the Bluetooth headset receives frame1, frame2, ... frameN and is cached in its Memory. It is first stored in Memory and not directly written into the song folder because Memory is SRAM (Static Random Access Memory), which is fast, saves time and saves power;
  • SRAM Static Random Access Memory
  • the mobile phone transmits the music information (such as song name, singer name, song category, etc.) of the song to the Bluetooth headset through BLE; and creates a song folder in the memory of the Bluetooth headset, for example, the name of the folder is named by the artist name.
  • the memory is eMMC or TCard or UFS;
  • this step can be performed simultaneously with the fourth step.
  • the Bluetooth headset starts to write the music frames stored in the Memory into the song folder frame by frame.
  • the mobile phone sends a termination buffer instruction to the Bluetooth headset, and the Bluetooth headset will terminate the buffer writing into the song folder, thereby terminating the buffer;
  • the music frame of the fourth step is directly framed by one without using the buffer.
  • the frame is written to the song folder via A2DP.
  • FIG. 7 is a schematic diagram of an audio file transmission apparatus according to an embodiment of the present invention. As shown in FIG. 7, the apparatus 700 is applied to a user terminal device as shown in FIG. 1, and the apparatus 700 includes:
  • the audio data sending unit 701 is configured to transmit audio data of the audio file to the Bluetooth device by using a first Bluetooth audio transmission protocol
  • the audio information sending unit 702 is configured to transmit the audio information of the audio file to the Bluetooth device by using a second Bluetooth transmission protocol.
  • the first Bluetooth audio transmission protocol is a Bluetooth advanced audio transmission model protocol
  • the second Bluetooth transmission protocol is a Bluetooth low energy transmission protocol.
  • the audio information of the audio file is used to create an audio folder, the audio information including: a song name, a singer name, and/or a song category.
  • the audio information sending unit 702 is further configured to: transmit a buffer start instruction to the Bluetooth device by using the second Bluetooth transmission protocol, and/or transmit a buffer end instruction by using the second Bluetooth transmission protocol. To Bluetooth devices.
  • the apparatus 700 further includes:
  • a communication event response unit configured to receive a communication event, and determine whether to respond to the communication event according to a preset priority.
  • the audio data sending unit 701 sends the audio data of the user terminal device to the Bluetooth device through the A2DP, and the audio information sending unit 702 corresponds to the audio data. Audio information is sent to the Bluetooth device via BLE.
  • the buffer start instruction and the buffer end instruction may also be sent by the audio information transmitting unit 702 to control the storage of the audio data to the cache of the Bluetooth device.
  • the foregoing audio file transmission apparatus may perform the audio file transmission method provided by the embodiment of the present invention, and has a function module and a beneficial effect corresponding to the execution method.
  • the audio file transmission method provided by the embodiment of the present invention.
  • the audio data of the audio file is transmitted through the first Bluetooth audio transmission protocol
  • the audio information of the audio file is transmitted to the Bluetooth device through the second Bluetooth transmission protocol to provide the audio file to the Bluetooth device, thereby enriching the playing of the audio file. Ways to enhance the user experience.
  • FIG. 8 is a schematic diagram of an audio file receiving apparatus according to an embodiment of the present invention, where the apparatus is applied to As shown in FIG. 8, the Bluetooth device shown in FIG. 1 includes:
  • An audio data receiving unit 801 configured to receive audio data of an audio file by using a first Bluetooth audio transmission protocol
  • the audio information receiving unit 802 is configured to receive audio information of the audio file in a second Bluetooth transmission protocol.
  • the first Bluetooth audio transmission protocol is a Bluetooth advanced audio transmission model protocol
  • the second Bluetooth transmission protocol is a Bluetooth low energy transmission protocol.
  • the audio information of the audio file is used to create an audio folder, the audio information including: a song name, a singer name, and/or a song category.
  • the audio information receiving unit 802 is further configured to:
  • the buffer end instruction is received in the second Bluetooth transmission protocol.
  • the device 800 further includes:
  • the storage unit 803 is configured to store the audio data.
  • the storage unit 803 includes:
  • An audio folder creating module 8031 configured to create an audio folder according to the audio information
  • the audio data storage module 8032 is configured to store the audio data to the audio folder.
  • the audio data storage module 8032 may be specifically configured to:
  • the received audio data is directly stored to the audio folder.
  • the audio data receiving unit 801 receives the audio data of the audio file transmitted by the audio file transmission device through the A2DP, and the audio information receiving unit 802 receives the audio information of the audio file transmitted through the BLE, and the storage unit 803 is receiving. After the audio data and the audio information, an audio folder is created based on the audio information, and the audio data is stored in the audio folder.
  • the storage unit 803 can include an audio folder creation module 8031 and an audio data storage module 8032.
  • the audio data storage module 8032 can determine to store the audio data to the cache or audio folder according to the cache start instruction and the cache end instruction.
  • the foregoing audio file receiving apparatus can perform the audio provided by the embodiment of the present invention.
  • the file receiving method has the corresponding function modules and beneficial effects of the execution method.
  • the audio file receiving method provided by the embodiment of the present invention.
  • the audio data of the audio file is received by the first Bluetooth audio transmission protocol
  • the audio information of the audio file is received by the second Bluetooth transmission protocol to the Bluetooth device, so that the Bluetooth device stores the audio file, thereby enriching the playing of the audio file. Ways to enhance the user experience.
  • the audio file is stored in the audio folder, which is convenient for the user to play the audio file directly through the Bluetooth device.
  • FIG. 9 is a schematic structural diagram of hardware of a user terminal device according to an embodiment of the present invention. As shown in FIG. 9, the user terminal device 900 includes:
  • One or more processors 901 and memory 902, one processor 901 is taken as an example in FIG.
  • the processor 901 and the memory 902 can be connected by a bus or other means, and the connection in FIG. 901 is exemplified by a bus connection.
  • the memory 902 is a non-volatile computer readable storage medium and can be used for storing a non-volatile software program, a non-volatile computer executable program, and a module, such as a program corresponding to the audio file transmission method in the embodiment of the present invention.
  • An instruction/unit for example, the audio data transmitting unit 701 and the audio information transmitting unit 702 shown in FIG. 7.
  • the processor 901 executes various functional applications and data processing of the user terminal device by executing nonvolatile software programs, instructions, and units stored in the memory 902, that is, implementing the audio file transmission method of the above method embodiment.
  • the memory 902 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function; the storage data area may store data created according to usage of the user terminal device, and the like.
  • memory 902 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device.
  • memory 902 can optionally include memory remotely located relative to processor 901, which can be connected to the user terminal device over a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
  • the one or more units are stored in the memory 902, and when executed by the one or more processors 901, perform an audio file transmission method in any of the above method embodiments, for example, performing the above described FIG.
  • the user terminal device can perform the audio file transmission method provided by the embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
  • the audio file transmission method provided by the embodiment of the present invention.
  • Embodiments of the present invention provide a non-transitory computer readable storage medium storing computer-executable instructions that are executed by one or more processors, for example, to perform the above
  • the method steps 201 to 202 in FIG. 2 and the method steps 301 to 304 in FIG. 3 implement the functions of the modules 701-702 in FIG.
  • the user terminal device in this embodiment of the present application exists in various forms, including but not limited to:
  • Mobile communication devices These devices are characterized by mobile communication functions and are mainly aimed at providing voice and data communication.
  • Such terminals include: smart phones (such as iPhone), multimedia phones, functional phones, and low-end phones.
  • Ultra-mobile personal computer equipment This type of equipment belongs to the category of personal computers, has computing and processing functions, and generally has mobile Internet access.
  • Such terminals include: PDAs, MIDs, and UMPC devices, such as the iPad.
  • Portable entertainment devices These devices can display and play multimedia content. Such devices include: audio, video players (such as iPod), handheld game consoles, e-books, and smart toys and portable car navigation devices.
  • the server consists of a processor, a hard disk, a memory, a system bus, etc.
  • the server is similar to a general-purpose computer architecture, but because of the need to provide highly reliable services, processing power and stability High reliability in terms of reliability, security, scalability, and manageability.
  • FIG. 10 is a schematic structural diagram of a hardware device of a Bluetooth device according to an embodiment of the present invention. As shown in FIG. 10, the user terminal device 1000 includes:
  • One or more processors 1001 and a memory 1002, one processor 1001 is taken as an example in FIG.
  • the processor 1001 and the memory 1002 may be connected by a bus or other means.
  • a bus connection is taken as an example.
  • the memory 1002 is a non-volatile computer readable storage medium and can be used for storing a non-volatile software program, a non-volatile computer executable program, and a module, such as a program corresponding to the audio file transmission method in the embodiment of the present invention.
  • Instruction/unit for example, the audio data receiving unit 801 shown in FIG. 8 And audio information receiving unit 802.
  • the processor 1001 executes various functional applications and data processing of the Bluetooth device by executing non-volatile software programs, instructions, and units stored in the memory 1002, that is, implementing the audio file receiving method of the above method embodiment.
  • the memory 1002 may include a storage program area and an storage data area, wherein the storage program area may store an operating system, an application required for at least one function; the storage data area may store data created according to usage of the Bluetooth device, and the like. Further, the memory 1002 may include a high speed random access memory, and may also include a nonvolatile memory such as at least one magnetic disk storage device, flash memory device, or other nonvolatile solid state storage device. In some embodiments, the memory 1002 can optionally include memory remotely located relative to the processor 1001 that can be connected to the Bluetooth device over a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
  • the one or more units are stored in the memory 1002, and when executed by the one or more processors 1001, perform an audio file receiving method in any of the above method embodiments, for example, performing FIG. 4 described above
  • the above-mentioned Bluetooth device can perform the audio file receiving method provided by the embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
  • the audio file receiving method provided by the embodiment of the present invention.
  • Embodiments of the present invention provide a non-transitory computer readable storage medium storing computer-executable instructions that are executed by one or more processors, for example, to perform the above
  • the method steps 401 to 402 of FIG. 4 are described, and the method steps 501 to 505 of FIG. 5 implement the functions of the modules 801-803 of FIG.
  • the Bluetooth device of the embodiment of the present application may exist in various forms, including but not limited to:
  • Bluetooth headset This type of device is characterized by Bluetooth communication, and the main goal is to provide speaking and music playback. .
  • Portable entertainment devices These devices can play multimedia content. Such devices include: audio, video players (such as iPod), handheld game consoles, e-books, and smart toys and portable car navigation devices that have Bluetooth communication capabilities.
  • FIG. 11 is a schematic diagram of an audio file processing system according to an embodiment of the present invention, as shown in FIG.
  • the system 1100 includes a user terminal device 1101 and a Bluetooth device 1102, wherein the user terminal device 1101 is provided with the functions described in the above embodiment of the user terminal device and performs the method steps of the above-mentioned audio file transmission method embodiment, and the Bluetooth device 1102 is provided with the above-mentioned Bluetooth device.
  • the functions described in the embodiments and the method steps of the above embodiment of the audio file receiving method are performed.
  • the device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, ie may be located A place, or it can be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • the embodiments can be implemented by means of software plus a general hardware platform, and of course, by hardware.
  • a person skilled in the art can understand that all or part of the process of implementing the above embodiments can be completed by a computer program to instruct related hardware, and the program can be stored in a computer readable storage medium. When executed, the flow of an embodiment of the methods as described above may be included.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本发明实施例公开了一种音频文件传输方法和装置、音频文件接收方法和装置、蓝牙设备、用户终端设备及其系统,所述音频文件传输方法包括:以第一蓝牙音频传输协议传输所述音频文件的音频数据至蓝牙设备,以第二蓝牙传输协议传输所述音频文件的音频信息至蓝牙设备。通过本发明实施例可以提供音频文件给蓝牙设备,从而丰富音频文件的播放方式,提升用户体验。

Description

音频文件的传输、接收方法及装置、设备及其系统 技术领域
本发明实施例涉及蓝牙技术领域特别涉及一种音频文件的传输、接收方法及装置、设备及其系统。
背景技术
蓝牙无线技术是一种小型化、低成本的无线通信解决方案的规范,它为个人PC机、移动电话和其他蓝牙设备,例如,蓝牙耳机、蓝牙音箱等提供短距离无线连接。
在利用蓝牙耳机、蓝牙音箱等蓝牙设备播放音乐的场合,需要将个人PC机或移动电话等集成了蓝牙模块或者蓝牙芯片的用户终端设备与蓝牙设备之间建立连接,然后打开个人PC机或移动电话等用户终端设备的音乐播放器选择音乐进行播放,用户终端设备将音乐播放器中的音乐文件转换成符合蓝牙音频传输协议的音频数据,并将所述音频数据发送到蓝牙设备,蓝牙设备解码后在蓝牙设备中播放该音乐。
实现本发明过程中,发明人发现相关技术中至少存在如下问题:在使用蓝牙耳机、蓝牙音箱等蓝牙设备播放音乐的过程中,需要将蓝牙设备与个人PC机或移动电话等用户终端设备建立连接,通过在个人PC机或移动电话等用户终端设备上发送音频数据,并由蓝牙设备播放音乐,蓝牙设备播放音乐依赖于用户终端设备发送的音频数据,蓝牙设备本身没有音频文件,音乐播放方式单一,影响用户体验。
发明内容
本发明实施例提供一种音频文件的传输、接收方法及装置、设备及其系统,以提供音频文件给蓝牙设备,丰富音频文件的播放方式,提升用户体验。
第一方面,本发明实施例提供了一种音频文件接收方法,所述方法应用于蓝牙设备,所述方法包括:
以第一蓝牙音频传输协议接收音频文件的音频数据,以及
以第二蓝牙传输协议接收所述音频文件的音频信息。可选的,所述方法还包括:
以所述第二蓝牙传输协议接收缓存开始指令,和/或,
以所述第二蓝牙传输协议接收缓存结束指令。
可选的,所述方法还包括:
存储所述音频数据。
可选的,所述存储所述音频数据,包括:
根据所述音频信息建立音频文件夹,并将所述音频数据存储至所述音频文件夹。
可选的,将所述音频数据存储至所述音频文件夹,包括:
将所述音频数据缓存于蓝牙设备随机存储器,当缓存于所述随机存储器的所述音频数据超出预设存储容量时,将所述音频数据存储至所述音频文件夹,或者,
直接将接收的所述音频数据存储至所述音频文件夹。
可选的,所述第一蓝牙音频传输协议为蓝牙高级音频传输模型协议,所述第二蓝牙传输协议为蓝牙低功耗传输协议。
第二方面,本发明实施例提供了一种音频文件传输方法,所述方法应用于传输音频文件的用户终端设备,所述方法包括:
以第一蓝牙音频传输协议传输所述音频文件的音频数据至蓝牙设备,
以第二蓝牙传输协议传输所述音频文件的音频信息至蓝牙设备。
可选的,所述方法还包括:
以所述第二蓝牙传输协议传输缓存开始指令至蓝牙设备,和/或,
以所述第二蓝牙传输协议传输缓存结束指令至蓝牙设备。
可选的,所述方法还包括:
接收通信事件,并根据预先设置的优先级确定是否响应所述通信事件。
可选的,所述第一蓝牙音频传输协议为蓝牙高级音频传输模型协议,所述第二蓝牙传输协议为蓝牙低功耗传输协议。
可选的,所述音频文件的音频信息用于建立音频文件夹,所述音频信息包括:歌曲名称、歌手名称和/或歌曲类别。
第三方面,本发明实施例提供了一种音频文件接收装置,所述装置应用于 蓝牙设备,所述装置包括:
音频数据接收单元,用于以第一蓝牙音频传输协议接收音频文件的音频数据,以及
音频信息接收单元,用于以第二蓝牙传输协议接收所述音频文件的音频信息。
可选的,所述音频信息接收单元还用于:
以所述第二蓝牙传输协议接收缓存开始指令,和/或,
以所述第二蓝牙传输协议接收缓存结束指令。
可选的,所述装置还包括:
存储单元,用于存储所述音频数据。
可选的,所述存储单元包括:
音频文件夹建立模块,用于根据所述音频信息建立音频文件夹,
音频数据存储模块,用于将所述音频数据存储至所述音频文件夹。
可选的,所述音频数据存储模块具体用于:
将所述音频数据缓存于蓝牙设备随机存储器,当缓存于所述随机存储器的所述音频数据超出预设存储容量时,将所述音频数据存储至所述音频文件夹,或者,
直接将接收的所述音频数据存储至所述音频文件夹。
可选的,所述第一蓝牙音频传输协议为蓝牙高级音频传输模型协议,所述第二蓝牙传输协议为蓝牙低功耗传输协议。
第四方面,本发明实施例提供了一种音频文件传输装置,所述装置应用于传输音频文件的用户终端设备,所述装置包括:
音频数据发送单元,用于以第一蓝牙音频传输协议传输所述音频文件的音频数据至蓝牙设备,
音频信息发送单元,用于以第二蓝牙传输协议传输所述音频文件的音频信息至蓝牙设备。
所述音频信息发送单元还用于:
以所述第二蓝牙传输协议传输缓存开始指令至蓝牙设备,和/或,
以所述第二蓝牙传输协议传输缓存结束指令至蓝牙设备。
可选的,所述装置还包括:
通信事件响应单元,用于接收通信事件,并根据预先设置的优先级确定是否响应所述通信事件。
可选的,所述第一蓝牙音频传输协议为蓝牙高级音频传输模型协议,所述第二蓝牙传输协议为蓝牙低功耗传输协议。
可选的,所述音频文件的音频信息用于建立音频文件夹,所述音频信息包括:
歌曲名称、歌手名称和/或歌曲类别。
第五方面,本发明实施例提供了一种用户终端设备,包括:
至少一个处理器;以及,
与所述至少一个处理器通信连接的存储器;其中,
所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行上述任一项音频文件的传输方法。
第六方面,本发明实施例提供了一种蓝牙设备,包括:
至少一个处理器;以及,
与所述至少一个处理器通信连接的存储器;其中,
所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行上述任一项所述的音频文件接收方法。
第七方面,本发明实施例提供了一种音频文件的处理系统,包括上述的用户终端设备及蓝牙设备。
第八方面,本发明实施例提供了一种计算机程序产品,所述计算机程序产品包括存储在非易失性计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被用户终端设备执行时,使所述用户终端设备执行上述的音频文件发送方法。
第九方面,本发明实施例还提供了一种非易失性计算机可读存储介质,所述计算机可读存储介质存储有计算机可执行指令,所述计算机可执行指令用于使蓝牙设备执行如上所述的音频文件接收方法。
本发明实施例的有益效果是:本发明实施例通过第一蓝牙音频传输协议在用户终端设备和蓝牙设备间传输音频文件的音频数据,通过第二蓝牙传输协议 传输与所述音频文件的音频数据对应的音频信息,以提供音频文件给蓝牙设备,从而丰富音频文件的播放方式,提升用户体验。
附图说明
一个或多个实施例通过与之对应的附图中的图片进行示例性说明,这些示例性说明并不构成对实施例的限定,附图中具有相同参考数字标号的元件表示为类似的元件,除非有特别申明,附图中的图不构成比例限制。
图1是本发明实施例提供的音频文件处理系统的应用环境的示意图;
图2是本发明实施例提供的一种音频文件传输方法流程示意图;
图3是本发明实施例提供的另一种音频文件传输方法流程示意图;
图4是本发明实施例提供的一种音频文件接收方法流程示意图;
图5是本发明实施例提供的另一种音频文件接收方法流程示意图;
图6是本发明实施例手机和蓝牙耳机之间的音频文件处理工作流程示意图;
图7是本发明实施例音频文件传输装置示意图;
图8是本发明实施例提供的音频文件接收装置示意图;
图9是本发明实施例提供的用户终端设备硬件结构示意图;
图10是本发明实施例提供的蓝牙设备硬件结构示意图;
图11是本发明实施例提供的音频文件处理系统示意图。
具体实施方式
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
本发明实施例提供了一种音频文件传输方法、装置和音频接收方法和装置,上述方法和装置可以实现将个人PC机、移动电话等用户终端设备中的音频文件提供给蓝牙耳机、蓝牙音箱等蓝牙设备,并在蓝牙设备端实现音频文件的存储,以下举例说明上述方法和装置的应用环境。
图1是本发明实施例提供的音频文件处理系统的应用环境的示意图;其中, 图1(a)、图1(b)和图1(c)示出了三种通过用户终端设备20向蓝牙设备10提供音频文件的应用场景,其中,所述应用场景还可以包括用户(图中未示出),所述用户可以通过任何合适的类型的、一种或者多种用户交互设备与用户终端设备20和蓝牙设备10交互,例如,这些用户交互设备可以是鼠标、按键、遥控器、触摸屏、体感摄像头或者智能可穿戴设备,通过输入指令控制用户终端设备20和蓝牙设备10进行一种或者多种操作,如音频播放操作。
所述用户终端设备可以是任何合适的,提供一个或者多个音频内容的各类型用户终端设备,例如,智能手机、平板电脑、MP3播放器、个人电脑、手提电脑、个人音响、CD机或者其它智能/非智能终端设备。用户终端设备耦合至至少一个用于存储音频数据的存储介质中,这些存储介质可以是用户终端设备内的存储器,也可以是互联网上的存储介质,并从存储介质中获取音频文件。此外,该用户终端设备还可以是一种或者多种电子设备的组合,例如,智能手机以及与其连接的模数转换器(DAC)。
蓝牙设备可以是任何合适的,具有播放音频数据能力及存储能力的设备,例如,蓝牙耳机、蓝牙音箱或者其它合适类型的扬声器组。图1(a)示出了通过个人PC机向蓝牙音箱提供音频数据的场景。所述图1(b)示出了通过个人PC机向蓝牙扬声器提供音频数据的场景,图1(c)示出了通过移动电话向蓝牙耳机提供音频数据的场景。
其中,用户终端设备可以通过内部集成或者外部的蓝牙模块或者蓝牙芯片实现与蓝牙设备的连接。当两台具有蓝牙功能的设备建立连接时,它们会获取对应设备提供的协议。只有使用相同协议的设备才能交换数据。
在蓝牙通信中,具有蓝牙功能的设备不需要实现全部的蓝牙规范。为了支持不同的蓝牙设备之间的兼容,在蓝牙规范中定义了一些应用层协议(profile),其用以定义具有蓝牙功能的设备之间如何实现一种连接或者应用。
其中,A2DP(Advenced Audio Distribution Profile高级蓝牙音频传输模型协议)属于上述的蓝牙协议profile中的一个子集。用于传输高质量音乐文件数据的协议堆栈和使用方法,A2DP是专门为使用蓝牙传送立体声音频而制定。
HFP(Hands Free Profile),HFP只能传输单声道加密音频,相比于A2DP,传输质量要差得多。A2DP能传输(16bits,44.1kHz)的音频,而HFP只能传输(8bits,8kHz)的音频,HFP可用于传输语音信号。
BLE(Bluetooth low energy),属于蓝牙低功耗协议,主要用于进行短时间小数据传输。
用户终端设备可以根据用户指令,与蓝牙设备之间建立蓝牙连接,其中,用户终端设备可以通过第一蓝牙音频传输协议(例如A2DP协议或者HFP协议)向蓝牙设备传递音频数据,而通过第二蓝牙传输协议(例如BLE协议)向蓝牙设备传递与音频数据相关的音频信息(例如,音乐的名称、演唱者或者演奏者的姓名、音乐类别以及语音发出者等)。根据所述音频信息在蓝牙设备的存储器中建立音频文件夹,并将所述音频数据存储在所述音频文件夹中,实现音频文件在蓝牙设备的存储。
本发明实施例并不限于以上蓝牙协议,在实际应用中,可以根据需要采用其他合适的蓝牙协议用于传输音频数据和采用其他合适的协议用于传输音频信息。
在集成蓝牙芯片的用户终端设备播放音频文件时,蓝牙芯片可以通过脉冲编码调制(PCM)有线CODEC接口(例如标准硬件立体声PCM接口)接收音频信号(所述音频信号可以为MP3格式或者其他格式),对所述音频信号进行解码,输出PCM音频裸数据。由于PCM音频裸数据需要很大的带宽,即低效又费电,不适合无线传输,因此需要对PCM音频裸数据进行音频编码对其进行压缩,之后,将压缩的音频数据进行分包,组合成符合蓝牙传输协议的音频数据。在采用A2DP协议的场合,即组合成A2DP音频数据帧,例如frame1、frame2……frameN。蓝牙设备收到传输过来的经过压缩和分包的音频数据后,可以直接将经过压缩和分包的音频数据存储在音频文件夹里,需要播放的时候再进行解码;也可以经过解码处理后,再将音频数据存储在音频文件夹中。
在A2DP协议中,满足A2DP协议的音频编码格式有SBC(Sub Band Coding次频带编码)、AAC(Advanced Audio Coding,高级音频编码)以及Apt-X等格式。其中,SBC编码格式的编码率44.1kHz双声道最大为328kbit/s,AAC编码格式的编码率可达320kbit/s,Apt-X编码格式的编码率可达352kbit/s。
下面结合具体实施例对本发明实施例作进一步阐述。
图2为本发明实施例提供的一种音频文件传输方法流程示意图。本发明实施例的一种音频文件传输方法可由图1所示的各种用户终端设备执行,如图2所示,所述方法包括:
201:以第一蓝牙音频传输协议传输所述音频文件的音频数据至蓝牙设备;
在实际应用中,所述用户终端设备将音频数据通过第一蓝牙音频传输协议,比如A2DP,发送给蓝牙设备的操作可以采用多种方式触发,例如,当用户建立用户终端设备和蓝牙设备之间的连接后,打开用户终端设备的音频播放器,此时,用户终端设备将会把音频数据发送到蓝牙设备。
在本发明实施例中,音频文件的音频数据可以是由用户终端设备,比如,智能手机,将音频文件的MP3格式转化为PCM格式,并将PCM格式编码为SBC、AAC、Apt-X等格式,并将各种格式的音乐分成一帧一帧,比如,frame1、frame2……frameN,然后通过A2DP将各帧音频数据传输至蓝牙设备,比如,蓝牙耳机。
202:以第二蓝牙传输协议传输所述音频文件的音频信息至蓝牙设备。
在本发明实施例中,用户终端设备在发送音频数据的同时,或者前后间隔一段时间将与所述音频数据对应的音频信息发送到蓝牙设备。
在本发明实施例中,用户终端设备可以播放存储在用户终端设备本地的音频文件,并在通过A2DP传输音频文件的音频数据的过程中,以第二蓝牙传输协议传输所述音频文件的音频信息至蓝牙设备,也可以在线播放网络音频文件,并将音频文件中的音频数据与音频信息分别以A2DP及BLE传输至蓝牙设备,其中,第二蓝牙传输协议为BLE,音频信息用于建立音频文件夹,音频信息可以包括歌曲名称、歌手名称和/或歌曲类别,而且,音频信息与音频数据属于同一音频文件。
在本发明实施例中,用户终端设备也可以在线播放网络音频文件,并将音频文件中的音频数据与音频信息分别以A2DP及BLE传输至蓝牙设备。
本发明实施例,通过第一蓝牙音频传输协议传输音频文件的音频数据并通过第二蓝牙传输协议传输音频文件的音频信息至蓝牙设备,以提供音频文件给蓝牙设备,从而丰富音频文件的播放方式,提升用户体验。
图3为本发明实施例提供的另一种音频文件传输方法流程示意图;所述方法亦可由图1所示的各种用户终端设备执行,如图3所示,所述方法包括:
301:以第二蓝牙传输协议传输缓存开始指令至蓝牙设备。
在本发明实施例中,为了提高音频数据在蓝牙设备的存储速度,可以将音频数据先存入缓存,比如,静态随机存取存储器SRAM中,蓝牙设备将音频数据 存入缓存的操作可由用户终端设备端进行控制,用户终端设备在发送音频数据的同时,或者前后间隔一段时间,向蓝牙设备发送缓存开始指令,蓝牙设备接收到音频数据和缓存开始指令后,将所述音频数据存储在缓存中。
302,以第一蓝牙音频传输协议传输所述音频文件的音频数据至蓝牙设备。
在本发明实施例中,可以在以BLE传输缓存开始指令后,以A2DP传输音频数据,在此情况下,蓝牙设备将接收到的音频数据缓存。当然,也可以先以A2DP传输音频数据,然后通过BLE传输缓存开始指令,此时,再将接收的音频数据存储至缓存。
303、以第二蓝牙传输协议传输缓存结束指令至蓝牙设备。
在本发明实施例中,当缓存的音频数据达到预设静态随机存取存储器的存储容量时,或者,音频文件的音频数据传输完成,可以通过BLE传输缓存结束指令至蓝牙设备,蓝牙设备在收到缓存结束指令时终止音频数据在缓存中的存储。
304、以第二蓝牙传输协议传输所述音频文件的音频信息至蓝牙设备。
在本发明实施例中,为了将音频数据存储至音频文件夹,可以在发送音频数据的同时或前后间隔一段时间,也可以在发送缓存开始指令的同时或前后间隔一段时间,或者,在发送缓存结束指令的同时或前后间隔一段时间,通过BLE发送音频信息至蓝牙设备。
需要说明的是,在本发明实施例中,上述各步骤301、302、303、304之间并不必然存在一定的先后顺序,本领域普通技术人员,根据本发明实施例的描述可以理解,不同实施例中,上述各步骤301、302、303、304可以有不同的执行顺序。同时,对于缓存开始指令及缓存结束指令在不同的实施例中,可以同时存在,也可以仅存在一种指令,比如,可以发送缓存开始指令及缓存结束指令,也可以仅发送缓存结束指令或缓存开始指令。
在本发明实施例中,所述方法还包括:
接收通信事件,并根据预先设置的优先级确定是否响应所述通信事件。
在本发明实施例中,用户终端设备在播放音频文件过程中,可以接收通信事件,比如,来电或者即时消息,对于不同的通信事件,可以预先设置优先级,用于确定是否响应相应的通信事件,比如,来电的优先级高于音频文件播放优先级,则当在播放音频文件过程中,如果接收到来电事件,可以终止音频文件 的传输,而响应该来电事件。当然,也可以设置通信事件的优先级低于音频文件的传输,比如,即时消息的优先级低于音频文件的播放优先级,则当在播放音频文件过程中,如果接收到即时消息,则可以不终止音频文件的传输。
本发明实施例,通过第一蓝牙音频传输协议传输音频文件的音频数据并通过第二蓝牙传输协议传输音频文件的音频信息至蓝牙设备,以提供音频文件给蓝牙设备,从而丰富音频文件的播放方式,提升用户体验,同时,通过传输缓存开始指令以及缓存结束指令有利于控制音频数据的存储,以提高音频数据的传输速度。
图4为本发明实施例提供的一种音频文件接收方法流程示意图,所述可以由图1所示的各种蓝牙设备执行,如图4所示,所述方法包括:
401:以第一蓝牙音频传输协议接收音频文件的音频数据。
在本发明实施例中,蓝牙设备可以通过A2DP接收用户终端设备发送的音频文件音频数据,该音频数据包含多个数据帧。
402:以第二蓝牙传输协议接收所述音频文件的音频信息。
在本发明实施例中,蓝牙设备可以通过BLE接收用户终端设备发送的音频文件的音频信息,音频信息用于建立音频文件夹,音频信息可以包括歌曲名称、歌手名称和/或歌曲类别,而且,音频信息与音频数据属于同一音频文件。
需要说明的是,在本发明实施例中,上述步骤401、402之间并不必然存在一定的先后顺序,本领域普通技术人员,根据本发明实施例的描述可以理解,不同实施例中,上述步骤401与402可以有不同的执行顺序。
本发明实施例,通过第一蓝牙音频传输协议接收音频文件的音频数据并通过第二蓝牙传输协议接收音频文件的音频信息至蓝牙设备,以便于蓝牙设备存储音频文件,从而丰富音频文件的播放方式,提升用户体验。
图5为本发明实施例提供的另一种音频文件接收方法流程示意图;所述方法亦可由图1所示的各种用户终端设备执行,如图5所示,所述方法包括:
501:以第二蓝牙传输协议接收缓存开始指令。
在本发明实施例中,为了提高音频数据在蓝牙设备的存储速度,可以将音频数据先存入缓存,比如,静态随机存取存储器SRAM中,蓝牙设备将音频数据存入缓存的操作可由用户终端设备端进行控制,用户终端设备在发送音频数据的同时,或者前后间隔一段时间,可以通过BLE向蓝牙设备发送缓存开始指令, 蓝牙设备接收到音频数据和缓存开始指令后,将所述音频数据存储在缓存中。
502,以第一蓝牙音频传输协议接收所述音频文件的音频数据。
在本发明实施例中,可以在以BLE接收缓存开始指令后,以A2DP接收音频数据,在此情况下,蓝牙设备将接收到的音频数据缓存。当然,也可以先以A2DP接收音频数据,然后通过BLE接收缓存开始指令,此时,再将接收的音频数据存储至缓存。
503、以第二蓝牙传输协议接收所述音频文件的音频信息。
在本发明实施例中,为了将音频数据存储至音频文件夹,可以在接收音频数据的同时或前后间隔一段时间,也可以在接收缓存开始指令的同时或前后间隔一段时间,通过BLE接收音频信息。
504、存储音频数据。
在本发明实施例中,对于接收的音频数据,可以进行缓存,也可以存储至音频文件夹。当需要存储至音频文件夹时,可以根据接收的音频信息建立音频文件夹,并将音频数据存储至音频文件夹。其中,将所述音频数据存储至音频文件夹可以包括:将所述音频数据缓存于蓝牙设备随机存储器,当缓存于所述随机存储器的所述音频数据超出预设存储容量时,将所述音频数据存储至所述音频文件夹,或者,直接将接收的所述音频数据存储至所述音频文件夹。
在本发明实施例中,音频文件夹可以在建立于蓝牙设备的固态存储器中,比如,eMMC或Tcard或UFS。对于音频数据的存储先通过缓存存储至SRAM,可以加快音频数据的存储数据、节省时间及功耗,当缓存中存储的音频数据达到预设的容量时,可以将接收到的音频数据写入固态存储器的音频文件夹。
505、以所述第二蓝牙传输协议接收缓存结束指令。
在本发明实施例中,当缓存的音频数据达到预设静态随机存取存储器的存储容量时,或者,音频文件的音频数据传输完成,可以通过BLE传输缓存结束指令至蓝牙设备,蓝牙设备在可以通过BLE接收缓存结束指令时,终止音频数据在缓存中的存储。
需要说明的是,在本发明实施例中,上述步骤501、502、503、504、505之间并不必然存在一定的先后顺序,本领域普通技术人员,根据本发明实施例的描述可以理解,不同实施例中,上述步骤501、502、503、504、505可以有不同的执行顺序,同时,对于缓存开始指令及缓存结束指令在不同的实施例中, 可以同时存在,也可以仅存在一种指令,比如,可以接收缓存开始指令及缓存结束指令,也可以仅接收缓存结束指令或缓存开始指令。
本发明实施例,通过第一蓝牙音频传输协议接收音频文件的音频数据并通过第二蓝牙传输协议接收音频文件的音频信息至蓝牙设备,以便于蓝牙设备存储音频文件,从而丰富音频文件的播放方式,提升用户体验。同时,通过接收缓存开始指令以及缓存结束指令有利于控制音频数据的存储,以提高音频数据的传输速度,而且,将音频文件存储至音频文件夹,方便用户直接通过蓝牙设备播放音频文件。
为进一步说明本发明音频文件传输方法及音频文件接收方法实施例,下面结合具体的应用场景对本发明音频文件传输方法及音频文件接收方法进行举例说明。该具体应用场景为通过手机向蓝牙耳机进行音乐播放,如图6所示,为本发明实施例手机和蓝牙耳机之间的音频文件处理工作流程示意图,该应用实施例具体包括:
1、手机通过音乐APP播放音乐文件,如播放一首MP3格式歌曲;
2、手机将MP3格式转化为PCM格式;
3、手机的蓝牙IC将PCM格式编码为SBC、AAC、Apt-X等格式,并将该格式的音乐分成一帧一帧的,如frame1、frame2……frameN;
4、手机发送开始缓存指令给蓝牙耳机,将frame1、frame2……frameN的音乐通过A2DP传输至蓝牙耳机,蓝牙耳机接收frame1、frame2……frameN并缓存于其Memory内。在此先存入Memory中而不直接缓写入歌曲文件夹内,是因为Memory为SRAM(静态随机存取存储器),存储快,节省时间且节省功耗;
5、手机将本首歌的音乐信息(如歌曲名称、歌手名称、歌曲类别等)通过BLE传输至蓝牙耳机;并在蓝牙耳机的存储器内建立歌曲文件夹,如以歌手名称命名为文件夹名称;存储器为eMMC或TCard或UFS;
可选的,该步骤可与第4步骤同时进行。
6、当Memory中存储到一定数量的音乐帧时,蓝牙耳机开始将Memory中存有的音乐帧一帧一帧地写入歌曲文件夹中。
7、当音乐帧发送到最后一帧时,手机发送终止缓存指令给蓝牙耳机,蓝牙耳机将终止缓存写入歌曲文件夹中,从而终止缓存;
8、在另外一个实施例中,不用通过缓存,直接将第4步骤的音乐帧一帧一 帧通过A2DP写入歌曲文件夹中。
图7为本发明实施例音频文件传输装置示意图,如图7所示,所述装置700应用于在如图1所示的用户终端设备,所述装置700包括:
音频数据发送单元701,用于以第一蓝牙音频传输协议传输所述音频文件的音频数据至蓝牙设备,
音频信息发送单元702,用于以第二蓝牙传输协议传输所述音频文件的音频信息至蓝牙设备。
在本发明实施例中,所述第一蓝牙音频传输协议为蓝牙高级音频传输模型协议,所述第二蓝牙传输协议为蓝牙低功耗传输协议。所述音频文件的音频信息用于建立音频文件夹,所述音频信息包括:歌曲名称、歌手名称和/或歌曲类别。
在本发明实施例中,所述音频信息发送单元702还用于:以所述第二蓝牙传输协议传输缓存开始指令至蓝牙设备,和/或,以所述第二蓝牙传输协议传输缓存结束指令至蓝牙设备。
在本发明实施例中,所述装置700还包括:
通信事件响应单元,用于接收通信事件,并根据预先设置的优先级确定是否响应所述通信事件。
在本发明实施例中,音频数据发送单元701在用户终端设备和蓝牙设备建立连接后,将用户终端设备的音频数据通过A2DP发送给蓝牙设备,音频信息发送单元702将与所述音频数据对应的音频信息通过BLE发送给蓝牙设备。其中,为了控制音频数据的传输速度,还可以由音频信息发送单元702发送缓存开始指令及缓存结束指令,以便于控制音频数据存储至蓝牙设备的缓存。
需要说明的是,上述音频文件传输装置可执行本发明实施例所提供的音频文件传输方法,具备执行方法相应的功能模块和有益效果。未在音频文件传输装置实施例中详尽描述的技术细节,可参见本发明实施例所提供的音频文件传输方法。
本发明实施例,通过第一蓝牙音频传输协议传输音频文件的音频数据,并通过第二蓝牙传输协议传输音频文件的音频信息至蓝牙设备,以提供音频文件给蓝牙设备,从而丰富音频文件的播放方式,提升用户体验。
图8为本发明实施例提供的音频文件接收装置示意图,所述装置应用于在 图1所示的蓝牙设备,如图8所示,所述装置800包括:
音频数据接收单元801,用于以第一蓝牙音频传输协议接收音频文件的音频数据,以及
音频信息接收单元802,用于以第二蓝牙传输协议接收所述音频文件的音频信息。
在本发明实施例中,在本发明实施例中,所述第一蓝牙音频传输协议为蓝牙高级音频传输模型协议,所述第二蓝牙传输协议为蓝牙低功耗传输协议。所述音频文件的音频信息用于建立音频文件夹,所述音频信息包括:歌曲名称、歌手名称和/或歌曲类别。
在本发明实施例中,所述音频信息接收单元802还用于:
以所述第二蓝牙传输协议接收缓存开始指令,和/或,
以所述第二蓝牙传输协议接收缓存结束指令。
在本发明实施例中,所述装置800还包括:
存储单元803,用于存储所述音频数据。
其中,存储单元803包括:
音频文件夹建立模块8031,用于根据所述音频信息建立音频文件夹,
音频数据存储模块8032,用于将所述音频数据存储至所述音频文件夹。
在本发明实施例中,所述音频数据存储模块8032具体可以用于:
将所述音频数据缓存于蓝牙设备随机存储器,当缓存于所述随机存储器的所述音频数据超出预设存储容量时,将所述音频数据存储至所述音频文件夹,或者,
直接将接收的所述音频数据存储至所述音频文件夹。
在本发明实施例中,音频数据接收单元801接收音频文件传输装置通过A2DP传输的音频文件的音频数据,音频信息接收单元802接收通过BLE传输的所述音频文件的音频信息,存储单元803在接收到音频数据和音频信息后根据所述音频信息建立音频文件夹,将所述音频数据存储在所述音频文件夹中。其中,存储单元803可以包括音频文件夹建立模块8031及音频数据存储模块8032,音频数据存储模块8032可以根据缓存开始指令及缓存结束指令确定将音频数据存储至缓存或音频文件夹。
需要说明的是,上述音频文件接收装置可执行本发明实施例所提供的音频 文件接收方法,具备执行方法相应的功能模块和有益效果。未在音频文件接收装置实施例中详尽描述的技术细节,可参见本发明实施例所提供的音频文件接收方法。
本发明实施例,通过第一蓝牙音频传输协议接收音频文件的音频数据,并通过第二蓝牙传输协议接收音频文件的音频信息至蓝牙设备,以便于蓝牙设备存储音频文件,从而丰富音频文件的播放方式,提升用户体验。同时,将音频文件存储至音频文件夹,方便用户直接通过蓝牙设备播放音频文件。
图9是本发明实施例提供的用户终端设备硬件结构示意图,如图9所示,该用户终端设备900包括:
一个或多个处理器901以及存储器902,图9中以一个处理器901为例。
处理器901和存储器902可以通过总线或者其他方式连接,图901中以通过总线连接为例。
存储器902作为一种非易失性计算机可读存储介质,可用于存储非易失性软件程序、非易失性计算机可执行程序以及模块,如本发明实施例中的音频文件传输方法对应的程序指令/单元(例如,附图7所示的音频数据发送单元701和音频信息发送单元702)。处理器901通过运行存储在存储器902中的非易失性软件程序、指令以及单元,从而执行用户终端设备的各种功能应用以及数据处理,即实现上述方法实施例音频文件传输方法。
存储器902可以包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需要的应用程序;存储数据区可存储根据用户终端设备使用所创建的数据等。此外,存储器902可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实施例中,存储器902可选包括相对于处理器901远程设置的存储器,这些远程存储器可以通过网络连接至用户终端设备。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。
所述一个或者多个单元存储在所述存储器902中,当被所述一个或者多个处理器901执行时,执行上述任意方法实施例中的音频文件传输方法,例如,执行以上描述的图2中的方法步骤201至步骤202,图3中的方法步骤301至步骤304,实现图7中的单元701-702的功能。
上述用户终端设备可执行本发明实施例所提供的音频文件传输方法,具备执行方法相应的功能模块和有益效果。未在用户终端设备实施例中详尽描述的技术细节,可参见本发明实施例所提供的音频文件传输方法。
本发明实施例提供了一种非易失性计算机可读存储介质,所述计算机可读存储介质存储有计算机可执行指令,该计算机可执行指令被一个或多个处理器执行,例如,执行以上描述的图2中的方法步骤201至步骤202,图3中的方法步骤301至步骤304,实现图7中的模块701-702的功能。
本申请实施例的用户终端设备以多种形式存在,包括但不限于:
(1)移动通信设备:这类设备的特点是具备移动通信功能,并且以提供话音、数据通信为主要目标。这类终端包括:智能手机(例如iPhone)、多媒体手机、功能性手机,以及低端手机等。
(2)超移动个人计算机设备:这类设备属于个人计算机的范畴,有计算和处理功能,一般也具备移动上网特性。这类终端包括:PDA、MID和UMPC设备等,例如iPad。
(3)便携式娱乐设备:这类设备可以显示和播放多媒体内容。该类设备包括:音频、视频播放器(例如iPod),掌上游戏机,电子书,以及智能玩具和便携式车载导航设备。
(4)服务器:提供计算服务的设备,服务器的构成包括处理器、硬盘、内存、系统总线等,服务器和通用的计算机架构类似,但是由于需要提供高可靠的服务,因此在处理能力、稳定性、可靠性、安全性、可扩展性、可管理性等方面要求较高。
(5)其他具有蓝牙功能的电子装置。
图10是本发明实施例提供的蓝牙设备硬件结构示意图,如图10所示,该用户终端设备1000包括:
一个或多个处理器1001以及存储器1002,图10中以一个处理器1001为例。
处理器1001和存储器1002可以通过总线或者其他方式连接,图1001中以通过总线连接为例。
存储器1002作为一种非易失性计算机可读存储介质,可用于存储非易失性软件程序、非易失性计算机可执行程序以及模块,如本发明实施例中的音频文件传输方法对应的程序指令/单元(例如,附图8所示的音频数据接收单元801 和音频信息接收单元802)。处理器1001通过运行存储在存储器1002中的非易失性软件程序、指令以及单元,从而执行蓝牙设备的各种功能应用以及数据处理,即实现上述方法实施例音频文件接收方法。
存储器1002可以包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需要的应用程序;存储数据区可存储根据蓝牙设备使用所创建的数据等。此外,存储器1002可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实施例中,存储器1002可选包括相对于处理器1001远程设置的存储器,这些远程存储器可以通过网络连接至蓝牙设备。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。
所述一个或者多个单元存储在所述存储器1002中,当被所述一个或者多个处理器1001执行时,执行上述任意方法实施例中的音频文件接收方法,例如,执行以上描述的图4中的方法步骤401至步骤402,图5中的方法步骤501至步骤505,实现图8中的单元801-803的功能。
上述蓝牙设备可执行本发明实施例所提供的音频文件接收方法,具备执行方法相应的功能模块和有益效果。未在蓝牙设备实施例中详尽描述的技术细节,可参见本发明实施例所提供的音频文件接收方法。
本发明实施例提供了一种非易失性计算机可读存储介质,所述计算机可读存储介质存储有计算机可执行指令,该计算机可执行指令被一个或多个处理器执行,例如,执行以上描述的图4中的方法步骤401至步骤402,图5中的方法步骤501至步骤505,实现图8中的模块801-803的功能。
本申请实施例的蓝牙设备可以以多种形式存在,包括但不限于:
(1)蓝牙耳机:这类设备的特点是具备蓝牙通信功能,并且以提供开语通话、音乐播放为主要目标。。
(2)蓝牙音箱:这类设备属于音乐播放设备范畴,以播放音乐为主要目的。
(3)便携式娱乐设备:这类设备可以播放多媒体内容。该类设备包括:音频、视频播放器(例如iPod),掌上游戏机,电子书,以及智能玩具和便携式车载导航设备,该娱乐设备具备蓝牙通信功能。
(5)其他具有蓝牙功能的音乐播放电子装置。
图11是本发明实施例提供的音频文件处理系统示意图,如图11所示,所 述系统1100包括用户终端设备1101及蓝牙设备1102,其中,用户终端设备1101具备上述用户终端设备实施例中描述的功能并执行上述音频文件传输方法实施例的方法步骤,蓝牙设备1102具备上述蓝牙设备实施例中描述的功能并执行上述音频文件接收方法实施例的方法步骤。
以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。
通过以上的实施例的描述,本领域普通技术人员可以清楚地了解到各实施例可借助软件加通用硬件平台的方式来实现,当然也可以通过硬件。本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。
最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;在本发明的思路下,以上实施例或者不同实施例中的技术特征之间也可以进行组合,步骤可以以任意顺序实现,并存在如上所述的本发明的不同方面的许多其它变化,为了简明,它们没有在细节中提供;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。

Claims (25)

  1. 一种音频文件接收方法,所述方法应用于蓝牙设备,其特征在于,所述方法包括:
    以第一蓝牙音频传输协议接收音频文件的音频数据,以及
    以第二蓝牙传输协议接收所述音频文件的音频信息。
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    以所述第二蓝牙传输协议接收缓存开始指令,和/或,
    以所述第二蓝牙传输协议接收缓存结束指令。
  3. 根据权利要求1或2所述的方法,其特征在于,所述方法还包括:
    存储所述音频数据。
  4. 根据权利要求3所述的方法,其特征在于,所述存储所述音频数据,包括:
    根据所述音频信息建立音频文件夹,并将所述音频数据存储至所述音频文件夹。
  5. 根据权利要求4所述的方法,其特征在于,将所述音频数据存储至所述音频文件夹,包括:
    将所述音频数据缓存于蓝牙设备随机存储器,当缓存于所述随机存储器的所述音频数据超出预设存储容量时,将所述音频数据存储至所述音频文件夹,或者,
    直接将接收的所述音频数据存储至所述音频文件夹。
  6. 根据权利要求1-5任一项所述的方法,其特征在于,
    所述第一蓝牙音频传输协议为蓝牙高级音频传输模型协议,所述第二蓝牙传输协议为蓝牙低功耗传输协议。
  7. 一种音频文件传输方法,所述方法应用于传输音频文件的用户终端设备,其特征在于,所述方法包括:
    以第一蓝牙音频传输协议传输所述音频文件的音频数据至蓝牙设备,
    以第二蓝牙传输协议传输所述音频文件的音频信息至蓝牙设备。
  8. 根据权利要求7所述的方法,其特征在于,所述方法还包括:
    以所述第二蓝牙传输协议传输缓存开始指令至蓝牙设备,和/或,
    以所述第二蓝牙传输协议传输缓存结束指令至蓝牙设备。
  9. 根据权利要求7所述的方法,其特征在于,所述方法包括:
    接收通信事件,并根据预先设置的优先级确定是否响应所述通信事件。
  10. 根据权利要求7-9任一项所述的方法,其特征在于,
    所述第一蓝牙音频传输协议为蓝牙高级音频传输模型协议,所述第二蓝牙传输协议为蓝牙低功耗传输协议。
  11. 根据权利要求10所述的方法,其特征在于,所述音频文件的音频信息用于建立音频文件夹,所述音频信息包括:
    歌曲名称、歌手名称和/或歌曲类别。
  12. 一种音频文件接收装置,所述装置应用于蓝牙设备,其特征在于,所述装置包括:
    音频数据接收单元,用于以第一蓝牙音频传输协议接收音频文件的音频数据,以及
    音频信息接收单元,用于以第二蓝牙传输协议接收所述音频文件的音频信息。
  13. 根据权利要求12所述的装置,其特征在于,所述音频信息接收单元还用于:
    以所述第二蓝牙传输协议接收缓存开始指令,和/或,
    以所述第二蓝牙传输协议接收缓存结束指令。
  14. 根据权利要求12或13所述的装置,其特征在于,所述装置还包括:
    存储单元,用于存储所述音频数据。
  15. 根据权利要求14所述的装置,其特征在于,所述存储单元包括:
    音频文件夹建立模块,用于根据所述音频信息建立音频文件夹,
    音频数据存储模块,用于将所述音频数据存储至所述音频文件夹。
  16. 根据权利要求15所述的装置,其特征在于,所述音频数据存储模块具体用于:
    将所述音频数据缓存于蓝牙设备随机存储器,当缓存于所述随机存储器的所述音频数据超出预设存储容量时,将所述音频数据存储至所述音频文件夹, 或者,
    直接将接收的所述音频数据存储至所述音频文件夹。
  17. 根据权利要求12-16任一项所述的装置,其特征在于,
    所述第一蓝牙音频传输协议为蓝牙高级音频传输模型协议,所述第二蓝牙传输协议为蓝牙低功耗传输协议。
  18. 一种音频文件传输装置,所述装置应用于传输音频文件的用户终端设备,其特征在于,所述装置包括:
    音频数据发送单元,用于以第一蓝牙音频传输协议传输所述音频文件的音频数据至蓝牙设备,
    音频信息发送单元,用于以第二蓝牙传输协议传输所述音频文件的音频信息至蓝牙设备。
  19. 根据权利要求18所述的装置,其特征在于,所述音频信息发送单元还用于:
    以所述第二蓝牙传输协议传输缓存开始指令至蓝牙设备,和/或,
    以所述第二蓝牙传输协议传输缓存结束指令至蓝牙设备。
  20. 根据权利要求18所述的装置,其特征在于,所述装置还包括:
    通信事件响应单元,用于接收通信事件,并根据预先设置的优先级确定是否响应所述通信事件。
  21. 根据权利要求18-20任一项所述的装置,其特征在于,
    所述第一蓝牙音频传输协议为蓝牙高级音频传输模型协议,所述第二蓝牙传输协议为蓝牙低功耗传输协议。
  22. 根据权利要求21所述的装置,其特征在于,所述音频文件的音频信息用于建立音频文件夹,所述音频信息包括:
    歌曲名称、歌手名称和/或歌曲类别。
  23. 一种蓝牙设备,其特征在于,包括:
    至少一个处理器;以及,
    与所述至少一个处理器通信连接的存储器;其中,
    所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述 至少一个处理器执行,以使所述至少一个处理器能够执行权利要求1-6的任一项所述的方法。
  24. 一种用户终端设备,其特征在于,包括:
    至少一个处理器;以及,
    与所述至少一个处理器通信连接的存储器;其中,
    所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行权利要求7-11的任一项所述的方法。
  25. 一种音频文件处理系统,其特征在于,包括如权利要求24所述的用户终端设备以及如权利要求23所述的蓝牙设备。
PCT/CN2017/074295 2017-02-21 2017-02-21 音频文件的传输、接收方法及装置、设备及其系统 Ceased WO2018152679A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2017/074295 WO2018152679A1 (zh) 2017-02-21 2017-02-21 音频文件的传输、接收方法及装置、设备及其系统
CN201780000128.XA CN107005800B (zh) 2017-02-21 2017-02-21 音频文件的传输、接收方法及装置、设备及其系统

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/074295 WO2018152679A1 (zh) 2017-02-21 2017-02-21 音频文件的传输、接收方法及装置、设备及其系统

Publications (1)

Publication Number Publication Date
WO2018152679A1 true WO2018152679A1 (zh) 2018-08-30

Family

ID=59436556

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/074295 Ceased WO2018152679A1 (zh) 2017-02-21 2017-02-21 音频文件的传输、接收方法及装置、设备及其系统

Country Status (2)

Country Link
CN (1) CN107005800B (zh)
WO (1) WO2018152679A1 (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111683357A (zh) * 2020-05-25 2020-09-18 杭州寰星电子科技有限公司 低功耗蓝牙传输音频的方法、装置和设备
CN112423053A (zh) * 2020-11-06 2021-02-26 歌尔科技有限公司 一种音频共享方法、系统、遥控器及计算机可读存储介质
CN114845280A (zh) * 2021-01-15 2022-08-02 Oppo广东移动通信有限公司 一种数据传输方法、装置、电子设备及存储介质

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108684028B (zh) * 2018-05-30 2020-12-22 深圳市沃特沃德股份有限公司 基于ble的音频播放设备适配方法及蓝牙音频接收器
CN108738006B (zh) * 2018-05-31 2021-06-25 出门问问信息科技有限公司 基于蓝牙的数据传输方法及装置
CN110662205B (zh) * 2018-06-30 2023-04-11 中移(杭州)信息技术有限公司 一种基于蓝牙的音频传输方法、装置、介质和设备
CN109348464B (zh) * 2018-11-23 2021-08-17 深圳时空壶技术有限公司 用于低功耗蓝牙接收端设备的数据传输方法及接收端设备
CN110503984A (zh) * 2019-08-12 2019-11-26 成都法兰特科技有限公司 无线音频播放设备的播放方法、设备及系统
CN113411787B (zh) 2020-03-16 2023-02-21 维沃移动通信有限公司 一种音频传输方法及电子设备
CN113163263B (zh) * 2021-04-30 2023-07-28 广州酷狗计算机科技有限公司 车载设备控制媒体资源的方法、装置和存储介质

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101453516A (zh) * 2008-11-19 2009-06-10 闻泰集团有限公司 一种手机上蓝牙mp3的播放方法及手机
CN101605398A (zh) * 2009-07-10 2009-12-16 中兴通讯股份有限公司 基于蓝牙的监控方法及装置
US8224247B2 (en) * 2007-05-16 2012-07-17 Texas Instruments Incorporated Controller integrated audio codec for advanced audio distribution profile audio streaming applications

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010005789A1 (en) * 2008-07-10 2010-01-14 Marvell World Trade Ltd. Systems and methods for reducing power consumption in wireless devices
KR20110054609A (ko) * 2009-11-18 2011-05-25 삼성전자주식회사 블루투스 디바이스의 원격 제어 방법 및 장치
CN102331727B (zh) * 2011-08-24 2015-05-06 华为软件技术有限公司 一种蓝牙媒体播放控制方法和相关装置
CN103200263B (zh) * 2013-04-02 2016-06-01 上海山景集成电路股份有限公司 智能终端和蓝牙音频播放设备及其交互方法、系统
CN105047209B (zh) * 2015-08-13 2017-12-19 珠海市杰理科技股份有限公司 蓝牙音频播放同步的方法、装置及蓝牙音频播放装置
CN105828134B (zh) * 2016-03-22 2019-07-02 Oppo广东移动通信有限公司 一种音视频播放系统中的播放控制方法及装置
CN105955702B (zh) * 2016-06-28 2019-03-26 广州三星通信技术研究有限公司 无线音频设备以及在无线音频设备中播放音乐的方法
CN106293602B (zh) * 2016-08-09 2019-08-27 广州三星通信技术研究有限公司 耳机中的音频数据播放控制方法和设备

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8224247B2 (en) * 2007-05-16 2012-07-17 Texas Instruments Incorporated Controller integrated audio codec for advanced audio distribution profile audio streaming applications
CN101453516A (zh) * 2008-11-19 2009-06-10 闻泰集团有限公司 一种手机上蓝牙mp3的播放方法及手机
CN101605398A (zh) * 2009-07-10 2009-12-16 中兴通讯股份有限公司 基于蓝牙的监控方法及装置

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111683357A (zh) * 2020-05-25 2020-09-18 杭州寰星电子科技有限公司 低功耗蓝牙传输音频的方法、装置和设备
CN111683357B (zh) * 2020-05-25 2023-06-30 杭州寰星电子科技有限公司 低功耗蓝牙传输音频的方法、装置和设备
CN112423053A (zh) * 2020-11-06 2021-02-26 歌尔科技有限公司 一种音频共享方法、系统、遥控器及计算机可读存储介质
CN112423053B (zh) * 2020-11-06 2024-04-09 歌尔科技有限公司 一种音频共享方法、系统、遥控器及计算机可读存储介质
CN114845280A (zh) * 2021-01-15 2022-08-02 Oppo广东移动通信有限公司 一种数据传输方法、装置、电子设备及存储介质

Also Published As

Publication number Publication date
CN107005800B (zh) 2021-03-23
CN107005800A (zh) 2017-08-01

Similar Documents

Publication Publication Date Title
WO2018152679A1 (zh) 音频文件的传输、接收方法及装置、设备及其系统
CN102064857B (zh) 用于远程控制蓝牙装置的方法和设备
US8930590B2 (en) Audio device and method of operating the same
CN109273017B (zh) 编码控制方法、装置以及电子设备
JP2020526789A (ja) ラストマイル等化
CN106790940B (zh) 录音方法、录音播放方法、装置及终端
CN104126310A (zh) 屏幕镜像方法及其装置
CN104007977A (zh) 电子装置及音频播放方法
WO2017107428A1 (zh) 终端设备的控制方法、装置、设备及非易失性计算机存储介质
CN106020449A (zh) 一种虚拟现实的交互方法及装置
WO2020114181A1 (zh) 网络语音识别方法、网络业务交互方法及智能耳机
CN105955702A (zh) 无线音频设备以及在无线音频设备中播放音乐的方法
CN108132769A (zh) 一种音频数据播放方法和双屏移动终端
CN113573172A (zh) 双设备音频播放方法、装置、电子设备及存储介质
CN106201421A (zh) 一种终端及音频处理方法
CN105895128A (zh) 一种播放方法和相关装置
US20170178636A1 (en) Method and electronic device for jointly playing high-fidelity sounds of multiple players
CN105357625A (zh) 多用户无线通讯系统
JP2015122709A (ja) 音楽再生装置、音楽再生システム、及び音楽再生プログラム
CN106803426A (zh) 音频文件存储方法和系统
JP5737357B2 (ja) 音楽再生装置及び音楽再生プログラム
US20140223500A1 (en) Method and system for transmitting wirelessly video in portable terminal
CN205282093U (zh) 音频播放设备
CN110086941A (zh) 语音播放方法、装置及终端设备
CN113992965A (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: 17897315

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17897315

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 12/02/2020)

122 Ep: pct application non-entry in european phase

Ref document number: 17897315

Country of ref document: EP

Kind code of ref document: A1