CN108988909A - Audio-frequency processing method and device, electronic equipment, computer readable storage medium - Google Patents
Audio-frequency processing method and device, electronic equipment, computer readable storage medium Download PDFInfo
- Publication number
- CN108988909A CN108988909A CN201810823219.XA CN201810823219A CN108988909A CN 108988909 A CN108988909 A CN 108988909A CN 201810823219 A CN201810823219 A CN 201810823219A CN 108988909 A CN108988909 A CN 108988909A
- Authority
- CN
- China
- Prior art keywords
- audio
- mode
- signal strength
- received signal
- bluetooth
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 25
- 230000005236 sound signal Effects 0.000 claims abstract description 39
- 230000005540 biological transmission Effects 0.000 claims abstract description 33
- 238000000034 method Methods 0.000 claims abstract description 18
- 230000015654 memory Effects 0.000 claims description 26
- 238000012545 processing Methods 0.000 claims description 22
- 238000004590 computer program Methods 0.000 claims description 11
- 238000010586 diagram Methods 0.000 description 12
- 230000006870 function Effects 0.000 description 12
- 241001062009 Indigofera Species 0.000 description 7
- 102100024044 Aprataxin Human genes 0.000 description 6
- 101000757586 Homo sapiens Aprataxin Proteins 0.000 description 6
- 230000006854 communication Effects 0.000 description 5
- 238000004891 communication Methods 0.000 description 4
- 230000005611 electricity Effects 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 4
- 238000007726 management method Methods 0.000 description 4
- 230000001133 acceleration Effects 0.000 description 3
- 238000004422 calculation algorithm Methods 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 238000013500 data storage Methods 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 230000007774 longterm Effects 0.000 description 2
- 238000010295 mobile communication Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 230000006835 compression Effects 0.000 description 1
- 238000007906 compression Methods 0.000 description 1
- 238000005314 correlation function Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000008520 organization Effects 0.000 description 1
- 238000010897 surface acoustic wave method Methods 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B5/00—Near-field transmission systems, e.g. inductive or capacitive transmission systems
- H04B5/70—Near-field transmission systems, e.g. inductive or capacitive transmission systems specially adapted for specific purposes
- H04B5/72—Near-field transmission systems, e.g. inductive or capacitive transmission systems specially adapted for specific purposes for local intradevice communication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B17/00—Monitoring; Testing
- H04B17/30—Monitoring; Testing of propagation channels
- H04B17/309—Measuring or estimating channel quality parameters
- H04B17/318—Received signal strength
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- Electromagnetism (AREA)
- Telephone Function (AREA)
Abstract
This application involves a kind of audio-frequency processing methods and device, electronic equipment, computer readable storage medium.The described method includes: the received signal strength that Bluetooth audio equipment is sent is obtained, the intensity for the Bluetooth audio signals that the received signal strength is used to indicate that the Bluetooth audio equipment receives;Audio coding mode is switched into the corresponding target code mode of the received signal strength;According to the target code mode to the Bluetooth audio equipment sending mode handover request, the pattern switching message is used to indicate the Bluetooth audio equipment for audio decoder pattern switching to the corresponding target decoder mode of the target code mode.Above-mentioned audio-frequency processing method and device, electronic equipment, computer readable storage medium, can be improved the efficiency by blue tooth transmission audio frequency.
Description
Technical field
This application involves field of computer technology, more particularly to a kind of audio-frequency processing method and device, electronic equipment, meter
Calculation machine readable storage medium storing program for executing.
Background technique
Smart machine can store audio file, and play out to these audio files.Smart machine can be by interior
It sets player to play out, can also be played out by external audio frequency equipment.There are many forms of external audio frequency equipment, such as
Can have by OMTP (Open Mobile Terminal Platform, Open Mobile Terminal Platform Organization) standard interface etc.
The mode of line connects audio frequency apparatus, can also connect audio frequency apparatus by the way that bluetooth etc. is wireless.Smart machine is connected to audio
After equipment, need just to can guarantee the broadcasting of audio file using unified code encoding/decoding mode, and different code encoding/decoding modes obtains
The audio file arrived is different, and the resource of the smart machine of occupancy is also different.
Summary of the invention
The embodiment of the present application provides a kind of audio-frequency processing method and device, electronic equipment, computer readable storage medium, can
To improve the efficiency by blue tooth transmission audio frequency.
A kind of audio-frequency processing method, comprising:
The received signal strength that Bluetooth audio equipment is sent is obtained, the received signal strength is for indicating the bluetooth sound
The intensity for the Bluetooth audio signals that frequency equipment receives;
Audio coding mode is switched into the corresponding target code mode of the received signal strength;
According to the target code mode to the Bluetooth audio equipment sending mode handover request, the pattern switching disappears
Breath is used to indicate the Bluetooth audio equipment for audio decoder pattern switching to the corresponding target decoder of the target code mode
Mode.
A kind of apparatus for processing audio, comprising:
Intensity obtains module, for obtaining the received signal strength of Bluetooth audio equipment transmission, the received signal strength
For indicating the intensity of Bluetooth audio signals that the Bluetooth audio equipment receives;
Mode switch module, for audio coding mode to be switched to the corresponding target code mould of the received signal strength
Formula;
Message transmission module, for being disappeared according to the target code mode to Bluetooth audio equipment sending mode switching
Breath, the pattern switching message are used to indicate the Bluetooth audio equipment for audio decoder pattern switching to the target code mould
The corresponding target decoder mode of formula.
A kind of electronic equipment, including memory and processor store computer program, the calculating in the memory
When machine program is executed by the processor, so that the processor executes following steps:
The received signal strength that Bluetooth audio equipment is sent is obtained, the received signal strength is for indicating the bluetooth sound
The intensity for the Bluetooth audio signals that frequency equipment receives;
Audio coding mode is switched into the corresponding target code mode of the received signal strength;
According to the target code mode to the Bluetooth audio equipment sending mode handover request, the pattern switching disappears
Breath is used to indicate the Bluetooth audio equipment for audio decoder pattern switching to the corresponding target decoder of the target code mode
Mode.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor
Following steps are realized when row:
The received signal strength that Bluetooth audio equipment is sent is obtained, the received signal strength is for indicating the bluetooth sound
The intensity for the Bluetooth audio signals that frequency equipment receives;
Audio coding mode is switched into the corresponding target code mode of the received signal strength;
According to the target code mode to the Bluetooth audio equipment sending mode handover request, the pattern switching disappears
Breath is used to indicate the Bluetooth audio equipment for audio decoder pattern switching to the corresponding target decoder of the target code mode
Mode.
Above-mentioned audio-frequency processing method and device, electronic equipment, computer readable storage medium can be set with Bluetooth audio frequency
When standby transmission Bluetooth audio signals, the received signal strength that Bluetooth audio equipment is sent is obtained, signal is strong further according to receiving
It spends to switch audio coding mode, and sends the pattern switching message of switching audio decoder mode to Bluetooth audio equipment.In this way
The ability that signal can be received according to Bluetooth audio equipment is strong and weak, to adjust code encoding/decoding mode, improves the efficiency of transmission of audio.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of application for those of ordinary skill in the art without creative efforts, can be with
It obtains other drawings based on these drawings.
Fig. 1 is the application scenario diagram of one embodiment sound intermediate frequency processing method;
Fig. 2 is the flow chart of one embodiment sound intermediate frequency processing method;
Fig. 3 is the flow chart of another embodiment sound intermediate frequency processing method;
Fig. 4 is the schematic diagram of one embodiment sound intermediate frequency encoding and decoding;
Fig. 5 is the flow chart of another embodiment sound intermediate frequency processing method;
Fig. 6 is the flow chart of another embodiment sound intermediate frequency processing method;
Fig. 7 is the schematic diagram for the list that record electronic equipment switches audio coding mode in one embodiment;
Fig. 8 is the structural schematic diagram of one embodiment middle pitch frequency processing device;
Fig. 9 is the structural schematic diagram of another embodiment middle pitch frequency processing device;
Figure 10 is the block diagram of the part-structure of mobile phone relevant to electronic equipment provided by the embodiments of the present application.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood
The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, and
It is not used in restriction the application.
It is appreciated that term " first " used in this application, " second " etc. can be used to describe various elements herein,
But these elements should not be limited by these terms.These terms are only used to distinguish the first element from the other element.Citing comes
It says, in the case where not departing from scope of the present application, the first client can be known as the second client, and similarly, can incite somebody to action
Second client is known as the first client.The first client and the second client both client, but it is not same visitor
Family end.
Fig. 1 is the application scenario diagram of one embodiment sound intermediate frequency processing method.As shown in Figure 1, including in the application scenarios
Electronic equipment 102 and Bluetooth audio equipment 104, electronic equipment 102 and Bluetooth audio equipment 104 can be connected by bluetooth
It connects.After connection, electronic equipment 102 can send Bluetooth audio signals to Bluetooth audio equipment 104, and Bluetooth audio equipment 104 can
To obtain received signal strength, and the received signal strength that will acquire is sent to electronic equipment 102.Electronic equipment 102 receives
After the received signal strength that Bluetooth audio equipment 104 is sent, audio coding mode can be switched into received signal strength pair
The target code mode answered, then according to target code mode to 104 sending mode handover request of Bluetooth audio equipment.Bluetooth sound
Frequency equipment can compile audio decoder pattern switching to target according to pattern switching message after receiving pattern switching message
The corresponding target decoder mode of pattern.Wherein, electronic equipment 102 can with but be limited to be PC, mobile terminal, a number
Word assistant, wearable electronic etc..Bluetooth audio equipment 104 can be, but not limited to be Baffle Box of Bluetooth, bluetooth headset etc..
Fig. 2 is the flow chart of one embodiment sound intermediate frequency processing method.As shown in Fig. 2, the audio-frequency processing method includes step
Rapid 202 to step 206.Wherein:
Step 202, the received signal strength that Bluetooth audio equipment is sent is obtained, received signal strength is for indicating bluetooth sound
The intensity for the Bluetooth audio signals that frequency equipment receives.
Specifically, bluetooth (Bluetooth) is a kind of wireless technology standard that short-range data exchange may be implemented.Bluetooth
Bluetooth module can be installed, the bluetooth module of installation has corresponding Bluetooth identification in audio frequency apparatus and electronic equipment.It is building
Before vertical connection, Bluetooth audio equipment and electronic equipment can open bluetooth module respectively.Electronic equipment can be to neighbouring indigo plant
Tooth module scans for, and after the bluetooth module for searching Bluetooth audio equipment, can send out to the bluetooth module of Bluetooth audio equipment
Play connection request.After the bluetooth module of Bluetooth audio equipment is agreed to, so that it may return to one to the bluetooth module of electronic equipment
Agree to the message of connection, the bluetooth module of electronic equipment can be according to the indigo plant for the message and Bluetooth audio equipment that the agreement connects
Tooth module establishes connection.
After electronic equipment and Bluetooth audio equipment are attached by bluetooth, bluetooth can be sent to Bluetooth audio equipment
Audio signal, Bluetooth audio equipment can play audio according to the Bluetooth audio signals received.Specifically, electronic equipment can
To encode audio file, a kind of data-signal i.e. Bluetooth audio signals are formed, are then sent to Bluetooth audio signals
Bluetooth audio equipment.Bluetooth audio signals can be decoded by Bluetooth audio equipment after receiving Bluetooth audio signals,
Form the analog signal that can be played.
It is understood that Bluetooth audio signals may have decaying, general electronic equipment and indigo plant in transmission process
The distance of tooth audio frequency apparatus is remoter, and the decaying of Bluetooth audio signals is more serious.Received signal strength indicates Bluetooth audio equipment
The intensity of the Bluetooth audio signals received specifically can be Bluetooth audio signals that Bluetooth audio equipment receives relative to electricity
The attenuation degree for the Bluetooth audio signals that sub- equipment is sent.Bluetooth audio equipment actively can transmit and receive signal to electronic equipment
Intensity (Received Signal Strength Indicator, RSSI).Also it can receive the strong of electronic equipment transmission
It spends after acquisition request, transmits and receives signal strength to electronic equipment.
By taking android system as an example, received signal strength can call BluetoothGatt object in systems
ReadRemoteRssi method obtains, and then passes through the onReadRemoteRssi of BluetoothGattCallback object
Interface is returned.For example, the received signal strength obtained can be -50dBm, -70dBm etc..
Step 204, audio coding mode is switched into the corresponding target code mode of received signal strength.
Electronic equipment can support one or more audio coding modes, Bluetooth audio equipment that can also generally support one kind
Or a variety of audio decoder modes, but the decoding process of the coding mode of electronic equipment and Bluetooth audio equipment is corresponding.Example
Such as, audio coding mode may include SBC (Sub-band coding, sub-band coding), ACC (Advanced Audio
Coding-X, Advanced Audio Coding), APTX (Audio Processing Technology, digital audio compression algorithm),
LDAC etc..When electronic equipment is encoded using SBC, corresponding Bluetooth audio equipment is also required to using the corresponding decoding of SBC
Algorithm is decoded.
It should be noted that different coding modes is different to the resources occupation rate of electronic equipment, to Bluetooth audio equipment
Resources occupation rate it is also different.After generally being encoded using high-quality coding mode, the bit rate of Bluetooth audio signals can be more
The frequency range of height, occupancy is bigger, in this way if electronic equipment and Bluetooth audio equipment distance farther out when, be easy for card
?.
It in one embodiment, can be according to the power for the signal that Bluetooth audio equipment receives, to adjust audio coding
Mode.When the signal that Bluetooth audio equipment receives is stronger, so that it may be adjusted to the bigger audio of resource occupation and compile
Pattern.When the signal that Bluetooth audio equipment receives is weaker, so that it may be adjusted to the smaller audio of resource occupation
Coding mode.Specifically, when getting the received signal strength of Bluetooth audio equipment transmission, it can be according to received signal strength
Corresponding target code mode is selected, the audio coding mode of electronic equipment is then switched to the target code mode.
Different code encoding/decoding modes is different to the resource consumption of electronic equipment with Bluetooth audio equipment, and the audio of high-quality is compiled
Code mode is often also different to the electric quantity consumption of electronic equipment and Bluetooth audio equipment, then can be according to electronic equipment and/or indigo plant
The remaining capacity of tooth audio frequency apparatus switches audio coding mode.When electronic equipment and/or the remaining capacity of Bluetooth audio equipment
When more, audio coding mode can be switched according to received signal strength.When electronic equipment and Bluetooth audio equipment
When remaining capacity is all seldom, audio coding mode can be directly switched to the audio coding of the less common quality of power consumption
Mode.
Specifically, the remaining capacity of available electronic equipment and/or Bluetooth audio equipment;When the residue electricity of electronic equipment
When amount is higher than the remaining capacity of the first power threshold and/or Bluetooth audio equipment higher than the second power threshold, by audio coding mould
Formula switches to the corresponding target code mode of received signal strength.Wherein, the first power threshold and the second power threshold can phases
Together, it can also be different, it is not limited here.
Step 206, according to target code mode to Bluetooth audio equipment sending mode handover request, pattern switching message is used
In instruction Bluetooth audio equipment by audio decoder pattern switching to the corresponding target decoder mode of target code mode.
The audio coding mode of electronic equipment setting with the audio decoder mode that Bluetooth audio equipment is arranged be it is corresponding, this
Sample just can guarantee that Bluetooth audio equipment normally parses Bluetooth audio signals.Therefore electronic equipment switching audio coding mode it
Afterwards, the pattern switching message of switching audio decoder mode can be sent to Bluetooth audio equipment.Specifically, electronic equipment can be according to mesh
It marks coding mode and generates pattern switching message, pattern switching message is sent to Bluetooth audio equipment, then Bluetooth audio equipment
The corresponding target decoder mode of target code mode is switched to further according to pattern switching message.
For example, audio coding mode is switched to APTX coding mode when received signal strength is greater than -50dbm;
When received signal strength is less than -50dbm, audio coding mode is switched to SBC coding mode.When electronic equipment is switched to
APTX coding mode, corresponding Bluetooth audio equipment will also be switched to APTX decoding mode, when electronic equipment is switched to SBC coding
When mode, corresponding Bluetooth audio equipment will also be switched to SBC decoding mode.
Audio-frequency processing method provided by the above embodiment, can with Bluetooth audio equipment transmission Bluetooth audio signals when
It waits, obtains the received signal strength that Bluetooth audio equipment is sent, switch audio coding mode further according to received signal strength, and
The pattern switching message of switching audio decoder mode is sent to Bluetooth audio equipment.It can thus be connect according to Bluetooth audio equipment
The ability of the collection of letters number is strong and weak, to adjust code encoding/decoding mode, improves the efficiency of transmission of audio.
Fig. 3 is the flow chart of another embodiment sound intermediate frequency processing method.As shown in figure 3, the audio-frequency processing method includes
Step 302 is to step 306.Wherein:
Step 302, message is obtained to Bluetooth audio equipment sending mode.
In one embodiment, by the encoding/decoding mode difference that electronic equipment and Bluetooth audio equipment are supported, so
After establishing connection with Bluetooth audio equipment, electronic equipment can be obtained to Bluetooth audio equipment sending mode to disappear electronic equipment
Breath, to obtain the audio decoder mode that Bluetooth audio equipment is supported.Electronic equipment could be according to Bluetooth audio equipment institute in this way
The audio decoder mode of support selects audio coding mode.
Step 304, it receives Bluetooth audio equipment to be identified according to the decoding mode that pattern acquiring message returns, decoding mode mark
Know the audio decoder mode supported for indicating Bluetooth audio equipment.
After electronic equipment obtains message to Bluetooth audio equipment sending mode, Bluetooth audio equipment can be obtained according to mode
Message is taken to obtain the decoding mode of supported audio decoder mode mark, the decoding mode mark that then will acquire returns to
Electronic equipment.For example, when the decoding mode that electronic equipment receives Bluetooth audio equipment return is identified as " SBC-D " and " LDAC-
When D ", illustrate that Bluetooth audio equipment can support SBC decoding mode and LDAC decoding mode.
Step 306, if there is default decoding mode mark in decoding mode mark, currently playing audio text is obtained
Part, audio file generate Bluetooth audio signals for encoding.
Broadcasting sound quality after audio file is encoded by different audio coding modes is different, and general audio is compiled
Pattern can be divided into high quality audio coding and common quality audio coding, and audio file is carried out according to high quality audio coding
Broadcasting sound quality after coding is higher than the broadcasting sound quality after being encoded according to common quality audio.In Bluetooth audio equipment
It only supports in the decoded situation of common quality audio, so that it may without the code encoding/decoding mode for adjusting audio.And it can support Gao Pin
The Bluetooth audio equipment of matter audio decoder can also generally support common quality audio to decode, therefore can detecte Bluetooth audio frequency
Whether equipment supports high quality audio to decode.In the case where supporting the decoded situation of high quality audio, electronic equipment is believed further according to reception
Number intensity switches audio coding mode.
Specifically, after the decoding mode that electronic equipment receives Bluetooth audio equipment transmission identifies, it can be determined that decoding
With the presence or absence of default decoding mode mark in pattern identification.If there is default decoding mode mark in decoding mode mark, obtain
The received signal strength for taking Bluetooth audio equipment to send, then adjusts audio coding mode according to received signal strength;If solution
There is no default decoding mode marks in pattern mark, then without adjusting audio coding mode according to received signal strength.
For example, LDAC decoding mode, APTX decoding mode are high-quality decoding mode, SBC decoding mode, AAC decode mould
Formula is common quality decoding mode, then when in the decoding mode mark that Bluetooth audio equipment returns comprising " LDAC-D " or
When " APTX-D ", so that it may which then the received signal strength for obtaining Bluetooth audio equipment transmission is adjusted according to received signal strength
Save audio coding mode.
In embodiment provided by the present application, after electronic equipment connecting Bluetooth audio equipment, the audio file of broadcasting is just
Coding can be carried out according to audio coding mode and generates Bluetooth audio signals, and Bluetooth audio signals are sent to Bluetooth audio frequency and are set
It is standby to play out.When playing audio file, it can be decided whether according to currently playing audio file according to reception
Signal strength adjusts audio coding mode.
Step 308, if audio file is preset audio file, the reception signal for obtaining Bluetooth audio equipment transmission is strong
Degree.
When judging currently playing audio file for preset audio file, then available Bluetooth audio equipment is sent
Received signal strength, and audio coding mode is switched according to received signal strength.Specifically, preset audio file can be it is pre-
If the audio file of type, it is also possible to the audio file that user's mark is crossed, can also be file size in a certain size range
Audio file, in the present embodiment without limitation.
For example, can be marked to the audio file when user needs to play some audio file with high-quality sound quality
Note.Electronic equipment is when obtaining currently playing audio file, if detect that the audio file is not labeled, so that it may root
Switch audio coding mode according to received signal strength.If detecting, the audio file is marked with, just according to high quality audio
Mode encodes audio file.
Step 310, it obtains decoding mode and identifies corresponding coding mode mark, according to received signal strength from coding mode
Target code pattern identification is obtained in mark.
Since the encoding and decoding of audio file are corresponding, so the audio coding mode of electronic equipment switching, needs in indigo plant
There are corresponding audio decoder mode in tooth audio frequency apparatus, the broadcasting of audio file just can guarantee.Electronic equipment can be according to indigo plant
The decoding mode mark that tooth audio frequency apparatus is sent identifies to obtain corresponding coding mode, is then looked into according to coding mode mark
Look for target code pattern identification.For example, receiving the decoding mode that Bluetooth audio equipment starts is identified as " SBC-D ", " AAC-D "
" LDAC-D ", obtaining corresponding coding mode mark can be for " SBC-C ", " AAC-C " and " LDAC-C ".
Electronic equipment can pre-establish the strength range of received signal strength and the corresponding relationship of coding mode mark,
When getting the received signal strength of Bluetooth audio equipment transmission, so that it may judge which intensity model received signal strength falls into
In enclosing, then obtains the corresponding coding mode mark of fallen into strength range and be used as target code pattern identification.
It is understood that strength range and the coding mode mark of received signal strength can be one-to-one relationship,
It is also possible to one-to-many relationship.When the strength range of signal strength and coding mode are identified as one-to-many corresponding relationship,
Coding mode can be identified and be ranked up, then obtained and sort in the corresponding coding mode mark of strength range near preceding work
For target code pattern identification.
Step 312, audio coding mode is switched into the corresponding target code mode of target code pattern identification.
After getting target code pattern identification, the audio coding mode of electronic equipment can be switched into target code
The corresponding target code mode of pattern identification.
Step 314, according to target code mode to Bluetooth audio equipment sending mode handover request, pattern switching message is used
In instruction Bluetooth audio equipment by audio decoder pattern switching to the corresponding target decoder mode of target code mode.
In embodiment provided by the present application, user can with the audio coding mode of manual setting electronic equipment, when with
When the audio coding mode of family manual setting electronic equipment, electronic equipment can close the function of automatic cut-flower audio coding mode
Can, do not switch audio coding mode further according to received signal strength.
Specifically, can decide whether to detect the mode setting instruction that user inputs, if detecting the mould of user's input
Formula setting instruction, then the subscriber-coded pattern identification for including in obtaining mode setting instruction, and audio coding mode is switched to
It is subscriber-coded to identify corresponding subscriber-coded mode;If the mode setting instruction of user's input is not detected, start to execute step
Rapid 302.
Fig. 4 is the schematic diagram of one embodiment sound intermediate frequency encoding and decoding.As shown in figure 4, electronic equipment can be available with 40
Then audio file 402 is carried out coding and generates Bluetooth audio signals, then sends out Bluetooth audio signals 404 by audio file 402
Give Bluetooth audio equipment 42.Bluetooth audio equipment 42 can carry out Bluetooth audio frequency after receiving Bluetooth audio signals 422
422 are decoded, and generate analog signal 424 and play out.
In one embodiment, as shown in figure 5, the method for switching coding mode mark can specifically include:
Step 502, if received signal strength is higher than intensity threshold, audio coding mode is switched into first object coding
Mode.
Electronic equipment can preset an intensity threshold, when detecting that received signal strength is higher than intensity threshold
It waits, illustrates that the ability of Bluetooth audio equipment reception Bluetooth audio signals is stronger, so that it may which audio coding mode is switched to energy
Enough generate the audio coding mode of high quality audio.
Step 504, if received signal strength is lower than intensity threshold, audio coding mode is switched into the second target code
Wherein, the resources occupation rate of first object coding mode coding is higher than the resource occupation of the second target code pattern-coding to mode
Rate.
When detecting received signal strength lower than intensity threshold, illustrate that Bluetooth audio equipment receives Bluetooth audio frequency letter
If number ability compare, so that it may audio coding mode is switched to the audio coding mode that can generate low-quality audio.
For example, when received signal strength be lower than intensity threshold M when, by audio coding mode be switched to SBC coding mode or
AAC coding mode;When received signal strength be higher than intensity threshold M when, by audio coding mode be switched to LDAC coding mode or
APTX coding mode.
In one embodiment, as shown in fig. 6, the method for above-mentioned switching audio coding mode specifically can also include:
Step 602, the switching moment of last switching audio coding mode is obtained.
Assuming that when the Bluetooth audio signals that receive of Bluetooth audio equipment are unstable, the audio coding mould of electronic equipment
Formula may may will affect the use of user by frequent switching in this way.So a time window machine can be set in electronic equipment
System, when have connected Bluetooth audio equipment because received signal strength changes and when switching audio coding mode, start timing.Work as meter
It when Shi Shichang is in certain time length, gets Bluetooth audio equipment change in signal strength and does not handle without exception, be more than in timing duration
When certain time length, switch audio coding mode further according to the received signal strength of acquisition.
Electronic equipment obtains a received signal strength at interval of preset time period, sends when getting Bluetooth audio equipment
Received signal strength when, obtain the switching moment of last switching audio coding mode.Specifically, electronic equipment can be with column
The form of table records the audio coding mode of the switching moment for switching audio coding mode each time and switching front and back, this
Sample electronic equipment can be read the switching moment nearest apart from current time directly from the list, switch audio as the last time
The switching moment of coding mode.
Fig. 7 is the schematic diagram for the list that record electronic equipment switches audio coding mode in one embodiment.Such as Fig. 7 institute
Show, includes in the list " switching moment ", " audio coding mode before switching " and " audio coding mode after switching ".Its
In, at the time of when " switching moment " is for recording switching audio coding mode each time, " audio coding mode before switching " is used
The coding mode mark of audio coding mode before record switches each time, " audio coding mode after switching " is for recording
The coding mode mark of audio coding mode after switching each time.
Step 604, if the switching moment of last switching audio coding mode is big to the time interval between current time
In interval threshold, then the received signal strength currently obtained and last time are switched to received signal strength when audio coding mode
It is compared.
It is greater than interval threshold, table to the time interval between current time when the switching moment of last switching audio coding
Show that electronic equipment allows to switch audio coding mode according to received signal strength.The reception signal that so will can currently obtain
Intensity is compared with received signal strength when last switching audio coding mode, if they are the same, then without switching audio volume
Pattern;If it is different, then audio coding mode can be switched according to the received signal strength currently obtained.
It will be appreciated that frequent switching causes the power consumption of electronic equipment or Bluetooth audio equipment excessively high in order to prevent, on
Stating interval threshold can also be arranged according to the remaining capacity of electronic equipment and/or Bluetooth audio equipment.Then above-mentioned audio processing
Method can also include: the remaining capacity for obtaining electronic equipment and/or Bluetooth audio equipment, according to electronic equipment and/or bluetooth
The remaining capacity of audio frequency apparatus obtains interval threshold.The remaining capacity of general electronic equipment and/or Bluetooth audio equipment is higher, right
The interval threshold answered is smaller;The remaining capacity of electronic equipment and/or Bluetooth audio equipment is lower, and corresponding interval threshold is bigger.
Step 606, if the received signal strength currently obtained and reception signal when last switching audio coding mode
Intensity is different, then audio coding mode is switched to target code mode corresponding to the received signal strength currently obtained.
If the received signal strength currently obtained is different from received signal strength when last switching audio coding mode,
Audio coding mode is then switched according to the received signal strength currently obtained.Specifically, if the reception signal currently obtained is strong
Degree is higher than intensity threshold, then audio coding mode is switched to first object coding mode;If the reception signal currently obtained is strong
Degree is lower than intensity threshold, then audio coding mode is switched to the second target code mode.
In one embodiment, it whether identical can also first compare received signal strength, then compare again and cut apart from last time
Change the duration of audio coding mode.If specifically may include: the received signal strength currently obtained and last switching audio
Received signal strength when coding mode is different, then obtains the switching moment of last switching audio coding mode;If last
The switching moment for switching audio coding mode is greater than interval threshold to the time interval between current time, then by audio coding mould
Formula switches to target code mode corresponding to the received signal strength currently obtained.
Audio-frequency processing method provided by the above embodiment, can with Bluetooth audio equipment transmission Bluetooth audio signals when
It waits, in the case where judging the currently playing audio file of electronic equipment for preset audio file, obtains Bluetooth audio equipment and send
Received signal strength.Switch audio coding mode further according to received signal strength, and sends and switch to Bluetooth audio equipment
The pattern switching message of audio decoder mode.The ability that signal can be thus received according to Bluetooth audio equipment is strong and weak, to adjust
Decoding process is reorganized, the efficiency of transmission of audio is improved.
It should be understood that although each step in the flow chart of Fig. 2,3,5 and 6 is successively shown according to the instruction of arrow
Show, but these steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly state otherwise herein, this
There is no stringent sequences to limit for the execution of a little steps, these steps can execute in other order.Moreover, Fig. 2,3,5 and 6
In at least part step may include that perhaps these sub-steps of multiple stages or stage are not necessarily multiple sub-steps
Completion is executed in synchronization, but can be executed at different times, the execution in these sub-steps or stage sequence is not yet
Necessarily successively carry out, but can be at least part of the sub-step or stage of other steps or other steps in turn
Or it alternately executes.
Fig. 8 is the structural schematic diagram of one embodiment middle pitch frequency processing device.As shown in figure 8, the apparatus for processing audio 800
Module 802, mode switch module 804 and message transmission module 806 are obtained including intensity.Wherein:
Intensity obtains module 802, and for obtaining the received signal strength of Bluetooth audio equipment transmission, the reception signal is strong
Spend the intensity for indicating Bluetooth audio signals that the Bluetooth audio equipment receives.
Mode switch module 804 is compiled for audio coding mode to be switched to the corresponding target of the received signal strength
Pattern.
Message transmission module 806, for being cut according to the target code mode to the Bluetooth audio equipment sending mode
Message is changed, the pattern switching message is used to indicate the Bluetooth audio equipment and compiles audio decoder pattern switching to the target
The corresponding target decoder mode of pattern.
Apparatus for processing audio provided by the above embodiment, can with Bluetooth audio equipment transmission Bluetooth audio signals when
It waits, obtains the received signal strength that Bluetooth audio equipment is sent, switch audio coding mode further according to received signal strength, and
The pattern switching message of switching audio decoder mode is sent to Bluetooth audio equipment.It can thus be connect according to Bluetooth audio equipment
The ability of the collection of letters number is strong and weak, to adjust code encoding/decoding mode, improves the efficiency of transmission of audio.
Fig. 9 is the structural schematic diagram of another embodiment middle pitch frequency processing device.As shown in figure 9, the apparatus for processing audio
900 include identifier acquisition module 902, intensity acquisition module 904, mode switch module 906 and message transmission module 908.Wherein:
Identifier acquisition module 902, for obtaining message to the Bluetooth audio equipment sending mode;Receive the bluetooth sound
Frequency equipment is identified according to the decoding mode that the pattern acquiring message returns, and the decoding mode mark is for indicating the bluetooth
The audio decoder mode that audio frequency apparatus is supported.
Intensity obtains module 904, if obtaining indigo plant for there is default decoding mode mark in decoding mode mark
The received signal strength that tooth audio frequency apparatus is sent, the received signal strength is for indicating what the Bluetooth audio equipment received
The intensity of Bluetooth audio signals.
Mode switch module 806 is compiled for audio coding mode to be switched to the corresponding target of the received signal strength
Pattern.
Message transmission module 808, for being cut according to the target code mode to the Bluetooth audio equipment sending mode
Message is changed, the pattern switching message is used to indicate the Bluetooth audio equipment and compiles audio decoder pattern switching to the target
The corresponding target decoder mode of pattern.
Apparatus for processing audio provided by the above embodiment, can with Bluetooth audio equipment transmission Bluetooth audio signals when
It waits, obtains the received signal strength that Bluetooth audio equipment is sent, switch audio coding mode further according to received signal strength, and
The pattern switching message of switching audio decoder mode is sent to Bluetooth audio equipment.It can thus be connect according to Bluetooth audio equipment
The ability of the collection of letters number is strong and weak, to adjust code encoding/decoding mode, improves the efficiency of transmission of audio.
In one embodiment, mode switch module 904 is also used to obtain currently playing audio file, the audio text
Part generates Bluetooth audio signals for encoding;If the audio file is preset audio file, Bluetooth audio equipment hair is obtained
The received signal strength sent.
In one embodiment, mode switch module 906 is also used to obtain the decoding mode and identifies corresponding coding mould
Formula mark obtains target code pattern identification from coding mode mark according to the received signal strength;Audio is compiled
Pattern switches to the corresponding target code mode of the target code pattern identification.
In one embodiment, mode switch module 906 is also used to obtain the electronic equipment and/or Bluetooth audio equipment
Remaining capacity;When the remaining capacity of the electronic equipment is higher than the residue electricity of the first power threshold and/or Bluetooth audio equipment
When amount is higher than the second power threshold, audio coding mode is switched into the corresponding target code mode of the received signal strength.
In one embodiment, if mode switch module 906 is also used to the received signal strength and is higher than intensity threshold,
Audio coding mode is switched into first object coding mode;If the received signal strength is lower than intensity threshold, by audio
Coding mode switches to the second target code mode;Wherein, the resources occupation rate of the first object coding mode coding is higher than
The resources occupation rate of the second target code pattern-coding.
In one embodiment, mode switch module 906 is also used to obtain the switching of last switching audio coding mode
Moment;If the switching moment of the last switching audio coding mode is greater than interval threshold to the time interval between current time
Value then compares the received signal strength currently obtained and received signal strength when last switching audio coding mode
Compared with;If the received signal strength currently obtained is different from received signal strength when last switching audio coding mode, will
Audio coding mode switches to target code mode corresponding to the received signal strength currently obtained.
The division of modules is only used for for example, in other embodiments in above-mentioned apparatus for processing audio, can be by sound
Frequency processing device is divided into different modules as required, to complete all or part of function of above-mentioned apparatus for processing audio.
Realizing for the modules in apparatus for processing audio provided in the embodiment of the present application can be the shape of computer program
Formula.The computer program can be run in terminal or server.The program module that the computer program is constituted is storable in terminal
Or on the memory of server.When the computer program is executed by processor, method described in the embodiment of the present application is realized
Step.
The embodiment of the present application also provides a kind of computer readable storage mediums.One or more is executable comprising computer
The non-volatile computer readable storage medium storing program for executing of instruction, when the computer executable instructions are executed by one or more processors
When, so that the step of processor executes audio-frequency processing method.
A kind of computer program product comprising instruction, when run on a computer, so that computer executes audio
Processing method.
The embodiment of the present application also provides a kind of electronic equipment.As shown in Figure 10, for ease of description, it illustrates only and this
Apply for the relevant part of embodiment, it is disclosed by specific technical details, please refer to the embodiment of the present application method part.The electronics is set
It include mobile phone, tablet computer, PDA (Personal Digital Assistant, personal digital assistant), POS for that can be
Any terminal device such as (Point of Sales, point-of-sale terminal), vehicle-mounted computer, wearable device, using electronic equipment as mobile phone
For:
Figure 10 is the block diagram of the part-structure of mobile phone relevant to electronic equipment provided by the embodiments of the present application.With reference to figure
10, mobile phone includes: radio frequency (Radio Frequency, RF) circuit 1010, memory 1020, input unit 1030, display unit
1040, sensor 1050, voicefrequency circuit 1060, Wireless Fidelity (wirelessfidelity, WiFi) module 1070, processor
The components such as 1080 and power supply 1090.It will be understood by those skilled in the art that handset structure shown in Fig. 10 does not constitute opponent
The restriction of machine may include perhaps combining certain components or different component layouts than illustrating more or fewer components.
Wherein, RF circuit 1010 can be used for receiving and sending messages or communication process in, signal sends and receivees, can be by base station
After downlink information receives, handled to processor 1080;The data of uplink can also be sent to base station.In general, RF circuit includes
But be not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier (Low Noise Amplifier,
LNA), duplexer etc..In addition, RF circuit 1010 can also be communicated with network and other equipment by wireless communication.It is above-mentioned wireless
Any communication standard or agreement, including but not limited to global system for mobile communications (Global System of can be used in communication
Mobile communication, GSM), general packet radio service (General Packet Radio Service,
GPRS), CDMA (Code Division Multiple Access, CDMA), wideband code division multiple access (Wideband Code
Division Multiple Access, WCDMA), long term evolution (Long Term Evolution, LTE)), Email,
Short message service (Short Messaging Service, SMS) etc..
Memory 1020 can be used for storing software program and module, and processor 1080 is stored in memory by operation
1020 software program and module, thereby executing the various function application and data processing of mobile phone.Memory 1020 can be led
It to include program storage area and data storage area, wherein program storage area can be needed for storage program area, at least one function
Application program (such as application program, application program of image player function of sound-playing function etc.) etc.;It data storage area can
Storage uses created data (such as audio data, address list etc.) etc. according to mobile phone.In addition, memory 1020 can wrap
High-speed random access memory is included, can also include nonvolatile memory, for example, at least disk memory, a flash memories
Part or other volatile solid-state parts.
Input unit 1030 can be used for receiving the number or character information of input, and generates and set with the user of mobile phone 1000
It sets and the related key signals of function control inputs.Specifically, input unit 1030 may include touch panel 1031 and other
Input equipment 1032.Touch panel 1031, alternatively referred to as touch screen collect the touch operation (ratio of user on it or nearby
Such as user is using finger, stylus any suitable object or attachment on touch panel 1031 or near touch panel 1031
Operation), and corresponding attachment device is driven according to preset formula.In one embodiment, touch panel 1031 can
Including both touch detecting apparatus and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and examine
Touch operation bring signal is surveyed, touch controller is transmitted a signal to;Touch controller receives touching from touch detecting apparatus
Information is touched, and is converted into contact coordinate, then gives processor 1080, and order that processor 1080 is sent can be received and added
To execute.Furthermore, it is possible to realize touch panel using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves
1031.In addition to touch panel 1031, input unit 1030 can also include other input equipments 1032.Specifically, other are inputted
Equipment 1032 can include but is not limited to one in physical keyboard, function key (such as volume control button, switch key etc.) etc.
Kind is a variety of.
Display unit 1040 can be used for showing information input by user or be supplied to user information and mobile phone it is each
Kind menu.Display unit 1040 may include display panel 1041.In one embodiment, liquid crystal display can be used
(Liquid Crystal Display, LCD), Organic Light Emitting Diode (Organic Light-Emitting Diode,
) etc. OLED forms configure display panel 1041.In one embodiment, touch panel 1031 can cover display panel 1041,
After touch panel 1031 detects touch operation on it or nearby, processor 1080 is sent to determine touch event
Type is followed by subsequent processing device 1080 according to the type of touch event and provides corresponding visual output on display panel 1041.Although
In Figure 10, touch panel 1031 and display panel 1041 are the input and input for realizing mobile phone as two independent components
Function, but in some embodiments it is possible to touch panel 1031 and display panel 1041 are integrated and are realized the input of mobile phone
And output function.
Mobile phone 1000 may also include at least one sensor 1050, such as optical sensor, motion sensor and other biographies
Sensor.Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can be according to ring
The light and shade of border light adjusts the brightness of display panel 1041, and proximity sensor can close display when mobile phone is moved in one's ear
Panel 1041 and/or backlight.Motion sensor may include acceleration transducer, can detect all directions by acceleration transducer
The size of upper acceleration can detect that size and the direction of gravity when static, the application that can be used to identify mobile phone posture is (such as horizontal
Vertical screen switching), Vibration identification correlation function (such as pedometer, tap) etc.;In addition, mobile phone can also configure gyroscope, barometer,
Other sensors such as hygrometer, thermometer, infrared sensor etc..
Voicefrequency circuit 1060, loudspeaker 1061 and microphone 1062 can provide the audio interface between user and mobile phone.Sound
Electric signal after the audio data received conversion can be transferred to loudspeaker 1061, by 1061 turns of loudspeaker by frequency circuit 1060
It is changed to voice signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 1062, by voicefrequency circuit
Audio data is converted to after 1060 receptions, then by after the processing of audio data output processor 1080, can be sent out through RF circuit 1010
Another mobile phone is given, or audio data is exported to memory 1020 so as to subsequent processing.
WiFi belongs to short range wireless transmission technology, and mobile phone can help user's transceiver electronics postal by WiFi module 1070
Part, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Figure 10 is shown
WiFi module 1070, but it is understood that, and it is not belonging to must be configured into for mobile phone 1000, it can according to need and save
Slightly.
Processor 1080 is the control centre of mobile phone, using the various pieces of various interfaces and connection whole mobile phone,
By running or execute the software program and/or module that are stored in memory 1020, and calls and be stored in memory 1020
Interior data execute the various functions and processing data of mobile phone, to carry out integral monitoring to mobile phone.In one embodiment,
Processor 1080 may include one or more processing units.In one embodiment, processor 1080 can integrate application processor
And modem processor, wherein the main processing operation system of application processor, user interface and application program etc.;Modulatedemodulate
Processor is adjusted mainly to handle wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor
In 1080.
Mobile phone 1000 further includes the power supply 1090 (such as battery) powered to all parts, it is preferred that power supply can pass through
Power-supply management system and processor 1080 are logically contiguous, to realize management charging, electric discharge, Yi Jigong by power-supply management system
The functions such as consumption management.
In one embodiment, mobile phone 1000 can also include camera, bluetooth module etc..
In the embodiment of the present application, processor 1080 included by the electronic equipment executes the calculating of storage on a memory
The step of audio-frequency processing method is realized when machine program.
Any reference to memory, storage, database or other media used in this application may include non-volatile
And/or volatile memory.Nonvolatile memory may include that read-only memory (ROM), programming ROM (PROM), electricity can be compiled
Journey ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include random access memory
(RAM), it is used as external cache.By way of illustration and not limitation, RAM is available in many forms, such as static state RAM
(SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDR SDRAM), enhanced SDRAM
(ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) directly RAM (RDRAM), straight
Connect memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM).
The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously
The limitation to the application the scope of the patents therefore cannot be interpreted as.It should be pointed out that for those of ordinary skill in the art
For, without departing from the concept of this application, various modifications and improvements can be made, these belong to the guarantor of the application
Protect range.Therefore, the scope of protection shall be subject to the appended claims for the application patent.
Claims (10)
1. a kind of audio-frequency processing method characterized by comprising
The received signal strength that Bluetooth audio equipment is sent is obtained, the received signal strength is for indicating that the Bluetooth audio frequency is set
The intensity of the standby Bluetooth audio signals received;
Audio coding mode is switched into the corresponding target code mode of the received signal strength;
According to the target code mode to the Bluetooth audio equipment sending mode handover request, the pattern switching message is used
In indicating the Bluetooth audio equipment by audio decoder pattern switching to the corresponding target decoder mode of the target code mode.
2. the method according to claim 1, wherein the reception signal for obtaining Bluetooth audio equipment transmission is strong
Before degree, further includes:
Message is obtained to the Bluetooth audio equipment sending mode;
It receives the Bluetooth audio equipment to be identified according to the decoding mode that the pattern acquiring message returns, the decoding mode mark
Know the audio decoder mode supported for indicating the Bluetooth audio equipment;
The received signal strength for obtaining Bluetooth audio equipment and sending, comprising:
If there is default decoding mode mark in the decoding mode mark, the reception signal of Bluetooth audio equipment transmission is obtained
Intensity.
3. according to the method described in claim 2, it is characterized in that, described switch to the reception signal for audio coding mode
The corresponding target code mode of intensity, comprising:
It obtains the decoding mode and identifies corresponding coding mode mark, according to the received signal strength from the coding mode
Target code pattern identification is obtained in mark;
Audio coding mode is switched into the corresponding target code mode of the target code pattern identification.
4. the method according to claim 1, wherein the reception signal for obtaining Bluetooth audio equipment transmission is strong
Degree, comprising:
Currently playing audio file is obtained, the audio file generates Bluetooth audio signals for encoding;
If the audio file is preset audio file, the received signal strength of Bluetooth audio equipment transmission is obtained.
5. the method according to claim 1, wherein the method also includes:
Obtain the remaining capacity of the electronic equipment and/or Bluetooth audio equipment;
It is described that audio coding mode is switched into the corresponding target code mode of the received signal strength, comprising:
When the remaining capacity that the remaining capacity of the electronic equipment is higher than the first power threshold and/or Bluetooth audio equipment is higher than the
When two power thresholds, audio coding mode is switched into the corresponding target code mode of the received signal strength.
6. the method according to any one of claims 1 to 5, which is characterized in that described to switch to audio coding mode
The corresponding target code mode of the received signal strength, comprising:
If the received signal strength is higher than intensity threshold, audio coding mode is switched into first object coding mode;
If the received signal strength is lower than intensity threshold, audio coding mode is switched into the second target code mode;
Wherein, the resources occupation rate of the first object coding mode coding is higher than the money of the second target code pattern-coding
Source occupancy.
7. the method according to any one of claims 1 to 5, which is characterized in that described to switch to audio coding mode
The corresponding target code mode of the received signal strength, comprising:
Obtain the switching moment of last switching audio coding mode;
If the switching moment of the last switching audio coding mode is greater than interval threshold to the time interval between current time
Value then compares the received signal strength currently obtained and received signal strength when last switching audio coding mode
Compared with;
If the received signal strength currently obtained is different from received signal strength when last switching audio coding mode, will
Audio coding mode switches to target code mode corresponding to the received signal strength currently obtained.
8. a kind of apparatus for processing audio characterized by comprising
Intensity obtains module, and for obtaining the received signal strength of Bluetooth audio equipment transmission, the received signal strength is used for
Indicate the intensity for the Bluetooth audio signals that the Bluetooth audio equipment receives;
Mode switch module, for audio coding mode to be switched to the corresponding target code mode of the received signal strength;
Message transmission module, for according to the target code mode to the Bluetooth audio equipment sending mode handover request,
The pattern switching message is used to indicate the Bluetooth audio equipment for audio decoder pattern switching to the target code mode
Corresponding target decoder mode.
9. a kind of electronic equipment, including memory and processor, computer program, the computer are stored in the memory
When program is executed by the processor, so that the processor executes the step of the method as described in any one of claims 1 to 7
Suddenly.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program
The step of method as described in any one of claims 1 to 7 is realized when being executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810823219.XA CN108988909B (en) | 2018-07-25 | 2018-07-25 | Audio processing method and device, electronic equipment and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810823219.XA CN108988909B (en) | 2018-07-25 | 2018-07-25 | Audio processing method and device, electronic equipment and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108988909A true CN108988909A (en) | 2018-12-11 |
CN108988909B CN108988909B (en) | 2021-08-17 |
Family
ID=64550850
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810823219.XA Active CN108988909B (en) | 2018-07-25 | 2018-07-25 | Audio processing method and device, electronic equipment and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108988909B (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110083332A (en) * | 2019-04-29 | 2019-08-02 | 努比亚技术有限公司 | Audio switching method, wearable device and computer readable storage medium |
CN110782909A (en) * | 2019-10-10 | 2020-02-11 | 惠州迪芬尼声学科技股份有限公司 | Method for switching audio decoder and intelligent sound box |
CN111093179A (en) * | 2019-12-27 | 2020-05-01 | 合肥中感微电子有限公司 | Wireless communication method, device and system |
WO2020133112A1 (en) * | 2018-12-27 | 2020-07-02 | 华为技术有限公司 | Method for automatically switching bluetooth audio encoding method and electronic apparatus |
CN112669859A (en) * | 2019-10-16 | 2021-04-16 | Oppo广东移动通信有限公司 | Communication mode control method and device |
CN112866859A (en) * | 2021-01-20 | 2021-05-28 | 维沃移动通信有限公司 | Audio playing method and device and wireless earphone |
CN113747409A (en) * | 2021-09-17 | 2021-12-03 | 联想(北京)有限公司 | Control method and electronic equipment |
CN114244383A (en) * | 2021-12-27 | 2022-03-25 | 东莞市阿尔法电子科技有限公司 | Signal processing method, system, Bluetooth headset and storage medium |
CN114666763A (en) * | 2022-05-24 | 2022-06-24 | 东莞市云仕电子有限公司 | Vehicle-mounted wireless earphone system, control method and vehicle-mounted wireless system |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050254661A1 (en) * | 2004-05-14 | 2005-11-17 | Motorola, Inc. | Wireless device for capturing multiple channel audio |
CN104320385A (en) * | 2014-10-10 | 2015-01-28 | 中麦通信网络有限公司 | Mobile terminal voice communication implementation method and device |
CN104837042A (en) * | 2015-05-06 | 2015-08-12 | 腾讯科技(深圳)有限公司 | Digital multimedia data encoding method and apparatus |
CN107481709A (en) * | 2017-08-11 | 2017-12-15 | 腾讯音乐娱乐(深圳)有限公司 | Audio data transmission method and device |
-
2018
- 2018-07-25 CN CN201810823219.XA patent/CN108988909B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050254661A1 (en) * | 2004-05-14 | 2005-11-17 | Motorola, Inc. | Wireless device for capturing multiple channel audio |
CN104320385A (en) * | 2014-10-10 | 2015-01-28 | 中麦通信网络有限公司 | Mobile terminal voice communication implementation method and device |
CN104837042A (en) * | 2015-05-06 | 2015-08-12 | 腾讯科技(深圳)有限公司 | Digital multimedia data encoding method and apparatus |
CN107481709A (en) * | 2017-08-11 | 2017-12-15 | 腾讯音乐娱乐(深圳)有限公司 | Audio data transmission method and device |
Cited By (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP3893475A4 (en) * | 2018-12-27 | 2021-12-29 | Huawei Technologies Co., Ltd. | Method for automatically switching bluetooth audio encoding method and electronic apparatus |
CN114726946A (en) * | 2018-12-27 | 2022-07-08 | 华为技术有限公司 | Method for automatically switching Bluetooth audio coding modes and electronic equipment |
WO2020133112A1 (en) * | 2018-12-27 | 2020-07-02 | 华为技术有限公司 | Method for automatically switching bluetooth audio encoding method and electronic apparatus |
CN112313929A (en) * | 2018-12-27 | 2021-02-02 | 华为技术有限公司 | Method for automatically switching Bluetooth audio coding modes and electronic equipment |
CN114726946B (en) * | 2018-12-27 | 2023-07-11 | 华为技术有限公司 | Method for automatically switching Bluetooth audio coding modes, electronic equipment and readable storage medium |
CN110083332A (en) * | 2019-04-29 | 2019-08-02 | 努比亚技术有限公司 | Audio switching method, wearable device and computer readable storage medium |
CN110782909A (en) * | 2019-10-10 | 2020-02-11 | 惠州迪芬尼声学科技股份有限公司 | Method for switching audio decoder and intelligent sound box |
CN112669859A (en) * | 2019-10-16 | 2021-04-16 | Oppo广东移动通信有限公司 | Communication mode control method and device |
CN112669859B (en) * | 2019-10-16 | 2024-04-02 | Oppo广东移动通信有限公司 | Communication mode control method and device |
CN111093179A (en) * | 2019-12-27 | 2020-05-01 | 合肥中感微电子有限公司 | Wireless communication method, device and system |
CN111093179B (en) * | 2019-12-27 | 2023-10-27 | 合肥中感微电子有限公司 | Wireless communication method, device and system |
CN112866859A (en) * | 2021-01-20 | 2021-05-28 | 维沃移动通信有限公司 | Audio playing method and device and wireless earphone |
CN112866859B (en) * | 2021-01-20 | 2023-08-18 | 维沃移动通信有限公司 | Audio playing method and device and wireless earphone |
CN113747409A (en) * | 2021-09-17 | 2021-12-03 | 联想(北京)有限公司 | Control method and electronic equipment |
CN114244383A (en) * | 2021-12-27 | 2022-03-25 | 东莞市阿尔法电子科技有限公司 | Signal processing method, system, Bluetooth headset and storage medium |
CN114666763A (en) * | 2022-05-24 | 2022-06-24 | 东莞市云仕电子有限公司 | Vehicle-mounted wireless earphone system, control method and vehicle-mounted wireless system |
Also Published As
Publication number | Publication date |
---|---|
CN108988909B (en) | 2021-08-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108988909A (en) | Audio-frequency processing method and device, electronic equipment, computer readable storage medium | |
CN104135501B (en) | Page sharing method, Apparatus and system | |
CN107342801A (en) | A kind of wave beam processing method, user equipment and base station | |
CN107820331A (en) | Call method, device, computer equipment and readable storage medium storing program for executing | |
CN104869468A (en) | Method and apparatus for displaying screen information | |
CN104618794A (en) | Method and device for playing video | |
CN104573597A (en) | Two-dimension code identification method and identification device | |
CN104834529A (en) | Method and device for optimizing performance of application | |
CN104168175A (en) | Message group sensing method and terminal in instant messaging | |
CN108471632A (en) | Information processing method, device, mobile terminal and computer readable storage medium | |
CN104426919A (en) | Page sharing method, device and system | |
CN104426963A (en) | Terminal associating method and terminal | |
CN108449491A (en) | Information processing method, device, mobile terminal and computer readable storage medium | |
CN107818465A (en) | Method, equipment, mobile terminal and the computer-readable storage medium of payment | |
CN106330211B (en) | LTE Frequency Band Selection method and apparatus | |
CN109144232A (en) | Process handling method and device, electronic equipment, computer readable storage medium | |
CN103491240B (en) | A kind of alarm clock ringing method, device and mobile terminal | |
CN104243538A (en) | Resource sharing method and system | |
CN106507482A (en) | A kind of network locating method and terminal device | |
CN106455027A (en) | Network standard adjustment method and mobile terminal | |
CN104461597A (en) | Starting control method and device for application program | |
CN107547704A (en) | Call MIC switching method, device and mobile terminal | |
CN103744574A (en) | Method and device for turning off alarm clock of mobile terminal and mobile terminal | |
CN103458277A (en) | Method and device for operating live channel programs | |
CN103546632B (en) | A kind of quarter-bell ringing method for mobile terminal, device and mobile terminal |
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 |