CN112671967A - Bluetooth headset control method, system, device and medium - Google Patents

Bluetooth headset control method, system, device and medium Download PDF

Info

Publication number
CN112671967A
CN112671967A CN202011533551.6A CN202011533551A CN112671967A CN 112671967 A CN112671967 A CN 112671967A CN 202011533551 A CN202011533551 A CN 202011533551A CN 112671967 A CN112671967 A CN 112671967A
Authority
CN
China
Prior art keywords
bit rate
bluetooth headset
audio
terminal equipment
earphone
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011533551.6A
Other languages
Chinese (zh)
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.)
Iac Nanchang Technology Co ltd
Inventec Appliances Nanchang Corp
Inventec Appliances Shanghai Corp
Inventec Appliances Corp
Original Assignee
Iac Nanchang Technology Co ltd
Inventec Appliances Shanghai Corp
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 Iac Nanchang Technology Co ltd, Inventec Appliances Shanghai Corp filed Critical Iac Nanchang Technology Co ltd
Priority to CN202011533551.6A priority Critical patent/CN112671967A/en
Priority to TW110112745A priority patent/TWI781578B/en
Publication of CN112671967A publication Critical patent/CN112671967A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Ultra Sonic Daignosis Equipment (AREA)
  • Selective Calling Equipment (AREA)

Abstract

The invention provides a method, a system, equipment and a medium for controlling a Bluetooth headset, wherein the method comprises the following steps: detecting whether the earphone power saving function of the terminal equipment is triggered or not, and acquiring the residual electric quantity value of the Bluetooth earphone; when the earphone power saving function of the terminal equipment is triggered and/or the residual electric quantity value is smaller than a first preset threshold value, controlling an audio coding module in the terminal equipment to be switched from the first bit rate to work at the second bit rate, and sending a bit rate adjusting instruction to the Bluetooth earphone; the first bit rate is greater than the second bit rate; after receiving the bit rate adjusting instruction, the Bluetooth headset controls an audio decoding module to switch from a first bit rate to work at a second bit rate; this application has improved the duration of a journey ability of earphone under the prerequisite that does not increase earphone weight.

Description

Bluetooth headset control method, system, device and medium
Technical Field
The invention relates to the technical field of earphone electric quantity control, in particular to a Bluetooth earphone control method, a Bluetooth earphone control system, Bluetooth earphone control equipment and a Bluetooth earphone control medium.
Background
In the prior art, in order to achieve the purpose of saving power for a bluetooth headset, the following method is generally adopted: the size of the earphone battery is increased to prolong the battery endurance. However, this will increase the weight of the earphone, which is not favorable for portability of the earphone. Therefore, how to increase the cruising ability of the earphone on the premise of not increasing the weight of the bluetooth earphone is a main problem facing at present.
Disclosure of Invention
Aiming at the problems in the prior art, the invention aims to provide a control method, a control system, control equipment and a control medium of a Bluetooth headset, so that the cruising ability of the headset is improved on the premise of not increasing the weight of the Bluetooth headset.
In order to achieve the above object, the present invention provides a bluetooth headset control method, where the bluetooth headset is used for data transmission with a terminal device, the bluetooth headset includes an audio decoding module, the terminal device includes an audio encoding module, and the bluetooth headset control method includes the following steps:
detecting whether the earphone power saving function of the terminal equipment is triggered or not, and acquiring the residual electric quantity value of the Bluetooth earphone;
when the earphone power saving function of the terminal equipment is triggered and/or the residual electric quantity value is smaller than a first preset threshold value, controlling an audio coding module in the terminal equipment to be switched from the first bit rate to work at the second bit rate, and sending a bit rate adjusting instruction to the Bluetooth earphone; the first bit rate is greater than the second bit rate;
and after receiving the bit rate adjusting instruction, the Bluetooth headset controls the audio decoding module to switch from the first bit rate to work at the second bit rate.
Optionally, the method further comprises the step of:
and when the adjusted bit rate value reaches a preset minimum value, adjusting the size of a single frame during data transmission from a first frame size to a second frame size, wherein the second frame size is larger than the first frame size.
Optionally, the method further comprises the step of:
continuously detecting the residual electric quantity value of the Bluetooth headset;
when the residual electric quantity value is smaller than a second preset threshold value, the terminal device controls the audio coding module to switch from the second bit rate to work at a third bit rate, and simultaneously sends a second bit rate adjusting instruction to the Bluetooth headset; the second bit rate is greater than the third bit rate, and the second preset threshold is less than the first preset threshold;
and after receiving the second bit rate adjusting instruction, the Bluetooth headset controls the audio decoding module to switch from the second bit rate to a third bit rate for working.
Optionally, the step of controlling the audio coding module in the terminal device to switch from the first bitrate to operate at the second bitrate includes:
the amount of sampling data of the data to be transmitted is reduced.
Optionally, the step of reducing the amount of sampling data of the data to be transmitted includes:
the sampling frequency of the data to be transmitted is reduced, and/or the number of bits of a single sample is reduced.
Optionally, the step of detecting whether the headset power saving function of the terminal device is triggered to obtain the remaining power value of the bluetooth headset includes:
collecting an environmental sound signal;
the step of controlling an audio coding module in the terminal device to switch from the first bit rate to work at the second bit rate when the headset power saving function of the terminal device is triggered and/or the residual electric quantity value is smaller than a first preset threshold value, and sending a bit rate adjustment instruction to the bluetooth headset at the same time includes:
and when the earphone power saving function of the terminal equipment is triggered, and/or the residual electric quantity value is smaller than a first preset threshold value, and/or the amplitude reduction amplitude of the environment sound signal is larger than a third preset threshold value, controlling an audio coding module in the terminal equipment to be switched from the first bit rate to work at the second bit rate, and simultaneously sending a bit rate adjusting instruction to the Bluetooth earphone.
Optionally, before the step of detecting whether the headset power saving function of the terminal device is triggered, the method further includes the steps of:
collecting geographical position information of a user during a working day;
acquiring a first destination and a second destination which have the longest stay time of a user in the geographical position information;
acquiring public transportation information with the maximum use times of a user between the first destination and the second destination and a position area when the user is on a public transportation included in the public transportation information;
when detecting that a user enters the position area from the outside of the position area, controlling an audio coding module in the terminal equipment to work at the first bit rate;
the step of controlling an audio coding module in the terminal device to switch from the first bit rate to work at the second bit rate when the headset power saving function of the terminal device is triggered and/or the residual electric quantity value is smaller than a first preset threshold value, and sending a bit rate adjustment instruction to the bluetooth headset at the same time includes:
when the earphone power saving function of the terminal equipment is triggered, and/or the residual electric quantity value is smaller than a first preset threshold value, and/or when the situation that the user leaves the position area is detected, controlling an audio coding module in the terminal equipment to be switched from the first bit rate to work at the second bit rate, and sending a bit rate adjusting instruction to the Bluetooth earphone.
Optionally, before the step of detecting whether the headset power saving function of the terminal device is triggered and acquiring the remaining power value of the bluetooth headset, the method further includes the steps of:
establishing a database of a mapping relation between a preset scene label and a transmission bit rate;
intercepting the transmitted audio data to obtain an audio data segment;
identifying the audio data segment to obtain a target scene label matched with the audio data segment, wherein the target scene label belongs to the preset scene label;
obtaining a fourth bit rate matched with the target scene label according to the target scene label and the database;
controlling the Bluetooth headset to perform data transmission with a terminal device at the fourth bit rate;
the step of controlling an audio coding module in the terminal device to switch from the first bit rate to work at the second bit rate when the earphone power saving function of the terminal device is triggered and/or the residual electric quantity value is smaller than a first preset threshold value includes:
and when the earphone power saving function of the terminal equipment is triggered and/or the residual electric quantity value is smaller than a first preset threshold value, controlling an audio coding module in the terminal equipment to be switched from the fourth bit rate to work at the second bit rate.
Optionally, the intercepting the transmitted audio data to obtain an audio data segment includes:
intercepting the transmitted audio data for multiple times to obtain multiple audio data fragments;
the identifying the audio data segment to obtain a target scene tag matched with the audio data segment includes:
and respectively identifying the plurality of audio data fragments to obtain a plurality of scene labels, and taking the scene label with the largest number as a target scene label.
The invention also provides a Bluetooth headset control system which is used for realizing the Bluetooth headset control method, the system comprises the Bluetooth headset and terminal equipment, the terminal equipment comprises a first main control module and an audio coding module, and the Bluetooth headset comprises an audio decoding module;
the first master control module is used for detecting whether the earphone power saving function of the terminal equipment is triggered or not and acquiring the residual electric quantity value of the Bluetooth earphone; when the earphone power saving function of the terminal equipment is triggered and/or the residual electric quantity value is smaller than a first preset threshold value, controlling an audio coding module in the terminal equipment to be switched from the first bit rate to work at the second bit rate, and sending a bit rate adjusting instruction to the Bluetooth earphone; the first bit rate is greater than the second bit rate;
and the Bluetooth headset is used for controlling the audio decoding module to switch from the first bit rate to work at the second bit rate after receiving the bit rate adjusting instruction.
The present invention also provides a bluetooth headset control device, comprising:
a processor;
a memory having stored therein executable instructions of the processor;
wherein the processor is configured to perform the steps of any of the above-described bluetooth headset control methods via execution of the executable instructions.
The present invention also provides a computer-readable storage medium storing a program which, when executed by a processor, performs the steps of any of the above-described bluetooth headset control methods.
Compared with the prior art, the invention has the following advantages and prominent effects:
the Bluetooth headset control method, the system, the equipment and the medium provided by the invention control the audio data to be encoded and decoded at a lower bit rate after the headset power saving function of the terminal equipment is triggered and/or the electric quantity of the Bluetooth headset is lower than the first preset threshold value, so that the cruising ability of the headset is improved on the premise of not increasing the weight of the headset.
Drawings
Other features, objects and advantages of the present invention will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, with reference to the accompanying drawings.
Fig. 1 is a schematic diagram of a bluetooth headset control method according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a bluetooth headset control method according to another embodiment of the present invention;
fig. 3 is a schematic diagram of a bluetooth headset control method according to another embodiment of the present invention;
fig. 4 is a schematic diagram of a bluetooth headset control method according to another embodiment of the present invention;
fig. 5 is a schematic diagram of a bluetooth headset control method according to another embodiment of the present invention;
fig. 6 is a schematic diagram of a bluetooth headset control method according to another embodiment of the present invention;
fig. 7 is a schematic structural diagram of a bluetooth headset control device according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a computer-readable storage medium according to an embodiment of the disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The same reference numerals in the drawings denote the same or similar structures, and thus their repetitive description will be omitted.
As shown in fig. 1, an embodiment of the present invention discloses a method for controlling a bluetooth headset, where the bluetooth headset is used for data transmission with a terminal device. The Bluetooth headset comprises an audio decoding module. The terminal equipment comprises an audio coding module. In this application, the terminal device and the bluetooth headset have already established data communication connection. The control method of the Bluetooth headset comprises the following steps:
s10, detecting whether the earphone power saving function of the terminal equipment is triggered, and obtaining the residual electric quantity value of the Bluetooth earphone. Specifically, for example, the terminal device may be a mobile phone or a tablet computer. In this step, it may be detected whether the power saving function of the headset of the mobile phone is triggered. The user can directly start the power saving function of the headset by touching through a setting page or a shortcut control page as shown in fig. 2. The shortcut control page can also comprise a vibration setting function, a screen capture function, a mobile data switch function, a mute setting function, a flashlight switch function, a Bluetooth switch function and the like.
The residual electric quantity value of the bluetooth headset obtained by the above method may be a residual electric quantity value of the bluetooth headset directly obtained by the terminal device after the terminal device establishes data connection with the bluetooth headset. Or the Bluetooth headset can send the residual electric quantity value of the Bluetooth headset to the terminal equipment.
S20, when the power saving function of the headset of the terminal device is triggered and/or the remaining power value is smaller than a first preset threshold, controlling the audio encoding module in the terminal device to switch from the first bit rate to the second bit rate, and sending a bit rate adjustment command to the bluetooth headset. Wherein the first bit rate is greater than the second bit rate. That is, the bluetooth headset analyzes and plays the received data at a lower bit rate, thereby achieving the purpose of saving electricity.
The controlling the audio encoding module to operate at the second bit rate by switching from the first bit rate may include reducing a sample data amount of data to be transmitted. That is, the amount of sampled data of the data to be encoded is reduced. In particular, the sampling frequency of the data to be transmitted is reduced, and/or the number of bits per sample is reduced. For example, the sampling frequency is reduced from 48khz to 24khz, and the number of bits of a single sample, i.e., the number of bits, is reduced from 24 bits to 16 bits.
And S30, after the Bluetooth headset receives the bit rate adjusting instruction, the Bluetooth headset controls the audio decoding module to switch from the first bit rate to work at the second bit rate. I.e., the audio decoding module of the bluetooth headset, also changes to decode at the same bit rate as the audio encoding module. Therefore, when the Bluetooth headset and the terminal equipment perform subsequent data transmission, the data with lower bit rate can be transmitted, namely, the tone quality of audio is reduced, the lower energy consumption is realized, and the battery endurance of the Bluetooth headset is prolonged.
It should be noted that, the first preset threshold, the first bit rate, and the second bit rate are not limited in this application, and those skilled in the art can set the threshold as needed. For example, the first preset threshold may be 30%, the first bit rate may be 990kbps, and the second bit rate may be 328 kbps.
In another embodiment of the present application, based on the above embodiment, as shown in fig. 3, the above method further includes the steps of:
s40, when the adjusted bit rate value reaches the preset minimum value, adjusting the size of the single frame during data transmission from the first frame size to a second frame size, where the second frame size is larger than the first frame size. Specifically, the size of each frame of data to be transmitted is adjusted on the premise that the basic sound quality is guaranteed and no space for descending exists. The processor of the Bluetooth headset only receives and transmits data when the processor is awakened. Therefore, the number of times of awakening the processor is reduced by increasing the size of each frame in the transmitted data, the running time of the processor can be effectively reduced, the function consumption of the Bluetooth headset is reduced, and the purpose of saving electricity is achieved.
Wherein the first frame size may be 100 bytes per frame and the second frame size may be 400 bytes per frame. The preset minimum value may be 127 kbps. This is not a limitation of the present application.
In another embodiment of the present application, based on the above embodiment, as shown in fig. 4, the above method further includes the steps of:
and S50, continuously detecting the residual electric quantity value of the Bluetooth headset.
And S60, when the residual electric quantity value is smaller than a second preset threshold value, the terminal device controls the audio coding module to switch from the second bit rate to work at the third bit rate, and sends a second bit rate adjustment instruction to the Bluetooth headset. The second bit rate is greater than the third bit rate. The first preset threshold is greater than the second preset threshold.
And S70, after the Bluetooth headset receives the second bit rate adjustment instruction, the Bluetooth headset controls the audio decoding module to switch from the second bit rate to work at a third bit rate.
That is, when the electric quantity of the earphone is further too small, the coding and decoding bit rate of the audio data is further reduced, so that the purpose of further saving electricity is achieved, and the cruising ability of the Bluetooth earphone is further improved.
It should be noted that, in the present application, neither the second preset threshold nor the third bit rate is limited, and those skilled in the art can set the threshold as needed. For example, the second preset threshold may be 20%, and the third bit rate may be 127 kbps.
In another embodiment of the present application, on the basis of the above embodiment, as shown in fig. 5, another bluetooth headset control method is disclosed. The control method includes steps S51, S52 and the above step S30.
Wherein, step S51 is: detecting whether the earphone power saving function of the terminal equipment is triggered or not, and acquiring the residual electric quantity value of the Bluetooth earphone; an ambient sound signal is collected.
Step S52 is: and when the earphone power saving function of the terminal equipment is triggered, and/or the residual electric quantity value is smaller than a first preset threshold value, and/or the amplitude reduction amplitude of the environmental sound signal is larger than a third preset threshold value, controlling an audio coding module in the terminal equipment to be switched from the first bit rate to work at the second bit rate, and simultaneously sending a bit rate adjusting instruction to the Bluetooth earphone. For example, when a user enters an office building environment from a street, the surrounding environment is quite at the moment, and audio data does not need to be transmitted at a high bit rate any more, so that the coding and decoding bit rate of the audio data can be reduced, and the purpose of saving power is achieved.
The third preset threshold is not limited in the present application. For example, the third preset threshold may be 15%.
In another embodiment of the present application, on the basis of the above embodiment, as shown in fig. 6, the above method further includes, before step S10, the steps of:
s101, collecting geographical position information of a user during a working day in a preset time period. For example, the geographical location information of the user during the last three months of monday to friday, that is, the path trajectory on the user's work road, may be collected.
S102, acquiring a first destination and a second destination which have the longest stay time in the geographical position information. For example, the first destination may be a home address of the user. The second destination may be a corporate address of the user.
S103, acquiring the public transportation information with the maximum use times between the first destination and the second destination of the user and the position area when the user is in the public transportation included in the public transportation information. For example, the public transportation means may be a subway, and the position area corresponding to the travel when the user is located on the subway is obtained. For example, if the user sits on the subway from the Nanjing road station to the civil farm station every day on duty, the travel track of the subway between the Nanjing road station and the civil farm station is the position area corresponding to the travel.
S104, when detecting that the user enters the position area from the outside of the position area, controlling an audio coding module in the terminal equipment to work at the first bit rate. That is, at this time, the user enters a noisy environment from a non-noisy environment, and at this time, if the user needs to easily hear the audio content, the sound quality is easy to be clearer. Therefore, the audio data is transmitted at a higher bit rate, so that the user can hear the audio content conveniently, and the user experience is improved.
Step S20 is: when the earphone power saving function of the terminal equipment is triggered, and/or the residual electric quantity value is smaller than a first preset threshold value, and/or when the situation that the user leaves the position area is detected, the audio coding module in the terminal equipment is controlled to be switched from the first bit rate to work at the second bit rate, and meanwhile, a bit rate adjusting instruction is sent to the Bluetooth earphone. Specifically, that is, when another condition is satisfied: and when the user is detected to leave the position area, namely, the user enters the non-position area from the position area, or the conditions are met, the bit rate of audio data transmission is reduced. For example, after the user gets off the subway, the user enters an office building, which shows that the user leaves a noisy environment at this time, and does not need a high bit rate to transmit audio data any more, and at this time, the bit rate of audio transmission is reduced on the premise that the user can hear audio content clearly, so that the purpose of saving power for the bluetooth headset is achieved.
As a preferred embodiment, step S20 is: when the earphone power saving function of the terminal equipment is triggered, and/or the residual electric quantity value is smaller than a first preset threshold value, and/or when the situation that the user leaves the position area and the reduction amplitude of the audio amplitude of the environment sound signal collected at the same time is larger than a fourth preset threshold value is detected, controlling the audio coding module in the terminal equipment to be switched from the first bit rate to work at the second bit rate, and sending a bit rate adjusting instruction to the Bluetooth earphone. Therefore, the accuracy of detection when the user environment is changed can be further improved, the audio transmission of the earphone can be controlled more accurately, and the good experience of the user can be better guaranteed.
The fourth preset threshold is not limited in the present application. For example, the fourth preset threshold may be 15%.
In another embodiment of the present application, on the basis of the above embodiment, before step S10, the method further includes the steps of:
and establishing a database of mapping relation between the preset scene label and the transmission bit rate. For example, the preset scene tags may include a live scene, a chat scene, and a music scene.
And intercepting the transmitted audio data to obtain an audio data fragment.
And identifying the audio data fragment to obtain a target scene label matched with the audio data fragment. The target scene label belongs to the preset scene label.
And obtaining a fourth bit rate matched with the target scene label according to the target scene label and the database.
And controlling the Bluetooth headset to perform data transmission with the terminal equipment at the fourth bit rate. For example, the target scene tag may be a live scene, where the low latency requirement is higher for the user than the sound quality. Therefore, the audio data can be transmitted at a relatively low bit rate, which is beneficial to improving the battery endurance of the Bluetooth headset and reducing the live broadcast delay. Still alternatively, when the user is listening to the broadcast, when the broadcast is playing music, the audio data may be transmitted at a higher bit rate. When the broadcast is playing the chat audio of the host, the user has relatively low requirement for the tone quality at the moment, and the audio data can be transmitted at a lower bit rate, so that the cruising ability of the Bluetooth headset battery can be improved.
The step of intercepting the transmitted audio data to obtain an audio data segment includes:
and intercepting the transmitted audio data for multiple times to obtain multiple audio data fragments.
The step of identifying the audio data segment to obtain the target scene tag matched with the audio data segment includes:
and respectively identifying the plurality of audio data fragments to obtain a plurality of scene labels, and taking the scene label with the largest number as a target scene label. Therefore, the accuracy of scene identification is improved, and the accuracy of the obtained target scene label can be improved.
It should be noted that any combination of all the above embodiments of the present application is within the scope of the present application.
The embodiment of the invention also discloses a Bluetooth headset control system, which comprises the Bluetooth headset and the terminal equipment. The terminal equipment comprises a first main control module and an audio coding module, and the Bluetooth headset comprises an audio decoding module.
The first master control module is used for detecting whether the earphone power saving function of the terminal equipment is triggered or not and acquiring the residual electric quantity value of the Bluetooth earphone; when the earphone power saving function of the terminal equipment is triggered and/or the residual electric quantity value is smaller than a first preset threshold value, controlling an audio coding module in the terminal equipment to be switched from the first bit rate to work at the second bit rate, and sending a bit rate adjusting instruction to the Bluetooth earphone. The first bit rate is greater than the second bit rate;
the Bluetooth headset is used for controlling the audio decoding module to switch from a first bit rate to work at a second bit rate after receiving the bit rate adjusting instruction.
It is understood that the bluetooth headset control system of the present invention may further include other existing functional modules that support the operation of the bluetooth headset control system. The bluetooth headset control system described above is merely an example and should not bring any limitations to the functionality and scope of use of embodiments of the present invention.
The bluetooth headset control system in this embodiment is used to implement the above method for controlling a bluetooth headset, so for the specific implementation steps of the bluetooth headset control system, reference may be made to the above description of the method for controlling a bluetooth headset, and details are not repeated here.
The embodiment of the invention also discloses Bluetooth headset control equipment, which comprises a processor and a memory, wherein the memory stores the executable instruction of the processor; the processor is configured to perform the steps of the above-described bluetooth headset control method via execution of executable instructions. Fig. 7 is a schematic structural diagram of a bluetooth headset control device disclosed in the present invention. An electronic device 600 according to this embodiment of the invention is described below with reference to fig. 7. The electronic device 600 shown in fig. 7 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 7, the electronic device 600 is embodied in the form of a general purpose computing device. The components of the electronic device 600 may include, but are not limited to: at least one processing unit 610, at least one memory unit 620, a bus 630 connecting the different platform components (including the memory unit 620 and the processing unit 610), a display unit 640, etc.
Wherein the memory unit stores program code that can be executed by the processing unit 610 such that the processing unit 610 performs the steps according to various exemplary embodiments of the present invention as described in the above-mentioned bluetooth headset control method section of the present specification. For example, processing unit 610 may perform the steps as shown in fig. 1.
The storage unit 620 may include readable media in the form of volatile memory units, such as a random access memory unit (RAM)6201 and/or a cache memory unit 6202, and may further include a read-only memory unit (ROM) 6203.
The memory unit 620 may also include a program/utility 6204 having a set (at least one) of program modules 6205, such program modules 6205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
Bus 630 may be one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 600 may also communicate with one or more bluetooth headsets 700, may also communicate with one or more devices that enable a user to interact with the electronic device 600, and/or may communicate with any device (e.g., router, modem, etc.) that enables the electronic device 600 to communicate with one or more other computing devices. Such communication may occur via an input/output (I/O) interface 650. Also, the electronic device 600 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the Internet) via the network adapter 660. The network adapter 660 may communicate with other modules of the electronic device 600 via the bus 630. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the electronic device 600, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage platforms, to name a few.
The invention also discloses a computer readable storage medium for storing a program, wherein the program realizes the steps in the control method of the Bluetooth headset when being executed. In some possible embodiments, the various aspects of the invention may also be implemented in the form of a program product comprising program code for causing a terminal device to perform the steps according to various exemplary embodiments of the invention described in the above-mentioned bluetooth headset control method of this specification, when the program product is run on the terminal device.
As described above, the program of the computer-readable storage medium of this embodiment, when executed, controls the audio data to be encoded and decoded at a lower bit rate after the power saving function of the headset of the terminal device is triggered and/or when the power of the bluetooth headset is lower than the first preset threshold, so as to improve the cruising ability of the headset without increasing the weight of the headset.
Fig. 8 is a schematic structural diagram of a computer-readable storage medium of the present invention. Referring to fig. 8, a program product 800 for implementing the above method according to an embodiment of the present invention is described, which may employ a portable compact disc read only memory (CD-ROM) and include program code, and may be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited in this regard and, in the present document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
A computer readable storage medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable storage medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
The method, the system, the device and the medium for controlling the Bluetooth headset provided by the embodiment of the invention control the audio data to be encoded and decoded at a lower bit rate after the headset power saving function of the terminal device is triggered and/or the electric quantity of the Bluetooth headset is lower than a first preset threshold; the frame size of each transmission is increased, and the earphone awakening times are reduced, so that the purpose of saving electricity is achieved;
on the other hand, when the user wears the earphone and enters a noisy environment, the analytic bit rate of the earphone during working is improved, and the user can hear audio content clearly and conveniently; after the user leaves the noisy environment, the bit rate of the earphone during working is reduced, and electricity is saved; the application realizes that the cruising ability of the earphone is improved on the premise of not increasing the weight of the earphone.
The foregoing is a more detailed description of the invention in connection with specific preferred embodiments and it is not intended that the invention be limited to these specific details. For those skilled in the art to which the invention pertains, several simple deductions or substitutions can be made without departing from the spirit of the invention, and all shall be considered as belonging to the protection scope of the invention.

Claims (12)

1. A control method for a Bluetooth headset is provided, the Bluetooth headset is used for data transmission with a terminal device, the Bluetooth headset comprises an audio decoding module, the terminal device comprises an audio coding module, and the control method is characterized by comprising the following steps:
detecting whether the earphone power saving function of the terminal equipment is triggered or not, and acquiring the residual electric quantity value of the Bluetooth earphone;
when the earphone power saving function of the terminal equipment is triggered and/or the residual electric quantity value is smaller than a first preset threshold value, controlling an audio coding module in the terminal equipment to be switched from a first bit rate to work at a second bit rate, and sending a bit rate adjusting instruction to the Bluetooth earphone; the first bit rate is greater than the second bit rate;
and after receiving the bit rate adjusting instruction, the Bluetooth headset controls an audio decoding module to switch from the first bit rate to work at the second bit rate.
2. The bluetooth headset control method of claim 1, wherein the method further comprises the steps of:
and when the adjusted bit rate value reaches a preset minimum value, adjusting the size of a single frame during data transmission from a first frame size to a second frame size, wherein the second frame size is larger than the first frame size.
3. The bluetooth headset control method of claim 1, wherein the method further comprises the steps of:
continuously detecting the residual electric quantity value of the Bluetooth headset;
when the residual electric quantity value is smaller than a second preset threshold value, the terminal device controls the audio coding module to switch from the second bit rate to work at a third bit rate, and simultaneously sends a second bit rate adjusting instruction to the Bluetooth headset; the second bit rate is greater than the third bit rate, and the second preset threshold is less than the first preset threshold;
and after receiving the second bit rate adjusting instruction, the Bluetooth headset controls the audio decoding module to switch from the second bit rate to a third bit rate for working.
4. The bluetooth headset control method of claim 1, wherein the step of controlling the audio encoding module in the terminal device to switch from operating at the first bit rate to operating at the second bit rate comprises:
the amount of sampling data of the data to be transmitted is reduced.
5. The bluetooth headset control method of claim 4, wherein the step of reducing the amount of sampled data of the data to be transmitted comprises:
the sampling frequency of the data to be transmitted is reduced, and/or the number of bits of a single sample is reduced.
6. The bluetooth headset control method of claim 1, wherein the method further comprises the steps of:
collecting an environmental sound signal;
and when the amplitude reduction amplitude of the environment sound signal is larger than a third preset threshold value, controlling an audio coding module in the terminal equipment to switch from the first bit rate to work at the second bit rate, and simultaneously sending a bit rate adjusting instruction to the Bluetooth headset.
7. The bluetooth headset control method of claim 6, further comprising the steps of:
collecting geographical position information of a user during a working day;
acquiring a first destination and a second destination which have the longest stay time of a user in the geographical position information;
acquiring public transportation information with the maximum use times of a user between the first destination and the second destination and a position area when the user is on a public transportation included in the public transportation information;
when detecting that a user enters the position area from the outside of the position area, controlling an audio coding module in the terminal equipment to work at the first bit rate;
and when the user is detected to leave the position area, controlling an audio coding module in the terminal equipment to be switched from the first bit rate to work at the second bit rate, and simultaneously sending a bit rate adjusting instruction to the Bluetooth headset.
8. The bluetooth headset control method according to claim 1, characterized in that the method comprises the steps of:
establishing a database of a mapping relation between a preset scene label and a transmission bit rate;
intercepting the transmitted audio data to obtain an audio data segment;
identifying the audio data segment to obtain a target scene label matched with the audio data segment, wherein the target scene label belongs to the preset scene label;
obtaining a fourth bit rate matched with the target scene label according to the target scene label and the database;
controlling the Bluetooth headset to perform data transmission with a terminal device at the fourth bit rate;
and when the earphone power saving function of the terminal equipment is triggered and/or the residual electric quantity value is smaller than a first preset threshold value, controlling an audio coding module in the terminal equipment to be switched from the fourth bit rate to work at the second bit rate.
9. The bluetooth headset control method according to claim 8, characterized in that the method comprises the steps of:
intercepting the transmitted audio data for multiple times to obtain multiple audio data fragments;
and respectively identifying the plurality of audio data fragments to obtain a plurality of scene labels, and taking the scene label with the largest number as a target scene label.
10. A bluetooth headset control system for implementing the bluetooth headset control method according to claim 1, wherein the system comprises a bluetooth headset and a terminal device, the terminal device comprises a first main control module and an audio coding module, and the bluetooth headset comprises an audio decoding module;
the first master control module is used for detecting whether the earphone power saving function of the terminal equipment is triggered or not and acquiring the residual electric quantity value of the Bluetooth earphone; when the earphone power saving function of the terminal equipment is triggered and/or the residual electric quantity value is smaller than a first preset threshold value, controlling an audio coding module in the terminal equipment to be switched from the first bit rate to work at the second bit rate, and sending a bit rate adjusting instruction to the Bluetooth earphone; the first bit rate is greater than the second bit rate;
and the Bluetooth headset is used for controlling the audio decoding module to switch from the first bit rate to work at the second bit rate after receiving the bit rate adjusting instruction.
11. A bluetooth headset control device, comprising:
a processor;
a memory having stored therein executable instructions of the processor;
wherein the processor is configured to perform the steps of the bluetooth headset control method of any one of claims 1 to 9 via execution of the executable instructions.
12. A computer-readable storage medium storing a program, wherein the program when executed by a processor implements the steps of the bluetooth headset control method of any one of claims 1 to 9.
CN202011533551.6A 2020-12-22 2020-12-22 Bluetooth headset control method, system, device and medium Pending CN112671967A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202011533551.6A CN112671967A (en) 2020-12-22 2020-12-22 Bluetooth headset control method, system, device and medium
TW110112745A TWI781578B (en) 2020-12-22 2021-04-08 Bluetooth headset control method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011533551.6A CN112671967A (en) 2020-12-22 2020-12-22 Bluetooth headset control method, system, device and medium

Publications (1)

Publication Number Publication Date
CN112671967A true CN112671967A (en) 2021-04-16

Family

ID=75407889

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011533551.6A Pending CN112671967A (en) 2020-12-22 2020-12-22 Bluetooth headset control method, system, device and medium

Country Status (2)

Country Link
CN (1) CN112671967A (en)
TW (1) TWI781578B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2341702A1 (en) * 2009-12-31 2011-07-06 GN Netcom A/S Wireless electronic device with automatic power control
CN102301744A (en) * 2009-01-29 2011-12-28 高通股份有限公司 Audio coding selection based on device operating condition
CN104506586A (en) * 2014-12-09 2015-04-08 北京奇虎科技有限公司 Intelligent earphone system capable of regulating volume by gesture and regulation method
CN105516850A (en) * 2015-12-15 2016-04-20 上海斐讯数据通信技术有限公司 Noise canceling headphone and noise reduction method
CN105551517A (en) * 2015-12-10 2016-05-04 深圳市中易腾达科技股份有限公司 Wireless transmission recording pen and recording system with application scene recognition control
EP3157173A1 (en) * 2014-07-28 2017-04-19 Huawei Technologies Co., Ltd. Bluetooth communication method and device
CN107404753A (en) * 2017-08-18 2017-11-28 广东欧珀移动通信有限公司 Volume adjusting method, device, terminal and storage medium
CN108471638A (en) * 2018-02-08 2018-08-31 深圳魔耳智能声学科技有限公司 Wireless headset control method, device, control device and storage medium
CN109413525A (en) * 2018-09-30 2019-03-01 Oppo广东移动通信有限公司 Encoding rate method of adjustment, device, electronic equipment and storage medium
CN110689899A (en) * 2019-09-17 2020-01-14 重庆百瑞互联电子技术有限公司 Dynamic adjustment method and system for Bluetooth audio
CN111132112A (en) * 2019-12-30 2020-05-08 深圳Tcl数字技术有限公司 Bluetooth audio transmission adjusting method, smart television and readable storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102609348A (en) * 2012-02-02 2012-07-25 深圳市中兴移动通信有限公司 Method and system for displaying capacity remaining time of Bluetooth device based on Bluetooth terminal
CN102595272A (en) * 2012-02-27 2012-07-18 南京理工大学常熟研究院有限公司 Motion earphones capable of adjusting volume automatically
CN103220435B (en) * 2013-03-29 2016-06-01 北京智谷睿拓技术服务有限公司 The information output method of terminal and device

Patent Citations (11)

* 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
EP2341702A1 (en) * 2009-12-31 2011-07-06 GN Netcom A/S Wireless electronic device with automatic power control
EP3157173A1 (en) * 2014-07-28 2017-04-19 Huawei Technologies Co., Ltd. Bluetooth communication method and device
CN104506586A (en) * 2014-12-09 2015-04-08 北京奇虎科技有限公司 Intelligent earphone system capable of regulating volume by gesture and regulation method
CN105551517A (en) * 2015-12-10 2016-05-04 深圳市中易腾达科技股份有限公司 Wireless transmission recording pen and recording system with application scene recognition control
CN105516850A (en) * 2015-12-15 2016-04-20 上海斐讯数据通信技术有限公司 Noise canceling headphone and noise reduction method
CN107404753A (en) * 2017-08-18 2017-11-28 广东欧珀移动通信有限公司 Volume adjusting method, device, terminal and storage medium
CN108471638A (en) * 2018-02-08 2018-08-31 深圳魔耳智能声学科技有限公司 Wireless headset control method, device, control device and storage medium
CN109413525A (en) * 2018-09-30 2019-03-01 Oppo广东移动通信有限公司 Encoding rate method of adjustment, device, electronic equipment and storage medium
CN110689899A (en) * 2019-09-17 2020-01-14 重庆百瑞互联电子技术有限公司 Dynamic adjustment method and system for Bluetooth audio
CN111132112A (en) * 2019-12-30 2020-05-08 深圳Tcl数字技术有限公司 Bluetooth audio transmission adjusting method, smart television and readable storage medium

Also Published As

Publication number Publication date
TWI781578B (en) 2022-10-21
TW202226864A (en) 2022-07-01

Similar Documents

Publication Publication Date Title
US11295760B2 (en) Method, apparatus, system and storage medium for implementing a far-field speech function
CN105872253B (en) Live broadcast sound processing method and mobile terminal
US9445150B2 (en) Asynchronously streaming video of a live event from a handheld device
US20190066671A1 (en) Far-field speech awaking method, device and terminal device
CN108257590B (en) Voice interaction method and device, electronic equipment and storage medium
KR101168498B1 (en) Power efficient batch-frame audio decoding apparatus, system and method
CN109240107B (en) Control method and device of electrical equipment, electrical equipment and medium
KR101624137B1 (en) Method for updating display and mobile terminal using the same
CN110310657B (en) Audio data processing method and device
JP2015501106A (en) Low power integrated circuit for analyzing digitized audio streams
CN103181184A (en) Media file caching for an electronic device to conserve resources
US20200294491A1 (en) Method and apparatus for waking up device
CN103327021B (en) Method, devices and system of multi-device interaction
CN103152480A (en) Method and device for arrival prompt by mobile terminal
CN105208406A (en) Video data providing method and apparatus, video playing method and apparatuses, and video playing system
CN105247875A (en) Distribution control system and distribution system
CN112422978A (en) Intelligent transcoding method and device, electronic equipment and storage medium
CN110741339B (en) Display mode dependent response generation with delay considerations
CN110970039A (en) Audio transmission method and device, electronic equipment and storage medium
CN112671967A (en) Bluetooth headset control method, system, device and medium
US8831075B1 (en) Rate selection in a communication system
CN112738726A (en) Positioning method, positioning device, terminal and storage medium
CN110556099B (en) Command word control method and device
CN112562688A (en) Voice transcription method, device, recording pen and storage medium
CN111163505A (en) Power consumption control method, system, device and medium for WiFi device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210416