Bluetooth Audio Processing Method, Device and Storage Medium

By LC3 encoding of Bluetooth audio stream data and storage based on the storage format of application scenarios, the accuracy of audio stream data after LC3 encoding is solved during authentication and problem positioning, and higher authentication and analysis accuracy is achieved.

CN114758661BActive Publication Date: 2025-07-25BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210230459.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-09
Publication Date
2025-07-25
Estimated Expiration
2042-03-09

AI Technical Summary

Technical Problem

In the prior art, in Bluetooth audio playback, the audio stream data encoded by LC3 is relatively accurate during authentication and problem positioning, and cannot truly reflect the encoding status of the actual playback device.

Method used

The audio stream data is encoded by LC3 and stored based on the storage format of the application scenario, including LC3 authentication and problem positioning analysis, to ensure that the stored audio stream data truly reflects the encoding status of the actual playback device.

Benefits of technology

It improves the authentication accuracy of audio stream data after LC3 encoding and the accuracy of problem positioning analysis, ensures that the data meets actual application scenarios, and improves the accuracy of authentication and analysis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114758661B_ABST
    Figure CN114758661B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a Bluetooth audio processing method, apparatus, and storage medium. The Bluetooth audio processing method is applied to an electronic device, and the method includes: controlling the electronic device to play a sound source file of a low-power Bluetooth audio, and encoding audio stream data generated by playing the sound source file through a low-complexity codec LC3; obtaining the encoded audio stream data, and storing the encoded audio stream data based on the application scenario of the encoded audio stream data. By storing the encoded audio stream data based on the application scenario in the present disclosure, subsequent relevant applications can be performed based on the stored actual audio stream data, improving the effectiveness of the applications.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of audio processing, and in particular, to a Bluetooth audio processing method, apparatus, and storage medium. Background Art

[0002] The Low Energy Audio (LE Audio) protocol newly announced by the Bluetooth Special Interest Group (SIG) enables Bluetooth devices to play audio in the broadcast audio state. Broadcast audio means using a single audio source device to broadcast audio signals to an unlimited number of Bluetooth audio receiving devices. LE Audio uses the Low Complexity Communication Codec (LC3) for encoding and decoding. LC3 has the characteristic of providing high audio quality even under low data rate conditions, enabling developers to better balance audio quality and power consumption in product design. Summary of the Invention

[0003] To overcome the problems existing in the related art, the present disclosure provides a Bluetooth audio processing method, apparatus, and storage medium.

[0004] According to a first aspect of an embodiment of the present disclosure, a Bluetooth audio processing method is provided, which is applied to an electronic device and includes:

[0005] Controlling the electronic device to play a sound source file of low energy Bluetooth audio, and encoding audio stream data generated by playing the sound source file through the Low Complexity Codec (LC3); obtaining the encoded audio stream data, and storing the encoded audio stream data based on the application scenario of the encoded audio stream data.

[0006] In one implementation, the application scenario of the encoded audio stream data includes LC3 authentication; the obtaining the encoded audio stream data and storing the encoded audio stream data based on the application scenario of the encoded audio stream data includes: obtaining the encoded audio stream data that needs to be LC3 authenticated; storing the obtained encoded audio stream data based on the data storage format corresponding to LC3 authentication of the audio data.

[0007] In one implementation, the obtaining the encoded audio stream data that needs to be LC3 authenticated includes: determining at least one channel of the sound source file of the low energy Bluetooth audio played by the electronic device, and selecting the encoded audio stream data corresponding to one channel from the at least one channel.

[0008] In one implementation, the method further includes: in response to receiving mute data of the sound source file within a continuously specified time, stopping storing the encoded audio stream data.

[0009] In one implementation, storing the obtained encoded audio stream data includes: storing the obtained encoded audio stream data as a target file after adding a single data packet header.

[0010] In one implementation, the application scenarios of the encoded audio stream data include LC3 problem location and analysis; obtaining the encoded audio stream data and storing the encoded audio stream data based on the application scenarios of the encoded audio stream data includes: obtaining, in units of frames, the audio frame data in the encoded audio stream corresponding to each channel of the sound source file for playing low-power Bluetooth audio by the electronic device; and storing the audio frame data based on the channel and the audio frame data to obtain a data file for LC3 problem location and analysis.

[0011] In one implementation, storing the audio frame data based on the channel and the audio frame data to obtain a data file for LC3 problem location and analysis includes: determining a data packet header based on the audio frame data, where the number of data packet headers is the same as the number of frames included in the audio frame data; sequentially taking the audio frame data of each channel in the same frame as a target file according to the playback order of the audio frame data, and adding the data packet header corresponding to the target file before the target file to obtain a single data file for LC3 problem location and analysis.

[0012] In one implementation, storing the audio frame data based on the channel and the audio frame data to obtain a data file for LC3 problem location and analysis includes: taking the audio frame data of each frame in the same channel as a data file, and adding a data packet header to each frame of data in the same data file to obtain a plurality of data files including the number of channels and used for LC3 problem location and analysis.

[0013] According to a second aspect of the embodiments of the present disclosure, there is provided a Bluetooth audio processing device applied to an electronic device, including:

[0014] An encoding unit, configured to control the electronic device to play a sound source file of low-power Bluetooth audio, and encode the audio stream data generated by playing the sound source file through a low-complexity codec LC3; a storage unit, configured to obtain the encoded audio stream data and store the encoded audio stream data based on the application scenarios of the encoded audio stream data.

[0015] In one implementation, the application scenarios of the encoded audio stream data include LC3 authentication; the storage unit obtains the encoded audio stream data in the following manner and stores the encoded audio stream data based on the application scenarios of the encoded audio stream data: obtaining the encoded audio stream data that needs to be LC3 authenticated; storing the obtained encoded audio stream data based on the data storage format corresponding to LC3 authentication of the audio data.

[0016] In one implementation, the storage unit obtains the encoded audio stream data that needs to be LC3 authenticated in the following manner: determining at least one channel of the sound source file for playing low-power Bluetooth audio by the electronic device, and selecting the encoded audio stream data corresponding to one channel from the at least one channel.

[0017] In one implementation, the application scenarios of the encoded audio stream data include LC3 problem location analysis; the storage unit obtains the encoded audio stream data in the following manner and stores the encoded audio stream data based on the application scenarios of the encoded audio stream data: obtaining, in units of frames, the audio frame data in the encoded audio streams corresponding to each channel of the sound source file for playing low-power Bluetooth audio by the electronic device; storing the audio frame data based on the channel and the audio frame data to obtain a data file for LC3 problem location analysis.

[0018] In one implementation, the storage unit stores the audio frame data based on the channel and the audio frame data in the following manner to obtain a data file for LC3 problem location analysis: determining a data packet header based on the audio frame data, where the number of data packet headers is the same as the number of frames included in the audio frame data; sequentially taking the audio frame data of each channel in the same frame as a target file according to the playback order of the audio frame data, and adding the data packet header corresponding to the target file in front of the target file to obtain a single data file for LC3 problem location analysis.

[0019] In one implementation, the storage unit stores the audio frame data based on the channel and the audio frame data in the following manner to obtain a data file for LC3 problem location analysis: taking the audio frame data of each frame in the same channel as a data file, and adding a data packet header to each frame of data in the same data file to obtain a plurality of data files for LC3 problem location analysis, where the number of data files is the same as the number of channels.

[0020] According to the third aspect of the embodiments of the present disclosure, a Bluetooth audio processing device is provided, including:

[0021] a processor;

[0022] A memory for storing processor-executable instructions;

[0023] Wherein, the processor is configured to execute the method described in the first aspect or any one of the embodiments of the first aspect.

[0024] According to the fourth aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium storing instructions that, when executed by a processor of a terminal, enable the terminal to execute the method described in the first aspect or any one of the embodiments of the first aspect.

[0025] The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects: During the process of playing a sound source file of low-power Bluetooth audio, LC3 encoding is performed on the audio stream data, and the LC3-encoded audio stream data is stored based on the application scenario of the audio stream encoded data, so that when the LC3-encoded audio stream data needs to be applied subsequently, the actually played audio stream data can be directly obtained from the stored audio stream data. The actually played audio stream data can truly reflect the actual situation of LC3 encoding, and thus, compared with using unified LC3 audio data without distinguishing the actual playback device, the accuracy of applying and processing the LC3-encoded audio stream data can be improved.

[0026] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] The accompanying drawings herein are incorporated into the specification and form a part of the specification, showing embodiments consistent with the present disclosure and used together with the specification to explain the principles of the present disclosure.

[0028] Figure 1 is a flowchart of a Bluetooth audio processing method shown according to an exemplary embodiment.

[0029] Figure 2 is a flowchart of storing encoded audio stream data shown according to an exemplary embodiment.

[0030] Figure 3 is a flowchart of storing the obtained encoded audio stream data shown according to an exemplary embodiment.

[0031] Figure 4 is a flowchart of storing encoded audio stream data shown according to an exemplary embodiment.

[0032] Figure 5 is a flowchart of storing audio frame data shown according to an exemplary embodiment.

[0033] Figure 6 It is a block diagram of a Bluetooth audio processing device shown according to an exemplary embodiment.

[0034] Figure 7 It is a block diagram of a device for Bluetooth audio processing shown according to an exemplary embodiment. Detailed implementation manners

[0035] Here, the exemplary embodiments will be described in detail, and the examples are shown in the accompanying drawings. When the following description refers to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementation manners described in the following exemplary embodiments do not represent all implementation manners consistent with the present disclosure.

[0036] The Bluetooth audio processing method provided by the present disclosure is applied to a scenario where audio data is encoded and decoded based on LC3 and audio playback is performed. Among them, in the Bluetooth audio processing method provided by the present disclosure, after an electronic device plays a source file of a low-power Bluetooth audio and LC3-encodes the audio stream data generated by playing the source file, the encoded audio stream data is stored based on a preset storage format.

[0037] Figure 1 It is a flowchart of a Bluetooth audio processing method shown according to an exemplary embodiment. As Figure 1 shown, the Bluetooth audio processing method is used in an electronic device and includes the following steps.

[0038] In step S11, control the electronic device to play a source file of a low-power Bluetooth audio, and encode the audio stream data generated by playing the source file through a Low Complexity Codec (LC3).

[0039] In the embodiments of the present disclosure, when playing a source file of a low-power Bluetooth audio, it can be played based on spec.ts. Among them, the spec file is a unit test of the source file. A regulation of a front-end framework (Angular) for building a user interface is that each.ts file has a.spec.ts file. When a technician uses the 'ng test' command, these.spec.ts files will be run using the Jasmine JavaScript test framework through a JavaScript task runner (Karma).

[0040] In the embodiments of the present disclosure, the electronic device may include a Bluetooth Host module and an Auto Data Handling System (ADSP) LC3 module. Among them, the implementation process of LC3-encoding the audio stream data may be implemented in the Bluetooth Host module or in the Adsp LC3 module.

[0041] Among them, in the embodiments of the present disclosure, when the electronic device plays a sound source file, the generation of audio stream data and the process of performing LC3 encoding on the audio stream data can be implemented in a conventional manner, and the embodiments of the present disclosure will not describe this in detail.

[0042] In step S12, the encoded audio stream data is obtained, and the encoded audio stream data is stored based on the application scenario of the encoded audio stream data.

[0043] In the embodiments of the present disclosure, when storing the encoded audio stream data, the encoded audio stream data can be saved to the storage module of the electronic device. For example, the encoded audio stream data can be saved to a Secure Digital Memory Card (SD Card) installed in the electronic device.

[0044] In the embodiments of the present disclosure, after performing LC3 encoding on the played audio stream data, the LC3-encoded audio stream data is stored, so that when the LC3-encoded audio stream data needs to be applied subsequently, the LC3-encoded audio stream data can be directly copied and used. Moreover, the stored LC3-encoded audio stream data is the audio stream data actually played and encoded by the electronic device. Therefore, when the LC3-encoded audio stream data is applied subsequently, it can be ensured that the data conforms to the actual application scenario and the accuracy is improved. For example, when performing LC3 authentication on the LC3-encoded audio stream data, authentication can be realized based on the audio stream data actually played by the electronic device, and the authentication accuracy is improved.

[0045] Among them, in the embodiments of the present disclosure, the preset storage format used when storing the LC3-encoded audio stream data can be stored based on the storage format required in the application scenario where the LC3-encoded audio stream data needs to be applied subsequently. For example, if the subsequent application scenario is to perform LC3 authentication, the preset storage format can be the data storage format corresponding to the LC3 authentication of audio data. If the subsequent application scenario is to locate problems with the LC3-encoded audio stream data, the preset storage format can be a storage format determined based on the data frame and playback channel of the LC3-encoded audio stream data.

[0046] Among them, currently, for LC3 authentication, a device that needs to perform LC3 authentication, such as a personal computer, obtains LC3 encoding data from a database storing standard LC3 encoding data. The obtained standard LC3 encoding data does not distinguish the actual electronic device for playing audio data, but uses a unified sample audio number, that is, the standard LC3 encoding data is used for authentication operations, so the authentication accuracy is relatively low.

[0047] In an embodiment of the present disclosure, the LC3-encoded audio stream data is stored according to the data storage format corresponding to the LC3 authentication. Subsequently, during the LC3 authentication, the electronic device performing the LC3 authentication can obtain the audio stream data after LC3 encoding of the sound source file actually played by the electronic device (non-standard LC3-encoded data), and perform the LC3 authentication, so that the LC3 authentication is based on the actually played audio stream data, improving the accuracy of the LC3 authentication, in order to truly determine the actual encoding and decoding situation of the audio stream data after LC3 encoding on the electronic device.

[0048] Figure 2 is a flowchart showing a method for storing encoded audio stream data according to an exemplary embodiment, as Figure 2 shown, the application scenarios of the encoded audio stream data include LC3 authentication; obtaining the encoded audio stream data, and storing the encoded audio stream data based on the application scenario of the encoded audio stream data, including the following steps.

[0049] In step S21, obtain the encoded audio stream data that needs to be LC3-authenticated.

[0050] Among them, the encoded audio stream data that needs to be LC3-authenticated comes from the audio stream data of at least one channel in the sound source file played by the electronic device.

[0051] In an exemplary embodiment of the present disclosure, the sound source file of the low-power Bluetooth audio played by the electronic device includes at least one channel, for example: the left channel, the right channel. When performing LC3 authentication, authentication can be performed based on the LC3-encoded audio stream data of a single channel. Therefore, in the embodiment of the present disclosure, at least one channel of the sound source file of the low-power Bluetooth audio can be determined, and the encoded audio stream data corresponding to one channel is selected from the at least one channel.

[0052] In step S22, store the obtained encoded audio stream data based on the data storage format corresponding to the LC3 authentication of the audio data.

[0053] Among them, in the embodiment of the present disclosure, the data storage format corresponding to the LC3 authentication of the audio data may include a data packet header and the content of the encoded audio stream data.

[0054] Table 1 shows a data storage format corresponding to the LC3 authentication of audio data.

[0055] Table 1

[0056] Data packet header Encoded audio stream data

[0057] Among them, Table 2 shows the content in the data packet header

[0058] Table 2

[0059]

[0060] In the embodiments of the present disclosure, after obtaining the encoded audio stream data, based on the data storage format corresponding to LC3 authentication as shown in Table 1 and Table 2 above, the obtained encoded audio stream data can be used as a target file and stored once after adding a single data packet header. It can be understood that if different LC3 authentications are performed, different data packet headers can be added for different LC3 authentications, but the same LC3 authentication corresponds to a single data packet header.

[0061] In the embodiments of the present disclosure, the obtained encoded audio stream data is used as a target file, a single data packet header is added to the target file, and the audio stream data carrying the data packet header is stored in an electronic device. If the electronic device is a PC, there is no need to copy the audio stream data carrying the data packet header, and the LC3 authentication is directly performed on the audio stream data carrying the data packet header.

[0062] In the embodiments of the present disclosure, the obtained encoded audio stream data is used as a target file, a single data packet header is added to the target file, and the audio stream data carrying the data packet header is stored in an electronic device. If the electronic device is not a PC, the audio stream data carrying the data packet header needs to be copied to the PC, and then the LC3 authentication is performed on the audio stream data carrying the data packet header.

[0063] In the present disclosure, during the LC3 authentication process, the objective difference grade (ODG) between the reference audio and the encoded audio using the LC3 codec in the authentication and the objective difference grade between the reference audio and the encoded audio using the LC3 reference codec are calculated, and then Δ ODG is calculated, and the root mean square (RMS) of the decoded audio after decoding during the authentication process is calculated. The established authentication script rules and standards are judged based on Δ ODG and RMS. If the maximum value of Δ ODG is 0.06, the minimum value of RMS is -89 dB, and the maximum value of the absolute difference of RMS is 0.00148, it means that the LC3 authentication is passed; otherwise, it means that the LC3 authentication fails.

[0064] In the present disclosure, the audio stream data carrying the data packet header passes the LC3 authentication, indicating that the encoded audio stream data obtained by the electronic device passes the authentication. Furthermore, the electronic device can implement the functions of LE Audio. For the encoded audio stream data corresponding to one channel of the sound source file played by the electronic device via low-power Bluetooth audio, it is stored as a target file after adding a single data packet header, and then copied to the PC side for LC3 authentication, which can quickly help the obtained encoded audio stream data complete the LC3 authentication.

[0065] In the embodiment of the present disclosure, during the process of the electronic device playing the sound source file of low-power Bluetooth audio, the encoded audio stream data required for LC3 authentication is obtained, and the obtained encoded audio stream data is stored based on the data storage format corresponding to the LC3 authentication of the audio data.

[0066] Among them, during the process of storing the obtained encoded audio stream data, it is determined that the Bluetooth Host module or the Adsp LC3 module receives the silent data of the sound source file within the current duration, and the storage of the encoded audio stream data is stopped, reducing the storage space occupied in the storage device. Among them, when the value in the sound waveform of the sound source file is 0, it is determined that there is silent data in the sound source file.

[0067] In the embodiment of the present disclosure, the above-mentioned stored LC3-encoded audio stream data can also be applied to the application scenario of problem location for the LC3-encoded audio stream data.

[0068] Figure 3 is a flowchart showing a method for storing encoded audio stream data according to an exemplary embodiment, as Figure 3 shown, the application scenarios of the encoded audio stream data include LC3 problem location analysis; obtaining the encoded audio stream data, and storing the encoded audio stream data based on the application scenarios of the encoded audio stream data, including the following steps.

[0069] In step S31, taking frames as units, the audio frame data in the encoded audio streams corresponding to each channel of the sound source file played by the electronic device via low-power Bluetooth audio is obtained.

[0070] In the embodiment of the present disclosure, when obtaining the audio frame data in the encoded audio streams corresponding to each channel, it can be the audio frame data during Bluetooth transmission when the sound source file is played.

[0071] In step S32, based on the channels and the audio frame data, the audio frame data is stored to obtain a data file for LC3 problem location analysis.

[0072] Figure 4 is a flowchart showing a method for determining a data file according to an exemplary embodiment, asFigure 4 As shown, based on the sound channel and the audio frame data, the audio frame data is stored to obtain a data file for LC3 problem location analysis, including the following steps.

[0073] In step S41, based on the audio frame data, the data packet header is determined.

[0074] Among them, the number of data packet headers is the same as the number of frames included in the audio frame data. That is, each audio frame data has a corresponding data packet header, and this data packet header is used to uniquely identify the audio frame data corresponding to it. For example, if the number of frames of the audio frame data is 10 frames, then the number of data packet headers determined is 10.

[0075] In step S42, in the playback order of the audio frame data, the audio frame data of each sound channel in the same frame is sequentially used as a target file, and the data packet header corresponding to the target file is added before the target file to obtain a single data file for LC3 problem location analysis.

[0076] In the present disclosure, during the process of the electronic device playing the sound source file of the low-power Bluetooth audio, after the Bluetooth Host module or the Adsp LC3 module in the electronic device receives the LE Audio audio, the audio frame data in the encoded audio stream corresponding to each sound channel of the sound source file played by the electronic device is obtained. Based on the audio frame data, the data packet header is determined. In the playback order of the audio frame data, the audio frame data of each sound channel in the same frame is sequentially used as a target file, and the data packet header corresponding to each audio frame data is added to obtain a storage format including a single data file, so that technicians can locate the LC3 problem according to the encoded audio stream data of the sound source file actually played by the electronic device, and analyze the located LC3 problem, such as: audio stuttering problem, audio noise problem, etc. Through the present disclosure, technicians can perform a detailed LC3 problem location analysis according to each frame of audio frame data from different sound channels in the sound source file.

[0077] In the present disclosure, Table 3 shows a schematic diagram of a storage format including a single data file.

[0078] Table 3

[0079]

[0080]

[0081] Continuing the above example, if the number of data frames is 10 frames and the sound channels include the left channel and the right channel, then there are a total of 10 data packet headers, and each data packet header corresponds to the encoded audio stream data of the left channel and the encoded audio stream data of the right channel.

[0082] Among them, Table 4 shows the content in the data packet header in Table 3.

[0083] Table 4

[0084]

[0085] Among them, the content in the data packet header involved in Table 4 includes information such as time stamps and frame lengths. Based on the time stamps and frame lengths, the problematic data frames can be accurately located.

[0086] Figure 5 is a flowchart showing the storage of audio frame data according to an exemplary embodiment, as Figure 5 shown. Based on the sound channel and the audio frame data, store the audio frame data to obtain a data file for LC3 problem location analysis, including the following steps.

[0087] In step S51, each frame of audio frame data in the same sound channel is used as a data file.

[0088] In step S52, add a data packet header to each frame of data in the same data file to obtain multiple data files including the number of sound channels and used for LC3 problem location analysis.

[0089] In the present disclosure, during the process of an electronic device playing a sound source file of low-power Bluetooth audio, after the Bluetooth Host module or the Adsp LC3 module in the electronic device receives the LE Audio, the electronic device obtains the encoded audio stream data of each sound channel in the sound source file. Each frame of audio stream data in the same sound channel is stored as a data file, and a data packet header is added to each frame of data in the same data file to obtain a storage format of multiple data files including the number of sound channels. Through the present disclosure, technicians can perform detailed LC3 problem location analysis based on each frame of audio frame data from the same sound channel in the sound source file.

[0090] In the present disclosure, Table 5 shows a method for determining the data storage format.

[0091] Table 5

[0092]

[0093] Among them, the content in a single data packet header is consistent with the content shown in Table 5.

[0094] In the embodiments of the present disclosure, during the process of an electronic device playing a sound source file of low-power Bluetooth audio, obtain the encoded audio stream data, and store the obtained encoded audio stream data based on the data storage format corresponding to different application scenarios (LC3 authentication / locating LC3 problem points).

[0095] During the process of an electronic device playing a sound source file of low - power Bluetooth audio, encoded audio stream data is obtained. Based on the data storage format corresponding to LC3 authentication, the obtained encoded audio stream data is stored. Performing LC3 authentication on the stored audio stream data can help technicians truly understand the encoding situation of LC3 on the electronic device. By determining a single channel of the sound source file of low - power Bluetooth audio and selecting the encoded audio stream data of the single channel for storage and then performing LC3 authentication, it can help the PC side quickly complete the LC3 authentication process.

[0096] During the process of an electronic device playing a sound source file of low - power Bluetooth audio, encoded audio stream data is obtained. Based on the data storage format corresponding to LC3 problem location analysis, the obtained encoded audio stream data is stored. Technicians use an LC3 decoder to decode the stored audio stream data for sound problem location analysis, or technicians copy the stored audio stream data carrying a data packet header to the PC side and compare it with the original sound source file to view the positions in the sound source file that are different from the original sound source file, which can reduce the time for technicians to locate and analyze sound problems.

[0097] Based on the same concept, an embodiment of the present disclosure also provides a Bluetooth audio processing device.

[0098] It can be understood that, in order to implement the above functions, the Bluetooth audio processing device provided in the embodiment of the present disclosure includes the corresponding hardware structure and / or software module for executing each function. Combining the units and algorithm steps of each example disclosed in the embodiment of the present disclosure, the embodiment of the present disclosure can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed in the way of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods for each specific application to implement the described function, but such implementation should not be considered to exceed the scope of the technical solution of the embodiment of the present disclosure.

[0099] Figure 6 It is a block diagram of a Bluetooth audio processing device shown according to an exemplary embodiment. Referring to Figure 6 , the device 100 includes an encoding unit 101 and a storage unit 102.

[0100] The encoding unit 101 is used to control the electronic device to play a sound source file of low - power Bluetooth audio and encode the audio stream data generated by playing the sound source file through a low - complexity codec LC3; the storage unit 102 is used to obtain the encoded audio stream data and store the encoded audio stream data based on the application scenario of the encoded audio stream data.

[0101] In one implementation, the application scenarios of the encoded audio stream data include LC3 authentication; the storage unit 102 obtains the encoded audio stream data in the following manner and stores the encoded audio stream data based on the application scenarios of the encoded audio stream data: obtain the encoded audio stream data that needs to be LC3 authenticated; based on the corresponding data storage format when performing LC3 authentication on the audio data, store the obtained encoded audio stream data.

[0102] In one implementation, the storage unit 102 obtains the encoded audio stream data that needs to be LC3 authenticated in the following manner: determine at least one channel of the sound source file for playing low-power Bluetooth audio by the electronic device, and select the encoded audio stream data corresponding to one channel from the at least one channel.

[0103] In one implementation, the application scenarios of the encoded audio stream data include LC3 problem location and analysis; the storage unit 102 obtains the encoded audio stream data in the following manner and stores the encoded audio stream data based on the application scenarios of the encoded audio stream data: obtain the audio frame data in the encoded audio stream corresponding to each channel of the sound source file for playing low-power Bluetooth audio by the electronic device in units of frames; based on the channels and the audio frame data, store the audio frame data to obtain a data file for performing LC3 problem location and analysis.

[0104] In one implementation, the storage unit 102 stores the audio frame data based on the channels and the audio frame data to obtain a data file for performing LC3 problem location and analysis in the following manner: based on the audio frame data, determine the data packet headers, where the number of data packet headers is the same as the number of frames included in the audio frame data; in the playback order of the audio frame data, sequentially take the audio frame data of each channel in the same frame as a target file, and add the data packet header corresponding to the target file before the target file to obtain a single data file for performing LC3 problem location and analysis.

[0105] In one implementation, the storage unit 102 stores the audio frame data based on the channels and the audio frame data to obtain a data file for performing LC3 problem location and analysis in the following manner: take the audio frame data of each frame in the same channel as a data file, and add a data packet header to each frame of data in the same data file to obtain multiple data files including the number of channels and used for performing LC3 problem location and analysis.

[0106] Regarding the device in the above embodiments, the specific manners in which each module performs operations have been described in detail in the embodiments related to the method, and will not be elaborated here.

[0107] Figure 7It is a block diagram of a device for application control shown according to an exemplary embodiment. For example, device 200 may be provided as the terminal involved in the above embodiment. For example, it may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0108] Referring to Figure 7 , device 200 may include one or more of the following components: a processing component 202, a memory 204, a power component 206, a multimedia component 208, an audio component 210, an input / output (I / O) interface 212, a sensor component 214, and a communication component 216.

[0109] The processing component 202 generally controls the overall operation of device 200, such as operations associated with display, telephone calls, data communication, camera operations, and recording operations. The processing component 202 may include one or more processors 220 to execute instructions to complete all or part of the steps of the above method. In addition, the processing component 202 may include one or more modules to facilitate the interaction between the processing component 202 and other components. For example, the processing component 202 may include a multimedia module to facilitate the interaction between the multimedia component 208 and the processing component 202.

[0110] The memory 204 is configured to store various types of data to support the operation of device 200. Examples of such data include instructions for any application or method operating on device 200, contact data, phone book data, messages, pictures, videos, etc. The memory 204 may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, a magnetic disk, or an optical disk.

[0111] The power component 206 provides power to the various components of device 200. The power component 206 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for device 200.

[0112] The multimedia component 208 includes a screen that provides an output interface between the device 200 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors can sense not only the boundaries of the touch or swipe actions, but also detect the duration and pressure associated with the touch or swipe operations. In some embodiments, the multimedia component 208 includes a front camera and / or a rear camera. When the device 200 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each of the front camera and the rear camera can be a fixed optical lens system or have a focal length and optical zoom capabilities.

[0113] The audio component 210 is configured to output and / or input audio signals. For example, the audio component 210 includes a microphone (MIC) that is configured to receive external audio signals when the device 200 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals can be further stored in the memory 204 or transmitted via the communication component 216. In some embodiments, the audio component 210 further includes a speaker for outputting audio signals.

[0114] The I / O interface 212 provides an interface between the processing component 202 and a peripheral interface module, and the peripheral interface module can be a keyboard, a click wheel, buttons, etc. These buttons can include, but are not limited to: a home button, a volume button, a power button, and a lock button.

[0115] The sensor component 214 includes one or more sensors for providing a status assessment of various aspects of the device 200. For example, the sensor component 214 can detect the on / off state of the device 200, the relative positioning of components, such as the display and the keypad of the device 200. The sensor component 214 can also detect a change in the position of the device 200 or a component of the device 200, the presence or absence of user contact with the device 200, the orientation or acceleration / deceleration of the device 200, and the temperature change of the device 200. The sensor component 214 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor component 214 can also include a light sensor, such as a CMOS or a CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 214 can further include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0116] The communication component 216 is configured to facilitate communication between the device 200 and other devices in a wired or wireless manner. The device 200 can access a communication standard-based wireless network, such as WiFi, 2G, or 3G, or a combination thereof. In an exemplary embodiment, the communication component 216 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 216 further includes a Near Field Communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.

[0117] In an exemplary embodiment, the device 200 can be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for performing the above method.

[0118] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as the memory 204 including instructions, and the above instructions can be executed by the processor 220 of the device 200 to complete the above method. For example, the non-transitory computer-readable storage medium can be a ROM, Random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.

[0119] It can be further understood that although the operations are described in a specific order in the drawings in the embodiments of the present disclosure, it should not be understood as requiring the operations to be performed in the specific order shown or in a serial order, or requiring all the operations shown to obtain the desired result. In a specific environment, multitasking and parallel processing may be advantageous.

[0120] Those skilled in the art will readily conceive of other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common general knowledge or conventional technical means in the technical field not disclosed in the present disclosure.

[0121] It should be understood that the present disclosure is not limited to the exact structures described above and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present disclosure is only limited by the appended claims.

Claims

1. A Bluetooth audio processing method, characterized in that, Applied to an electronic device, including: Controlling the source file of the Bluetooth audio played by the electronic device, and encoding the audio stream data generated by playing the source file through a Low Complexity Communication Codec (LC3), wherein the audio stream data is the actual audio stream data played by the electronic device; Obtaining the encoded audio stream data, and storing the encoded audio stream data in the electronic device based on the application scenario of the encoded audio stream data, wherein different application scenarios correspond to different data storage formats.

2. The Bluetooth audio processing method according to claim 1, wherein The application scenario of the encoded audio stream data includes LC3 authentication; The obtaining the encoded audio stream data and storing the encoded audio stream data based on the application scenario of the encoded audio stream data includes: Obtaining the encoded audio stream data that needs to be LC3 - authenticated; Storing the obtained encoded audio stream data based on the data storage format corresponding to LC3 - authenticating the audio data.

3. The Bluetooth audio processing method according to claim 2, wherein The obtaining the encoded audio stream data that needs to be LC3 - authenticated includes: Determining at least one channel of the source file of the low - power Bluetooth audio played by the electronic device, and selecting the encoded audio stream data corresponding to one channel from the at least one channel.

4. The Bluetooth audio processing method according to any one of claims 1 to 3, characterized in that, The method further includes: In response to receiving the mute data of the source file within a continuously specified time, stopping storing the encoded audio stream data.

5. The Bluetooth audio processing method according to claim 4, wherein The storing the obtained encoded audio stream data includes: Taking the obtained encoded audio stream data as a target file and adding a single data packet header before storing it.

6. The Bluetooth audio processing method according to claim 1, characterized in that, The application scenario of the encoded audio stream data includes LC3 problem location and analysis; The obtaining the encoded audio stream data and storing the encoded audio stream data based on the application scenario of the encoded audio stream data includes: Taking frames as units, obtaining the audio frame data in the encoded audio stream corresponding to each channel of the source file of the low - power Bluetooth audio played by the electronic device; Storing the audio frame data based on the channel and the audio frame data to obtain a data file for LC3 problem location and analysis.

7. The Bluetooth audio processing method according to claim 6, wherein The storing the audio frame data based on the channel and the audio frame data to obtain a data file for LC3 problem location and analysis includes: Determining the data packet headers based on the audio frame data, wherein the number of data packet headers is the same as the number of frames included in the audio frame data; In the playing order of the audio frame data, sequentially taking the audio frame data of each channel in the same frame as a target file, and adding the data packet header corresponding to the target file before the target file to obtain a single data file for LC3 problem location and analysis.

8. The Bluetooth audio processing method according to claim 6, characterized in that, The storing the audio frame data based on the channel and the audio frame data to obtain a data file for LC3 problem location and analysis includes: Taking the audio frame data of each frame in the same channel as a data file, and adding a data packet header to each frame data in the same data file, to obtain multiple data files for LC3 problem location and analysis, where the number of data files is the number of channels.

9. A Bluetooth audio processing device, characterized in that, Applied to an electronic device, including: An encoding unit, configured to control the electronic device to play a sound source file of low energy consumption Bluetooth audio, and encode the audio stream data generated by playing the sound source file through a Low Complexity Communication Codec (LC3), wherein the audio stream data is the audio stream data actually played by the electronic device; A storage unit, configured to obtain the encoded audio stream data, and store the encoded audio stream data in the electronic device based on the application scenario of the encoded audio stream data, wherein different application scenarios correspond to different data storage formats.

10. The Bluetooth audio processing device according to claim 9, wherein, The application scenario of the encoded audio stream data includes LC3 authentication; The storage unit obtains the encoded audio stream data and stores the encoded audio stream data based on the application scenario of the encoded audio stream data in the following manner: Obtain the encoded audio stream data that needs to be subjected to LC3 authentication; Store the obtained encoded audio stream data based on the data storage format corresponding to the LC3 authentication of the audio data.

11. The Bluetooth audio processing device according to claim 10, characterized in that, The storage unit obtains the encoded audio stream data that needs to be subjected to LC3 authentication in the following manner: Determine at least one channel of the sound source file for playing low energy consumption Bluetooth audio by the electronic device, and select the encoded audio stream data corresponding to one channel from the at least one channel.

12. The Bluetooth audio processing device according to claim 9, characterized in that, The application scenario of the encoded audio stream data includes LC3 problem location analysis; The storage unit obtains the encoded audio stream data and stores the encoded audio stream data based on the application scenario of the encoded audio stream data in the following manner: Obtain, in units of frames, the audio frame data in the encoded audio streams corresponding to each channel of the sound source file for playing low energy consumption Bluetooth audio by the electronic device; Store the audio frame data based on the channel and the audio frame data to obtain a data file for LC3 problem location analysis.

13. The Bluetooth audio processing device according to claim 12, wherein The storage unit stores the audio frame data based on the channel and the audio frame data to obtain a data file for LC3 problem location analysis in the following manner: Determine data packet headers based on the audio frame data, wherein the number of data packet headers is the same as the number of frames included in the audio frame data; In the playback order of the audio frame data, sequentially take the audio frame data of each channel in the same frame as a target file, and add the data packet header corresponding to the target file before the target file to obtain a single data file for LC3 problem location analysis.

14. The Bluetooth audio processing device according to claim 12, wherein, The storage unit stores the audio frame data based on the channel and the audio frame data to obtain a data file for LC3 problem location analysis in the following manner: Take the audio frame data of each frame in the same channel as a data file, and add a data packet header to each frame of data in the same data file to obtain a plurality of data files including the number of channels and used for LC3 problem location analysis.

15. A Bluetooth audio processing device, characterized in that, Comprising: A processor; A memory for storing processor-executable instructions; Wherein, the processor is configured to execute the method according to any one of claims 1 to 8.

16. A computer-readable storage medium, characterized in that, Instructions are stored in the storage medium, and when the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Bluetooth LE audio propagation data processing method and device, and storage medium

    CN112489666A