CN109286922B - Bluetooth prompt tone processing method, system, readable storage medium and Bluetooth device - Google Patents

Bluetooth prompt tone processing method, system, readable storage medium and Bluetooth device Download PDF

Info

Publication number
CN109286922B
CN109286922B CN201811131490.3A CN201811131490A CN109286922B CN 109286922 B CN109286922 B CN 109286922B CN 201811131490 A CN201811131490 A CN 201811131490A CN 109286922 B CN109286922 B CN 109286922B
Authority
CN
China
Prior art keywords
data
tone
bluetooth
huffman
coded data
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.)
Active
Application number
CN201811131490.3A
Other languages
Chinese (zh)
Other versions
CN109286922A (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.)
Zhuhai Jieli Technology Co Ltd
Original Assignee
Zhuhai Jieli Technology 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 Zhuhai Jieli Technology Co Ltd filed Critical Zhuhai Jieli Technology Co Ltd
Priority to CN201811131490.3A priority Critical patent/CN109286922B/en
Publication of CN109286922A publication Critical patent/CN109286922A/en
Application granted granted Critical
Publication of CN109286922B publication Critical patent/CN109286922B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • 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
    • 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/02Speech 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 spectral analysis, e.g. transform vocoders or subband vocoders
    • G10L19/0204Speech 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 spectral analysis, e.g. transform vocoders or subband vocoders using subband decomposition

Landscapes

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

Abstract

The invention relates to a Bluetooth prompt tone processing method, a system, a readable storage medium and Bluetooth equipment, belonging to the technical field of audio processing. The Huffman coded data can be coded data with high compression rate so as to reduce storage cost, the Huffman coded data can be decoded through a standard coding rule without setting a special decoder, audio decoding is further carried out on the obtained decoded data so as to obtain prompt tone data for subsequent playing, and because Bluetooth equipment capable of playing the prompt tone is generally provided with an audio coding and decoding module, the development and design workload of prompt tone processing and the cost of the Bluetooth equipment are greatly reduced.

Description

Bluetooth prompt tone processing method, system, readable storage medium and Bluetooth device
Technical Field
The invention relates to the technical field of audio processing, in particular to a Bluetooth prompt tone processing method, a Bluetooth prompt tone processing system, a readable storage medium and Bluetooth equipment.
Background
Bluetooth is a wireless technology standard, can realize the short distance data exchange of large capacity between fixed equipment, mobile device and the personal area network, and simultaneously Bluetooth also has the characteristics of low cost and low power consumption. Therefore, bluetooth is widely used in various electronic consumer products, such as bluetooth technology used in mobile phones, cameras, video cameras, PCs, televisions, etc., to form bluetooth high-speed technology for video, music and picture transmission; and bluetooth low energy technology for low power sensing devices and new web services for healthcare, personal device, automotive and automation industries. And various intelligence that use the bluetooth agreement as the communication basis is worn, intelligent household equipment is getting into people's life fast, for example bluetooth bracelet, bluetooth headset, bluetooth speaker, bluetooth are on-vehicle, bluetooth lamp, bluetooth control etc. bluetooth equipment, bluetooth control system.
In order to facilitate the user to use the bluetooth device, the bluetooth device generally has a function of an alert tone. Such as alert tones during a bluetooth connection: bluetooth ready, bluetooth connected, bluetooth disconnected, etc.; prompt tone in the use process of the Bluetooth device: please prompt a bluetooth device tone such as your ready, start, end, what your heart rate is, what your blood pressure is, etc. The richer the warning tone, the more convenient the user uses, and the storage of data must be increased to a large amount of warning tones, just need to compress data in order to reduce the storage cost, and the data after compressing need corresponding decoder again when using, and it will increase work load and increase the cost of bluetooth equipment to develop a set of decoder and playback system completely in bluetooth equipment.
Disclosure of Invention
Therefore, it is necessary to provide a bluetooth alert tone processing method, a bluetooth alert tone processing system, a readable storage medium, and a bluetooth device, for the problem that the amount of alert tone data of the bluetooth device is large, and the process of compressing, decoding, and playing the alert tone data increases the cost of the bluetooth device.
A Bluetooth prompt tone processing method comprises the following steps:
acquiring original data of all prompt tones of the Bluetooth equipment, and preprocessing the original data, wherein the preprocessing comprises mute cutting, energy and frequency equalization and loudness optimization;
carrying out sub-band decomposition and quantization processing on the preprocessed data, constructing a Huffman table on the quantized data, and carrying out Huffman coding and bit stream processing on the quantized data according to the Huffman table to obtain coded data of the prompt tone;
acquiring target coded data from coded data of the cue tone, and acquiring decoded data according to the target coded data;
and carrying out inverse quantization processing on the decoded data, transmitting the data after inverse quantization to a sub-band synthesis part of the Bluetooth SBC decoding module, and acquiring cue tone data.
According to the Bluetooth prompt tone processing method, original data of all prompt tones of the Bluetooth equipment are obtained, the original data are preprocessed, sub-band decomposition, quantization processing and Huffman coding are carried out to obtain coded data of the prompt tones, target coded data are obtained from the coded data, then decoded data are obtained, and audio decoding is carried out on the decoded data to obtain the prompt tone data. In the method, the Huffman coded data can be coded data with high compression rate so as to reduce storage cost, the Huffman coded data can be decoded through a standard coding rule without setting a special decoder, the obtained decoded data can not be directly played, and audio decoding is further carried out to obtain prompt tone data so as to be played later.
In one embodiment, the step of obtaining the target encoded data from the encoded data of the alert tone comprises the steps of:
and acquiring a prompt tone index to be played, and acquiring target coded data from the coded data of the prompt tone according to the prompt tone index.
In one embodiment, the step of obtaining the decoded data from the target encoded data comprises the steps of:
and carrying out bit stream analysis and Huffman decoding on the target coded data to obtain decoded data.
In one embodiment, the step of obtaining cue tone data comprises the steps of:
and performing SBC sub-band synthesis on the inversely quantized data to obtain cue tone data, and playing the cue tone data.
In one embodiment, the method further comprises the following steps before the step of obtaining the target encoding data:
the coded data of the warning tone is stored in a memory, and an index table of the warning tone is established according to the coded data of the warning tone.
In one embodiment, the step of huffman coding the quantized data by the huffman table comprises the steps of:
and acquiring a Huffman index table, and performing Huffman coding on the quantized data in the Huffman table according to the Huffman index table.
A bluetooth alert tone processing system comprising:
the data preprocessing unit is used for acquiring original data of all prompt tones of the Bluetooth equipment and preprocessing the original data, wherein the preprocessing comprises silence cutting, energy and frequency equalization and loudness optimization;
the coding processing unit is used for carrying out sub-band decomposition and quantization processing on the preprocessed data, constructing a Huffman table on the quantized data, and carrying out Huffman coding and bit stream processing on the quantized data according to the Huffman table to obtain coded data of the prompt tone;
the data decoding unit is used for acquiring target coded data from the coded data of the cue tone and acquiring decoded data according to the target coded data;
and the audio processing unit is used for carrying out inverse quantization processing on the decoded data, transmitting the inverse quantized data to a sub-band synthesis part of the Bluetooth SBC decoding module, and acquiring cue tone data.
According to the Bluetooth prompt tone processing system, the data preprocessing unit acquires original data of all prompt tones of the Bluetooth equipment, the original data are preprocessed, the coding processing unit performs sub-band decomposition, quantization processing and Huffman coding to obtain coded data of the prompt tones, the data decoding unit acquires target coded data from the coded data to obtain decoded data, and the audio processing unit performs audio decoding on the decoded data to obtain the prompt tone data. In the system, the Huffman coded data can be coded data with high compression rate, so that the storage cost is reduced, the Huffman coded data can be decoded through a standard coding rule, a special decoder is not required to be arranged, the obtained decoded data can not be directly played, audio decoding is further required to be carried out, prompt tone data is obtained, and the prompt tone data is convenient to play subsequently.
In one embodiment, the data decoding unit obtains an alert tone index to be played, and obtains target encoded data from encoded data of an alert tone according to the alert tone index.
In one embodiment, the data decoding unit performs bitstream parsing and huffman decoding on the target encoded data to obtain decoded data.
In one embodiment, the audio processing unit performs SBC subband synthesis on the inverse quantized data to obtain cue tone data, and plays the cue tone data.
In one embodiment, the encoding processing unit stores the encoded data of the alert tone in a memory and creates an index table of the alert tone based on the encoded data of the alert tone.
In one embodiment, the encoding processing unit obtains a huffman index table, and performs huffman encoding on quantized data in the huffman table according to the huffman index table.
A readable storage medium having stored thereon an executable program which, when executed by a processor, performs the steps of the above-described bluetooth alert tone processing method.
The readable storage medium can store executable programs, the Huffman coded data can be coded data with high compression rate to reduce storage cost, the Huffman coded data can be decoded through standard coding rules, a special decoder is not needed to be arranged, the obtained decoded data can not be directly played, audio decoding is needed to be further carried out, prompt tone data are obtained to be played later, and the Bluetooth equipment capable of playing the prompt tone is generally provided with a self-used audio coding and decoding module.
The Bluetooth device comprises a memory and a processor, wherein the memory stores an executable program, and the processor realizes the steps of the Bluetooth prompt tone processing method when executing the executable program.
Above-mentioned bluetooth equipment, through running executable program on the treater, huffman coded data can be the coded data of high compression ratio, in order to reduce the storage cost, and can decode huffman code through the encoding rule of standard, need not to set up dedicated decoder, the decoded data that obtains can not directly broadcast, still need further audio decoding, obtain the cue tone data, so that continue to broadcast later, because the bluetooth equipment that can broadcast the cue tone generally all is equipped with self-service audio encoding and decoding module, consequently, adopt the existing module cooperation of bluetooth equipment in this scheme just can obtain the cue tone data with above-mentioned flow, need not special development decoder, greatly reduced the development design work load and the cost of bluetooth equipment that the cue tone was handled.
Drawings
FIG. 1 is a diagram showing an exemplary embodiment of a Bluetooth alert tone processing method;
FIG. 2 is a flow diagram illustrating a method for processing Bluetooth alert tones in one embodiment;
FIG. 3 is a schematic diagram of a Bluetooth (R) alert tone processing system in one embodiment;
FIG. 4 is a flow diagram of the processing of raw data for an alert tone for a Bluetooth device in one embodiment;
figure 5 is a schematic flow diagram of SBC decoding for a bluetooth device in one embodiment;
FIG. 6 is a flowchart illustrating the control of an alert tone for a Bluetooth device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the detailed description and specific examples, while indicating the scope of the invention, are intended for purposes of illustration only and are not intended to limit the scope of the invention. It should be further noted that, for the convenience of description, only some but not all of the relevant aspects of the present invention are shown in the drawings.
The Bluetooth prompt tone processing method provided by the application can be applied to the application environment shown in FIG. 1. The Bluetooth device communicates with other communication devices, and can send various prompt tones in the communication process, before the prompt tones are sent, variable word length coded data of the prompt tones of the Bluetooth device can be acquired, decoded data is acquired according to the variable word length coded data, audio decoding is carried out on the decoded data, the prompt tone data is acquired, and the prompt tone data can be processed and played. The bluetooth device may be various devices having bluetooth communication and audio playing functions, such as a personal computer, a notebook computer, a palm computer, a smart phone, a tablet computer, a portable wearable device, a bluetooth speaker, and the like.
Fig. 2 is a schematic flow chart of a bluetooth alert tone processing method according to an embodiment of the present invention. The bluetooth prompt tone processing method in the embodiment comprises the following steps:
step S110: acquiring original data of all prompt tones of the Bluetooth equipment, and preprocessing the original data, wherein the preprocessing comprises mute cutting, energy and frequency equalization and loudness optimization;
in the step, the original data is preprocessed, so that the original data is optimized and the subsequent processing is facilitated;
further, the preprocessing can also comprise the preprocessing of the warning tone, the processing of warning tone cutting, noise reduction, frequency response control, framing and the like, the data of the warning tone can be optimized through the preprocessing, and the preparation of coding is well made;
step S120: carrying out sub-band decomposition and quantization processing on the preprocessed data, constructing a Huffman table on the quantized data, and carrying out Huffman coding and bit stream processing on the quantized data according to the Huffman table to obtain coded data of the prompt tone;
in the step, the Huffman coding can realize the compression of the original data, has higher compression ratio, obtains the coded data with small space occupation, and saves the storage space; the sub-band decomposition is consistent with the sub-band decomposition of the Bluetooth SBC coding, the quantization process can be linear quantization, nonlinear quantization and the like for the Bluetooth SBC coding standard, the SBC sub-band decomposition and quantization can be convenient for decoding by using an SBC decoding module of the Bluetooth device during the subsequent prompt tone audio decoding, the Bluetooth device resources are reasonably utilized, and the hardware cost is reduced.
Step S130: acquiring target coded data from coded data of the cue tone, and acquiring decoded data according to the target coded data;
in this step, the coded data includes all the data of the warning tone, can choose the target coded data from it, the target coded data corresponds to the necessary warning tone;
step S140: carrying out inverse quantization processing on the decoded data, transmitting the data after inverse quantization to a sub-band synthesis part of a Bluetooth SBC decoding module, and acquiring cue tone data;
in this step, the decoded data is not standard audio data, and inverse quantization and subband synthesis are required to obtain cue tone data.
In this embodiment, the original data of all the alert tones of the bluetooth device is obtained, the original data is preprocessed, sub-band decomposition, quantization processing, and huffman coding are performed to obtain encoded data of the alert tones, target encoded data is obtained from the encoded data, decoded data is obtained, and audio decoding is performed on the decoded data to obtain the alert tone data. In the method, the Huffman coded data can be coded data with high compression rate so as to reduce storage cost, the Huffman coded data can be decoded through a standard coding rule without setting a special decoder, the obtained decoded data can not be directly played, and audio decoding is further carried out to obtain prompt tone data so as to be played later.
It should be noted that, after obtaining the alert tone data, the alert tone data may be subjected to a play preparation process, and played by a playing device of the bluetooth apparatus.
In one embodiment, the step of obtaining the target encoded data from the encoded data of the alert tone comprises the steps of:
and acquiring a prompt tone index to be played, and acquiring target coded data from the coded data of the prompt tone according to the prompt tone index.
In this embodiment, when it is determined that a certain alert tone needs to be played, the alert tone index to be played is obtained, and the alert tone index can be used to quickly obtain target encoded data from the encoded data of the alert tone, that is, the encoded data corresponding to the desired alert tone, so as to speed up the processing procedure of the alert tone.
Furthermore, bluetooth equipment relates to multiple different warning tone in practical application, and multiple different warning tone corresponds multiple different coded data, and when warning tone quantity was more, the index can simply obtain the coded data that the warning tone that needs to play corresponds conveniently, need not to load all coded data and selects again for the process of obtaining the coded data of warning tone, can reduce the buffer memory space that corresponds, thereby promotes bluetooth equipment's performance.
In one embodiment, the step of obtaining decoded data from the target encoded data comprises the steps of:
and carrying out bit stream analysis and Huffman decoding on the target coded data to obtain decoded data.
In the embodiment, the Huffman coding constructs the code word with the shortest average length of the special character header according to the character occurrence probability, ensures that the code length is distributed according to the character occurrence probability, can make the average code length shortest, and can improve the compression rate of the prompt tone data; after the Huffman coded data is obtained, bit stream analysis and Huffman decoding can be carried out on the Huffman coded data, the process mainly carries out analysis on the Huffman coded data so as to obtain decoded data, and the process of decoding the Huffman coded data does not need a special decoder because the processing of audio in the Bluetooth equipment also relates to bit stream analysis and the like, so that the Huffman coded data decoding process is easy to realize in the Bluetooth equipment.
Further, the huffman coded data may further include a frame synchronization flag or a CRC check code, where the frame synchronization flag may be used for frame synchronization during the cue audio processing, and the CRC check code may check the correctness and integrity of the cue audio data.
In one embodiment, the step of obtaining cue tone data comprises the steps of:
and performing SBC sub-band synthesis on the inversely quantized data to obtain cue tone data, and playing the cue tone data.
In this embodiment, SBC subband synthesis is performed on the inverse quantized data to obtain alert tone data, and the alert tone may be used for playing; the SBC decoding process can be generally realized by the Bluetooth equipment, SBC sub-band synthesis can be carried out in the SBC decoding process of the Bluetooth equipment, the original functions of the Bluetooth equipment are reasonably utilized, and the cost of the Bluetooth equipment is reduced.
Further, the specific process of playing the cue tone data may be: the prompt tone data is converted into time domain PCM (Pulse Code Modulation) data, the time domain PCM data is sent to a DAC (Digital to analog converter) device of the Bluetooth equipment, and the DAC device can directly play the decoded time domain PCM data.
In one embodiment, the step of obtaining target encoding data further comprises the following steps:
the coded data of the warning tone is stored in a memory, and an index table of the warning tone is established according to the coded data of the warning tone.
In this embodiment, before the alert tone is used, the encoded data of the alert tone may be stored in a memory, and in practical applications, the encoded data may be directly obtained from the memory, thereby avoiding encoding the alert tone each time; when new cue tone data needs to be added, new coded data can be obtained in the above mode, and corresponding matters are added in the index table, so that adjustment, increase and decrease of cue tones are facilitated.
In one embodiment, the step of huffman coding the quantized data by the huffman table comprises the steps of:
and acquiring a Huffman index table, and performing Huffman coding on the quantized data in the Huffman table according to the Huffman index table.
In this embodiment, the specific processing method of huffman coding is as follows: and constructing a Huffman table by all the used data after the quantization of the cue tone to obtain a Huffman index table, and carrying out Huffman coding on the quantized corresponding data by using the Huffman index table to complete the compression of the cue tone data.
Furthermore, a corresponding Huffman index table can be established according to the Huffman coding standard; and after obtaining the Huffman coded data, carrying out bit stream encapsulation, adding a frame synchronization mark and adding a CRC check code according to needs to finally obtain coded data, and then constructing prompt tone index information (which can be an index table) from different prompt tone data so as to conveniently extract corresponding prompt tone coded data according to needs.
According to the above bluetooth alert tone processing method, an embodiment of the present invention further provides a bluetooth alert tone processing system, and the following describes an embodiment of the bluetooth alert tone processing system in detail.
Fig. 3 is a schematic structural diagram of a bluetooth alert tone processing system according to an embodiment of the present invention. The bluetooth alert tone processing system in this embodiment includes:
the data preprocessing unit 210 is configured to obtain raw data of all alert tones of the bluetooth device, and preprocess the raw data, where the preprocessing includes mute cutting, energy and frequency equalization, and loudness optimization;
the encoding processing unit 220 is configured to perform subband decomposition and quantization processing on the preprocessed data, construct a huffman table for the quantized data, and perform huffman encoding and bit stream processing on the quantized data according to the huffman table to obtain encoded data of the prompt tone;
a data decoding unit 230 configured to acquire target encoded data from the encoded data of the alert tone, and acquire decoded data from the target encoded data;
and the audio processing unit 240 is configured to perform inverse quantization processing on the decoded data, transmit the inverse quantized data to a sub-band synthesis part of the bluetooth SBC decoding module, and acquire cue tone data.
In this embodiment, the data preprocessing unit 210 obtains original data of all alert tones of the bluetooth device, preprocesses the original data, the coding processing unit 220 performs subband decomposition, quantization processing, and huffman coding to obtain coded data of the alert tones, the data decoding unit 230 obtains target coded data from the coded data to obtain decoded data, and the audio processing unit 240 performs audio decoding on the decoded data to obtain alert tone data. In the system, the Huffman coded data can be coded data with high compression rate, so that the storage cost is reduced, the Huffman coded data can be decoded through a standard coding rule, a special decoder is not required to be arranged, the obtained decoded data can not be directly played, audio decoding is further required to be carried out, prompt tone data is obtained, and the prompt tone data is convenient to play subsequently.
In one embodiment, the data decoding unit 230 obtains an alert tone index to be played, and obtains target encoded data from encoded data of an alert tone according to the alert tone index.
In one embodiment, the data decoding unit 230 performs bitstream parsing and huffman decoding on the target encoded data to obtain decoded data.
In one embodiment, the audio processing unit 240 performs SBC sub-band synthesis on the inverse quantized data to obtain cue tone data, and plays the cue tone data.
In one embodiment, the encoding processing unit 220 stores the encoded data of the alert tone in a memory and creates an index table of the alert tone based on the encoded data of the alert tone.
In one embodiment, the encoding processing unit 220 obtains a huffman index table, and performs huffman encoding on the quantized data in the huffman table according to the huffman index table.
The bluetooth prompt tone processing system of the present invention corresponds to the bluetooth prompt tone processing method of the present invention, and the technical features and the advantageous effects thereof described in the embodiments of the bluetooth prompt tone processing method are applicable to the embodiments of the bluetooth prompt tone processing system.
According to the above bluetooth alert tone processing method, an embodiment of the present invention further provides a readable storage medium and a bluetooth device.
A readable storage medium having stored thereon an executable program which, when executed by a processor, performs the steps of the above-described bluetooth alert tone processing method.
The readable storage medium can store executable programs, the Huffman coded data can be coded data with high compression rate to reduce storage cost, the Huffman coded data can be decoded through standard coding rules, a special decoder is not needed to be arranged, the obtained decoded data can not be directly played, audio decoding is needed to be further carried out, prompt tone data are obtained to be played later, and the Bluetooth equipment capable of playing the prompt tone is generally provided with a self-used audio coding and decoding module.
The Bluetooth device comprises a memory and a processor, wherein the memory stores an executable program, and the processor realizes the steps of the Bluetooth prompt tone processing method when executing the executable program.
Above-mentioned bluetooth equipment, through running executable program on the treater, huffman coded data can be the coded data of high compression ratio, in order to reduce the storage cost, and can decode huffman code through the encoding rule of standard, need not to set up dedicated decoder, the decoded data that obtains can not directly broadcast, still need further audio decoding, obtain the cue tone data, so that continue to broadcast later, because the bluetooth equipment that can broadcast the cue tone generally all is equipped with self-service audio encoding and decoding module, consequently, adopt the existing module cooperation of bluetooth equipment in this scheme just can obtain the cue tone data with above-mentioned flow, need not special development decoder, greatly reduced the development design work load and the cost of bluetooth equipment that the cue tone was handled.
It will be understood by those skilled in the art that all or part of the processes in the methods for implementing the above embodiments may be implemented by using a computer program to instruct related hardware, and the program may be stored in a non-volatile computer readable storage medium, for example, in the embodiments, the program may be stored in a storage medium of a computer system and executed by at least one processor in the computer system to implement the processes including the embodiments of the bluetooth alert tone processing method as described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
In one embodiment, the bluetooth alert tone processing method may be applied to a bluetooth device, and the bluetooth device may be a personal computer, a notebook computer, a palm computer, a smart phone, a tablet computer, a portable wearable device, a bluetooth speaker, or the like.
As shown in fig. 4, all the required alert tone raw data are sequentially subjected to preprocessing, SBC subband decomposition, quantization, huffman coding and bit stream processing to obtain compressed coded data;
specifically, the preprocessing process comprises processing flows of silence cutting, energy and frequency equalization, loudness optimization, prompt tone early preparation, prompt tone cutting, noise reduction, frequency response control, framing and the like, the SBC sub-band decomposition is consistent with the sub-band decomposition of Bluetooth SBC coding, the quantization process can be linear quantization, nonlinear quantization and the like, the specific processing method of the Huffman coding comprises the steps of constructing a Huffman table by all the used data after the prompt tone quantization, establishing a corresponding Huffman index table according to the Huffman coding standard, carrying out Huffman coding on the quantized corresponding data by using the Huffman index table, finally carrying out bit stream packaging on the Huffman coding data, adding a frame synchronization mark and adding a CRC (cyclic redundancy check) code according to needs, finally obtaining the coding data, and constructing the prompt tone index information by using different prompt tone data, and extracting corresponding prompt tone coding data according to the requirement.
The SBC decoding process of the Bluetooth device is as shown in FIG. 5, the Bluetooth SBC encoded data is obtained through the Bluetooth data receiver, the SBC decoder decodes SBC data header information and bit stream information in sequence, then inverse quantization and stereo processing are performed, finally SBC sub-band synthesis operation is performed to obtain decoded SBC data, the decoded SBC data is provided for the playing control module, and finally the Bluetooth SBC data is played through the DAC module.
As shown in fig. 6, the prompt tone control processing flow in the bluetooth device obtains compressed data corresponding to the prompt tone from the stored prompt tone data according to the prompt tone index to be played, then performs bitstream parsing, huffman decoding, and dequantization to obtain dequantized prompt tone data, transfers the dequantized prompt tone data to the SBC decoding flow in the bluetooth device, continues SBC subband synthesis operation, and performs subsequent play control and DAC output.
The embodiment of the invention not only fully utilizes the characteristic that the prompt tone data sample is limited and controllable, and utilizes relatively known data to construct the Huffman table to achieve the purpose of high data compression, but also fully utilizes the SBC decoding module, the play control module and the DAC module owned by the Bluetooth equipment to realize the decoding process of the prompt tone data, thereby greatly reducing the development and design workload and the cost of the Bluetooth equipment with the prompt tone.
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
Those skilled in the art will appreciate that all or part of the steps in the method for implementing the above embodiments may be implemented by a program instructing the relevant hardware. The program may be stored in a computer-readable storage medium. Which when executed comprises the steps of the method described above. The storage medium includes: ROM/RAM, magnetic disk, optical disk, etc.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A Bluetooth prompt tone processing method is characterized by comprising the following steps:
acquiring original data of all prompt tones of the Bluetooth equipment, and preprocessing the original data, wherein the preprocessing comprises mute cutting, energy and frequency equalization and loudness optimization;
carrying out sub-band decomposition and quantization processing on the preprocessed data, constructing a Huffman table on the quantized data, and carrying out Huffman coding and bit stream processing on the quantized data according to the Huffman table to obtain coded data of the prompt tone; the sub-band decomposition is consistent with the sub-band decomposition of the Bluetooth SBC code;
acquiring target coded data from the coded data of the prompt tone, and acquiring decoded data according to the target coded data;
carrying out inverse quantization processing on the decoded data, transmitting the inverse quantized data to a sub-band synthesis part of a Bluetooth SBC decoding module, and acquiring cue tone data;
the step of obtaining the cue tone data comprises the following steps:
and performing SBC sub-band synthesis on the inversely quantized data to obtain the cue tone data, and playing the cue tone data.
2. The bluetooth alert tone processing method according to claim 1, wherein the step of obtaining target encoded data from the encoded data of the alert tone comprises the steps of:
and acquiring a prompt tone index to be played, and acquiring the target coded data from the coded data of the prompt tone according to the prompt tone index.
3. The bluetooth alert tone processing method according to claim 1, wherein the step of obtaining the decoded data from the target encoded data comprises the steps of:
and carrying out bit stream analysis and Huffman decoding on the target coded data to obtain the decoded data.
4. The bluetooth alert tone processing method according to claim 1, further comprising, before the step of obtaining target encoded data from the encoded data of the alert tone, the steps of:
and storing the coded data of the prompt tone in a memory, and establishing an index table of the prompt tone according to the coded data of the prompt tone.
5. The method of claim 4, wherein the Huffman table Huffman-coding the quantized data comprises:
and acquiring a Huffman index table, and performing Huffman coding on the quantized data in the Huffman index table according to the Huffman index table.
6. A bluetooth alert tone processing system, comprising:
the data preprocessing unit is used for acquiring original data of all prompt tones of the Bluetooth equipment and preprocessing the original data, wherein the preprocessing comprises silence cutting, energy and frequency equalization and loudness optimization;
the coding processing unit is used for carrying out sub-band decomposition and quantization processing on the preprocessed data, constructing a Huffman table on the quantized data, and carrying out Huffman coding and bit stream processing on the quantized data according to the Huffman table to obtain coded data of the prompt tone; the sub-band decomposition is consistent with the sub-band decomposition of the Bluetooth SBC code;
the data decoding unit is used for acquiring target coded data from the coded data of the prompt tone and acquiring decoded data according to the target coded data;
the audio processing unit is used for carrying out inverse quantization processing on the decoded data, transmitting the inverse quantized data to a sub-band synthesis part of a Bluetooth SBC decoding module and acquiring cue tone data;
and the audio processing unit is also used for carrying out SBC sub-band synthesis on the data after inverse quantization to obtain cue tone data and playing the cue tone data.
7. The bluetooth alert tone processing system according to claim 6, wherein the data decoding unit is further configured to obtain an alert tone index to be played, and obtain the target encoded data from the encoded data of the alert tone according to the alert tone index.
8. The bluetooth alert tone processing system according to claim 6, wherein the data decoding unit is further configured to perform bitstream parsing and huffman decoding on the target encoded data to obtain the decoded data.
9. A readable storage medium having stored thereon an executable program, wherein the executable program, when executed by a processor, implements the steps of the bluetooth alert tone processing method of any one of claims 1 to 5.
10. A Bluetooth device comprising a memory and a processor, the memory storing an executable program, wherein the processor when executing the executable program implements the steps of the Bluetooth alert tone processing method of any of claims 1 to 5.
CN201811131490.3A 2018-09-27 2018-09-27 Bluetooth prompt tone processing method, system, readable storage medium and Bluetooth device Active CN109286922B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811131490.3A CN109286922B (en) 2018-09-27 2018-09-27 Bluetooth prompt tone processing method, system, readable storage medium and Bluetooth device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811131490.3A CN109286922B (en) 2018-09-27 2018-09-27 Bluetooth prompt tone processing method, system, readable storage medium and Bluetooth device

Publications (2)

Publication Number Publication Date
CN109286922A CN109286922A (en) 2019-01-29
CN109286922B true CN109286922B (en) 2021-09-17

Family

ID=65181933

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811131490.3A Active CN109286922B (en) 2018-09-27 2018-09-27 Bluetooth prompt tone processing method, system, readable storage medium and Bluetooth device

Country Status (1)

Country Link
CN (1) CN109286922B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024087001A1 (en) * 2022-10-25 2024-05-02 哲库科技(上海)有限公司 Bluetooth encoding method and apparatus, bluetooth decoding method and apparatus, and device and medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101222793A (en) * 2008-01-25 2008-07-16 中兴通讯股份有限公司 Method and system for regulating Bluetooth stereo acoustic quality
CN101872551A (en) * 2009-04-24 2010-10-27 北京华旗资讯数码科技有限公司 Method for controlling voice promoting device with code
CN102081926A (en) * 2009-11-27 2011-06-01 中兴通讯股份有限公司 Method and system for encoding and decoding lattice vector quantization audio
WO2014091694A1 (en) * 2012-12-13 2014-06-19 パナソニック株式会社 Voice audio encoding device, voice audio decoding device, voice audio encoding method, and voice audio decoding method
CN105103222A (en) * 2013-03-29 2015-11-25 苹果公司 Metadata for loudness and dynamic range control
EP2946384B1 (en) * 2013-01-18 2016-11-02 Fraunhofer-Gesellschaft zur Förderung der angewandten Forschung e.V. Time domain level adjustment for audio signal decoding or encoding

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE60039546D1 (en) * 2000-05-17 2008-08-28 Symstream Technology Holdings Method and device for transmitting data communication in speech frames by means of octave pulse data coding / decoding
CN100364235C (en) * 2004-09-17 2008-01-23 广州广晟数码技术有限公司 Apparatus and methods for multichannel digital audio coding
CN100489964C (en) * 2006-08-18 2009-05-20 广州广晟数码技术有限公司 Audio encoding
WO2012144127A1 (en) * 2011-04-20 2012-10-26 パナソニック株式会社 Device and method for execution of huffman coding

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101222793A (en) * 2008-01-25 2008-07-16 中兴通讯股份有限公司 Method and system for regulating Bluetooth stereo acoustic quality
CN101872551A (en) * 2009-04-24 2010-10-27 北京华旗资讯数码科技有限公司 Method for controlling voice promoting device with code
CN102081926A (en) * 2009-11-27 2011-06-01 中兴通讯股份有限公司 Method and system for encoding and decoding lattice vector quantization audio
WO2014091694A1 (en) * 2012-12-13 2014-06-19 パナソニック株式会社 Voice audio encoding device, voice audio decoding device, voice audio encoding method, and voice audio decoding method
EP2946384B1 (en) * 2013-01-18 2016-11-02 Fraunhofer-Gesellschaft zur Förderung der angewandten Forschung e.V. Time domain level adjustment for audio signal decoding or encoding
CN105103222A (en) * 2013-03-29 2015-11-25 苹果公司 Metadata for loudness and dynamic range control

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
《基于DSP的数字音频处理系统的设计与实现》;董志刚;《中国优秀硕士学位论文全文数据库》;20090131;4.2.2节 *

Also Published As

Publication number Publication date
CN109286922A (en) 2019-01-29

Similar Documents

Publication Publication Date Title
US10089997B2 (en) Method for predicting high frequency band signal, encoding device, and decoding device
WO2020037810A1 (en) Bluetooth-based audio transmission method and system, audio playing device and computer-readable storage medium
CN108847248B (en) Bluetooth device audio processing method, system, readable storage medium and Bluetooth device
CN103532936A (en) Bluetooth audio self-adaption transmission method
CN103560836A (en) Sound wave wireless communication method and device
CN113223539B (en) Audio transmission method and electronic equipment
CN110782907B (en) Voice signal transmitting method, device, equipment and readable storage medium
CN112995730A (en) Sound and picture synchronous adjustment method and device, electronic equipment and medium
CN109286922B (en) Bluetooth prompt tone processing method, system, readable storage medium and Bluetooth device
CN113314133A (en) Audio transmission method and electronic equipment
CN110351419B (en) Intelligent voice system and voice processing method thereof
CN111885412B (en) HDMI signal screen transmission method and wireless screen transmission device
JP5437505B2 (en) Audio and speech processing with optimal bit allocation for stationary bit rate applications
CN112565923A (en) Audio and video stream processing method and device, electronic equipment and storage medium
US11323803B2 (en) Earphone, earphone system, and method in earphone system
CN116055951B (en) Signal processing method and electronic equipment
US11581002B2 (en) Communication method, apparatus, and system for digital enhanced cordless telecommunications (DECT) base station
CN112804613A (en) Bone conduction communication device
CN109150400B (en) Data transmission method and device, electronic equipment and computer readable medium
US20220115024A1 (en) Apparatus, Methods, and Computer Programs for Encoding Spatial Metadata
CN106656353B (en) Information transmission method and device applied to intelligent robot
CN107680607B (en) Signal compression method, signal decompression method and device thereof
US20240112688A1 (en) Audio compression device, audio compression system, and audio compression method
CN217643695U (en) Intelligent wireless sound card
CN113055713B (en) Video image super-division method and device, storage medium and electronic equipment

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
CB02 Change of applicant information

Address after: 519000 No. 333, Kexing Road, Xiangzhou District, Zhuhai City, Guangdong Province

Applicant after: ZHUHAI JIELI TECHNOLOGY Co.,Ltd.

Address before: Floor 1-107, building 904, ShiJiHua Road, Zhuhai City, Guangdong Province

Applicant before: ZHUHAI JIELI TECHNOLOGY Co.,Ltd.

CB02 Change of applicant information