CN113689864A - Audio data processing method and device and storage medium - Google Patents

Audio data processing method and device and storage medium Download PDF

Info

Publication number
CN113689864A
CN113689864A CN202111251169.0A CN202111251169A CN113689864A CN 113689864 A CN113689864 A CN 113689864A CN 202111251169 A CN202111251169 A CN 202111251169A CN 113689864 A CN113689864 A CN 113689864A
Authority
CN
China
Prior art keywords
bluetooth
audio
code rate
audio data
subset
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.)
Granted
Application number
CN202111251169.0A
Other languages
Chinese (zh)
Other versions
CN113689864B (en
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.)
Barrot Wireless Co Ltd
Original Assignee
Barrot Wireless Co Ltd
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 Barrot Wireless Co Ltd filed Critical Barrot Wireless Co Ltd
Priority to CN202111251169.0A priority Critical patent/CN113689864B/en
Publication of CN113689864A publication Critical patent/CN113689864A/en
Application granted granted Critical
Publication of CN113689864B publication Critical patent/CN113689864B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L19/00Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis
    • G10L19/04Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis using predictive techniques
    • G10L19/16Vocoder architecture
    • G10L19/173Transcoding, i.e. converting between two coded representations avoiding cascaded coding-decoding

Landscapes

  • Engineering & Computer Science (AREA)
  • Computational Linguistics (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Multimedia (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application discloses an audio data processing method, an audio data processing device and a storage medium, and belongs to the technical field of Bluetooth audio playing. The method mainly comprises the following steps: after the Bluetooth equipment pairing is completed, respectively acquiring a first audio format, a first sampling rate and a first code rate of audio data of a Bluetooth transmitting end, and a second audio format set, a second sampling rate set and a second code rate range supported by a Bluetooth receiving end; and if the first audio format belongs to the subset of the second audio format set, the first sampling rate belongs to the subset of the second sampling rate set and the first code rate is not greater than the maximum value of the second code rate range, performing non-transcoding Bluetooth transmission on the Bluetooth audio compression packet of the Bluetooth transmitting end audio data. The Bluetooth transmission power consumption can be saved, the Bluetooth transmission delay is reduced, the complexity is low, and the application range is wide.

Description

Audio data processing method and device and storage medium
Technical Field
The present disclosure relates to bluetooth and bluetooth audio playing technologies, and in particular, to an audio data processing method, an audio data processing apparatus, and a storage medium.
Background
Based on the bluetooth device with music storage function and the bluetooth device with music receiving function, when data is transmitted, if the sound source is in the first compression format and the format required by the bluetooth device with music receiving function is also in the first format, from the viewpoint of data flow, the processing mode in the prior art is as follows: the Bluetooth device with the music storage function reads music files or audio and video files from a file system and analyzes a compression packet in a first compression format, then decodes the compression packet in the first compression format into a PCM format and transmits the PCM format to the Bluetooth transmitter, the Bluetooth transmitter encodes the PCM format into the compression packet in the first compression format according to parameters such as negotiated code rate, negotiated sampling rate and the like and transmits the compression packet to the Bluetooth receiving device with the music receiving function, and the Bluetooth receiving device with the music receiving function receives the compression packet in the first compression format and then performs decoding processing.
The prior art has the disadvantages that even if the audio storage format of a source file at a transmitting end is the same as the audio format received by a receiving end, transcoding processing of decoding and encoding audio data is still required, so that the cost is wasted, when the compression format is lossy compression, tone quality loss and tone quality reduction are caused by transcoding every time, and the delay of a system is increased by transcoding operation.
Disclosure of Invention
In view of the problems in the prior art, the present application mainly provides an audio data processing method, an apparatus and a storage medium.
In order to achieve the above object, the present application adopts a technical solution that: there is provided an audio data processing method, comprising: after the Bluetooth equipment pairing is completed, respectively acquiring a first audio format, a first sampling rate and a first code rate of audio data of a Bluetooth transmitting end, and a second audio format set, a second sampling rate set and a second code rate range supported by a Bluetooth receiving end; and if the first audio format belongs to the subset of the second audio format set, the first sampling rate belongs to the subset of the second sampling rate set and the first code rate is not greater than the maximum value of the second code rate range, performing non-transcoding Bluetooth transmission on the Bluetooth audio compression packet of the Bluetooth transmitting end audio data.
Another technical scheme adopted by the application is as follows: there is provided an audio data processing device comprising: the parameter acquisition module is used for respectively acquiring a first audio format, a first sampling rate and a first code rate of the audio data of the Bluetooth transmitting terminal and a second audio format set, a second sampling rate set and a second code rate range supported by the Bluetooth receiving terminal after the Bluetooth equipment pairing is completed; and the transmission module is used for performing non-transcoding Bluetooth transmission on the Bluetooth audio compression packet of the Bluetooth transmitting end audio data if the first audio format belongs to the subset of the second audio format set, the first sampling rate belongs to the subset of the second sampling rate set and the first code rate is not greater than the maximum value of the second code rate range.
Another technical scheme adopted by the application is as follows: there is provided a computer-readable storage medium storing computer instructions operable to execute the audio data processing method of the first aspect.
The technical scheme of the application can reach the beneficial effects that: the application designs an audio data processing method, an audio data processing device and a storage medium. Under the condition that the Bluetooth receiving end supports the audio format required to be transmitted by the Bluetooth transmitting end, the method can save the power consumption of Bluetooth transmission, reduce the delay of the Bluetooth transmission, and simultaneously improve the tone quality of the audio signal when the compression format is lossy compression.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to these drawings without inventive exercise.
FIG. 1 is a schematic diagram of an embodiment of an audio data processing method of the present application;
FIG. 2 is a schematic diagram of a specific flow of an audio data processing method according to the present application;
fig. 3 is a schematic diagram of an embodiment of an audio data processing apparatus according to the present application.
With the above figures, there are shown specific embodiments of the present application, which will be described in more detail below. These drawings and written description are not intended to limit the scope of the inventive concepts in any manner, but rather to illustrate the inventive concepts to those skilled in the art by reference to specific embodiments.
Detailed Description
The following detailed description of the preferred embodiments of the present application, taken in conjunction with the accompanying drawings, will provide those skilled in the art with a better understanding of the advantages and features of the present application, and will make the scope of the present application more clear and definite.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The following describes the technical solutions of the present application and how to solve the above technical problems with specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
Fig. 1 shows an embodiment of an audio data processing method according to the present application.
In the specific embodiment shown in fig. 1, the audio data processing method mainly includes step S101, after completing pairing of bluetooth devices, respectively obtaining a first audio format, a first sampling rate, and a first code rate of audio data at a bluetooth transmitting end, and a second audio format set, a second sampling rate set, and a second code rate range supported by a bluetooth receiving end;
step S102, if the first audio format belongs to the subset of the second audio format set, the first sampling rate belongs to the subset of the second sampling rate set and the first code rate is not greater than the maximum value of the second code rate range, performing non-transcoding Bluetooth transmission on a Bluetooth audio compression packet of the Bluetooth transmitting end audio data.
This embodiment, under the circumstances that the bluetooth receiving end supports the audio format that the bluetooth transmitting end needs the transmission, through reducing the transcoding processing of audio data when carrying out the bluetooth transmission, saved the consumption of bluetooth transmission, reduced the delay of bluetooth transmission, improved audio data tone quality when compression format is the lossy compression, and this application complexity is low, and the flexibility ratio is high, has easily to realize and application scope wide advantage.
In the specific embodiment shown in fig. 1, the audio data processing method includes step S101, after completing pairing of bluetooth devices, respectively obtaining a first audio format, a first sampling rate, and a first code rate of audio data at a bluetooth transmitting end, and a second audio format set, a second sampling rate set, and a second code rate range supported by a bluetooth receiving end.
In a specific embodiment of the present application, when the bluetooth is used to transmit the audio file or the audio/video file, after the bluetooth transmitting end and the bluetooth receiving end are connected in a pairing manner, the bluetooth transmitting end reads the music file or the audio/video file from the file system, and analyzes the original bluetooth audio compression packet of the audio data by using the file. The method comprises the steps of obtaining a compression format of audio data from an original Bluetooth audio compression packet of the audio data, namely a first audio format, a first sampling rate and a first code rate of the audio data.
In the embodiment, a foundation is laid for adjusting the transmission configuration and transmitting according to the parameters of the Bluetooth transmitting end and the Bluetooth receiving end.
In a specific example of the present application, by using the bluetooth connection relationship established between the bluetooth transmitting end and the bluetooth receiving end, the bluetooth transmitting end obtains the parameter information of the bluetooth receiving end by sending a specific instruction, that is, the second audio format set, the second sampling rate set and the second code rate range supported by the bluetooth receiving end, where the specific instruction is determined by a protocol used in the bluetooth connection relationship established between the bluetooth transmitting end and the bluetooth receiving end.
For example, in the classic bluetooth, when the protocol used when the bluetooth connection relationship is established between the bluetooth transmitting end and the bluetooth receiving end is AVDTP, and when the bluetooth transmitting end and the bluetooth receiving end are used to establish an audio stream, the bluetooth transmitting end initiates an initialization Signaling instruction to the bluetooth receiving end, that is, parameter information of the bluetooth receiving end can be obtained. In the low-power consumption Bluetooth LE Audio, according to the PACS, initiating an initialization Signaling instruction to acquire parameter information of a Bluetooth receiving end.
In the embodiment, the parameter information of the bluetooth receiving end is acquired, so that a foundation is laid for adjusting the transmission configuration and transmitting according to the parameters of the bluetooth transmitting end and the bluetooth receiving end.
In the embodiment shown in fig. 1, the audio data processing method further includes step S102, if the first audio format belongs to a subset of the second set of audio formats, the first sampling rate belongs to the subset of the second set of sampling rates, and the first code rate is not greater than the maximum value of the second code rate range, performing non-transcoding bluetooth transmission on a bluetooth audio compressed packet of the bluetooth transmitting end audio data.
In a specific example of the present application, the transmission configuration adopted by the bluetooth transmitting end and the bluetooth receiving end is determined according to a first audio format, a first sampling rate, and a first code rate of the bluetooth transmitting end, and an inclusion relationship between a second audio format set, a second sampling rate set, and a second code rate range of the bluetooth receiving end, and the determined transmission configuration is transmitted between the bluetooth transmitting end and the bluetooth receiving end to perform audio data transmission.
And when the first audio format belongs to the subset of the second audio format set, the first sampling rate belongs to the subset of the second sampling rate set and the first code rate is in a second code rate range, performing non-transcoding Bluetooth transmission on the original Bluetooth audio compression packet of the Bluetooth transmitting end audio data.
And when the first audio format belongs to the subset of the second audio format set, the first sampling rate belongs to the subset of the second sampling rate set and the first code rate is smaller than the minimum value of the second code rate range, performing non-transcoding Bluetooth transmission on the adjusted Bluetooth audio compression packet of the Bluetooth transmitting end audio data. The Bluetooth audio compression packet is a general name of an original Bluetooth audio compression packet and an adjusted Bluetooth audio compression packet.
In the specific embodiment, the parameter configuration for transmitting the audio data between the bluetooth transmitting end and the bluetooth receiving end is determined by comparing the inclusion relationship between the audio data parameters of the bluetooth transmitting end and the parameters supported by the bluetooth receiving end, so that the transcoding performed at the bluetooth transmitting end can be reduced under the condition that the bluetooth receiving end supports the audio format required to be transmitted by the bluetooth transmitting end, the calculation power is saved, the time delay is reduced, the method is simple to operate, easy to implement, wide in application range, and the tone quality can be improved when the compression format is lossy compression.
In an embodiment of the present application, the step S102 further includes directly performing non-transcoding bluetooth transmission on the original bluetooth audio compression packet of the bluetooth transmitting end audio data if the first audio format belongs to a subset of the second set of audio formats, the first sampling rate belongs to a subset of the second set of sampling rates, and the first code rate is within the second code rate range.
In a specific example of the present application, when the first audio format belongs to a subset of the second set of audio formats, the first sampling rate belongs to a subset of the second set of sampling rates, and the first code rate is within the second code rate range, the transmitting-end audio data is configured as an original bluetooth audio compressed packet of the first audio format, the first sampling rate, and the first code rate, and the original bluetooth audio compressed packet is directly subjected to bluetooth transmission without transcoding. The first code rate is divided into a subset of which the first code rate is in the second code rate range and is equal to the second code rate in the second code rate range, and in the classic bluetooth, the first code rate in the second code rate range means that the first code rate is the subset of the second code rate range; in LE Audio, the first code rate is within the second code rate range, meaning that the first code rate is equal to the second code rate.
In a specific example of the present application, as shown in fig. 2, when the configuration parameters of the audio data are a subset of configurations supported by the bluetooth receiving end, that is, the parameter configuration supported by the bluetooth receiving end includes compression configuration parameters of an original bluetooth audio compression packet, the compression configuration parameters of the original bluetooth audio compression packet of the audio data are directly used as a transmission configuration when the audio data is transmitted between the bluetooth transmitting end and the bluetooth receiving end, and the original bluetooth audio compression packet is directly transmitted to the bluetooth receiving end without transcoding the original bluetooth audio compression packet.
For example, audio data is compressed and stored in a file system of a bluetooth transmitting end in an ACC, sampling rate 44.1KHZ and 256Kbps code rate format, audio formats supported by a bluetooth receiving end are MPEG, SBC, AAC, aptX, LDAC and LHDC, sampling rates supported are 8KHZ, 16KHZ, 44.1KHZ and 48KHZ, and supported code rate ranges from 200Kbps to 500 Kbps. Because the storage parameter configuration of the original Bluetooth audio compression packet is a subset of the configuration supported by the Bluetooth receiving end, data transmission between the Bluetooth transmitting end and the Bluetooth receiving end is carried out according to the parameter configuration of AAC, sampling rate 44.1kHz and 256kbps code rate, and the audio data directly transmits the original audio compression packet of each frame of the audio data to the Bluetooth receiving end in sequence without transcoding.
According to the embodiment, when the compression parameter configuration of the Bluetooth transmitting end is completely the subset of the configuration supported by the Bluetooth receiving end, repeated transcoding at the Bluetooth transmitting end can be reduced, the calculation power is saved, and the time delay is reduced.
In a specific example of the present application, audio data of a bluetooth transmitting end is analyzed according to a time sequence to obtain each frame of original bluetooth audio compression packet, and each frame of original bluetooth audio compression packet is transmitted to a bluetooth receiving end according to the time sequence.
For example, when the first audio format belongs to the subset of the second audio format set, the first sampling rate belongs to the subset of the second sampling rate set, and the first code rate is within the second code rate range, the audio data at the bluetooth transmitting end is analyzed according to the time sequence to obtain each frame of original bluetooth audio compression packet of the original audio compression packet corresponding to the audio data, and the audio data is transmitted to the bluetooth receiving end in the form of each frame of original bluetooth audio compression packet according to the time sequence.
This embodiment can guarantee the exactness and the accuracy of data, has avoided the data confusion that bluetooth transmission caused.
In an embodiment of the application, the step S102 further includes, if the first audio format belongs to a subset of the second set of audio formats, the first sampling rate belongs to the subset of the second set of sampling rates, and the first code rate is smaller than a minimum value of the second code rate range, performing data padding on a tail portion of the original bluetooth audio compressed packet until an adjusted bluetooth audio compressed packet with a code rate within the second code rate range is obtained, and performing non-transcoding bluetooth transmission on the adjusted bluetooth audio compressed packet.
In a specific embodiment of the present application, when the first audio format belongs to a subset of the second set of audio formats, the first sampling rate belongs to a subset of the second set of sampling rates, and the first code rate is smaller than the minimum value of the second code rate range, the data padding is performed by using the tail of each frame of the original audio compressed packet of the audio data at the transmitting end, and the audio data at the transmitting end is configured as the adjusted bluetooth audio compressed packet of the first audio format, the first sampling rate, and the second code rate. Wherein the second code rate is within a second code rate range.
This embodiment can reduce the repeated transcoding operation that carries out at the bluetooth transmitting terminal under specific circumstances, and simple structure easily realizes, can save the calculation power to reduce the time delay, can reduce the tone quality loss when the compression mode is lossy compression.
In a specific example of the application, analyzing audio data of a Bluetooth transmitting terminal according to a time sequence to obtain an original Bluetooth audio compression packet of each frame; and filling data at the tail part of each frame of the original Bluetooth audio compression packet until the adjusted Bluetooth audio compression packet with the code rate within the second code rate range is obtained.
In a specific example of the present application, as shown in fig. 2, when the first audio format belongs to the subset of the second audio format set, the first sampling rate belongs to the subset of the second sampling rate set, but the code rate of the original audio compressed packet is less than the lower limit of the code rate supported by the bluetooth receiving end, data is filled at the tail of each frame of the original audio compressed packet until the filled code rate of the original audio compressed packet meets the code rate requirement of the bluetooth receiving end, and then data transmission is performed. The original audio compression packet of the Bluetooth transmitting end is configured into compressed audio data with a first audio format, a first sampling rate and a second code rate, and the compressed audio data is transmitted according to the compressed files with the first audio format, the first sampling rate and the second code rate.
In this case, if the transcoding is performed according to the standard flow and then the transmission does not produce a further beneficial effect, since the transcoding operation for increasing the code rate is performed on the compressed audio data, the audio quality of the audio cannot be improved, and the audio quality may be reduced instead. Therefore, data filling is carried out at the tail part of the compressed packet of each frame of audio data, such as tail filling 0 or partial filling 1, so that the code rate of the compressed packet of the audio data can meet the requirement of a Bluetooth receiving end, transcoding operation is not needed in the operation, extra delay is not introduced, the calculation power is saved, and the tone quality is not damaged.
The specific embodiment can reduce the computational power requirement and the delay brought by transcoding under specific conditions.
In an embodiment of the application, the step S102 further includes performing standard transcoding bluetooth transmission on a bluetooth audio compression packet of the bluetooth transmitting end audio data if the first audio format does not belong to the subset of the second set of audio formats, the first sampling rate does not belong to the subset of the second set of sampling rates, or the first code rate is greater than the maximum value of the second code rate range.
In a specific embodiment of the present application, when the first audio format belongs to the subset of the second audio format set but the first sampling rate does not belong to the subset of the second sampling rate set, according to the transmission configuration obtained in the bluetooth pairing process, the audio data at the transmitting end is configured into the audio compression packet of the second audio format, the second sampling rate and the second code rate by using a standard bluetooth audio transmission method, and the audio compression packet is transmitted to the bluetooth receiving end. Wherein the second audio format and the second sampling rate are a subset of the second set of audio formats and a subset of the second set of sampling rates, and the second code rate is within a second code rate range.
In a specific embodiment of the present application, when the first audio format belongs to the subset of the second audio format set, the first sampling rate belongs to the subset of the second sampling rate set, and the first code rate is greater than the upper limit of the second code rate range, according to the transmission configuration obtained in the bluetooth pairing process, the audio data at the transmitting end is configured into the audio compression packet of the second audio format, the second sampling rate, and the second code rate by using a standard bluetooth audio transmission method, and the audio compression packet is transmitted to the bluetooth receiving end.
In a specific embodiment of the present application, when the first audio format does not belong to the subset of the second audio format set, according to the transmission configuration obtained in the bluetooth pairing process, the audio data at the transmitting end is configured into an audio compression packet of the second audio format, the second sampling rate and the second code rate by using a standard bluetooth audio transmission method, and the audio compression packet is transmitted to the bluetooth receiving end.
According to the specific embodiment, when the parameter attachment between the audio data of the Bluetooth receiving end and the audio data of the Bluetooth transmitting end is not satisfied and transcoding operation is not performed, the operation processing flow of the audio parameters is determined, so that the processing method is more comprehensive and has a wider application range.
Fig. 3 shows an embodiment of an audio data processing apparatus according to the present application.
In the embodiment shown in fig. 3, the audio data processing apparatus mainly includes:
the parameter obtaining module 301 is configured to, after pairing of the bluetooth devices is completed, respectively obtain a first audio format, a first sampling rate, and a first code rate of the audio data at the bluetooth transmitting end, and a second audio format set, a second sampling rate set, and a second code rate range that are supported by the bluetooth receiving end;
a transmission module 302, configured to perform non-transcoding bluetooth transmission on a bluetooth audio compression packet of the bluetooth transmitting end audio data if the first audio format belongs to the subset of the second set of audio formats, the first sampling rate belongs to the subset of the second set of sampling rates, and the first code rate is not greater than the maximum value of the second code rate range.
This embodiment can reduce the repeated transcoding operation that carries out at the bluetooth transmitting terminal under specific circumstances, and simple structure easily realizes, can save the calculation power to reduce the time delay, can reduce the tone quality loss when the compression mode is lossy compression.
In one embodiment of the present application, the transmission module 302 includes a module for performing non-transcoding bluetooth transmission directly on an original bluetooth audio compression packet of the bluetooth transmitting end audio data if the first audio format belongs to a subset of the second set of audio formats, the first sampling rate belongs to a subset of the second set of sampling rates, and the first code rate is within the second code rate range;
and the module is used for performing data filling on the tail part of the original Bluetooth audio compression packet if the first audio format belongs to the subset of the second audio format set, the first sampling rate belongs to the subset of the second sampling rate set and the first code rate is smaller than the minimum value of the second code rate range until an adjusted Bluetooth audio compression packet with the code rate within the second code rate range is obtained, and performing non-transcoding Bluetooth transmission on the adjusted Bluetooth audio compression packet.
The audio data processing apparatus provided in the present application may be configured to execute the audio data processing method described in any of the above embodiments, and the implementation principle and the technical effect are similar, which are not described herein again.
In another embodiment of the present application, a computer-readable storage medium stores computer instructions that are operated to perform the audio data processing method described in the above embodiments.
In a specific embodiment of the present application, the functional modules in an audio data processing method of the present application may be directly in hardware, in a software module executed by a processor, or in a combination of both.
A software module may reside in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium.
The Processor may be a Central Processing Unit (CPU), other general-purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA), other Programmable logic devices, discrete Gate or transistor logic, discrete hardware components, or any combination thereof. A general purpose processor may be a microprocessor, but in the alternative, the processor may be any conventional processor, controller, microcontroller, or state machine. A processor may also be implemented as a combination of computing devices, e.g., a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a DSP core, or any other such configuration. In the alternative, the storage medium may be integral to the processor. The processor and the storage medium may reside in an ASIC. The ASIC may reside in a user terminal. In the alternative, the processor and the storage medium may reside as discrete components in a user terminal.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The above description is only an example of the present application and is not intended to limit the scope of the present application, and all equivalent structural changes made by using the contents of the specification and the drawings, which are directly or indirectly applied to other related technical fields, are included in the scope of the present application.

Claims (9)

1. An audio data processing method, comprising,
after the Bluetooth equipment pairing is completed, respectively acquiring a first audio format, a first sampling rate and a first code rate of audio data of a Bluetooth transmitting end, and a second audio format set, a second sampling rate set and a second code rate range supported by a Bluetooth receiving end;
and if the first audio format belongs to the subset of the second audio format set, the first sampling rate belongs to the subset of the second sampling rate set, and the first code rate is not greater than the maximum value of the second code rate range, performing non-transcoding Bluetooth transmission on the Bluetooth audio compression packet of the Bluetooth transmitting end audio data.
2. The audio data processing method of claim 1, wherein the process of performing non-transcoding Bluetooth transmission on the Bluetooth audio compressed packet of the Bluetooth transmitting end audio data comprises,
and if the first audio format belongs to the subset of the second audio format set, the first sampling rate belongs to the subset of the second sampling rate set, and the first code rate is within the second code rate range, directly performing non-transcoding Bluetooth transmission on the original Bluetooth audio compression packet of the Bluetooth transmitting end audio data.
3. The audio data processing method of claim 1, wherein the process of performing non-transcoding Bluetooth transmission on the Bluetooth audio compressed packet of the Bluetooth transmitting end audio data comprises,
and if the first audio format belongs to the subset of the second audio format set, the first sampling rate belongs to the subset of the second sampling rate set, and the first code rate is smaller than the minimum value of the second code rate range, performing data filling on the tail part of the original Bluetooth audio compression packet until an adjusted Bluetooth audio compression packet with the code rate within the second code rate range is obtained, and performing non-transcoding Bluetooth transmission on the adjusted Bluetooth audio compression packet.
4. The audio data processing method of claim 1, further comprising,
and if the first audio format does not belong to the subset of the second audio format set, the first sampling rate does not belong to the subset of the second sampling rate set or the first code rate is greater than the maximum value of the second code rate range, performing standard transcoding Bluetooth transmission on a Bluetooth audio compression packet of the Bluetooth transmitting end audio data.
5. The audio data processing method of claim 2, wherein the process of directly performing non-transcoding Bluetooth transmission on the original Bluetooth audio compression packet of the Bluetooth transmitting end audio data comprises,
and analyzing the audio data of the Bluetooth transmitting terminal according to a time sequence to obtain each frame of the original Bluetooth audio compression packet, and transmitting each frame of the original Bluetooth audio compression packet to a Bluetooth receiving terminal according to the time sequence.
6. The audio data processing method of claim 3, wherein the process of padding the end portion of the original Bluetooth audio compression packet with data until obtaining the adjusted Bluetooth audio compression packet with the code rate within the second code rate range comprises,
analyzing the audio data of the Bluetooth transmitting terminal according to a time sequence to obtain each frame of the original Bluetooth audio compression packet;
and filling data at the tail part of each frame of the original Bluetooth audio compression packet until an adjusted Bluetooth audio compression packet with the code rate within the second code rate range is obtained.
7. An audio data processing apparatus, comprising,
the parameter acquisition module is used for respectively acquiring a first audio format, a first sampling rate and a first code rate of the audio data of the Bluetooth transmitting terminal and a second audio format set, a second sampling rate set and a second code rate range supported by the Bluetooth receiving terminal after the Bluetooth equipment pairing is completed;
and the transmission module is used for performing non-transcoding Bluetooth transmission on the Bluetooth audio compression packet of the Bluetooth transmitting end audio data if the first audio format belongs to the subset of the second audio format set, the first sampling rate belongs to the subset of the second sampling rate set, and the first code rate is not greater than the maximum value of the second code rate range.
8. The audio data processing device of claim 7, wherein the transmission module comprises,
means for directly performing non-transcoding bluetooth transmission on an original bluetooth audio compressed packet of the bluetooth transmitting end audio data if the first audio format belongs to a subset of the second set of audio formats, the first sampling rate belongs to a subset of the second set of sampling rates, and the first code rate is within the second code rate range;
and a module configured to, if the first audio format belongs to a subset of the second set of audio formats, the first sampling rate belongs to a subset of the second set of sampling rates, and the first code rate is smaller than a minimum value of the second code rate range, perform data padding on a tail portion of an original bluetooth audio compressed packet until an adjusted bluetooth audio compressed packet having a code rate within the second code rate range is obtained, and perform non-transcoding bluetooth transmission on the adjusted bluetooth audio compressed packet.
9. A computer-readable storage medium storing computer instructions, wherein the computer instructions are operable to perform the audio data processing method of any one of claims 1-6.
CN202111251169.0A 2021-10-27 2021-10-27 Audio data processing method and device and storage medium Active CN113689864B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111251169.0A CN113689864B (en) 2021-10-27 2021-10-27 Audio data processing method and device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111251169.0A CN113689864B (en) 2021-10-27 2021-10-27 Audio data processing method and device and storage medium

Publications (2)

Publication Number Publication Date
CN113689864A true CN113689864A (en) 2021-11-23
CN113689864B CN113689864B (en) 2022-01-18

Family

ID=78588124

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111251169.0A Active CN113689864B (en) 2021-10-27 2021-10-27 Audio data processing method and device and storage medium

Country Status (1)

Country Link
CN (1) CN113689864B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114783452A (en) * 2022-06-17 2022-07-22 荣耀终端有限公司 Audio playing method, device and storage medium
CN116013334A (en) * 2023-01-28 2023-04-25 荣耀终端有限公司 Audio data processing method, electronic device and storage medium
WO2024001447A1 (en) * 2022-07-01 2024-01-04 哲库科技(上海)有限公司 Audio processing method, chip, apparatus, device, and computer-readable storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1903559A1 (en) * 2006-09-20 2008-03-26 Deutsche Thomson-Brandt Gmbh Method and device for transcoding audio signals
CN101286770A (en) * 2007-04-09 2008-10-15 艾威梯软件技术(北京)有限公司 Method and system for automatically configuring audio encoding format transmitted by bluetooth A2DP
US20080260048A1 (en) * 2004-02-16 2008-10-23 Koninklijke Philips Electronics, N.V. Transcoder and Method of Transcoding Therefore
CN101783142A (en) * 2009-01-21 2010-07-21 北京工业大学 Transcoding method, device and communication equipment
CN104349178A (en) * 2014-11-21 2015-02-11 赛特斯信息科技股份有限公司 System and method for required real-time transcoding and self-adaptive code rate stream media playing
CN104467925A (en) * 2014-12-31 2015-03-25 重庆金瓯科技发展有限责任公司 Dual-mode Bluetooth communication control method and dual-mode Bluetooth communication switching device
CN108847248A (en) * 2018-06-15 2018-11-20 珠海市杰理科技股份有限公司 Bluetooth equipment audio-frequency processing method, system, readable storage medium storing program for executing and bluetooth equipment
CN110619881A (en) * 2019-09-20 2019-12-27 北京百瑞互联技术有限公司 Voice coding method, device and equipment
WO2020133112A1 (en) * 2018-12-27 2020-07-02 华为技术有限公司 Method for automatically switching bluetooth audio encoding method and electronic apparatus
CN113365129A (en) * 2021-08-09 2021-09-07 北京百瑞互联技术有限公司 Bluetooth audio data processing method, transmitter, receiver and transceiving equipment

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080260048A1 (en) * 2004-02-16 2008-10-23 Koninklijke Philips Electronics, N.V. Transcoder and Method of Transcoding Therefore
EP1903559A1 (en) * 2006-09-20 2008-03-26 Deutsche Thomson-Brandt Gmbh Method and device for transcoding audio signals
CN101286770A (en) * 2007-04-09 2008-10-15 艾威梯软件技术(北京)有限公司 Method and system for automatically configuring audio encoding format transmitted by bluetooth A2DP
CN101783142A (en) * 2009-01-21 2010-07-21 北京工业大学 Transcoding method, device and communication equipment
CN104349178A (en) * 2014-11-21 2015-02-11 赛特斯信息科技股份有限公司 System and method for required real-time transcoding and self-adaptive code rate stream media playing
CN104467925A (en) * 2014-12-31 2015-03-25 重庆金瓯科技发展有限责任公司 Dual-mode Bluetooth communication control method and dual-mode Bluetooth communication switching device
CN108847248A (en) * 2018-06-15 2018-11-20 珠海市杰理科技股份有限公司 Bluetooth equipment audio-frequency processing method, system, readable storage medium storing program for executing and bluetooth equipment
WO2020133112A1 (en) * 2018-12-27 2020-07-02 华为技术有限公司 Method for automatically switching bluetooth audio encoding method and electronic apparatus
CN110619881A (en) * 2019-09-20 2019-12-27 北京百瑞互联技术有限公司 Voice coding method, device and equipment
CN113365129A (en) * 2021-08-09 2021-09-07 北京百瑞互联技术有限公司 Bluetooth audio data processing method, transmitter, receiver and transceiving equipment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
A.LOVRICH等: "A multi-rate transcoder", 《IEEE TRANSACTIONS ON CONSUMER ELECTRONICS》 *
崔玉斌等: "数码视讯云转码系统", 《广播电视信息》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114783452A (en) * 2022-06-17 2022-07-22 荣耀终端有限公司 Audio playing method, device and storage medium
CN114783452B (en) * 2022-06-17 2022-12-13 荣耀终端有限公司 Audio playing method, device and storage medium
WO2024001447A1 (en) * 2022-07-01 2024-01-04 哲库科技(上海)有限公司 Audio processing method, chip, apparatus, device, and computer-readable storage medium
CN116013334A (en) * 2023-01-28 2023-04-25 荣耀终端有限公司 Audio data processing method, electronic device and storage medium
CN116013334B (en) * 2023-01-28 2023-08-18 荣耀终端有限公司 Audio data processing method, electronic device and storage medium

Also Published As

Publication number Publication date
CN113689864B (en) 2022-01-18

Similar Documents

Publication Publication Date Title
CN113689864B (en) Audio data processing method and device and storage medium
CN109246672B (en) Data transmission method, device and system and Bluetooth headset
CN108847248B (en) Bluetooth device audio processing method, system, readable storage medium and Bluetooth device
US20110123039A1 (en) System and method for communicating on-board diagnostic information as an audio signal
JP2023134491A (en) Method for operating bluetooth device
US9245529B2 (en) Adaptive encoding of a digital signal with one or more missing values
CN111313984B (en) Testing device and method for various audio codes of Bluetooth headset
CN107749299B (en) Multi-audio output method and device
US8326609B2 (en) Method and apparatus for an audio signal processing
US20240105188A1 (en) Downmixed signal calculation method and apparatus
CN111681663B (en) Method, system, storage medium and device for reducing audio coding computation amount
TWI476759B (en) Devices for encoding and decoding a watermarked signal
US11031021B2 (en) Inter-channel phase difference parameter encoding method and apparatus
CN111681664A (en) Method, system, storage medium and equipment for reducing audio coding rate
CN112489666A (en) Bluetooth LE audio propagation data processing method and device and storage medium
CN112995730A (en) Sound and picture synchronous adjustment method and device, electronic equipment and medium
CN115273869A (en) Audio data transmission method, device, chip, electronic equipment and storage medium
CN102917141A (en) Test method, test device and test system for evaluating voice quality
CN113314133A (en) Audio transmission method and electronic equipment
CN105472509B (en) Audio signal sending, receiving method and device
WO2024001405A1 (en) Audio processing method and apparatus, and chip, electronic device and storage medium
WO2024001447A1 (en) Audio processing method, chip, apparatus, device, and computer-readable storage medium
JP2023510556A (en) Audio encoding and decoding method and audio encoding and decoding device
CN117292697A (en) Voice data compression method and device, electronic equipment and readable storage medium
CN102322928B (en) Electronic scale, mobile equipment, body weight measuring system and wireless transmission method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: A1009, floor 9, block a, No. 9, Shangdi Third Street, Haidian District, Beijing 100085

Patentee after: Beijing Bairui Internet Technology Co.,Ltd.

Address before: A1009, floor 9, block a, No. 9, Shangdi Third Street, Haidian District, Beijing 100085

Patentee before: BARROT WIRELESS Co.,Ltd.

CP01 Change in the name or title of a patent holder