CN110072011A - Adjust code rate method and Related product - Google Patents

Adjust code rate method and Related product Download PDF

Info

Publication number
CN110072011A
CN110072011A CN201910335688.1A CN201910335688A CN110072011A CN 110072011 A CN110072011 A CN 110072011A CN 201910335688 A CN201910335688 A CN 201910335688A CN 110072011 A CN110072011 A CN 110072011A
Authority
CN
China
Prior art keywords
code rate
electronic equipment
parameter preset
vocoder
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910335688.1A
Other languages
Chinese (zh)
Other versions
CN110072011B (en
Inventor
龚金华
谭正鹏
唐凯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201910335688.1A priority Critical patent/CN110072011B/en
Publication of CN110072011A publication Critical patent/CN110072011A/en
Application granted granted Critical
Publication of CN110072011B publication Critical patent/CN110072011B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L19/00Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • H04M1/72412User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories using two-way short-range wireless interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions

Abstract

The embodiment of the present application discloses a kind of adjustment code rate method and Related product, the electronic equipment includes bluetooth communication, the described method includes: during carrying out Bluetooth voice call by the bluetooth communication, the parameter preset of the electronic equipment is obtained, the parameter preset comprises at least one of the following: variation tendency, distance parameter and the signal quality of the electronic equipment and the distance between opposite equip. of conversing;The code rate of vocoder is adjusted according to the parameter preset dynamic;Primary voice data is encoded according to the code rate adjusted, obtains target speech data;The target speech data is sent to opposite equip. by the bluetooth communication.The application is conducive to improve the intelligence and accuracy during electronic equipment adjustment code rate.

Description

Adjust code rate method and Related product
Technical field
This application involves electronic technology fields, and in particular to a kind of adjustment code rate method and Related product.
Background technique
At present mobile phone outdoors on foot, geological disaster region, the outgoing group's tourism of state, the places such as airport critical point, mobile network It is not covered with or in the case that mobile network's standard limits, mobile phone cannot carry out mobile communication with teammate or friend.So utilize The Bluetooth function of mobile phone, the mobile phone between teammate/friend establish communication channel by bluetooth long range technology, realize remote Speech telephony.But bluetooth BLE speech telephony, distance farther out, when BLE network is poor voice call quality compared with Difference can not carry out normal voice communication.
Summary of the invention
The embodiment of the present application provides a kind of adjustment code rate method and Related product, and the application is conducive to improve electronic equipment Adjust the intelligence and accuracy during code rate.
In a first aspect, the embodiment of the present application provides a kind of adjustment code rate method, being applied to the electronic equipment includes indigo plant Tooth communication module, which comprises
During carrying out Bluetooth voice call by the bluetooth communication, the default of the electronic equipment is obtained Parameter, the parameter preset comprise at least one of the following: the variation of the electronic equipment and the distance between opposite equip. of conversing Trend, distance parameter and signal quality;
The code rate of vocoder is adjusted according to the parameter preset dynamic;
Primary voice data is encoded according to the code rate adjusted, obtains target speech data;
The target speech data is sent to opposite equip. by the bluetooth communication.
Second aspect, the embodiment of the present application provide a kind of adjustment code rate device, and being applied to the electronic equipment includes indigo plant Tooth communication module, the adjustment code rate device include:
Acquiring unit is used for during carrying out Bluetooth voice call by the bluetooth communication, described in acquisition The parameter preset of electronic equipment, the parameter preset comprise at least one of the following: the electronic equipment and call opposite equip. it Between distance variation tendency, distance parameter and signal quality;
Adjustment unit, for adjusting the code rate of vocoder according to the parameter preset dynamic;
Coding unit obtains target speech data for encoding primary voice data according to the code rate adjusted;
Transmission unit, for sending the target speech data to opposite equip. by the bluetooth communication.
The third aspect, the embodiment of the present application provide a kind of electronic equipment, comprising: processor and memory;And one Or multiple programs, one or more of programs are stored in the memory, and are configured to be held by the processor Row, described program includes the instruction for the step some or all of as described in first aspect.
Fourth aspect, the embodiment of the present application provide a kind of computer readable storage medium, wherein described computer-readable Storage medium is for storing computer program, wherein the computer program executes computer such as the embodiment of the present application the The instruction of step some or all of described in one side.
5th aspect, the embodiment of the present application provide a kind of computer program product, wherein the computer program product Non-transient computer readable storage medium including storing computer program, the computer program are operable to make to calculate Machine executes the step some or all of as described in the embodiment of the present application first aspect.The computer program product can be one A software installation packet.
Implement the embodiment of the present application, has the following beneficial effects:
As can be seen that adjustment code rate method and Related product described in the embodiment of the present application, are applied to electronic equipment, The electronic equipment includes bluetooth communication, first in the process for carrying out Bluetooth voice call by the bluetooth communication In, the parameter preset of the electronic equipment is obtained, the parameter preset comprises at least one of the following: the electronic equipment and call Variation tendency, distance parameter and the signal quality of the distance between opposite equip., secondly, being adjusted according to the parameter preset dynamic Then the code rate of vocoder encodes primary voice data according to the code rate adjusted, obtains target speech data, finally, The target speech data is sent to opposite equip. by the bluetooth communication.As it can be seen that electronic equipment is carrying out bluetooth language During sound is conversed, parameter preset being monitored in real time, timely adjusting the code rate of vocoder, it is logical effectively to avoid blue tooth voice Situations such as delay for occurring in words, packet loss, guarantees that best speech quality can be provided under any network scenarios, be conducive to mention High electronic equipment is adjusted intelligence and accuracy during code rate.
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 a kind of structural schematic diagram for adjusting code rate system provided by the embodiments of the present application;
Fig. 2 is a kind of flow diagram for adjusting code rate method provided by the embodiments of the present application;
Fig. 3 is the flow diagram of the adjustment code rate method of another kind disclosed in the embodiment of the present application;
Fig. 4 is the flow diagram of the adjustment code rate method of another kind disclosed in the embodiment of the present application;
Fig. 5 is the structural schematic diagram of a kind of electronic equipment disclosed in the embodiment of the present application;
Fig. 6 is a kind of functional unit composition block diagram for adjusting code rate device disclosed in the embodiment of the present application.
Specific embodiment
In order to make those skilled in the art more fully understand application scheme, below in conjunction in the embodiment of the present application Attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is only Some embodiments of the present application, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art Every other embodiment obtained without creative efforts, shall fall in the protection scope of this application.
The description and claims of this application and term " first " in above-mentioned attached drawing, " second " etc. are for distinguishing Different objects, are not use to describe a particular order.In addition, term " includes " and " having " and their any deformations, it is intended that It is to cover and non-exclusive includes.Such as the process, method, system, product or equipment for containing a series of steps or units do not have It is defined in listed step or unit, but optionally further comprising the step of not listing or unit, or optionally also wrap Include other step or units intrinsic for these process, methods, product or equipment.
Referenced herein " embodiment " is it is meant that a particular feature, structure, or characteristic described can wrap in conjunction with the embodiments It is contained at least one embodiment of the application.Each position in the description occur the phrase might not each mean it is identical Embodiment, nor the independent or alternative embodiment with other embodiments mutual exclusion.Those skilled in the art explicitly and Implicitly understand, embodiment described herein can be combined with other embodiments.
Electronic equipment involved by the embodiment of the present application may include the various handheld devices with wireless communication function, Mobile unit, wearable device calculate equipment or are connected to other processing equipments and various forms of radio modem User equipment (user equipment, UE), mobile station (mobile station, MS), terminal device (terminal Device) etc..For convenience of description, apparatus mentioned above is referred to as electronic equipment.
It describes in detail below to the embodiment of the present application.
Referring to Fig. 1, Fig. 1 is a kind of structural schematic diagram for adjusting code rate system provided by the embodiments of the present application, in this Shen Please be in embodiment, which may include at least two electronic equipments, each electronic equipment include LoRa module, At least one of Sigfox module, Bluetooth5.0 module, WIFI module and mobile data module radio transceiver mould Block, any two electronic equipment in the adjustment code rate system can communicate to connect, such as can be logical by LoRa module Letter connection is communicated to connect by Sigfox module, passes through the communication connection of Bluetooth5.0 module, passes through WIFI module communication link It connects or is communicated to connect by mobile data module.
Wherein, remote (Long Range, LoRa) technology is one of low-power consumption wide-area communication, can support to fly Time (Time Of Flight, TOF) function.The TOF function is a kind of based on expansion for measuring the distance between two objects The overlength distance Radio Transmission Technology of frequency technology, compared with similar technique, strong with low in energy consumption, wide coverage, penetrability Advantage.
Wherein, ultra-narrow band (Sigfox) technology is also one of low-power consumption wide-area communication, can be in common frequency band RI radio intelligence exchange is carried out in 200kHz frequency range.The width of every message is 100Hz, and according to the difference in region, each second is passed Defeated 100 or 600 data.Therefore, while to noise resistance, the distance communication grown may be implemented very much.
Wherein, Bluetooth5.0 technology is bluetooth sig (Bluetooth Special Interest Group) In the bluetooth standard of new generation of publication in 2016, compared with prior-generation Bluetooth4.2, its transmission range is farther, speed more Fastly.Theoretic effective distance is 300 meters, that is, the mobile device in entire family or Zheng Jian office can stablize company Knot.And it is fastest, be that can achieve 2Mbps, allow reaction faster, the higher bluetooth equipment of performance more likely used.It removes Except this, it also substantially enhances the data transmission of Bluetooth broadcast, can bring better prospect for commercial bluetooth, allow using bluetooth Internet of Things application as standard is more powerful.
Wherein, electronic equipment may include the various handheld devices with wireless communication function, mobile unit, wearable set It is standby, calculate equipment or be connected to radio modem other processing equipments and various forms of user equipment (User Equipment, UE), mobile station (Mobile Station, MS), terminal device (terminal device) etc..
It describes in detail below to the embodiment of the present application.
Referring to Fig. 2, Fig. 2 is a kind of flow diagram for adjusting code rate method provided by the embodiments of the present application, this implementation Adjustment code rate method described in example, applied to the electronic equipment of such as Fig. 1, which includes:
S201, during carrying out Bluetooth voice call by the bluetooth communication, described in electronic equipment acquisition The parameter preset of electronic equipment, the parameter preset comprise at least one of the following: the electronic equipment and call opposite equip. it Between distance variation tendency, distance parameter and signal quality.
Wherein, parameter preset can also include signal-to-noise ratio, channel quality, output power and total harmonic wave etc., not do herein only One limits.
S202, the electronic equipment adjust the code rate of vocoder according to the parameter preset dynamic.
Wherein, the code rate of the vocoder is encoder bit rate.
Wherein, high code rate can be adjusted to low bit- rate by the dynamic adjustment or low bit- rate is adjusted to low bit- rate.
S203, the electronic equipment encode primary voice data according to the code rate adjusted, obtain target voice number According to.
S204, the electronic equipment send the target speech data to opposite equip. by the bluetooth communication.
Optionally, the target speech data is detected;Judge the target speech data with the presence or absence of blank voice data; If the code rate of the vocoder is then re-started adjustment there are the blank voice data.
As can be seen that adjustment code rate method and Related product described in the embodiment of the present application, are applied to electronic equipment, The electronic equipment includes bluetooth communication, first in the process for carrying out Bluetooth voice call by the bluetooth communication In, the parameter preset of the electronic equipment is obtained, the parameter preset comprises at least one of the following: the electronic equipment and call Variation tendency, distance parameter and the signal quality of the distance between opposite equip., secondly, being adjusted according to the parameter preset dynamic Then the code rate of vocoder encodes primary voice data according to the code rate adjusted, obtains target speech data, finally, The target speech data is sent to opposite equip. by the bluetooth communication.As it can be seen that electronic equipment is carrying out bluetooth language During sound is conversed, parameter preset being monitored in real time, timely adjusting the code rate of vocoder, it is logical effectively to avoid blue tooth voice Situations such as delay for occurring in words, packet loss, guarantees that best speech quality can be provided under any network scenarios, be conducive to mention High electronic equipment is adjusted intelligence and accuracy during code rate.
In a possible example, the parameter preset include the electronic equipment and call opposite equip. between away from From variation tendency, the code rate that vocoder is adjusted according to parameter preset dynamic, comprising: detect the electronic equipment with The variation tendency of the distance between call opposite equip.;Pass through the variation tendency adjusting step;Presetting database is inquired, is obtained The corresponding target bit rate of the step-length adjusted, the presetting database include that the mapping between the step-length and code rate is closed System;The code rate of the vocoder is updated according to the target bit rate.
Wherein, the mapping relations between the step-length and code rate can include but is not limited to one-to-one, one-to-many or multipair Mostly etc., do not do unique restriction herein.
For example, electronic equipment detects that variation tendency rises or falls in the first period, then starts to adjust code rate, such as A step-length often is turned down close to 5 meters, corresponding target bit rate is found according to the step-length, and be updated.Wherein, the step-length It can be calculated according to historical data analysis, i.e., the relationship between the variation tendency of step-length and distance can be according to historical data Analysis is calculated to obtain.
As it can be seen that during electronic equipment carries out bluetooth conversation, the variation tendency based on distance changes step in this example Long, and then dynamic adjusts the code rate of vocoder, it is poor to avoid speech quality during bluetooth conversation, caused delay, packet loss The case where occur, be conducive to improve electronic equipment adjustment code rate intelligence and accuracy.
It is described to pass through the variation tendency adjusting step, comprising: according to historical data analysis in a possible example The changes phase of the variation tendency;Corresponding step-length is determined according to the changes phase.
Wherein, the changes phase can dynamically be adjusted according to the location of described electronic equipment, e.g., Remote mountain areas, then one stage of five step-lengths then one stage of three step-lengths etc., does not do unique limit in bustling city herein It is fixed.
As it can be seen that electronic equipment passes through different variation tendencies, step of the dynamic adjustment under different transformation trend in this example It is long, and then flexibly adjustment code rate, ensure that will can provide good speech quality under any circumstance, be conducive to improve electricity Sub- equipment adjustment code rate intelligence and flexibility.
In a possible example, the parameter preset includes signal quality, described according to the parameter preset dynamic Adjust the code rate of vocoder, comprising: detect current signal quality;It is given a mark according to the signal quality, obtains target point Number;The code rate of the vocoder is adjusted according to the target fractional.
Wherein, the marking can be carried out according to preset marking calculative strategy, and the preset marking calculative strategy can be with The semantic analysis of comprehensive message registration, interruption times, noise accounting, etc. analyses obtain, do not do unique restriction herein.
Optionally, electronic equipment inquires preset score-code rate list according to the target fractional, according to described default Score-code rate list obtain corresponding code rate, and be adjusted.
For example, electronic equipment gives a mark to current signal quality, according to the interruption times of bluetooth conversation ten Within minute, bluetooth conversation has been interrupted 5 times, then the score of current signal quality is 50 points, then by the code rate of the vocoder Low bit- rate is become by high code rate.
As it can be seen that electronic equipment can give a mark according to the quality of signal quality in this example, and according to marking score dynamic The code rate for adjusting vocoder, i.e., timely judge the network state of current electronic device, and coped in time, be conducive to improve Electronic equipment adjusts code rate intelligence and flexibility.
In a possible example, the parameter preset includes distance parameter, described according to the parameter preset dynamic Adjust the code rate of vocoder, comprising: obtain the target position of presently described electronic equipment;Distance is determined according to the target position The target zone of parameter;Get first terminal to distant terminal first distance;If the first distance is more than target zone, Code rate-is then inquired apart from list, obtains target bit rate;The code rate of the vocoder is updated according to the target bit rate.
Wherein, the corresponding relationship of the target zone of the target position and distance parameter can be preset, according to present bit The concrete condition set dynamically changes the target zone of the distance parameter.
Wherein, data of the code rate-in list can count to obtain by historical data or when according to factory Manufacturer makes by oneself, does not do unique restriction herein.
As it can be seen that electronic equipment is adjusted according to different distance parameter dynamics in this example, different code rates is obtained, favorably In electronic equipment when being kept in motion, more flexible adjustment code rate improves the intelligence during electronic equipment adjustment code rate It can property and flexibility.
In a possible example, after the code rate for dynamically adjusting vocoder according to the parameter preset, institute State method further include: continue to monitor code rate adjusted;If the code rate adjusted carries out not in preset threshold range Secondary adjustment is obtained with reference to code rate;Described be arranged in preset duration with reference to code rate is updated.
Wherein, the preset threshold range can obtain according to historical data, be obtained or be dispatched from the factory according to big data analysis When manufacturer make by oneself, do not do unique restriction herein.
Wherein, when preset duration can obtain according to historical data, be obtained or be dispatched from the factory according to big data analysis manufacturer from It is fixed, do not do unique restriction herein.
As it can be seen that electronic equipment avoids frequent switching by the adjustment of monitoring and switching time to code rate in this example To the influence that voice communication is interrupted, that is, be arranged different code rates switch twice between duration greater than after a certain duration, just allow to cut It changes, can be improved the intelligence and flexibility during adjustment code rate.
It is described to encode primary voice data according to the code rate adjusted in a possible example, obtain target After voice data, the method also includes: determine the type of the target speech data;According to the type of voice data and Preset corresponding relationship between code rate obtains the corresponding code rate of data type of the target speech data, as target bit rate; The range of code rates of the target bit rate is obtained as default code rate threshold range.
Wherein, different types of voice data can correspond to different encoder bit rates, preset in the electronic device simultaneously The corresponding relationship being stored between the type of voice data and encoder bit rate, the corresponding relationship can be one-to-one, one-to-many Or multi-to-multi, do not do unique restriction herein.
Wherein, the type more demanding to sound quality can be lower than to the corresponding encoder bit rate of the higher type of requirement of real-time Encoding rate, specific different type corresponds to great encoder bit rate and can be obtained according to big data.
Optionally, when the Bluetooth voice call of electronic equipment is opened, the corresponding encoding rate of the type of the voice data is big In default code rate threshold value;When the Bluetooth voice call disconnects, the corresponding encoding rate of the type of the voice data is less than pre- If code rate threshold value.
As it can be seen that in this example, electronic equipment is according to unused voice data type, the different code rate of flexibly adjustment, into Default code rate threshold range when obtaining secondary adjustment of one step is conducive to adjust the intelligence and accuracy during code rate.
It is consistent with the embodiment shown in Fig. 2, referring to Fig. 3, Fig. 3 is a kind of adjustment provided by the embodiments of the present application The flow diagram of code rate method is applied to electronic equipment, and the electronic equipment includes bluetooth communication.As shown, this Adjusting code rate method includes:
S301, during carrying out Bluetooth voice call by the bluetooth communication, the electronic equipment is obtained The parameter preset of the electronic equipment.
S302, the electronic equipment detect the variation tendency of the electronic equipment and the distance between opposite equip. of conversing.
S303, the electronic equipment pass through the variation tendency adjusting step.
S304, the electronic equipment inquire presetting database, obtain the corresponding target bit rate of the step-length adjusted, institute Stating presetting database includes the mapping relations between the step-length and code rate.
S305, the electronic equipment update the code rate of the vocoder according to the target bit rate.
S306, the electronic equipment encode primary voice data according to the code rate adjusted, obtain target voice number According to.
S307, the electronic equipment send the target speech data to opposite equip. by the bluetooth communication.
As can be seen that adjustment code rate method and Related product described in the embodiment of the present application, are applied to electronic equipment, The electronic equipment includes bluetooth communication, first in the process for carrying out Bluetooth voice call by the bluetooth communication In, the parameter preset of the electronic equipment is obtained, the parameter preset comprises at least one of the following: the electronic equipment and call Variation tendency, distance parameter and the signal quality of the distance between opposite equip., secondly, being adjusted according to the parameter preset dynamic Then the code rate of vocoder encodes primary voice data according to the code rate adjusted, obtains target speech data, finally, The target speech data is sent to opposite equip. by the bluetooth communication.As it can be seen that electronic equipment is carrying out bluetooth language During sound is conversed, parameter preset being monitored in real time, timely adjusting the code rate of vocoder, it is logical effectively to avoid blue tooth voice Situations such as delay for occurring in words, packet loss, guarantees that best speech quality can be provided under any network scenarios, be conducive to mention High electronic equipment is adjusted intelligence and accuracy during code rate.
In addition, the variation tendency based on distance changes step-length, and then dynamic during electronic equipment carries out bluetooth conversation The code rate for adjusting vocoder, avoids that speech quality during bluetooth conversation is poor, caused delay, packet loss the case where send out It is raw, be conducive to the intelligence and accuracy that improve electronic equipment adjustment code rate.
It is consistent with the embodiment shown in Fig. 2, referring to Fig. 4, Fig. 4 is a kind of adjustment provided by the embodiments of the present application The flow diagram of code rate method is applied to electronic equipment, and the electronic equipment includes bluetooth communication.As shown, this Adjusting code rate method includes:
S401, during carrying out Bluetooth voice call by the bluetooth communication, the electronic equipment is obtained The parameter preset of the electronic equipment.
S402, the electronic equipment obtain the target position of presently described electronic equipment.
S403, the electronic equipment determine the target zone of distance parameter according to the target position.
S404, the electronic equipment get first terminal to the first distance of distant terminal.
S405 inquires code rate-apart from list, obtains if the electronic equipment first distance is more than target zone Target bit rate.
S406, the electronic equipment update the code rate of the vocoder according to the target bit rate.
S407, the electronic equipment continue to monitor code rate adjusted.
S408, if the electronic equipment code rate adjusted carries out secondary adjustment not in preset threshold range, It obtains with reference to code rate.
Described be arranged in preset duration with reference to code rate is updated by S409, the electronic equipment.
S410, the electronic equipment encode primary voice data according to the code rate adjusted, obtain target voice number According to.
S411, the electronic equipment send the target speech data to opposite equip. by the bluetooth communication.
As can be seen that adjustment code rate method and Related product described in the embodiment of the present application, are applied to electronic equipment, The electronic equipment includes bluetooth communication, first in the process for carrying out Bluetooth voice call by the bluetooth communication In, the parameter preset of the electronic equipment is obtained, the parameter preset comprises at least one of the following: the electronic equipment and call Variation tendency, distance parameter and the signal quality of the distance between opposite equip., secondly, being adjusted according to the parameter preset dynamic Then the code rate of vocoder encodes primary voice data according to the code rate adjusted, obtains target speech data, finally, The target speech data is sent to opposite equip. by the bluetooth communication.As it can be seen that electronic equipment is carrying out bluetooth language During sound is conversed, parameter preset being monitored in real time, timely adjusting the code rate of vocoder, it is logical effectively to avoid blue tooth voice Situations such as delay for occurring in words, packet loss, guarantees that best speech quality can be provided under any network scenarios, be conducive to mention High electronic equipment is adjusted intelligence and accuracy during code rate.
In addition, electronic equipment is adjusted according to different distance parameter dynamics, different code rates is obtained, electronic equipment is conducive to When being kept in motion, more flexible adjustment code rate, improve electronic equipment adjustment code rate during intelligence and flexibly Property.
In addition, adjustment of the electronic equipment by monitoring and switching time to code rate, it is logical to voice to avoid frequent switching Talk about the influence interrupted, that is, be arranged different code rates switch twice between duration greater than after a certain duration, just allow to switch, Neng Gouti Intelligence and flexibility during height adjustment code rate.
It is consistent with described Fig. 2, Fig. 3, embodiment shown in Fig. 4, referring to Fig. 5, Fig. 5 is provided by the embodiments of the present application The structural schematic diagram of a kind of electronic equipment 500, as shown, the electronic equipment 500 includes application processor 510, memory 520, communication interface 530 and one or more programs 521, wherein one or more of programs 521 are stored in above-mentioned deposit In reservoir 520, and it is configured to be executed by above-mentioned application processor 510, one or more of programs 521 include for executing The instruction of following steps:
During carrying out Bluetooth voice call by the bluetooth communication, the default of the electronic equipment is obtained Parameter, the parameter preset comprise at least one of the following: the variation of the electronic equipment and the distance between opposite equip. of conversing Trend, distance parameter and signal quality;
The code rate of vocoder is adjusted according to the parameter preset dynamic;
Primary voice data is encoded according to the code rate adjusted, obtains target speech data;
The target speech data is sent to opposite equip. by the bluetooth communication.
As can be seen that adjustment code rate method and Related product described in the embodiment of the present application, are applied to electronic equipment, The electronic equipment includes bluetooth communication, first in the process for carrying out Bluetooth voice call by the bluetooth communication In, the parameter preset of the electronic equipment is obtained, the parameter preset comprises at least one of the following: the electronic equipment and call Variation tendency, distance parameter and the signal quality of the distance between opposite equip., secondly, being adjusted according to the parameter preset dynamic Then the code rate of vocoder encodes primary voice data according to the code rate adjusted, obtains target speech data, finally, The target speech data is sent to opposite equip. by the bluetooth communication.As it can be seen that electronic equipment is carrying out bluetooth language During sound is conversed, parameter preset being monitored in real time, timely adjusting the code rate of vocoder, it is logical effectively to avoid blue tooth voice Situations such as delay for occurring in words, packet loss, guarantees that best speech quality can be provided under any network scenarios, be conducive to mention High electronic equipment is adjusted intelligence and accuracy during code rate.
In a possible example, the parameter preset include the electronic equipment and call opposite equip. between away from From variation tendency, in the bit rate connection for adjusting vocoder according to parameter preset dynamic, described program includes being used for It executes the instruction of following steps: detecting the variation tendency of the electronic equipment and the distance between opposite equip. of conversing;Pass through institute State variation tendency adjusting step;Presetting database is inquired, the corresponding target bit rate of the step-length adjusted is obtained, it is described default Database includes the mapping relations between the step-length and code rate;The code rate of the vocoder is updated according to the target bit rate.
In a possible example, it is described by the variation tendency adjusting step in terms of, described program include use In the instruction for executing following steps: the changes phase of the variation tendency according to historical data analysis;According to the changes phase Determine corresponding step-length.
In a possible example, the parameter preset includes signal quality, described dynamic according to the parameter preset State adjusts the bit rate connection of vocoder, and described program includes the instruction for executing following steps: detecting current signal quality; It is given a mark according to the signal quality, obtains target fractional;The code rate of the vocoder is adjusted according to the target fractional.
In a possible example, the parameter preset includes distance parameter, described dynamic according to the parameter preset State adjusts the code rate of vocoder, and aspect, described program includes the instruction for executing following steps: obtaining presently described electronics and sets Standby target position;The target zone of distance parameter is determined according to the target position;First terminal is got to distant terminal First distance;If the first distance is more than target zone, code rate-is inquired apart from list, obtains target bit rate;According to institute State the code rate that target bit rate updates the vocoder.
In a possible example, after the code rate for dynamically adjusting vocoder according to the parameter preset, institute Stating program further includes the instruction for executing following steps: continuing to monitor code rate adjusted;If the code rate adjusted is not In preset threshold range, then secondary adjustment is carried out, obtained with reference to code rate;By it is described with reference to code rate be arranged in preset duration into Row updates.
In a possible example, primary voice data is encoded according to the code rate adjusted described, obtains mesh After marking voice data, described program further includes the instruction for executing following steps: determining the class of the target speech data Type;According to preset corresponding relationship between the type and code rate of voice data, the data class of the target speech data is obtained The corresponding code rate of type, as target bit rate;The range of code rates of the target bit rate is obtained as default code rate threshold range.
Above-described embodiment is mainly described the scheme of the embodiment of the present application from the angle of method side implementation procedure.It can With understanding, in order to realize the above functions, it comprises execute the corresponding hardware configuration of each function and/or soft for electronic equipment Part module.Those skilled in the art should be readily appreciated that, described in conjunction with the examples disclosed in the embodiments of the present disclosure Unit and algorithm steps, the application can be realized with the combining form of hardware or hardware and computer software.Some function is studied carefully Unexpectedly it is executed in a manner of hardware or computer software driving hardware, the specific application and design constraint depending on technical solution Condition.Professional technician can specifically realize described function to each using distinct methods, but this It realizes it is not considered that exceeding scope of the present application.
The embodiment of the present application can carry out the division of functional unit according to the method example to electronic equipment, for example, can With each functional unit of each function division of correspondence, two or more functions can also be integrated in a processing unit In.The integrated unit both can take the form of hardware realization, can also realize in the form of software functional units.It needs It is noted that be schematical, only a kind of logical function partition to the division of unit in the embodiment of the present application, it is practical real It is current that there may be another division manner.
The following is an embodiment of the apparatus of the present invention, and apparatus of the present invention embodiment is realized for executing embodiment of the present invention method Method.Adjustment code rate device 600 as shown in FIG. 6 is applied to electronic equipment, and the electronic equipment includes Bluetooth communication mould Block, the adjustment code rate device 600 include acquiring unit 601, adjustment unit 602, coding unit 603 and transmission unit 604, In,
The acquiring unit 601, for obtaining during carrying out Bluetooth voice call by the bluetooth communication The parameter preset of the electronic equipment is taken, the parameter preset comprises at least one of the following: the electronic equipment and call opposite end Variation tendency, distance parameter and the signal quality of the distance between equipment;
The adjustment unit 602, for adjusting the code rate of vocoder according to the parameter preset dynamic;
The coding unit 603 obtains target voice for encoding primary voice data according to the code rate adjusted Data;
The transmission unit 604, for sending the target voice number to opposite equip. by the bluetooth communication According to.
As can be seen that adjustment code rate method and Related product described in the embodiment of the present application, are applied to electronic equipment, The electronic equipment includes bluetooth communication, first in the process for carrying out Bluetooth voice call by the bluetooth communication In, the parameter preset of the electronic equipment is obtained, the parameter preset comprises at least one of the following: the electronic equipment and call Variation tendency, distance parameter and the signal quality of the distance between opposite equip., secondly, being adjusted according to the parameter preset dynamic Then the code rate of vocoder encodes primary voice data according to the code rate adjusted, obtains target speech data, finally, The target speech data is sent to opposite equip. by the bluetooth communication.As it can be seen that electronic equipment is carrying out bluetooth language During sound is conversed, parameter preset being monitored in real time, timely adjusting the code rate of vocoder, it is logical effectively to avoid blue tooth voice Situations such as delay for occurring in words, packet loss, guarantees that best speech quality can be provided under any network scenarios, be conducive to mention High electronic equipment is adjusted intelligence and accuracy during code rate.
In a possible example, the parameter preset include the electronic equipment and call opposite equip. between away from From variation tendency, in the bit rate connection for adjusting vocoder according to parameter preset dynamic, the adjustment unit 602 has Body is used for: detecting the variation tendency of the electronic equipment and the distance between opposite equip. of conversing;Pass through the variation tendency tune Synchronizing is long;Presetting database is inquired, obtains the corresponding target bit rate of the step-length adjusted, the presetting database includes institute State the mapping relations between step-length and code rate;The code rate of the vocoder is updated according to the target bit rate.
In a possible example, it is described by the variation tendency adjusting step in terms of, the adjustment unit 602 It is specifically used for: the changes phase of the variation tendency according to historical data analysis;Corresponding step is determined according to the changes phase It is long.
In a possible example, the parameter preset includes signal quality, described dynamic according to the parameter preset State adjusts the bit rate connection of vocoder, and the adjustment unit 602 is specifically used for: detecting current signal quality;According to the letter Number quality is given a mark, and target fractional is obtained;The code rate of the vocoder is adjusted according to the target fractional.
In a possible example, the parameter preset includes distance parameter, described dynamic according to the parameter preset State adjusts the bit rate connection of vocoder, and the adjustment unit 602 is specifically used for: obtaining the target position of presently described electronic equipment It sets;The target zone of distance parameter is determined according to the target position;Get first terminal to distant terminal first distance; If the first distance is more than target zone, code rate-is inquired apart from list, obtains target bit rate;According to the target bit rate Update the code rate of the vocoder.
In a possible example, after the code rate for dynamically adjusting vocoder according to the parameter preset, institute State adjustment unit 602 also particularly useful for: continue to monitor code rate adjusted;If the code rate adjusted is not in preset threshold model In enclosing, then secondary adjustment is carried out, obtained with reference to code rate;Described be arranged in preset duration with reference to code rate is updated.
In a possible example, primary voice data is encoded according to the code rate adjusted described, obtains mesh After marking voice data, coded unit 603 is specifically used for: determining the type of the target speech data;According to voice data Type and code rate between preset corresponding relationship, obtain the corresponding code rate of data type of the target speech data, make For target bit rate;The range of code rates of the target bit rate is obtained as default code rate threshold range.
The embodiment of the present application also provides a kind of computer storage medium, wherein computer storage medium storage is for electricity The computer program of subdata exchange, it is as any in recorded in above method embodiment which execute computer A kind of some or all of adjustment code rate method step.
The embodiment of the present application also provides a kind of computer program product, and the computer program product includes storing calculating The non-transient computer readable storage medium of machine program, the computer program are operable to that computer is made to execute such as above-mentioned side Some or all of any adjustment code rate method recorded in method embodiment step.
It should be noted that for the various method embodiments described above, for simple description, therefore, it is stated as a series of Combination of actions, but those skilled in the art should understand that, the application is not limited by the described action sequence because According to the application, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art should also know It knows, the embodiments described in the specification are all preferred embodiments, related actions and modules not necessarily the application It is necessary.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment Point, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, it should be understood that disclosed device, it can be by another way It realizes.For example, the apparatus embodiments described above are merely exemplary, such as the division of the unit, it is only a kind of Logical function partition, there may be another division manner in actual implementation, such as multiple units or components can combine or can To be integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual Coupling, direct-coupling or communication connection can be through some interfaces, the indirect coupling or communication connection of device or unit, It can be electrical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also be realized in the form of software program module.
If the integrated unit is realized in the form of software program module and sells or use as independent product When, it can store in a computer-readable access to memory.Based on this understanding, the technical solution of the application substantially or Person says that all or part of the part that contributes to existing technology or the technical solution can body in the form of software products Reveal and, which is stored in a memory, including some instructions are used so that a computer equipment (can be personal computer, server or network equipment etc.) executes all or part of each embodiment the method for the application Step.And memory above-mentioned includes: USB flash disk, read-only memory (read-only memory, ROM), random access memory The various media that can store program code such as (random access memory, RAM), mobile hard disk, magnetic or disk.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is can It is completed with instructing relevant hardware by program, which can store in a computer-readable memory, memory It may include: flash disk, ROM, RAM, disk or CD etc..
The embodiment of the present application is described in detail above, specific case used herein to the principle of the application and Embodiment is expounded, the description of the example is only used to help understand the method for the present application and its core ideas; At the same time, for those skilled in the art can in specific embodiments and applications according to the thought of the application There is change place, in conclusion the contents of this specification should not be construed as limiting the present application.

Claims (10)

1. a kind of method for adjusting code rate, which is characterized in that be applied to electronic equipment, the electronic equipment includes Bluetooth communication mould Block, which comprises
During carrying out Bluetooth voice call by the bluetooth communication, the default ginseng of the electronic equipment is obtained Number, the parameter preset comprise at least one of the following: the variation of the electronic equipment and the distance between call opposite equip. becomes Gesture, distance parameter and signal quality;
The code rate of vocoder is adjusted according to the parameter preset dynamic;
Primary voice data is encoded according to the code rate adjusted, obtains target speech data;
The target speech data is sent to opposite equip. by the bluetooth communication.
2. the method according to claim 1, wherein the parameter preset includes the electronic equipment and call pair The variation tendency of the distance between end equipment, the code rate that vocoder is adjusted according to the parameter preset dynamic, comprising:
Detect the variation tendency of the electronic equipment and the distance between opposite equip. of conversing;
Pass through the variation tendency adjusting step;
Presetting database is inquired, the corresponding target bit rate of the step-length adjusted is obtained, the presetting database includes described Mapping relations between step-length and code rate;
The code rate of the vocoder is updated according to the target bit rate.
3. according to the method described in claim 2, it is characterized in that, described pass through the variation tendency adjusting step, comprising:
The changes phase of the variation tendency according to historical data analysis;
Corresponding step-length is determined according to the changes phase.
4. described according to institute the method according to claim 1, wherein the parameter preset includes signal quality State the code rate that parameter preset dynamic adjusts vocoder, comprising:
Detect current signal quality;
It is given a mark according to the signal quality, obtains target fractional;
The code rate of the vocoder is adjusted according to the target fractional.
5. described according to institute the method according to claim 1, wherein the parameter preset includes distance parameter State the code rate that parameter preset dynamic adjusts vocoder, comprising:
Obtain the target position of presently described electronic equipment;
The target zone of distance parameter is determined according to the target position;
Get first terminal to distant terminal first distance;
If the first distance is more than target zone, code rate-is inquired apart from list, obtains target bit rate;
The code rate of the vocoder is updated according to the target bit rate.
6. method according to claim 1-5, which is characterized in that adjusted described according to the parameter preset dynamic After the code rate of whole vocoder, the method also includes:
Continue to monitor code rate adjusted;
If the code rate adjusted carries out secondary adjustment not in preset threshold range, obtain with reference to code rate;
Described be arranged in preset duration with reference to code rate is updated.
7. according to the method described in claim 6, it is characterized in that, described encode raw tone according to the code rate adjusted Data, after obtaining target speech data, the method also includes:
Determine the type of the target speech data;
According to preset corresponding relationship between the type and code rate of voice data, the data class of the target speech data is obtained The corresponding code rate of type, as target bit rate;
The range of code rates of the target bit rate is obtained as default code rate threshold range.
8. a kind of adjustment code rate device, which is characterized in that be applied to electronic equipment, the electronic equipment includes Bluetooth communication mould Block, the adjustment code rate device include:
Acquiring unit, for obtaining the electronics during carrying out Bluetooth voice call by the bluetooth communication The parameter preset of equipment, the parameter preset comprise at least one of the following: between the electronic equipment and call opposite equip. Variation tendency, distance parameter and the signal quality of distance;
Adjustment unit, for adjusting the code rate of vocoder according to the parameter preset dynamic;
Coding unit obtains target speech data for encoding primary voice data according to the code rate adjusted;
Transmission unit, for sending the target speech data to opposite equip. by the bluetooth communication.
9. a kind of electronic equipment characterized by comprising processor and memory;And one or more programs, it is one Or multiple programs are stored in the memory, and are configured to be executed by the processor, described program includes being used for Execute the instruction of the step in the method according to claim 1 to 7.
10. a kind of computer readable storage medium, which is characterized in that it is used to store computer program, wherein the computer Program makes computer execute the method according to claim 1 to 7.
CN201910335688.1A 2019-04-24 2019-04-24 Method for adjusting code rate and related product Active CN110072011B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910335688.1A CN110072011B (en) 2019-04-24 2019-04-24 Method for adjusting code rate and related product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910335688.1A CN110072011B (en) 2019-04-24 2019-04-24 Method for adjusting code rate and related product

Publications (2)

Publication Number Publication Date
CN110072011A true CN110072011A (en) 2019-07-30
CN110072011B CN110072011B (en) 2021-07-20

Family

ID=67368786

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910335688.1A Active CN110072011B (en) 2019-04-24 2019-04-24 Method for adjusting code rate and related product

Country Status (1)

Country Link
CN (1) CN110072011B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110689899A (en) * 2019-09-17 2020-01-14 重庆百瑞互联电子技术有限公司 Dynamic adjustment method and system for Bluetooth audio
CN112135282A (en) * 2020-09-25 2020-12-25 北京百瑞互联技术有限公司 Bluetooth Mesh network voice intercom method, system and storage medium
WO2021129821A1 (en) * 2019-12-25 2021-07-01 Oppo广东移动通信有限公司 Data transmission method and apparatus, storage medium, and terminal device
CN114244383A (en) * 2021-12-27 2022-03-25 东莞市阿尔法电子科技有限公司 Signal processing method, system, Bluetooth headset and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105530449A (en) * 2014-09-30 2016-04-27 阿里巴巴集团控股有限公司 Coding parameter adjusting method and device
US20160284358A1 (en) * 2013-12-09 2016-09-29 Tencent Technology (Shenzhen) Company Limited Voice Processing Method And Device
WO2016191989A1 (en) * 2015-05-30 2016-12-08 华为技术有限公司 Method and device for adjusting voice coding rate
CN107170460A (en) * 2017-06-30 2017-09-15 深圳Tcl新技术有限公司 Sound quality adjusting method, system, host side and storage medium
CN109041024A (en) * 2018-08-14 2018-12-18 Oppo广东移动通信有限公司 Optimization of rate method, apparatus, electronic equipment and storage medium
CN109102816A (en) * 2018-08-14 2018-12-28 Oppo广东移动通信有限公司 Coding control method, device and electronic equipment
CN109151861A (en) * 2018-08-14 2019-01-04 Oppo广东移动通信有限公司 Encoding rate method of adjustment, device and electronic equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160284358A1 (en) * 2013-12-09 2016-09-29 Tencent Technology (Shenzhen) Company Limited Voice Processing Method And Device
CN105530449A (en) * 2014-09-30 2016-04-27 阿里巴巴集团控股有限公司 Coding parameter adjusting method and device
WO2016191989A1 (en) * 2015-05-30 2016-12-08 华为技术有限公司 Method and device for adjusting voice coding rate
CN107170460A (en) * 2017-06-30 2017-09-15 深圳Tcl新技术有限公司 Sound quality adjusting method, system, host side and storage medium
CN109041024A (en) * 2018-08-14 2018-12-18 Oppo广东移动通信有限公司 Optimization of rate method, apparatus, electronic equipment and storage medium
CN109102816A (en) * 2018-08-14 2018-12-28 Oppo广东移动通信有限公司 Coding control method, device and electronic equipment
CN109151861A (en) * 2018-08-14 2019-01-04 Oppo广东移动通信有限公司 Encoding rate method of adjustment, device and electronic equipment

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110689899A (en) * 2019-09-17 2020-01-14 重庆百瑞互联电子技术有限公司 Dynamic adjustment method and system for Bluetooth audio
WO2021129821A1 (en) * 2019-12-25 2021-07-01 Oppo广东移动通信有限公司 Data transmission method and apparatus, storage medium, and terminal device
CN112135282A (en) * 2020-09-25 2020-12-25 北京百瑞互联技术有限公司 Bluetooth Mesh network voice intercom method, system and storage medium
CN114244383A (en) * 2021-12-27 2022-03-25 东莞市阿尔法电子科技有限公司 Signal processing method, system, Bluetooth headset and storage medium

Also Published As

Publication number Publication date
CN110072011B (en) 2021-07-20

Similar Documents

Publication Publication Date Title
CN110072011A (en) Adjust code rate method and Related product
CN106850615B (en) Method, related device and system for controlling coding rate
CN106937306B (en) A kind of network quality appraisal procedure and device
US20100173632A1 (en) Communication system, threshold management server, radio communication device, and communication method
CN107333293A (en) Metrical information report method and device
CN108513734A (en) A kind of channel switching method, device and communication equipment
CN107426764A (en) cell measuring method and device
CN109392005A (en) A kind of method of signal strength measurement, relevant apparatus and system
CN109151210A (en) Mobile terminal, information display method and related product
CN105393622B (en) The dispatching method and equipment of user equipment
CN111640431B (en) Equipment response processing method and device
JPH08500946A (en) Radio link parameter monitoring in wireless communication systems
CN103179503A (en) Mobile terminal and reminding method
CN108024339A (en) A kind of method and apparatus of the time-domain resource of definite reference signal mapping
CN112867049B (en) Measurement configuration method, device and system
KR102016866B1 (en) Signal Processing Method and Related Devices
CN111512685A (en) Channel state information measuring method, device and computer storage medium
CN102800318B (en) The transmission of audio data stream, receiving trap and method
CN109802766B (en) Soft cache processing method under dual connectivity, terminal and network equipment
CN109076384B (en) Information transmission and receiving method and device, base station and user equipment
CN108271236A (en) A kind of method, apparatus and system for accessing cell
CN106454726A (en) Method and device for reducing link time delay error in positioning process
CN104509133B (en) Device-to-device closes in service method, base station and the user equipment for transmitting signal
CN105872191A (en) Call reminder setting method, call reminder setting device and related equipment
CN109672630A (en) A kind of system information transmission method, terminal and the network equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant