CN109413525B - Encoding rate adjustment method, encoding rate adjustment device, electronic device, and storage medium - Google Patents

Encoding rate adjustment method, encoding rate adjustment device, electronic device, and storage medium Download PDF

Info

Publication number
CN109413525B
CN109413525B CN201811161224.5A CN201811161224A CN109413525B CN 109413525 B CN109413525 B CN 109413525B CN 201811161224 A CN201811161224 A CN 201811161224A CN 109413525 B CN109413525 B CN 109413525B
Authority
CN
China
Prior art keywords
electric quantity
audio data
bluetooth
encoding rate
bluetooth headset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811161224.5A
Other languages
Chinese (zh)
Other versions
CN109413525A (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 CN201811161224.5A priority Critical patent/CN109413525B/en
Publication of CN109413525A publication Critical patent/CN109413525A/en
Application granted granted Critical
Publication of CN109413525B publication Critical patent/CN109413525B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1041Mechanical or electronic switches, or control elements
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L19/00Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis
    • G10L19/002Dynamic bit allocation

Landscapes

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

Abstract

The application discloses a coding rate adjusting method, a coding rate adjusting device, electronic equipment and a storage medium, and relates to the technical field of electronic equipment. Wherein, the method comprises the following steps: judging whether the electric quantity of a Bluetooth headset connected with the electronic equipment is less than or equal to a preset electric quantity; if so, adjusting the encoding rate of the audio data to be less than a preset threshold value; and processing the audio data according to the adjusted encoding rate, and transmitting the processed audio data to the Bluetooth headset. This scheme can make bluetooth headset when the electric quantity is lower, can be more power-conserving to the receipt of audio frequency, decoding and play process etc..

Description

Encoding rate adjustment method, encoding rate adjustment device, electronic device, and storage medium
Technical Field
The present application relates to the field of electronic device technologies, and in particular, to a method and an apparatus for adjusting an encoding rate, an electronic device, and a storage medium.
Background
With the development of electronic equipment technology and wireless connection technology, the technology development of the bluetooth headset is more mature and the application is more and more extensive. Wherein, bluetooth headset passes through bluetooth wireless connection to electronic equipment, alright receive the audio data of electronic equipment transmission and carry out the audio playback, and data transmission between earphone and the electronic equipment no longer relies on wired connection, has greatly improved the convenience of using. However, bluetooth connection, as a wireless connection device, cannot connect a power supply at any time, and needs to rely on a mobile power supply. Therefore, bluetooth headsets need to be more power efficient.
Disclosure of Invention
In view of the above problems, the present application provides a method, an apparatus, an electronic device and a storage medium for adjusting an encoding rate to improve the above problems.
In a first aspect, an embodiment of the present application provides a coding rate adjustment method, which is applied to an electronic device, and the method includes: judging whether the electric quantity of a Bluetooth headset connected with the electronic equipment is less than or equal to a preset electric quantity; if so, adjusting the encoding rate of the audio data to be less than a preset threshold value; and processing the audio data according to the adjusted encoding rate, and transmitting the processed audio data to the Bluetooth headset.
In a second aspect, an embodiment of the present application provides an encoding rate adjusting apparatus, which is applied to an electronic device, and the apparatus includes: the judging module is used for judging whether the electric quantity of the Bluetooth headset connected with the electronic equipment is less than or equal to a preset electric quantity; the encoding rate adjusting module is used for adjusting the encoding rate of the audio data to be smaller than a preset threshold value if the judgment result of the judging module is positive; and the transmission module is used for transmitting the audio data to the Bluetooth headset after the audio data is processed according to the adjusted coding rate.
In a third aspect, an embodiment of the present application provides an electronic device, including: one or more processors; a memory; one or more programs. Wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the methods described above.
In a fourth aspect, the present application provides a computer-readable storage medium, in which program codes are stored, and the program codes can be called by a processor to execute the method as described above.
The encoding rate adjusting method, the encoding rate adjusting device, the electronic device and the storage medium provided by the embodiment of the application adjust the encoding rate of the audio data according to the electric quantity of the Bluetooth headset. When the electric quantity of the Bluetooth headset is judged to be smaller than the preset threshold value, the encoding rate of the audio data is adjusted to be smaller than the preset threshold value, and then the adjusted audio data is transmitted to the Bluetooth headset, so that the receiving, decoding, playing and the like of the audio by the Bluetooth headset can be more power-saving.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic diagram illustrating a connection between an electronic device and a bluetooth headset according to an embodiment of the present application;
fig. 2 shows another connection diagram of the electronic device and the bluetooth headset according to the embodiment of the present application;
fig. 3 is a flowchart illustrating a coding rate adjustment method according to an embodiment of the present application.
Fig. 4 is a flowchart illustrating a coding rate adjustment method according to another embodiment of the present application.
Fig. 5 is a flowchart illustrating a coding rate adjustment method according to another embodiment of the present application.
Fig. 6 is a flowchart illustrating a part of the steps of a coding rate adjustment method according to still another embodiment of the present application.
Fig. 7 illustrates a preset mapping table of power and coding rate provided in an embodiment of the present application.
Fig. 8 is a functional block diagram of an encoding rate adjusting apparatus according to an embodiment of the present application.
Fig. 9 shows a block diagram of an electronic device provided in an embodiment of the present application.
Fig. 10 is a storage unit for storing or carrying program codes for implementing an encoding rate adjustment method according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
With the increase of the types of audio playing devices and the improvement of playing sound effects, more users can select to output audio played by electronic devices such as mobile phones and tablet computers to the audio playing devices for playing. Common audio playing devices include a vehicle-mounted music player, a sound box, an earphone, and the like. Wherein, the earphone comprises a wired earphone or a wireless earphone.
Take an earphone as an example. If the earphone is a wired earphone, the wired earphone is connected with the electronic device through a physical line, and the electronic device transmits audio to the wired earphone through the physical line so that the wired earphone can play the audio conveniently.
In order to release the use of the earphone from the wired condition, the connection between the earphone and the electronic equipment is independent of a physical line, the use convenience of the earphone is improved, and the wireless earphone is produced. The wireless earphone establishes a communication link according to a wireless communication protocol commonly supported by the wireless earphone and the electronic equipment in advance, and then the electronic equipment transmits audio to the wireless earphone through the communication link so that the wireless earphone can play the audio. The wireless communication protocol may include a WLAN protocol, a bluetooth protocol, or a ZigBee protocol, and the application takes a wireless headset connected through the bluetooth protocol in the wireless headset as an example for description.
In the embodiment of the present application, the headset that can establish a bluetooth connection with other devices such as an electronic device through a bluetooth protocol, a proprietary protocol, or other commands, and perform data transmission is defined as a bluetooth headset, such as a TWS (true wireless stereo) headset, a TWS Plus headset, and the like.
An electronic device can be connected with a Bluetooth headset through a Bluetooth protocol, and can also be connected with two Bluetooth headsets in a parallel or serial mode. The parallel connection is, as shown in fig. 1, that is, the electronic device 600 directly and simultaneously performs bluetooth connection with the bluetooth headset a and the bluetooth headset B according to a bluetooth protocol; the serial connection is, as shown in fig. 2, the electronic device 600 is connected to one of the bluetooth headsets a via bluetooth, and the bluetooth headset a connected to the electronic device via bluetooth is further connected to another bluetooth headset B via bluetooth.
When the electronic device 600 is connected with a bluetooth headset and audio playing is performed, audio data is sent to the bluetooth headset for playing; when the electronic device 600 is connected to two bluetooth headsets, the audio data can be sent to the two bluetooth headsets simultaneously, so that the two bluetooth headsets can play. When the electronic device 600 is connected to two bluetooth headsets, if the electronic device 600 is connected in parallel, the electronic device 600 may directly and simultaneously send audio data to the two bluetooth headsets; if the two bluetooth headsets are connected in series, the electronic device 600 may send the audio data to be sent to the two bluetooth headsets to the headset connected to the bluetooth headset through the bluetooth, and the headset connected to the bluetooth headset forwards the audio data to be sent to another bluetooth headset.
The wireless bluetooth headset is not connected with the power, and if the electric quantity live time after charging is too short, the charging frequency of the user can be increased, and the use experience of the user is reduced. Or, the user can not use the battery under the condition that the battery cannot be charged after charging, and the user cannot charge the battery at the moment because the electric quantity is too low under the condition that the service time is very short, so that the use experience of the user is reduced. Therefore, it is necessary to provide the bluetooth headset with a power saving function.
The inventor finds through research that the larger the data volume processed by the bluetooth headset, the larger the power consumption, such as the larger the data volume transmitted, the larger the decoded data volume, and the larger the playing data volume. Therefore, under the condition that the sound playing which needs to be played is ensured, the data processing amount of the Bluetooth headset is reduced to a certain extent, and the Bluetooth headset can save more electricity.
When the electronic device transmits audio data through bluetooth, the audio data is subjected to bluetooth coding at a certain coding rate and then is transmitted to the bluetooth headset, and the lower the coding rate is, the smaller the coded data is, the smaller the data received by the bluetooth headset is, and the smaller the data which needs to be decoded and played is. Taking the MP3 file as an example, the electronic device decodes the MP3 file into a PCM (pulse code modulation) file, and then encodes the PCM file into a file that can be transmitted via bluetooth, such as AAC (advanced audio Coding), SBC (Sub-band Coding), and the like. When the PCM file is coded into a file transmitted through Bluetooth, the higher the coding rate is, namely the higher the code rate is, the larger the coded data is; the lower the code rate, i.e., the lower the code rate, the smaller the encoded data, the smaller the data sent to the bluetooth headset. The Bluetooth headset decodes the received data into a PCM file for playing, and the smaller the data received by the Bluetooth is, the smaller the data processing required to be decoded is, and the smaller the played data is, so that the electric quantity can be saved.
Therefore, the inventor proposes the encoding rate adjustment method, apparatus, electronic device 600 and storage medium provided in the embodiments of the present application, to reduce the encoding rate of the audio data transmitted to the bluetooth headset when the power of the bluetooth headset is too low, so as to reduce the data amount processed by the bluetooth headset and save the power.
The encoding rate adjustment method, apparatus, electronic device 600 and storage medium provided in the embodiments of the present application will be described in detail below with specific embodiments.
Referring to fig. 3, an embodiment of the present application provides a method for adjusting coding rate. In the method, the electronic device adjusts the encoding rate transmitted to the bluetooth headset low. Specifically, the method comprises the following steps:
step S110: and judging whether the electric quantity of the Bluetooth headset connected with the electronic equipment is less than or equal to a preset electric quantity.
The electronic equipment can acquire the electric quantity of the Bluetooth headset connected with the Bluetooth and judge whether the electric quantity is smaller than or equal to a preset electric quantity. The determination process may be performed in real time or according to a preset period.
The Bluetooth headset sends the device information of the Bluetooth headset to the electronic device through Bluetooth, and the electronic device analyzes the device information of the electronic device, so that the electric quantity of the Bluetooth headset can be obtained. For example, the electronic device uses a system API (application programming Interface) to scan broadcast data of the bluetooth device, such as frame: CoreBluetooth/corebluetooth.h; framework used by Android: bluetooth adapter, bluetooth device, and bluetooth manager. And then the Bluetooth power information can be obtained by analyzing the Bluetooth power information according to the protocol defined by the user.
The specific value and the specific expression form of the preset electric quantity when the electronic device performs the determination are not limited in the embodiment of the present application. The preset electric quantity can be represented by a percentage, a decimal number or any other form of data. When the electric quantity value of the Bluetooth equipment is obtained, the obtained electric quantity value can be converted into data consistent with a preset electric quantity format, and then the size comparison is carried out. And judging whether the electric quantity of the Bluetooth headset is less than or equal to the preset electric quantity according to the comparison result.
Step S120: if so, adjusting the encoding rate of the audio data to be less than a preset threshold value.
If the electric quantity of the Bluetooth headset is judged to be smaller than the preset electric quantity, the electric quantity needs to be saved so as to prolong the service life of the Bluetooth headset. The power consumption of the bluetooth headset can be reduced by reducing the data processing amount of the bluetooth headset, and the lower the data encoding rate received by the bluetooth headset is, the less the data amount which can be processed by the bluetooth headset is, the lower the power consumption is.
Therefore, the encoding rate of the audio data can be adjusted down. Specifically, when the electric quantity of the bluetooth headset is greater than the preset electric quantity, the audio data is generally encoded at a higher encoding rate, that is, at an encoding rate higher than a preset threshold value, so that the audio data obtained by the bluetooth headset has more sound details and can play better sound quality. When the power is less than or equal to the preset power, the encoding rate of the audio data may be adjusted to be less than the preset threshold.
The preset threshold may be set and stored by the system, or may be set by the user. The user setting may be set in advance in the setting interface, or the user may set or change the setting currently. For example, under the condition that the preset threshold is set, the encoding rate of the audio data is adjusted to be smaller than the encoding rate of the preset threshold, if the audio data transmitted to the bluetooth headset is played normally, the user considers that the tone quality is not affected, or the electric quantity of the bluetooth headset is too low, and the user can turn down the preset threshold. If the audio data transmitted to the Bluetooth headset is played, the tone quality loss is too large, and the user can also properly increase the preset threshold value. Therefore, the user can find a code rate which is adjusted by the audio data to be as small as possible and has no obvious influence on the tone quality of the audio data as possible by combining the playing effect with the lowering and raising operations of the preset threshold value.
Step S130: and processing the audio data according to the adjusted encoding rate, and transmitting the processed audio data to the Bluetooth headset.
The electronic device processes the audio data according to the adjusted encoding rate. Specifically, audio data to be transmitted to the bluetooth via the bluetooth may be encoded according to the encoding rate, and the encoded audio data may be transmitted to the bluetooth headset via the bluetooth module in a bluetooth transmission manner.
For example, the electronic device is to play music corresponding to MP3 music files through a bluetooth headset. The MP3 file is decoded into a PCM file, the PCM file is encoded into an encoded file which can be transmitted by Bluetooth through the adjusted encoding rate, and the encoded file is transmitted to the Bluetooth headset through the Bluetooth. And after receiving the coding file, the Bluetooth headset decodes the coding file and plays the coding file.
In the embodiment of the application, the encoding rate of the audio data transmitted to the Bluetooth headset is adjusted according to the electric quantity of the Bluetooth headset connected to the electronic equipment, and when the electric quantity is smaller than or equal to the preset electric quantity, the encoding rate of the audio data is adjusted to the preset threshold value, so that the audio data is encoded through the preset threshold value and then is transmitted to the Bluetooth headset. Therefore, the data volume received by the Bluetooth headset is smaller, and the data volume required to be processed is smaller, so that the electric quantity of the Bluetooth headset is saved.
According to the encoding rate adjusting method provided by the embodiment of the application, when the electronic device is connected to one Bluetooth headset, the acquired electric quantity of the Bluetooth headset is the electric quantity of the connected Bluetooth headset, and when the electric quantity of the headset is judged to be smaller than the preset threshold value, the encoding rate of the audio data can be adjusted to be smaller than the preset threshold value. When the headsets connected to the electronic device are two bluetooth headsets, the processing can be performed by the method as shown in fig. 4. Specifically, the bluetooth headset connected to the electronic device may be defined as a first bluetooth headset and a second bluetooth headset, respectively, where one of the two bluetooth headsets is the first bluetooth headset and the other one is the second bluetooth headset, which is not limited in the embodiment of the present application.
In addition, the electronic device 600 is connected to two bluetooth headsets, and if the played audio data includes left channel data and right channel data, the left channel data is sent to one of the bluetooth headsets, and the right channel data is sent to one of the bluetooth headsets. Here, the left channel data and the right channel data may be the same audio data having a phase difference, that is, the sound wave of the sound of the left channel generated from the left channel data and the sound wave of the sound of the right channel generated from the right channel data are sound waves having the same period, frequency, and amplitude, but having a phase difference. When the Bluetooth headset plays audio, one Bluetooth headset plays the sound of the left sound channel, one Bluetooth headset plays the sound of the right sound channel, and the sounds of the two sound channels generally have a certain phase difference and are spread to corresponding ears of people, so that a user can generate good stereo hearing experience. And if the audio data to be played is stereo data, transmitting the stereo data to the first Bluetooth earphone and the second Bluetooth earphone respectively. Therefore, the audio data corresponding to the first bluetooth headset in the audio data may be defined as first audio data, and the audio data corresponding to the second bluetooth headset may be defined as second audio data.
For example, if the audio data of the electronic device includes left channel data and right channel data. If the first Bluetooth earphone is a left earphone, the first Bluetooth earphone is used for receiving left channel data; and if the second Bluetooth earphone is a right earphone and is used for receiving right channel data, taking the left channel data as first audio data and taking the right channel data as second audio data. If the first Bluetooth earphone is a right earphone, the first Bluetooth earphone is used for receiving right channel data; and if the second Bluetooth earphone is a left earphone and is used for receiving left channel data, taking the right channel data as first audio data and taking the left channel data as second audio data.
If the audio data of the electronic equipment is stereo data, the audio data sent to the first Bluetooth headset is defined as first audio data, and the audio data sent to the second Bluetooth headset is defined as second audio data.
Specifically, as shown in fig. 4, the method includes:
step S210: and judging whether the electric quantity of any one Bluetooth headset connected with the electronic equipment is less than or equal to a preset electric quantity. If yes, go to step S220; if not, go to step S210.
Step S220: and adjusting the encoding rate of the first audio data and the encoding rate of the second audio data to be smaller than a preset threshold value.
When the electronic equipment is connected with two Bluetooth earphones, the power can be saved when the electric quantity of any one Bluetooth earphone is smaller than the preset electric quantity. Whether any electric quantity in the two Bluetooth earphones is smaller than or equal to a preset electric quantity or not can be judged.
That is to say, if the electric quantity of the first bluetooth headset is less than or equal to the preset electric quantity, or the electric quantity of the second bluetooth headset is less than or equal to the preset electric quantity, or the electric quantities of the first bluetooth headset and the second bluetooth headset are both less than or equal to the preset electric quantity, it is determined whether the electric quantity of any bluetooth headset connected to the electronic device is less than or equal to the preset electric quantity.
As an implementation manner, in this embodiment of the present application, when it is determined that the power of one bluetooth headset is less than or equal to the preset power, and whether the power of another bluetooth headset is less than or equal to the preset power may not be determined, an operation of adjusting the encoding rates of the first audio data and the second audio data to be less than a preset threshold may be performed.
Optionally, in this embodiment, in the electronic device, there may be only one encoding rate parameter corresponding to the encoding rate, and both the first audio data and the second audio data are encoded with a value corresponding to the encoding rate parameter as the encoding rate. When adjusting the coding rate, the value of the coding rate parameter is adjusted. The value corresponding to the adjusted encoding rate parameter is used as the encoding rate of the first audio data and the encoding rate of the second audio data.
Optionally, in this embodiment, in the electronic device, the encoding rate parameter corresponding to the encoding rate may include two, such as a first encoding rate parameter and a second encoding rate parameter. Wherein a value corresponding to the first encoding rate parameter is used as an encoding rate of the first audio data, and a value corresponding to the second encoding rate parameter is used as an encoding rate of the second audio data. Therefore, the first encoding rate parameter and the second encoding rate parameter can be adjusted respectively, and the values corresponding to the first encoding rate parameter and the second encoding rate parameter are adjusted to be smaller than the preset threshold value.
Optionally, in this embodiment, the values corresponding to the first encoding rate parameter and the second encoding rate parameter may be the same, so that the encoding rates of the first audio data and the second audio data are the same after the encoding rates are adjusted.
Optionally, in this embodiment, the values corresponding to the first encoding rate parameter and the second encoding rate parameter may also be different, that is, the first encoding rate parameter may be set corresponding to the first audio data, and the second encoding rate parameter may be set corresponding to the second audio data.
Optionally, in this embodiment, when the values corresponding to the first encoding rate parameter and the second encoding rate parameter are respectively set, the encoding rate of the bluetooth headset with higher power may be set higher than the encoding rate of the bluetooth headset with lower power. That is, if the power of the first bluetooth headset is higher than that of the second bluetooth headset, the value of the first encoding rate parameter may be set higher than that of the second encoding rate parameter; if the second bluetooth headset has a higher power than the first bluetooth headset, the value of the second encoding rate parameter may be set higher than the first encoding rate parameter.
As an implementation manner, the electronic device may also determine whether the electric quantities of the two bluetooth headsets are less than or equal to the preset electric quantity. If the electric quantity of only one bluetooth headset is less than or equal to the preset electric quantity, the encoding rate of the audio data corresponding to the bluetooth headset can be adjusted to be lower than the preset threshold value, and the encoding rate corresponding to the other bluetooth headset is kept to be higher than the preset threshold value. If the electric quantity of the two Bluetooth earphones is smaller than or equal to the preset electric quantity, the coding rate corresponding to the two Bluetooth earphones is adjusted to be lower than the preset threshold value.
In this embodiment of the application, if the electric quantities of the two bluetooth headsets are both greater than the preset electric quantity, step S210 may be continuously executed to determine whether the electric quantity of any one of the bluetooth headsets is less than the preset electric quantity.
Step S230: and processing the audio data according to the adjusted encoding rate, and transmitting the processed audio data to the Bluetooth headset.
After the first audio data are coded according to the coding rate corresponding to the first audio data, the first audio data are transmitted to a first Bluetooth earphone through Bluetooth; and after the second audio data are coded according to the coding rate corresponding to the second audio data, the second audio data are transmitted to a second Bluetooth earphone through Bluetooth.
In this embodiment of the present application, for an electronic device connected to two bluetooth headsets through bluetooth, if the electric quantity of any one bluetooth headset is less than a preset electric quantity, the encoding rate of the audio data sent to the first bluetooth headset is adjusted to be lower than a preset threshold value, and then the audio data sent to the first bluetooth headset is encoded according to the encoding rate; and after the encoding rate of the audio data sent to the second Bluetooth headset is adjusted to be lower than the preset threshold value, the audio data sent to the second Bluetooth headset is encoded according to the encoding rate.
In the embodiment of the present application, when the electronic device is connected to two bluetooth headsets, the encoding rate may also be adjusted according to the power difference between the two bluetooth headsets. Specifically, referring to fig. 5, the method includes:
step S310: and judging whether the electric quantity of any one Bluetooth headset connected with the electronic equipment is less than or equal to a preset electric quantity. If yes, go to step S320; if not, go to step S310.
And judging whether the electric quantity of the Bluetooth headset connected with the electronic equipment is less than or equal to a preset electric quantity. If only one Bluetooth earphone is connected with the electronic equipment, the encoding rate of the audio data is directly adjusted to be smaller than the preset threshold value, and then the audio data is encoded according to the encoding rate and then sent to the Bluetooth earphone. If the Bluetooth earphones connected with the electronic equipment through the Bluetooth comprise two Bluetooth earphones, whether the electric quantity of any one of the Bluetooth earphones is smaller than or equal to the preset electric quantity or not is judged.
Step S320: and judging whether the electric quantity of only one Bluetooth headset is less than or equal to the preset electric quantity. If yes, go to step S330; if not, go to step S350.
When the electronic equipment judges that the electric quantity of the Bluetooth earphones is smaller than or equal to the preset electric quantity, the quantity of the Bluetooth earphones smaller than or equal to the preset electric quantity is judged. That is to say, after the electronic device determines whether the electric quantity of one bluetooth headset is less than or equal to the preset electric quantity according to the electric quantity of the other bluetooth headset, it is determined whether the electric quantity of the other bluetooth headset is less than or equal to the preset electric quantity according to the electric quantity of the other bluetooth headset. When the electric quantities of the two bluetooth headsets are both less than or equal to the preset electric quantity, step S350 is executed, and when it is determined that the electric quantity of only one bluetooth headset is less than or equal to the preset electric quantity, step S330 is executed.
Step S330: and judging whether the electric quantity difference value between the two Bluetooth earphones is smaller than a preset difference value. If yes, go to step S340; if not, go to step S350.
When the electric quantity of only one Bluetooth headset is smaller than the preset electric quantity, if the electric quantity difference between the two Bluetooth headsets is too large, the electric quantity of the other Bluetooth headset is sufficient, and high-code-rate coding can be kept so as to keep good playing tone quality; if the electric quantity difference value between the two Bluetooth earphones is small, the electric quantity of the other Bluetooth earphone is low, and the electric quantity is consumed to be lower than the preset electric quantity, so that the encoding rate of the audio data corresponding to the other Bluetooth earphone can be adjusted.
Therefore, when the electric quantity of only one Bluetooth headset is smaller than or equal to the preset electric quantity, the electric quantity difference value between the two Bluetooth headsets is calculated, and whether the electric quantity difference value is smaller than the preset difference value or not is judged.
Step S340: and adjusting the encoding rate of the first audio data and the encoding rate of the second audio data to be smaller than a preset threshold value.
If the electric quantity difference between the two Bluetooth earphones is smaller than the preset difference, the electric quantities of the two Bluetooth earphones are lower, the encoding rates of the audio data respectively corresponding to the two Bluetooth earphones can be reduced, and the audio data are adjusted to be smaller than the preset threshold value.
Step S350: and adjusting the encoding rate of the audio data corresponding to the Bluetooth headset with the electric quantity less than or equal to the preset electric quantity to be less than the preset threshold value, and keeping the encoding rate of the audio data corresponding to the other Bluetooth headset unchanged.
If the electric quantity difference value is not smaller than the preset difference value, namely the electric quantity difference value is larger than or equal to the preset difference value, the encoding rate of the audio data corresponding to the Bluetooth headset with the electric quantity smaller than or equal to the preset electric quantity is adjusted to be smaller than a preset threshold value, and the encoding rate of the audio data corresponding to the other Bluetooth headset is kept unchanged.
That is to say, if the electric quantity of the first bluetooth headset is less than or equal to the preset electric quantity, the electric quantity of the second bluetooth headset is greater than the preset electric quantity, and the electric quantity difference between the two bluetooth headsets is not less than the preset threshold, the encoding rate of the first audio data is adjusted to be less than the preset threshold, and the encoding rate of the second audio data remains unchanged.
If the electric quantity of the second Bluetooth earphone is smaller than or equal to the preset electric quantity, the electric quantity of the first Bluetooth earphone is larger than the preset electric quantity, and the electric quantity difference value between the two Bluetooth earphones is not smaller than the preset threshold value, the encoding rate of the second audio data is adjusted to be smaller than the preset threshold value, and the encoding rate of the first audio data is kept unchanged.
Optionally, in this embodiment of the application, if the encoding rate of the audio data corresponding to another bluetooth headset is greater than the preset threshold, the encoding rate of the audio data corresponding to another bluetooth headset remains unchanged, and if the encoding rate of the audio data corresponding to another bluetooth headset is less than or equal to the preset threshold, the encoding rate of the audio data corresponding to another bluetooth headset is adjusted to be greater than the preset threshold.
Step S360: and processing the audio data according to the adjusted encoding rate, and transmitting the processed audio data to the Bluetooth headset.
In this embodiment, if the electric quantity of only one of the two bluetooth headsets is less than or equal to the preset electric quantity, the electric quantity of one bluetooth headset or the electric quantities of the two bluetooth headsets are determined to be adjusted according to the electric quantity difference between the two bluetooth headsets. If the electric quantity difference value is smaller than the preset threshold value, the encoding rates corresponding to the two Bluetooth earphones are adjusted to be lower than the preset threshold value; if the electric quantity difference value is larger than or equal to the preset threshold value, the encoding rate corresponding to the Bluetooth headset with the electric quantity smaller than or equal to the preset electric quantity is adjusted to be smaller than the preset threshold value. Therefore, whether the Bluetooth headset with the electric quantity larger than the preset electric quantity saves the electric quantity or not is determined according to the electric quantity difference value between the two Bluetooth headsets, the service time of the electric quantity between the two Bluetooth headsets can be better balanced, and the value of the time when the encoding rate corresponding to the Bluetooth headset is kept can be ensured.
In the coding rate adjustment method provided in the embodiment of the present application, the coding rate to be adjusted may also be determined according to the correspondence between the electric quantity and the coding rate. Specifically, as shown in fig. 6, the method may include:
step S410: and judging whether the electric quantity of the Bluetooth headset connected with the electronic equipment is less than or equal to a preset electric quantity. If yes, go to step S420; if not, go to step S440.
As an implementation manner, since the encoding rate of the audio data is reduced, the audio data obtained by the bluetooth headset has a certain tone quality loss, some music details are lost, and a certain influence may be exerted on the hearing experience, therefore, if there are two bluetooth headsets connected to the electronic device and the power of one of the bluetooth headsets is still greater than the preset power, the power saving operation may not be performed temporarily.
Therefore, in this embodiment, determining whether the electric quantity of the bluetooth headset connected to the electronic device is less than or equal to the preset electric quantity may be determining whether the electric quantities of the two bluetooth headsets connected to the electronic device are both less than or equal to the preset electric quantity. If the electric quantity of the two Bluetooth earphones connected with the electronic equipment is less than or equal to the preset electric quantity, the electric quantity of the Bluetooth earphones connected with the electronic equipment is judged to be less than or equal to the preset electric quantity, and the next step can be executed. That is, in this embodiment, if the power amounts of the two bluetooth headsets connected to the electronic device are both less than or equal to the preset power amount, step S420 is executed; if one of the electric quantities of the two bluetooth headsets connected with the electronic device is greater than the preset electric quantity, step S440 may be executed, or step S410 may be continuously executed.
As an implementation manner, it is determined whether the electric quantity of the bluetooth headset connected to the electronic device is less than or equal to a preset electric quantity, or whether the electric quantity of any bluetooth headset is less than or equal to the preset electric quantity. If the electric quantity of any one bluetooth headset is less than or equal to the preset electric quantity, executing step S420; if the electric quantities of the two bluetooth headsets are both greater than the preset electric quantity, step S440 is executed.
Step S420: and acquiring a target encoding rate which is smaller than a preset threshold value and corresponds to the current electric quantity of the Bluetooth headset according to the corresponding relation between the electric quantity and the encoding rate.
The residual electric quantity of the Bluetooth headset is different, and the residual service time is different. For the same encoding rate, the lower the power, the shorter the remaining usage duration of the bluetooth headset. Accordingly, a corresponding encoding rate may be set for the power amount. Wherein the lower the power, the lower the encoding rate. The electric quantity is less than or equal to the preset electric quantity, and the set corresponding encoding rate is less than a preset threshold value; and the set corresponding encoding rate is greater than a preset threshold value.
The specific manner of setting the encoding rate corresponding to the electric quantity is not limited in the embodiment of the present application. As an embodiment, a preset mapping table may be preset and stored, where the preset mapping table includes a corresponding relationship between the electric quantity and the encoding rate. Fig. 7 shows a preset mapping table, in which a1, a2, and A3 respectively represent different electric quantities, and B1, B2, and B3 respectively represent different encoding rates. And searching the encoding rate corresponding to the current electric quantity of the Bluetooth headset according to a preset mapping relation table, and taking the encoding rate as a target encoding rate. That is to say, after the electric quantity of the bluetooth headset is obtained, the electric quantity a corresponding to the electric quantity in the preset mapping relation table is searched, and the encoding rate B corresponding to the electric quantity a in the preset mapping relation table is taken as the target encoding rate corresponding to the electric quantity.
In addition, in the preset mapping relation table, the electric quantity a may be a specific value or an electric quantity interval. For example, in fig. 7, a1, a2, and A3 may be different specific electric quantity values, or may be different electric quantity intervals. If the electric quantity is a specific value in the preset mapping relation table, after the electric quantity of the Bluetooth headset is obtained, the signal intensity closest to the electric quantity can be searched in the preset mapping relation table. If the electric quantity A in the preset mapping relation table is an interval, after the electric quantity of the Bluetooth headset is obtained, the interval where the electric quantity is located can be searched in the preset mapping relation table.
As an embodiment, a functional relationship between the power and the coding rate may be pre-established and stored, so that the coding rate corresponding to the current power of the bluetooth headset may be calculated according to the functional relationship as the target coding rate.
As an embodiment, for a bluetooth headset less than or equal to a preset power amount, an encoding rate may be stored in advance as a target encoding rate. The encoding rate may be set and stored by a user or may be set and stored by the system.
In the embodiment of the present application, only the coding rate corresponding to the bluetooth headset with the power less than or equal to the preset power may be obtained, or the coding rates corresponding to all the bluetooth headsets may also be obtained.
Step S430: adjusting the encoding rate of the audio data to the target encoding rate.
And if the target encoding rate corresponding to the first Bluetooth headset is obtained, adjusting the encoding rate of the audio data corresponding to the first Bluetooth headset to the corresponding target encoding rate.
And if the target encoding rate corresponding to the second Bluetooth earphone is obtained, adjusting the encoding rate of the audio data corresponding to the second Bluetooth earphone to the target encoding rate corresponding to the second Bluetooth earphone.
Step S440: if the encoding rate of the audio data is less than or equal to the preset threshold, the encoding rate of the audio data is adjusted to be greater than the preset threshold.
If the electric quantity of the Bluetooth headset connected with the electronic device is larger than the preset electric quantity, and if the encoding rate of the audio data is smaller than or equal to the preset threshold value, for example, when the electric quantity of the Bluetooth headset is smaller than the preset electric quantity, the corresponding encoding rate is adjusted to be smaller than the preset threshold value, and when the electric quantity of the Bluetooth headset is larger than the preset electric quantity after being charged, the encoding rate of the audio data is adjusted to be larger than the preset threshold value.
Specifically, the adjusted encoding rate greater than the preset threshold may be determined according to a current electric quantity corresponding relationship of the bluetooth headset. It is also possible that a normal encoding rate for the audio data, that is, an encoding rate for encoding the audio data into a bluetooth-transmittable file without considering the amount of power, is set in advance as the adjusted encoding rate.
As an implementation manner, if the electronic device is connected with two bluetooth headsets, and the electric quantity of any one of the bluetooth headsets is greater than the preset electric quantity, it is determined that the electric quantity of the bluetooth headset connected with the electronic device is greater than the preset electric quantity, and the encoding rates of the audio data of the two bluetooth headsets are all adjusted to be greater than the preset threshold value.
As an implementation manner, if the electronic device is connected with two bluetooth headsets, and the electric quantity of any one of the bluetooth headsets is greater than the preset electric quantity, it is determined that the electric quantity of the bluetooth headset connected with the electronic device is greater than the preset electric quantity, and the encoding rates of the audio data of the bluetooth headsets with the electric quantities greater than the preset electric quantity in the two bluetooth headsets are all adjusted to be greater than the preset threshold value.
As an implementation mode, if the electronic device is connected with two Bluetooth headsets, the electric quantity of the two Bluetooth headsets is larger than the preset electric quantity, the electric quantity of the Bluetooth headset connected with the electronic device is judged to be larger than the preset electric quantity, and the encoding rate of the audio data of the two Bluetooth headsets is adjusted to be larger than the preset threshold value.
Of course, if the encoding rate of the audio data is inherently greater than the preset threshold, no operation may be performed and the encoding rate may be maintained.
Step S450: and processing the audio data according to the adjusted encoding rate, and transmitting the processed audio data to the Bluetooth headset.
In the encoding rate adjustment method provided by the embodiment of the application, the encoding rate to be adjusted can be determined according to the corresponding relation between the electric quantity and the encoding rate, so that the encoding rate adjusted by the audio data is more in accordance with the actual electric quantity of the bluetooth headset, and the balance of saving the electric quantity and the tone quality is achieved.
In the embodiments of the present application, the same or similar steps may be referred to each other, and the steps with the same or similar steps are not described in detail. In addition, the embodiments and the embodiments can be combined reasonably.
The embodiment of the present application further provides a coding rate adjusting apparatus 500, which is applied to an electronic device. Referring to fig. 8, the apparatus 500 may include: the determining module 510 is configured to determine whether the electric quantity of the bluetooth headset connected to the electronic device is less than or equal to a preset electric quantity. And an encoding rate adjusting module 520, configured to adjust the encoding rate of the audio data to be less than the preset threshold if the determination result of the determining module is yes. A transmission module 530, configured to transmit the audio data to the bluetooth headset after processing the audio data according to the adjusted encoding rate.
Optionally, the encoding rate adjusting module 520 is further configured to adjust the encoding rate of the audio data to be greater than the preset threshold if the determination result of the determining module is negative.
Optionally, if the bluetooth headset connected to the electronic device includes a first bluetooth headset and a second bluetooth headset, the audio data includes first audio data corresponding to the first bluetooth headset and second audio data corresponding to the second bluetooth headset. The judging module can be used for judging whether the electric quantity of any one Bluetooth headset connected with the electronic equipment is smaller than or equal to the preset electric quantity. If the determination result is yes, the encoding rate adjustment module 520 may be configured to adjust the encoding rates of the first audio data and the second audio data to be less than a preset threshold.
Optionally, when the electric quantity of only one bluetooth headset is less than or equal to the preset electric quantity, the device may further include a difference value determining module for determining whether the electric quantity difference value between the two bluetooth headsets is less than the preset difference value. If the difference determination module determines that the difference is smaller than the predetermined threshold, the encoding rate adjustment module 520 may be configured to adjust the encoding rates of the first audio data and the second audio data to be smaller than the predetermined threshold.
Optionally, if the difference determining module determines that the result is negative, the encoding rate adjusting module 520 may be configured to adjust the encoding rate of the audio data corresponding to the bluetooth headset with the electric quantity less than or equal to the preset electric quantity to be less than the preset threshold, and the encoding rate of the audio data corresponding to another bluetooth headset remains unchanged.
Optionally, if there are two bluetooth headsets connected to the electronic device, the determining module 510 may be configured to determine whether the electric quantities of the two bluetooth headsets connected to the electronic device are both less than or equal to a preset electric quantity; if yes, the electric quantity of the Bluetooth headset connected with the electronic equipment is judged to be smaller than or equal to the preset electric quantity.
Alternatively, the coding rate adjustment module 520 may include a lookup unit and an adjustment unit. The searching unit is used for searching the encoding rate which is smaller than a preset threshold value and corresponds to the current electric quantity of the Bluetooth headset according to a preset mapping relation table to serve as a target encoding rate; the adjusting unit is configured to adjust the encoding rate of the audio data to the target encoding rate.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and modules may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again. For each implementation manner and embodiment in the foregoing method embodiment, corresponding modules or units may execute the implementation manner, and are not described in this embodiment one by one.
In the several embodiments provided in the present application, the coupling between the modules may be electrical, mechanical or other type of coupling.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
Another embodiment of the present application further provides an electronic device 600, where the electronic device 600 may be an electronic device capable of running an application, such as a smart phone, a tablet computer, and a music playing device. Referring to fig. 9, the electronic device 600 includes one or more processors 610 (only one shown), memory 620, and one or more programs. Wherein the one or more programs are stored in the memory 620 and configured to be executed by the one or more processors 610, the one or more programs configured to perform the methods described in one or more embodiments above.
The processor 610 may include one or more processing cores. The processor 610 interfaces with various components throughout the electronic device 600 using various interfaces and circuitry to perform various functions of the electronic device 600 and process data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 620 and invoking data stored in the memory 620. Alternatively, the processor 610 may be implemented in hardware using at least one of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 610 may integrate one or a combination of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing display content; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 610, but may be implemented by a communication chip.
The Memory 620 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). The memory 620 may be used to store instructions, programs, code sets, or instruction sets. The memory 620 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function, instructions for implementing the various method embodiments described above, and the like. The stored data area may also store data created by the electronic device 600 during use (e.g., phone books, audio-visual data, chat log data), and the like.
As shown in fig. 9, the electronic device further includes a Bluetooth (BT) module 630. The bluetooth module may be a chip basic circuit set integrated with a bluetooth function, and is used for wireless network communication. The Bluetooth module 630 is electrically connected with the processor, and the electronic device can be connected with the Bluetooth earphone through the Bluetooth connection between the Bluetooth module 630 and the Bluetooth earphone
Referring to fig. 10, a block diagram of a computer-readable storage medium according to an embodiment of the present application is shown. The computer-readable storage medium 700 has stored therein program code that can be invoked by a processor to perform the methods described in the method embodiments above.
The computer-readable storage medium 700 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. Alternatively, the computer-readable storage medium 700 includes a non-volatile computer-readable storage medium. The computer readable storage medium 700 has storage space for program code 710 for performing any of the method steps of the method described above. The program code can be read from or written to one or more computer program products. The program code 710 may be compressed, for example, in a suitable form.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not necessarily depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (5)

1. An encoding rate adjustment method applied to an electronic device, the method comprising:
if the Bluetooth headset connected with the electronic equipment comprises a first Bluetooth headset and a second Bluetooth headset, and the audio data comprises first audio data corresponding to the first Bluetooth headset and second audio data corresponding to the second Bluetooth headset, judging whether the electric quantity of any one Bluetooth headset connected with the electronic equipment is smaller than or equal to a preset electric quantity;
when the electric quantity of only one Bluetooth headset is smaller than or equal to the preset electric quantity, judging whether the electric quantity difference value between the two Bluetooth headsets is smaller than the preset difference value;
if the electric quantity difference value is smaller than a preset difference value, adjusting the encoding rates of the first audio data and the second audio data to be smaller than a preset threshold value;
if the electric quantity difference value is larger than or equal to a preset difference value, adjusting the encoding rate of the audio data corresponding to the Bluetooth headset of which the electric quantity is smaller than or equal to the preset electric quantity to be smaller than a preset threshold value, and keeping the encoding rate of the audio data corresponding to the other Bluetooth headset unchanged;
and processing the audio data according to the adjusted encoding rate, and transmitting the processed audio data to the Bluetooth headset.
2. The method of claim 1, further comprising:
and if the electric quantity of the two Bluetooth earphones connected with the electronic equipment is larger than the preset electric quantity, adjusting the encoding rate of the audio data to be larger than the preset threshold value.
3. An encoding rate adjustment apparatus applied to an electronic device, the apparatus comprising:
the judgment module is used for judging whether the electric quantity of any one Bluetooth earphone connected with the electronic equipment is less than or equal to a preset electric quantity or not if the Bluetooth earphone connected with the electronic equipment comprises a first Bluetooth earphone and a second Bluetooth earphone, and the audio data comprises first audio data corresponding to the first Bluetooth earphone and second audio data corresponding to the second Bluetooth earphone;
the encoding rate adjusting module is used for judging whether the electric quantity difference value between the two Bluetooth earphones is smaller than a preset difference value or not when the electric quantity of only one Bluetooth earphone is smaller than or equal to the preset electric quantity; if the electric quantity difference value is smaller than a preset difference value, adjusting the encoding rates of the first audio data and the second audio data to be smaller than a preset threshold value; if the electric quantity difference value is larger than or equal to a preset difference value, adjusting the encoding rate of the audio data corresponding to the Bluetooth headset of which the electric quantity is smaller than or equal to the preset electric quantity to be smaller than a preset threshold value, and keeping the encoding rate of the audio data corresponding to the other Bluetooth headset unchanged;
and the transmission module is used for transmitting the audio data to the Bluetooth headset after the audio data is processed according to the adjusted coding rate.
4. An electronic device, comprising:
one or more processors;
a memory;
one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the method of any of claims 1-2.
5. A computer-readable storage medium, having stored thereon program code that can be invoked by a processor to perform the method according to any one of claims 1-2.
CN201811161224.5A 2018-09-30 2018-09-30 Encoding rate adjustment method, encoding rate adjustment device, electronic device, and storage medium Active CN109413525B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811161224.5A CN109413525B (en) 2018-09-30 2018-09-30 Encoding rate adjustment method, encoding rate adjustment device, electronic device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811161224.5A CN109413525B (en) 2018-09-30 2018-09-30 Encoding rate adjustment method, encoding rate adjustment device, electronic device, and storage medium

Publications (2)

Publication Number Publication Date
CN109413525A CN109413525A (en) 2019-03-01
CN109413525B true CN109413525B (en) 2020-01-14

Family

ID=65465872

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811161224.5A Active CN109413525B (en) 2018-09-30 2018-09-30 Encoding rate adjustment method, encoding rate adjustment device, electronic device, and storage medium

Country Status (1)

Country Link
CN (1) CN109413525B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110650400A (en) * 2019-09-30 2020-01-03 歌尔科技有限公司 Wireless earphone and low-power-consumption method, device and system thereof
CN111385621B (en) * 2020-03-18 2022-08-02 海信视像科技股份有限公司 Display device and Bluetooth audio transmission method
CN114584814A (en) * 2020-11-30 2022-06-03 华为技术有限公司 Method for adjusting power consumption of terminal, method for adjusting code rate and related equipment
CN112671967A (en) * 2020-12-22 2021-04-16 英华达(上海)科技有限公司 Bluetooth headset control method, system, device and medium
CN112866859B (en) * 2021-01-20 2023-08-18 维沃移动通信有限公司 Audio playing method and device and wireless earphone

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102301744A (en) * 2009-01-29 2011-12-28 高通股份有限公司 Audio coding selection based on device operating condition
EP2658222A1 (en) * 2012-04-18 2013-10-30 Huawei Device Co., Ltd. Method and electronic device for determining headset line sequence
CN107681993A (en) * 2017-09-14 2018-02-09 维沃移动通信有限公司 A kind of method and mobile terminal for adjusting audio frequency parameter

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090099851A1 (en) * 2007-10-11 2009-04-16 Broadcom Corporation Adaptive bit pool allocation in sub-band coding
CN106782578B (en) * 2016-12-06 2020-09-01 瑞安市海达服饰有限公司 Distributed decoding controller, distributed decoding method and audio terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102301744A (en) * 2009-01-29 2011-12-28 高通股份有限公司 Audio coding selection based on device operating condition
EP2658222A1 (en) * 2012-04-18 2013-10-30 Huawei Device Co., Ltd. Method and electronic device for determining headset line sequence
CN107681993A (en) * 2017-09-14 2018-02-09 维沃移动通信有限公司 A kind of method and mobile terminal for adjusting audio frequency parameter

Also Published As

Publication number Publication date
CN109413525A (en) 2019-03-01

Similar Documents

Publication Publication Date Title
CN109413525B (en) Encoding rate adjustment method, encoding rate adjustment device, electronic device, and storage medium
CN109246672B (en) Data transmission method, device and system and Bluetooth headset
CN109246671B (en) Data transmission method, device and system
CN110913442B (en) Network switching method and device, electronic equipment and storage medium
CN108738006A (en) Data transmission method based on bluetooth and device
KR102569374B1 (en) How to operate a Bluetooth device
CN101945314B (en) A kind of earphone, corresponding audiogenic device and control method
US20100054519A1 (en) Audio Communication System
CN109003618A (en) Coding control method, device, electronic equipment and storage medium
CN110876180B (en) Power consumption processing method and device, electronic equipment and computer readable medium
US10950238B2 (en) Bluetooth speaker base, method and system for controlling thereof
CN109271131B (en) Earphone control method and device, electronic equipment and storage medium
CN109151861A (en) Encoding rate method of adjustment, device and electronic equipment
WO2021052293A1 (en) Audio coding method and apparatus
EP4086899A1 (en) Audio transmission method and electronic device
CN103402171A (en) Method and terminal for sharing background music during communication
CN109274813A (en) Optimization of rate method, apparatus, electronic equipment and storage medium
CN111436046A (en) Bluetooth-based audio data providing method and device, charging equipment and system
CN110958298A (en) Wireless audio playing device and wireless internet audio playing method thereof
CN105407225A (en) Data transmission method and Bluetooth equipment
CN111343541A (en) Control method and device of wireless earphone, mobile terminal and storage medium
CN105425951A (en) Application interaction control method and device
CN115022766A (en) Audio data playing method and equipment
CN109150400B (en) Data transmission method and device, electronic equipment and computer readable medium
CN113472764B (en) Electronic device and audio transmission method

Legal Events

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