CN108966197A - Audio frequency transmission method, system, audio-frequence player device and computer readable storage medium based on bluetooth - Google Patents
Audio frequency transmission method, system, audio-frequence player device and computer readable storage medium based on bluetooth Download PDFInfo
- Publication number
- CN108966197A CN108966197A CN201810946308.3A CN201810946308A CN108966197A CN 108966197 A CN108966197 A CN 108966197A CN 201810946308 A CN201810946308 A CN 201810946308A CN 108966197 A CN108966197 A CN 108966197A
- Authority
- CN
- China
- Prior art keywords
- audio
- bluetooth
- audio data
- frequence player
- player device
- 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.)
- Pending
Links
- 230000005540 biological transmission Effects 0.000 title claims abstract description 38
- 238000000034 method Methods 0.000 title claims abstract description 32
- 238000012545 processing Methods 0.000 claims description 11
- 238000004590 computer program Methods 0.000 claims description 5
- 238000005265 energy consumption Methods 0.000 abstract 1
- 230000008569 process Effects 0.000 description 8
- 230000006854 communication Effects 0.000 description 6
- 230000006870 function Effects 0.000 description 6
- 230000005236 sound signal Effects 0.000 description 6
- 238000004891 communication Methods 0.000 description 5
- 238000013139 quantization Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 230000008901 benefit Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000015572 biosynthetic process Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 238000010276 construction Methods 0.000 description 2
- 238000012937 correction Methods 0.000 description 2
- 230000003111 delayed effect Effects 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 230000018109 developmental process Effects 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000009434 installation Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 230000011218 segmentation Effects 0.000 description 2
- 230000004913 activation Effects 0.000 description 1
- 230000003044 adaptive effect Effects 0.000 description 1
- 230000006835 compression Effects 0.000 description 1
- 238000007906 compression Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 210000005069 ears Anatomy 0.000 description 1
- 235000013399 edible fruits Nutrition 0.000 description 1
- 239000000284 extract Substances 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 238000005070 sampling Methods 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 238000003786 synthesis reaction Methods 0.000 description 1
- 230000002194 synthesizing effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10L—SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
- G10L19/00—Speech 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
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10L—SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
- G10L19/00—Speech 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/008—Multichannel audio signal coding or decoding using interchannel correlation to reduce redundancy, e.g. joint-stereo, intensity-coding or matrixing
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Health & Medical Sciences (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- Acoustics & Sound (AREA)
- Multimedia (AREA)
- Computer Networks & Wireless Communication (AREA)
- Mathematical Physics (AREA)
- Mobile Radio Communication Systems (AREA)
- Telephone Function (AREA)
Abstract
The present invention provides a kind of audio frequency transmission method based on bluetooth, system, audio-frequence player device and computer readable storage mediums.Audio frequency transmission method based on bluetooth, comprising the following steps: S100: the audio frame of audio to be played is obtained;S200: audio frame is read, and audio frame is intercepted to form an audio data;S300: to audio data coding, and audio data is sent to application module;S400: application module sends audio data to audio-frequence player device based on the low power consumption protocol of bluetooth.After adopting the above technical scheme, intelligent terminal is supported to connect multiple audio-frequence player devices in synchronization, user is facilitated to share single audio frequency stream to multi-user, and audio data propagation delay time is small late, it is low in energy consumption.
Description
Technical field
The present invention relates to Streaming Media process field more particularly to a kind of audio frequency transmission methods based on bluetooth, system, audio
Playback equipment and computer readable storage medium.
Background technique
With the fast development of intelligent terminal, user also more increases the function of configuration needed for intelligent terminal.For example, being permitted
Multi-user is no longer confined to the communication functions such as phone, message to the use of intelligent terminal, and extends laterally to the reception of Streaming Media, such as
Watch video, listen to audio etc..Simultaneously with the synchronized development of audio-frequence player device, has many audio-frequence player devices and be produced
Can still to possess certain audio fidelity function while compact.Therefore, more and more users' use can support bluetooth
After the audio-frequence player device and intelligent terminal bluetooth wireless connection of agreement, the audio of intelligent terminal transmission is received.
The audio-frequence player device that support and intelligent terminal are wirelessly connected by Bluetooth protocol used at present, such as bluetooth ear
Machine etc., when receiving audio stream, still using the communication mode of classical Bluetooth protocol, classical bluetooth classics are based on bluetooth module
(BT), it is often referred to support the version of Bluetooth protocol in 4.0 modules below, is generally used for the bigger transmission of data volume.It is classical
Bluetooth can be sub-divided into: conventional Bluetooth and High Speed Bluetooth.Conventional Bluetooth module was released in 2004, and main representative is to support bluetooth
2.1 agreement.High Speed Bluetooth was released in 2009, and rate is increased to about 24Mbps.Communication modes based on classical bluetooth have function
Consumption is high, and be delayed big disadvantage, and for intelligent terminal individual for one, can only connect a bluetooth in synchronization
Earphone can not accomplish that audio is shared.
Accordingly, it is desirable to provide a kind of novel audio transmission method based on Bluetooth protocol, can solve using wireless connection
Latency issue of the audio-frequence player device when playing audio improves user experience.
Summary of the invention
In order to overcome the above technical defects, the purpose of the present invention is to provide a kind of audio frequency transmission method based on bluetooth,
System, audio-frequence player device and computer readable storage medium support intelligent terminal to connect multiple audios in synchronization and play
Equipment facilitates user to share single audio frequency stream to multi-user.
The invention discloses a kind of audio frequency transmission methods based on bluetooth, comprising the following steps:
S100: the audio frame of audio to be played is obtained;
S200: the audio frame is read, and the audio frame is intercepted to form an audio data;
S300: to the audio data coding, and the audio data is sent to application module;
S400: the application module sends the audio data to audio-frequence player device based on the low power consumption protocol of bluetooth.
Preferably, the audio frame is read, and the audio frame is intercepted and to form the step S200 of an audio data and include:
S210: one system audio layer reads audio frame from memory;
S220: system independent stratum receives the audio frame, and intercepts on system independent stratum to the audio frame, to be formed
The audio data.
Preferably, to the audio data coding, and the step S300 for sending the audio data to application module includes:
S310: using sub-band coding to the audio data coding;
S320: the audio data is sent to application module by local interface.
Preferably, the application module sends the audio data to audio broadcasting based on the low power consumption protocol of bluetooth and sets
Standby step S400 includes:
S410: bluetooth connection is established with the audio-frequence player device;
S420: 2Msym/s PHY for LE and the GATT agreement based on 5.0 agreement of bluetooth sends the audio data extremely
The audio-frequence player device.
Preferably, in the step S410, the audio-frequence player device includes supporting classical Bluetooth protocol and low-power consumption blue
The audio-frequence player device of tooth agreement.
Preferably, before the step S100 further include:
S500: switch the Bluetooth protocol of support to 5.0 agreement of bluetooth.
The invention also discloses a kind of audio transmission systems, comprising:
Processing module, the processing module include:
Acquiring unit obtains the audio frame of audio to be played;
Interception unit is connect with the acquiring unit, is obtained the audio frame and is intercepted to form an audio data;
Coding unit is connect with the interception unit, to the audio data coding;
Application module is connect with the processing module, receives the audio data, the application module is based on the low of bluetooth
Power consumption agreement sends the audio data to audio-frequence player device connected to it.
The invention also discloses a kind of computer readable storage mediums, are stored thereon with computer program, the computer
It is performed the steps of when program is executed by processor
S100 ': the audio frame of audio to be played is obtained;
S200 ': the audio frame is read, and the audio frame is intercepted to form an audio data;
S300 ': to the audio data coding, and the audio data is sent to application module;
S400 ': the application module is controlled based on the low power consumption protocol of bluetooth and sends the audio data to audio broadcasting
Equipment.
The present invention discloses a kind of audio-frequence player device again, comprising:
Receiving module, the low power consumption protocol based on bluetooth receive the audio data after a coding;
Decoder module decodes the audio data;
Playing module, playing audio data.
Preferably, the receiving module is additionally configured to: receiving audio data based on classical Bluetooth protocol.
After above-mentioned technical proposal, compared with prior art, have the advantages that
1. it is big to solve the problems, such as to be delayed when transmitting audio stream based on traditional classical Bluetooth protocol;
2. single audio stream can be shared to multi-user, increase the social attribute that audio plays;
3. reducing the power consumption of audio broadcasting, the cruising ability of intelligent terminal is promoted.
Detailed description of the invention
Fig. 1 is the flow diagram for meeting one embodiment of the present invention sound intermediate frequency transmission method;
Fig. 2 is the flow diagram for meeting another preferred embodiment sound intermediate frequency transmission method of the present invention;
Fig. 3 is the structural schematic diagram for meeting one embodiment of the present invention sound intermediate frequency Transmission system.
Specific embodiment
Below in conjunction with attached drawing, the advantages of the present invention are further explained with specific embodiment.
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended
The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
It is only to be not intended to be limiting the disclosure merely for for the purpose of describing particular embodiments in the term that the disclosure uses.
The "an" of the singular used in disclosure and the accompanying claims book, " described " and "the" are also intended to including majority
Form, unless the context clearly indicates other meaning.It is also understood that term "and/or" used herein refers to and wraps
It may be combined containing one or more associated any or all of project listed.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the disclosure
A little information should not necessarily be limited by these terms.These terms are only used to for same type of information being distinguished from each other out.For example, not departing from
In the case where disclosure range, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as
One information.Depending on context, word as used in this " if " can be construed to " ... when " or " when ...
When " or " in response to determination "
In the description of the present invention, it is to be understood that, term " longitudinal direction ", " transverse direction ", "upper", "lower", "front", "rear",
The orientation or positional relationship of the instructions such as "left", "right", "vertical", "horizontal", "top", "bottom" "inner", "outside" is based on attached drawing institute
The orientation or positional relationship shown, is merely for convenience of description of the present invention and simplification of the description, rather than the dress of indication or suggestion meaning
It sets or element must have a particular orientation, be constructed and operated in a specific orientation, therefore should not be understood as to limit of the invention
System.
In the description of the present invention, unless otherwise specified and limited, it should be noted that term " installation ", " connected ",
" connection " shall be understood in a broad sense, for example, it may be mechanical connection or electrical connection, the connection being also possible to inside two elements can
, can also indirectly connected through an intermediary, for the ordinary skill in the art to be to be connected directly, it can basis
Concrete condition understands the concrete meaning of above-mentioned term.
In subsequent description, it is only using the suffix for indicating such as " module ", " component " or " unit " of element
Be conducive to explanation of the invention, itself there is no specific meanings.Therefore, " module " can mixedly make with " component "
With.
Refering to fig. 1, the flow diagram to meet the audio frequency transmission method in one embodiment of the present invention based on bluetooth.
In this embodiment, between audio transmission completes two bluetooth equipments at the same time with Bluetooth function, support Bluetooth protocol, such as intelligence
It can terminal and bluetooth headset, Baffle Box of Bluetooth, vehicle audio etc..Audio is transmitted in a manner of low-power consumption, low latency to realize, will be held
Row following steps:
S100: the audio frame of audio to be played is obtained
In the intelligent terminal side for needing outward to transmit audio, can be formed by modes such as admission voice, downloading audio streams
One audio to be played.It is received for the ears of user that the content of the audio bearer can be call voice, music, prompting sound etc.
Audio content.The process of above-mentioned formation audio to be played can be received user instructions on intelligent terminal based on such as application program and
It is passive to be formed, also or with the message received actively formed.
After being formed with audio to be played, in intelligent terminal, the audio frame of the audio to be played will acquire
(AudioFrame), audio frame represents the part paragraph of audio to be played, obtains to it, can be considered as to audio to be played
It extracts and prepares for subsequent processing.
S200: audio frame is read, and audio frame is intercepted to form an audio data
In the system of intelligent terminal, audio frame Audio Frame is read, intelligent terminal peace can be used in the main body of reading
Audio Flinger in the operating system of dress, is regarded as the consumer to Audio Frame.After reading, intercept therein
Partly or entirely it is used as audio data.
By taking the Android system of intelligent terminal installation as an example.AudioFlinger is one of the service of Android audio system,
The service is all loaded when system starts by MediaSever.AudioFlinger accesses downwards AudioHardware, realizes defeated
Audio data out controls audio frequency parameter.Meanwhile AudioFlinger provides service upwardly through IAudioFinger interface.Institute
With AudioFlinger plays a part of forming a connecting link in the audio system frame of Android, and status is quite important.
The correlative code of AudioFlinger mainly exists, and: frameworks/base/libs/audioflinger also has part relevant
Code is in frameworks/base/media/libmedia.AudioFlinger mainly includes with lower interface:
IAudioFlinger interface
This is the interface that AudioFlinger is provided out service, such as openOutput, openInput,
CreateTrack, openRecord etc., application program or other service can be obtained by ServiceManager
The interface.The interface is obtained by inheriting BnAudioFlinger.
ThreadBase
In AudioFlinger, Android is that each playback/sound pick-up outfit creates a processing thread, is responsible for
The I/O of audio data and synthesis, ThreadBase are the base class of these threads, and all broadcastings and recording thread are all derived from
ThreadBase。
TrackBase
Application program one track (AudioTrack/AudioRecord) of every creation, can all create in AudioFlinger
A corresponding Track example is built, TrackBase is exactly the base class of these Track, his derived class has:
PlaybackTread::Track --- it is used for ordinary playing, the AudioTrack corresponding to application layer;
PlaybackThread::OutputTrack --- it exports for multiple device, is used when bluetooth, which plays, opens;
RecordThread::RecordTrack --- the AudioRecord for recording, corresponding to application layer.
S300: to audio data coding, and audio data is sent to application module
For the audio data formed in step S200, an application module is sent it to.The application module can be fixed
It is made as being exclusively used in sending the application module of audio data with low-power consumption, low latency based on bluetooth, such as be mounted in intelligent terminal
Application program etc..
Before application module receives, to the audio data coding, the size of compressible audio data, so that audio data exists
It is subsequent to be communicated through in journey, multiple packets can be disposably transmitted, then speed raising, the requirement to load, bluetooth connection of its transmission
The requirements such as stability be further reduced.If, can under same time and same load compared with the transmission flow with the prior art
Be no longer confined to for audio data to be transmitted to audio-frequence player device at one, but can transmitted in parallel to multiple audio-frequence player devices, from
And it realizes multiple audio-frequence player devices while receiving the broadcasting experience with playing audio-fequency data.Theoretically highest supports an application
The audio-frequence player device of classical Bluetooth protocol and the audio-frequence player device of seven application low-power consumption bluetooth agreements play audio simultaneously
Data.
S400: application module sends audio data to audio-frequence player device based on the low power consumption protocol of bluetooth
Application module receive coding after audio data, by low-power consumption bluetooth agreement send audio data to intelligence
At the audio-frequence player device that energy terminal passes through bluetooth connection.Support that low power consumption protocol is 5.0 technology of bluetooth that version number is 5.0
Standard, 5.0 technology of bluetooth, the bluetooth 4.2 that transmission speed is 4.2 compared to previous version number, transmission speed have reached twice
Growth, the upper limit reached 2Mbps;In transmission range, the promotion of four times of distances allows bluetooth 5.0 that can support 300 meters of data
Transmission;And in Internet of Things net side, main connection type of 5.0 agreement of bluetooth as intelligent wearable device and smart home,
Power consumption is lower, performance is more stable, and the continuation of the journey problem of smart machine also can further be alleviated, or even and wireless network connection
Wifi is compared, and it is low that the transmission power transmitted based on 5.0 agreement of bluetooth and stand-by power consumption compare WiFi, in the standby state, with 1
Platform equipment is shared, and Wifi shares a hourly average and consumes 10% electric power, but bluetooth power consumption is the 1/3 of Wifi.
It is configured by the step of above-mentioned audio frequency transmission method, low function will be applied using the intelligent terminal of the audio frequency transmission method
It consumes bluetooth transmission to encode at compressed audio data to audio-frequence player device, to reduce the delay between audio transmission.It is more simultaneously
A audio-frequence player device can receive audio data simultaneously, provide a user the shared usage experience of audio.
Referring to Fig.2, in a preferred embodiment, each step executes completion by multiple step by step:
Read the audio frame, and the audio frame is intercepted and to form the step S200 of an audio data and include:
S210: one system audio layer reads audio frame from memory;
S220: system independent stratum receives audio frame, and intercepts on system independent stratum to the audio frame, described in being formed
Audio data.
One system audio layer is put audio frame Audio Frame by AudioTrack such as HAL layers of A2DPAudio HW
Audio frame Audio Frame is read in the one piece of memory for entering Audio flinger, and passing over later by IPC.With peace
For tall and erect system, Hal layers (i.e. Hardware Abstraction Layer) are upper layers in the android system that Google is developed
Using a software level to bottom hardware operation shield, blunt point is said, be exactly that upper layer application need not be concerned about that bottom hardware has
How body works, it is only necessary to the unified interface for calling bottom to provide.Sound is obtained by way of interception on HAL layer
Frequency frame, to obtain audio data.
To audio data coding, and the step S300 for sending audio data to application module includes:
S310: using sub-band coding to audio data coding;
S320: audio data is sent to application module by local interface.
In the preferred embodiment, to the coding of audio data, sub-band coding, the i.e. coding of SBC can be used.By audio number
According to 512 interior byte-code compressions to 65 bytes, so that size is only 3*65=195 when can realize disposably 3 data packets of transmission
Byte is still significantly smaller than the size of the existing audio transmission mode sound intermediate frequency data using classical Bluetooth protocol.
The basic thought of sub-band coding (SBC) is: using one group of bandpass filter (band-pass filter, BPF)
The frequency band of input audio signal is divided into several continuous frequency ranges, and each frequency range is known as subband.To the audio letter in each subband
It number goes to encode using individual encoding scheme.When being transmitted on channel, the code of each subband is combined.It is translated in receiving end
When code, the code of each subband is individually decoded, is then combined them, original audio signal is reduced into.Using pair
The benefit that each subband is separately encoded has two.First, self adaptive control, quantization step are carried out respectively to each subband signal
The size of (quantization step) can be adjusted according to the energy level of each subband.With higher-energy level
Subband go to quantify with big quantization step, to reduce total quantizing noise.Second, it can be according to each subband signal sensorial
Importance distributes each subband different digits, for indicating each sample value.For example, in low frequency sub-band, in order to protect
The structure of tone and formant, it is desirable to lesser quantization step, more quantization series, that is, distribute more digit to indicate
Sample value.And the sound of fricative and similar noise in speech, it typically occurs in high-frequency sub-band, distributes it less position
Number.
The segmentation of audio band can be divided with the style of tree.Entire audio signal bandwidth is divided into first
The subband of two equal bandwidths: high-frequency sub-band and low frequency sub-band.Then the same method of the two subbands is divided, forms 4
A subband.This process can be repeated as desired for down, and to generate 2K subband, K is the number of segmentation.It can be produced with this method
The subband of raw equiband, also can be generated the subband of different-bandwidth.For example, the audio signal for being 4000Hz to bandwidth, works as K=3
When, the subband of 8 equal bandwidths can be divided into, the bandwidth of each subband is 500Hz.Also the subband of 5 different-bandwidths is produced, point
Not Wei [0,500), [500,1000), [1000,2000), [and 2000,3000) and [3000,4000].Audio signal is divided into
After adjacent sub-band component, subband signal is sampled with the sample frequency of 2 times of subband bandwidth, so that it may with its sample
This value reconstructs original subband signal.For example, when 4000Hz bandwidth is divided into 4 equiband subbands, subband bandwidth is
1000Hz, sample frequency can use 2000Hz, its total sampling rate is still 8000Hz.The filter as used in dividing frequencyband is not
It is ideal filter, the output audio signal synthesized after excessively band, coding, decoding has aliasing effect.According to relevant information
Analysis, divided band is come using Quadrature Mirror Filter QMF (quandrature mirror filter, QMF), aliasing effect exists
It can be offset when being finally synthesizing.
After the completion of coding, the audio data can be sent by the local interface of such as local socket to application module.
There are three types of the NameSpace of localsocket local interface: ABSTRACT: safeguarding a socket descriptor in systems, no
File can be established in system.FILESYSTEM: system can create a descriptor file under the path that user specifies.
RESEVED: system retains, and essence is also FILESYSTEM, and only file is under/dev/socket/ catalogue, and only
Init process just has permission creation.In addition, there are three types of constructed fuctions by LocalSocket, usually we use the construction letter of printenv
Number, then with the name and type of the socket connected come specified needs of the LocalSocketAddress in connect.Such as
Fruit directly uses LocalSocketAddress (String name);If specifying a socket, then system default it be
The Local socket of one ABSTRACT type.
Application module sends the step S400 packet of audio data a to audio-frequence player device based on the low power consumption protocol of bluetooth
It includes:
S410: bluetooth connection is established with audio-frequence player device;
S420: 2Msym/s PHY for LE and the GATT agreement based on 5.0 agreement of bluetooth sends audio data to audio
Playback equipment
After intelligent terminal and audio-frequence player device establish bluetooth connection, the 2Msym/s PHYfor LE of 5.0 agreement of bluetooth and
GATT agreement sends the audio data to the audio-frequence player device.2Msym/s PHY for LE be 5.0 agreement of bluetooth in,
On the basis of PHY (the referred to as LE 1M PHY) of bluetooth 4.21M character rate (symbol rate), increase 2M character rate
PHY (referred to as LE 2M PHY), the difference of the two are as follows:
1) character rate of LE 1M PHY is 1Msym/s, is essential PHY (each LE equipment must be supported), supports ECC
(error correction coding, optional), according to different coding modes, supports 3 kinds of bit rates: 1Mb/s (LE
1M), 500Bb/s (LE Coded) and 125Kb/s (LE Coded).
2) 2) character rate of LE 2M PHY be 2Msym/s, is optional PHY, does not support ECC (error correction
Coding), bit rate is 2Mb/s (LE 2M, uncoded).
GATT agreement is the abbreviation of genericAttributes, and it is between bluetooth low energy device that Chinese, which is general-purpose attribute,
The agreement communicated.GATT defines a kind of data structure of multilayer, and the bluetooth low energy device having connected is carried out with it
Communication.GATT be based on ATT, the multi-layer data structure of definition be briefly summarized exactly service (service) may include it is multiple
Feature (characteristic), each feature include attribute (properties) and value (value), can also be retouched comprising multiple
State (descriptor).Service is made of the relationship of multiple speciality and the service and other services in relation to the service.
Feature, by the name of feature, the value of feature, feature attribute (for showing the acceptable operation of this feature, and for state with
Safety-related permission), and optional one or more describer (metadata relevant to feature or
Configuration flags) composition.And profile is not belonging to be actually used in the component part of the data structure of communication, at this
In it be one group of service set, these services are artificially combined and are defined as a specific usage scenario, be used to
State the thing that a bluetooth low energy device can be done.Two equipment to reach both compatibility requirements support it is same using field
Scape (profile).Data structure of the GATT in addition to defining this service-tag type also defines bluetooth equipment using this
The process that data structure is communicated, including service procedure and form, the discovery of feature, the read-write of characteristic value are subscribed to, feature
Broadcast etc..Bluetooth communication process is divided into three parts by GATT: discovery process, client initialization process and server-side are initial
Change process.The storage of GATT server-side comes from GATT client forward data, receives the request of GATT client, orders, and batch
Quasi- (propagation of data, request, order etc. is all based on ATT agreement).GATT server-side can request to GATT client into
Row response, and GATT client can be asynchronously notified when certain events occur in GATT server-side.GATT is also defined
Data are stored in the format in GATT server-side.Since BR/EDR and LE are two different standards, what they were supported
Profile is different, even if being very similar profile, specific implementation is also different.It to be realized between BR/EDR and LE simultaneous
Hold and at least one equipment is required to can be achieved on standard switching.
Further, audio-frequence player device includes that the broadcasting of the audio of classical Bluetooth protocol and low-power consumption bluetooth agreement is supported to set
It is standby.That is, the audio-frequence player device in the embodiment, as bluetooth headset can pass through classical Bluetooth protocol and low-power consumption simultaneously
Bluetooth protocol receives audio data, and decodes and play, even backward compatible make old intelligent terminal, it is possible to use this
The audio-frequence player device passed through in embodiment.
In addition, before step S100 further include: S500: switching the Bluetooth protocol of support to 5.0 agreement of bluetooth.Specifically, exist
In the embodiment, intelligent terminal has low latency mode, and when the pattern switching is activation, intelligent terminal will be using support bluetooth
The transmission of 2M, GATT agreement encodes compressed audio data in 5.0 agreements.By way of providing a user pattern switching, use
Family mobile terminal according to used in itself or audio-frequence player device select most suitable mode operation, further improve suitable
With property.
Refering to Fig. 3, the invention also discloses a kind of audio transmission systems comprising communicate with each other connection processing module and
Application module, wherein processing module include:
Acquiring unit obtains the audio frame of audio to be played;
Interception unit is connect with acquiring unit, is obtained audio frame and is intercepted to form an audio data;
Coding unit is connect with interception unit, to audio data coding;
And application module, it is connect with processing module, receives audio data, application module is sent out based on the low power consumption protocol of bluetooth
Send audio data to audio-frequence player device connected to it.
The invention also discloses a kind of computer readable storage mediums, are stored thereon with computer program, computer program
It is performed the steps of when being executed by processor
S100 ': the audio frame of audio to be played is obtained;
S200 ': audio frame is read, and audio frame is intercepted to form an audio data;
S300 ': to audio data coding, and audio data is sent to application module;
S400 ': control application module sends audio data to audio-frequence player device based on the low power consumption protocol of bluetooth.
The side of audio is listened in user, the present invention also provides a kind of audio-frequence player devices, comprising: receiving module, base
Audio data after the low power consumption protocol of bluetooth receives a coding;Decoder module decodes audio data;Playing module is broadcast
Put audio data.Specifically, receiving module will support the low power consumption protocol of bluetooth 5.0 simultaneously, while use and intelligent terminal phase
With coding and decoding language, decoder module decode compressed audio data, and while decoding, guarantee is to audio data
Fidelity provides a user good listening experience finally by playing module playing audio-fequency data.
Further, receiving module is additionally configured to: receiving audio data based on classical Bluetooth protocol.Bluetooth earphone end is simultaneously
It can receive classics Bluetooth audio frequency data and low-power consumption bluetooth audio data.When receiving audio data by low-power consumption bluetooth,
Audio is played out by codec immediately after decoding, reducing reduces delay.
Intelligent terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include such as moving
Phone, smart phone, laptop, PDA (personal digital assistant), PAD (tablet computer), PMP (put by portable multimedia broadcasting
Device), the fixed terminal of the intelligent terminal of navigation device etc. and such as number TV, desktop computer etc..Hereinafter it is assumed that eventually
End is intelligent terminal.However, it will be understood by those skilled in the art that other than the element for being used in particular for mobile purpose, root
It can also apply to the terminal of fixed type according to the construction of embodiments of the present invention.
It should be noted that the embodiment of the present invention has preferable implementation, and not the present invention is made any type of
Limitation, any one skilled in the art change or are modified to possibly also with the technology contents of the disclosure above equivalent effective
Embodiment, as long as without departing from the content of technical solution of the present invention, it is to the above embodiments according to the technical essence of the invention
Any modification or equivalent variations and modification, all of which are still within the scope of the technical scheme of the invention.
Claims (10)
1. a kind of audio frequency transmission method based on bluetooth, which comprises the following steps:
S100: the audio frame of audio to be played is obtained;
S200: the audio frame is read, and the audio frame is intercepted to form an audio data;
S300: to the audio data coding, and the audio data is sent to application module;
S400: the application module sends the audio data to audio-frequence player device based on the low power consumption protocol of bluetooth.
2. audio frequency transmission method as described in claim 1, which is characterized in that
Read the audio frame, and the audio frame is intercepted and to form the step S200 of an audio data and include:
S210: one system audio layer reads audio frame from memory;
S220: system independent stratum receives the audio frame, and intercepts on system independent stratum to the audio frame, described in being formed
Audio data.
3. audio frequency transmission method as described in claim 1, which is characterized in that
To the audio data coding, and the step S300 for sending the audio data to application module includes:
S310: using sub-band coding to the audio data coding;
S320: the audio data is sent to application module by local interface.
4. audio frequency transmission method as described in claim 1, which is characterized in that
The step of application module sends the audio data a to audio-frequence player device based on the low power consumption protocol of bluetooth
S400 includes:
S410: bluetooth connection is established with the audio-frequence player device;
S420: 2Msym/s PHY for LE and GATT agreement based on 5.0 agreement of bluetooth sends the audio data to described
Audio-frequence player device.
5. audio frequency transmission method as claimed in claim 4, which is characterized in that
In the step S410, the audio-frequence player device includes the audio for supporting classical Bluetooth protocol and low-power consumption bluetooth agreement
Playback equipment.
6. audio frequency transmission method as described in claim 1, which is characterized in that
Before the step S100 further include:
S500: switch the Bluetooth protocol of support to 5.0 agreement of bluetooth.
7. a kind of audio transmission system characterized by comprising
Processing module, the processing module include:
Acquiring unit obtains the audio frame of audio to be played;
Interception unit is connect with the acquiring unit, is obtained the audio frame and is intercepted to form an audio data;
Coding unit is connect with the interception unit, to the audio data coding;
Application module is connect with the processing module, receives the audio data, low-power consumption of the application module based on bluetooth
Agreement sends the audio data to audio-frequence player device connected to it.
8. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program quilt
Processor performs the steps of when executing
S100 ': the audio frame of audio to be played is obtained;
S200 ': the audio frame is read, and the audio frame is intercepted to form an audio data;
S300 ': to the audio data coding, and the audio data is sent to application module;
S400 ': the application module is controlled based on the low power consumption protocol of bluetooth and sends the audio data to audio-frequence player device.
9. a kind of audio-frequence player device characterized by comprising
Receiving module, the low power consumption protocol based on bluetooth receive the audio data after a coding;
Decoder module decodes the audio data;
Playing module, playing audio data.
10. audio-frequence player device as claimed in claim 9, which is characterized in that
The receiving module is additionally configured to: receiving audio data based on classical Bluetooth protocol.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810946308.3A CN108966197A (en) | 2018-08-20 | 2018-08-20 | Audio frequency transmission method, system, audio-frequence player device and computer readable storage medium based on bluetooth |
PCT/CN2018/111481 WO2020037810A1 (en) | 2018-08-20 | 2018-10-23 | Bluetooth-based audio transmission method and system, audio playing device and computer-readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810946308.3A CN108966197A (en) | 2018-08-20 | 2018-08-20 | Audio frequency transmission method, system, audio-frequence player device and computer readable storage medium based on bluetooth |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108966197A true CN108966197A (en) | 2018-12-07 |
Family
ID=64470808
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810946308.3A Pending CN108966197A (en) | 2018-08-20 | 2018-08-20 | Audio frequency transmission method, system, audio-frequence player device and computer readable storage medium based on bluetooth |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN108966197A (en) |
WO (1) | WO2020037810A1 (en) |
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110010139A (en) * | 2019-03-28 | 2019-07-12 | 南昌黑鲨科技有限公司 | Audio input output method, system and computer readable storage medium |
CN110189753A (en) * | 2019-05-28 | 2019-08-30 | 北京百度网讯科技有限公司 | Baffle Box of Bluetooth and its control method, system and storage medium |
CN111182516A (en) * | 2019-12-25 | 2020-05-19 | 展讯半导体(成都)有限公司 | Data transmission system of BLE link |
WO2020124610A1 (en) * | 2018-12-22 | 2020-06-25 | 华为技术有限公司 | Transmission speed control method and device |
CN111339351A (en) * | 2018-12-19 | 2020-06-26 | 成都鼎桥通信技术有限公司 | Audio playing method in Android system |
WO2020254549A1 (en) * | 2019-06-19 | 2020-12-24 | Tap Sound System | Method and system for routing audio data in a bluetooth network |
CN112333674A (en) * | 2020-10-30 | 2021-02-05 | 展讯半导体(成都)有限公司 | Data transmission method, device and equipment |
CN112423053A (en) * | 2020-11-06 | 2021-02-26 | 歌尔科技有限公司 | Audio sharing method, system, remote controller and computer readable storage medium |
CN113039822A (en) * | 2018-12-18 | 2021-06-25 | 华为技术有限公司 | Method and equipment for establishing data channel |
CN113488065A (en) * | 2021-07-01 | 2021-10-08 | 上海卓易科技股份有限公司 | Audio output method and device based on cloud mobile phone, computer equipment and storage medium |
CN113573253A (en) * | 2021-07-15 | 2021-10-29 | 深圳市星科启电子商务有限公司 | Data transmission method and audio transmission system for game Bluetooth headset |
WO2022151778A1 (en) * | 2021-01-15 | 2022-07-21 | Oppo广东移动通信有限公司 | Audio data transmission method, electronic device and storage medium |
CN115426064A (en) * | 2018-12-28 | 2022-12-02 | 华为技术有限公司 | Audio data synchronization method and device |
CN116489629A (en) * | 2023-03-31 | 2023-07-25 | 珠海市蓝辰科技有限公司 | Bluetooth audio data transmission method, device, equipment and medium |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101098168A (en) * | 2006-06-26 | 2008-01-02 | 西门子测听技术有限责任公司 | Bluetooth transmission device for hearing-aids and corresponding transmission method |
CN103379232A (en) * | 2012-04-13 | 2013-10-30 | 展讯通信(上海)有限公司 | Communication server, communication terminal and voice communication method |
CN103733594A (en) * | 2011-08-19 | 2014-04-16 | 苹果公司 | Audio transfer using the bluetooth low energy standard |
CN104007977A (en) * | 2014-06-09 | 2014-08-27 | 威盛电子股份有限公司 | Electronic device and audio playing method |
US20140348327A1 (en) * | 2013-05-21 | 2014-11-27 | Apple Inc. | Synchronization of Multi-Channel Audio Communicated over Bluetooth Low Energy |
CN104938024A (en) * | 2012-11-19 | 2015-09-23 | 诺基亚技术有限公司 | Method and apparatus for generating bluetooth low energy data packet comprising audio payload data. |
US20150365208A1 (en) * | 2014-06-11 | 2015-12-17 | Samsung Electronics Co., Ltd. | Method and apparatus for transmitting and receiving audio data in bluetooth low energy-based wireless communication system |
CN108040332A (en) * | 2017-12-25 | 2018-05-15 | 江苏惠通集团有限责任公司 | Audio frequency transmission method and device based on bluetooth, storage medium, terminal |
CN108234105A (en) * | 2016-12-22 | 2018-06-29 | 意法半导体股份有限公司 | Clock skew compensating method and related system |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101645717B (en) * | 2009-09-07 | 2012-12-19 | 中兴通讯股份有限公司 | Method and terminal for sharing audio information by multiple users by utilizing Bluetooth headsets |
CN103581816A (en) * | 2013-11-18 | 2014-02-12 | 广州市花都区中山大学国光电子与通信研究院 | Wireless multi-room music system synchronization mechanism based on UPnP protocol |
CN104113820A (en) * | 2014-08-08 | 2014-10-22 | 无锡硅动力微电子股份有限公司 | Method for data communication between IOS and Bluetooth module |
CN104254007B (en) * | 2014-09-03 | 2017-11-03 | 海信集团有限公司 | A kind of audio-frequency processing method and device |
-
2018
- 2018-08-20 CN CN201810946308.3A patent/CN108966197A/en active Pending
- 2018-10-23 WO PCT/CN2018/111481 patent/WO2020037810A1/en active Application Filing
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101098168A (en) * | 2006-06-26 | 2008-01-02 | 西门子测听技术有限责任公司 | Bluetooth transmission device for hearing-aids and corresponding transmission method |
CN103733594A (en) * | 2011-08-19 | 2014-04-16 | 苹果公司 | Audio transfer using the bluetooth low energy standard |
CN103379232A (en) * | 2012-04-13 | 2013-10-30 | 展讯通信(上海)有限公司 | Communication server, communication terminal and voice communication method |
CN104938024A (en) * | 2012-11-19 | 2015-09-23 | 诺基亚技术有限公司 | Method and apparatus for generating bluetooth low energy data packet comprising audio payload data. |
US20140348327A1 (en) * | 2013-05-21 | 2014-11-27 | Apple Inc. | Synchronization of Multi-Channel Audio Communicated over Bluetooth Low Energy |
CN104007977A (en) * | 2014-06-09 | 2014-08-27 | 威盛电子股份有限公司 | Electronic device and audio playing method |
US20150365208A1 (en) * | 2014-06-11 | 2015-12-17 | Samsung Electronics Co., Ltd. | Method and apparatus for transmitting and receiving audio data in bluetooth low energy-based wireless communication system |
CN108234105A (en) * | 2016-12-22 | 2018-06-29 | 意法半导体股份有限公司 | Clock skew compensating method and related system |
CN108040332A (en) * | 2017-12-25 | 2018-05-15 | 江苏惠通集团有限责任公司 | Audio frequency transmission method and device based on bluetooth, storage medium, terminal |
Cited By (23)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113039822B (en) * | 2018-12-18 | 2022-09-09 | 华为技术有限公司 | Method and equipment for establishing data channel |
CN113039822A (en) * | 2018-12-18 | 2021-06-25 | 华为技术有限公司 | Method and equipment for establishing data channel |
CN111339351A (en) * | 2018-12-19 | 2020-06-26 | 成都鼎桥通信技术有限公司 | Audio playing method in Android system |
CN111339351B (en) * | 2018-12-19 | 2023-08-11 | 成都鼎桥通信技术有限公司 | Audio playing method in Android system |
WO2020124610A1 (en) * | 2018-12-22 | 2020-06-25 | 华为技术有限公司 | Transmission speed control method and device |
CN115426064A (en) * | 2018-12-28 | 2022-12-02 | 华为技术有限公司 | Audio data synchronization method and device |
CN110010139A (en) * | 2019-03-28 | 2019-07-12 | 南昌黑鲨科技有限公司 | Audio input output method, system and computer readable storage medium |
CN110010139B (en) * | 2019-03-28 | 2021-12-21 | 南昌黑鲨科技有限公司 | Audio input/output method, system and computer readable storage medium |
CN110189753A (en) * | 2019-05-28 | 2019-08-30 | 北京百度网讯科技有限公司 | Baffle Box of Bluetooth and its control method, system and storage medium |
WO2020254549A1 (en) * | 2019-06-19 | 2020-12-24 | Tap Sound System | Method and system for routing audio data in a bluetooth network |
CN111182516B (en) * | 2019-12-25 | 2022-04-12 | 展讯半导体(成都)有限公司 | Data transmission system of BLE link |
CN111182516A (en) * | 2019-12-25 | 2020-05-19 | 展讯半导体(成都)有限公司 | Data transmission system of BLE link |
CN112333674A (en) * | 2020-10-30 | 2021-02-05 | 展讯半导体(成都)有限公司 | Data transmission method, device and equipment |
CN112333674B (en) * | 2020-10-30 | 2022-06-24 | 展讯半导体(成都)有限公司 | Data transmission method, device and equipment |
CN112423053B (en) * | 2020-11-06 | 2024-04-09 | 歌尔科技有限公司 | Audio sharing method, system, remote controller and computer readable storage medium |
CN112423053A (en) * | 2020-11-06 | 2021-02-26 | 歌尔科技有限公司 | Audio sharing method, system, remote controller and computer readable storage medium |
WO2022151778A1 (en) * | 2021-01-15 | 2022-07-21 | Oppo广东移动通信有限公司 | Audio data transmission method, electronic device and storage medium |
CN113488065A (en) * | 2021-07-01 | 2021-10-08 | 上海卓易科技股份有限公司 | Audio output method and device based on cloud mobile phone, computer equipment and storage medium |
CN113488065B (en) * | 2021-07-01 | 2024-05-14 | 上海卓易科技股份有限公司 | Audio output method and device based on cloud mobile phone, computer equipment and storage medium |
CN113573253B (en) * | 2021-07-15 | 2022-04-26 | 深圳市星科启创新科技有限公司 | Data transmission method and audio transmission system for game Bluetooth headset |
CN113573253A (en) * | 2021-07-15 | 2021-10-29 | 深圳市星科启电子商务有限公司 | Data transmission method and audio transmission system for game Bluetooth headset |
CN116489629A (en) * | 2023-03-31 | 2023-07-25 | 珠海市蓝辰科技有限公司 | Bluetooth audio data transmission method, device, equipment and medium |
CN116489629B (en) * | 2023-03-31 | 2024-01-12 | 珠海市蓝辰科技有限公司 | Bluetooth audio data transmission method, device, equipment and medium |
Also Published As
Publication number | Publication date |
---|---|
WO2020037810A1 (en) | 2020-02-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108966197A (en) | Audio frequency transmission method, system, audio-frequence player device and computer readable storage medium based on bluetooth | |
TWI293533B (en) | System and method for communication media signals | |
US7830965B2 (en) | Multimedia distributing and/or playing systems and methods using separate resolution-enhancing supplemental data | |
CN100571450C (en) | The system and method for interactive audio frequency is provided in the multichannel audio environment | |
KR100735233B1 (en) | System for providing personal broadcasting service | |
CN110140170B (en) | Distributed audio recording adapted for end user free viewpoint monitoring | |
CN108932948B (en) | Audio data processing method and device, computer equipment and computer readable storage medium | |
TW201005730A (en) | Method and apparatus for error concealment of encoded audio data | |
JP2022534644A (en) | Methods for operating Bluetooth devices | |
CN101009824A (en) | A network transfer method for audio/video data | |
JP2003114845A (en) | Media conversion method and media conversion device | |
US8719437B1 (en) | Enabling streaming to a media player without native streaming support | |
US11568882B2 (en) | Inter-channel phase difference parameter encoding method and apparatus | |
US11128739B2 (en) | Network-edge-deployed transcoding methods and systems for just-in-time transcoding of media data | |
CN103313095A (en) | Video transmission method, play method, terminal and server | |
CN103780611A (en) | Music sharing method and system | |
CN106878384A (en) | Data forwarding method, its device, bluetooth equipment and audio frequency transmission method | |
CN202135269U (en) | System for realizing mobile phone video playing | |
CN104023260A (en) | Hardware decoding implementation method and device, and player | |
TW200533090A (en) | System and method for compressing data | |
CN117062034A (en) | Bluetooth data transmission method, device, equipment and storage medium | |
US10727858B2 (en) | Error resiliency for entropy coded audio data | |
CN116112736A (en) | Audio processing method, device, computer equipment and storage medium | |
CN110366752A (en) | A kind of voice frequency dividing transmission method, plays end, source circuit and plays terminal circuit source | |
WO2016107174A1 (en) | Method and system for processing multimedia file data, player and client |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181207 |
|
RJ01 | Rejection of invention patent application after publication |