CN111970668B - Bluetooth audio control method, device and computer readable storage medium - Google Patents

Bluetooth audio control method, device and computer readable storage medium Download PDF

Info

Publication number
CN111970668B
CN111970668B CN202010825603.0A CN202010825603A CN111970668B CN 111970668 B CN111970668 B CN 111970668B CN 202010825603 A CN202010825603 A CN 202010825603A CN 111970668 B CN111970668 B CN 111970668B
Authority
CN
China
Prior art keywords
audio
time delay
bluetooth
preset
audio playing
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
CN202010825603.0A
Other languages
Chinese (zh)
Other versions
CN111970668A (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.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN202010825603.0A priority Critical patent/CN111970668B/en
Publication of CN111970668A publication Critical patent/CN111970668A/en
Application granted granted Critical
Publication of CN111970668B publication Critical patent/CN111970668B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • 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

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a Bluetooth audio control method, bluetooth audio control equipment and a computer readable storage medium, wherein the method comprises the following steps: when the terminal equipment is identified to detect that the Bluetooth equipment is connected, monitoring an audio playing request; then, if the audio playing request is received, determining a generating scene of the audio playing request; then, acquiring a time delay requirement of the audio playing according to the generated scene, and judging whether the time delay requirement is lower than a preset time delay value or not; and finally, if the time delay requirement is lower than the preset time delay value, performing soft coding processing on the audio to be transmitted through a Bluetooth protocol stack and transmitting the audio, and if the time delay requirement is higher than the preset time delay value, performing hard coding processing through a processor and transmitting the audio. The humanized Bluetooth audio control scheme is realized, the problem of power consumption and time delay equalization in the Bluetooth audio transmission process is solved, and the playing experience of the Bluetooth audio is enhanced.

Description

Bluetooth audio control method, device and computer readable storage medium
Technical Field
The present invention relates to the field of mobile communications, and in particular, to a bluetooth audio control method, apparatus, and computer readable storage medium.
Background
In the prior art, along with rapid development of terminal equipment technology, the real-time requirements of users on mobile game sound are higher at present, the realization of a common coding format of a Bluetooth headset is delayed sound transmission, and protocols of the Bluetooth headset are designed aiming at scenes such as song listening and conversation, which are insensitive to sound delay, but along with popularization of mobile games, the low-delay requirements of users on some special applicable scenes such as game scenes are higher.
Based on the low-delay requirement, the mobile phone is connected with the Bluetooth headset to realize low-delay sound effect, and Bluetooth packet sending interval parameters and packet sending size adjustment are needed to realize low-delay sound. In the prior art, the bluetooth packet interval parameter and the packet size cannot be conveniently adjusted because the ADSP (advanced digital signal processing) scheme is adopted in the mobile phone at present and is a hard coding scheme, so that the parameter setting is difficult. The soft coding is to directly transmit the audio data to the Bluetooth protocol stack, code the audio data by the Bluetooth protocol stack, and then transmit the audio data through Bluetooth without processing the audio data through an ADSP chip, so that parameters such as all packet intervals and packet sizes, coding modes and the like can be adjusted by the Bluetooth protocol stack, but the problem is that the power consumption is higher.
Therefore, in the prior art, a more suitable scheme is not available, and the problem of balance of power consumption and time delay can be solved in the Bluetooth audio transmission process.
Disclosure of Invention
In order to solve the technical defects in the prior art, the invention provides a Bluetooth audio control method, which comprises the following steps:
when the terminal equipment detects that the Bluetooth equipment is connected, monitoring an audio playing request;
if the audio playing request is received, determining a generating scene of the audio playing request;
acquiring a time delay requirement of the audio playing according to the generated scene, and judging whether the time delay requirement is lower than a preset time delay value or not;
and if the time delay requirement is lower than the preset time delay value, performing soft coding processing on the audio to be transmitted through a Bluetooth protocol stack and transmitting the audio, and if the time delay requirement is higher than the preset time delay value, performing hard coding processing through a processor and transmitting the audio.
Optionally, when the terminal device detects that the bluetooth device is connected, monitoring the audio playing request includes:
when the terminal equipment and the Bluetooth equipment have established Bluetooth connection, establishing analog equipment corresponding to the Bluetooth equipment;
An audio soft decoding channel corresponding to the analog device is determined.
Optionally, if the audio playing request is received, determining a generation scene of the audio playing request includes:
determining an application or a functional component of the audio play request;
predicting the audio characteristics of the audio playing request according to the interactive contents of the application program or the execution contents of the functional component;
scene information corresponding to the audio feature is determined.
Optionally, the obtaining the delay requirement of the audio playing according to the generated scene and determining whether the delay requirement is lower than a preset delay value includes:
determining delay time corresponding to the scene information according to the scene information and a preset matching relation;
and determining the preset value according to the hard coding parameters of the processor, and judging whether the delay time is lower than the preset delay value.
Optionally, if the delay requirement is lower than the preset delay value, soft coding processing is performed on the audio to be sent through a bluetooth protocol stack and the audio to be sent is sent, and if the delay requirement is higher than the preset delay value, hard coding processing is performed through a processor and the audio to be sent is sent, including:
If the delay time is lower than the preset delay value, responding to the audio playing request through the audio software soft decoding channel;
if one or more audio playing requests with the delay time lower than the preset delay value exist in the two or more audio playing requests, responding to all the audio playing requests through the audio software soft decoding channel.
The invention also proposes a bluetooth audio control device comprising a memory, a processor and a computer program stored on said memory and executable on said processor, said computer program realizing when executed by said processor:
when the terminal equipment detects that the Bluetooth equipment is connected, monitoring an audio playing request;
if the audio playing request is received, determining a generating scene of the audio playing request;
acquiring a time delay requirement of the audio playing according to the generated scene, and judging whether the time delay requirement is lower than a preset time delay value or not;
and if the time delay requirement is lower than the preset time delay value, performing soft coding processing on the audio to be transmitted through a Bluetooth protocol stack and transmitting the audio, and if the time delay requirement is higher than the preset time delay value, performing hard coding processing through a processor and transmitting the audio.
Optionally, the computer program is implemented when executed by the processor:
when the terminal equipment and the Bluetooth equipment have established Bluetooth connection, establishing analog equipment corresponding to the Bluetooth equipment;
an audio soft decoding channel corresponding to the analog device is determined.
Optionally, the computer program is implemented when executed by the processor:
determining an application or a functional component of the audio play request;
predicting the audio characteristics of the audio playing request according to the interactive contents of the application program or the execution contents of the functional component;
scene information corresponding to the audio feature is determined.
Optionally, the computer program is implemented when executed by the processor:
determining delay time corresponding to the scene information according to the scene information and a preset matching relation;
determining the preset value according to the hard coding parameters of the processor, and judging whether the delay time is lower than the preset delay value or not;
if the delay time is lower than the preset delay value, responding to the audio playing request through the audio software soft decoding channel;
if one or more audio playing requests with the delay time lower than the preset delay value exist in the two or more audio playing requests, responding to all the audio playing requests through the audio software soft decoding channel.
The invention also proposes a computer readable storage medium having stored thereon a bluetooth audio control program which, when executed by a processor, implements the steps of the bluetooth audio control method as described in any of the preceding claims.
By identifying that the terminal equipment detects that the Bluetooth equipment is connected, the Bluetooth audio control method, the Bluetooth audio control equipment and the computer readable storage medium monitor an audio play request; then, if the audio playing request is received, determining a generating scene of the audio playing request; then, acquiring a time delay requirement of the audio playing according to the generated scene, and judging whether the time delay requirement is lower than a preset time delay value or not; and finally, if the time delay requirement is lower than the preset time delay value, performing soft coding processing on the audio to be transmitted through a Bluetooth protocol stack and transmitting the audio, and if the time delay requirement is higher than the preset time delay value, performing hard coding processing through a processor and transmitting the audio. The humanized Bluetooth audio control scheme is realized, the problem of power consumption and time delay equalization in the Bluetooth audio transmission process is solved, and the playing experience of the Bluetooth audio is enhanced.
Drawings
The invention will be further described with reference to the accompanying drawings and examples, in which:
fig. 1 is a schematic diagram of a hardware structure of a mobile terminal according to the present invention;
fig. 2 is a schematic diagram of a communication network system according to an embodiment of the present invention;
fig. 3 is a flowchart of a first embodiment of the bluetooth audio control method according to the present invention;
fig. 4 is a flowchart of a second embodiment of the bluetooth audio control method according to the present invention;
fig. 5 is a flowchart of a third embodiment of the bluetooth audio control method according to the present invention;
fig. 6 is a flowchart of a fourth embodiment of the bluetooth audio control method according to the present invention;
fig. 7 is a flowchart of a fifth embodiment of the bluetooth audio control method according to the present invention.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
In the following description, suffixes such as "module", "component", or "unit" for representing elements are used only for facilitating the description of the present invention, and have no specific meaning per se. Thus, "module," "component," or "unit" may be used in combination.
The terminal may be implemented in various forms. For example, the terminals described in the present invention may include mobile terminals such as cell phones, tablet computers, notebook computers, palm computers, personal digital assistants (Personal Digital Assistant, PDA), portable media players (Portable Media Player, PMP), navigation devices, wearable devices, smart bracelets, pedometers, and fixed terminals such as digital TVs, desktop computers, and the like.
The following description will be given taking a mobile terminal as an example, and those skilled in the art will understand that the configuration according to the embodiment of the present invention can be applied to a fixed type terminal in addition to elements particularly used for a moving purpose.
Referring to fig. 1, which is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present invention, the mobile terminal 100 may include: an RF (Radio Frequency) unit 101, a WiFi module 102, an audio output unit 103, an a/V (audio/video) input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, a processor 110, and a power supply 111. Those skilled in the art will appreciate that the mobile terminal structure shown in fig. 1 is not limiting of the mobile terminal and that the mobile terminal may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
The following describes the components of the mobile terminal in detail with reference to fig. 1:
the radio frequency unit 101 may be used for receiving and transmitting signals during the information receiving or communication process, specifically, after receiving downlink information of the base station, processing the downlink information by the processor 110; and, the uplink data is transmitted to the base station. Typically, the radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication, global System for Mobile communications), GPRS (General Packet Radio Service ), CDMA2000 (Code Division Multiple Access, CDMA 2000), WCDMA (Wideband Code Division Multiple Access ), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, time Division synchronous code Division multiple Access), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, frequency Division Duplex Long term evolution), and TDD-LTE (Time Division Duplexing-Long Term Evolution, time Division Duplex Long term evolution), etc.
WiFi belongs to a short-distance wireless transmission technology, and a mobile terminal can help a user to send and receive e-mails, browse web pages, access streaming media and the like through the WiFi module 102, so that wireless broadband Internet access is provided for the user. Although fig. 1 shows a WiFi module 102, it is understood that it does not belong to the necessary constitution of a mobile terminal, and can be omitted entirely as required within a range that does not change the essence of the invention.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output as sound when the mobile terminal 100 is in a call signal reception mode, a talk mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output unit 103 may also provide audio output (e.g., a call signal reception sound, a message reception sound, etc.) related to a specific function performed by the mobile terminal 100. The audio output unit 103 may include a speaker, a buzzer, and the like.
The a/V input unit 104 is used to receive an audio or video signal. The a/V input unit 104 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and a microphone 1042, the graphics processor 1041 processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphics processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 can receive sound (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, and the like, and can process such sound into audio data. The processed audio (voice) data may be converted into a format output that can be transmitted to the mobile communication base station via the radio frequency unit 101 in the case of a telephone call mode. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting the audio signal.
The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and the proximity sensor can turn off the display panel 1061 and/or the backlight when the mobile terminal 100 moves to the ear. As one of the motion sensors, the accelerometer sensor can detect the acceleration in all directions (generally three axes), and can detect the gravity and direction when stationary, and can be used for applications of recognizing the gesture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and knocking), and the like; as for other sensors such as fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that may also be configured in the mobile phone, the detailed description thereof will be omitted.
The display unit 106 is used to display information input by a user or information provided to the user. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the mobile terminal. In particular, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect touch operations thereon or thereabout by a user (e.g., operations of the user on the touch panel 1071 or thereabout by using any suitable object or accessory such as a finger, a stylus, etc.) and drive the corresponding connection device according to a predetermined program. The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch azimuth of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts it into touch point coordinates, and sends the touch point coordinates to the processor 110, and can receive and execute commands sent from the processor 110. Further, the touch panel 1071 may be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. The user input unit 107 may include other input devices 1072 in addition to the touch panel 1071. In particular, other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, mouse, joystick, etc., as specifically not limited herein.
Further, the touch panel 1071 may overlay the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or thereabout, the touch panel 1071 is transferred to the processor 110 to determine the type of touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of touch event. Although in fig. 1, the touch panel 1071 and the display panel 1061 are two independent components for implementing the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 may be integrated with the display panel 1061 to implement the input and output functions of the mobile terminal, which is not limited herein.
The interface unit 108 serves as an interface through which at least one external device can be connected with the mobile terminal 100. For example, the external devices may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and an external device.
Memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area that may store an operating system, application programs required for at least one function (such as a sound playing function, an image playing function, etc.), and a storage data area; the storage data area may store data (such as audio data, phonebook, etc.) created according to the use of the handset, etc. In addition, memory 109 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The processor 110 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by running or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the mobile terminal. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The mobile terminal 100 may further include a power source 111 (e.g., a battery) for supplying power to the respective components, and preferably, the power source 111 may be logically connected to the processor 110 through a power management system, so as to perform functions of managing charging, discharging, and power consumption management through the power management system.
Although not shown in fig. 1, the mobile terminal 100 may further include a bluetooth module or the like, which is not described herein.
In order to facilitate understanding of the embodiments of the present invention, a communication network system on which the mobile terminal of the present invention is based will be described below.
Referring to fig. 2, fig. 2 is a schematic diagram of a communication network system according to an embodiment of the present invention, where the communication network system is an LTE system of a general mobile communication technology, and the LTE system includes a UE (User Equipment) 201, an e-UTRAN (Evolved UMTS Terrestrial Radio Access Network ) 202, an epc (Evolved Packet Core, evolved packet core) 203, and an IP service 204 of an operator that are sequentially connected in communication.
Specifically, the UE201 may be the terminal 100 described above, and will not be described herein.
The E-UTRAN202 includes eNodeB2021 and other eNodeB2022, etc. The eNodeB2021 may be connected with other eNodeB2022 by a backhaul (e.g., an X2 interface), the eNodeB2021 is connected to the EPC203, and the eNodeB2021 may provide access from the UE201 to the EPC 203.
EPC203 may include MME (Mobility Management Entity ) 2031, hss (Home Subscriber Server, home subscriber server) 2032, other MMEs 2033, SGW (Serving Gate Way) 2034, pgw (PDN Gate Way) 2035 and PCRF (Policy and Charging Rules Function, policy and tariff function entity) 2036, and so on. The MME2031 is a control node that handles signaling between the UE201 and EPC203, providing bearer and connection management. HSS2032 is used to provide registers to manage functions such as home location registers (not shown) and to hold user specific information about service characteristics, data rates, etc. All user data may be sent through SGW2034 and PGW2035 may provide IP address allocation and other functions for UE201, PCRF2036 is a policy and charging control policy decision point for traffic data flows and IP bearer resources, which selects and provides available policy and charging control decisions for a policy and charging enforcement function (not shown).
IP services 204 may include the internet, intranets, IMS (IP Multimedia Subsystem ), or other IP services, etc.
Although the LTE system is described above as an example, it should be understood by those skilled in the art that the present invention is not limited to LTE systems, but may be applied to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network systems.
Based on the above mobile terminal hardware structure and the communication network system, various embodiments of the method of the present invention are provided.
Example 1
Fig. 3 is a flowchart of a first embodiment of the bluetooth audio control method according to the invention. A bluetooth audio control method, the method comprising:
s1, when a terminal device detects that Bluetooth equipment is connected, monitoring an audio playing request;
s2, if the audio playing request is received, determining a generating scene of the audio playing request;
s3, acquiring a time delay requirement of the audio playing according to the generated scene, and judging whether the time delay requirement is lower than a preset time delay value or not;
and S4, if the time delay requirement is lower than the preset time delay value, performing soft coding processing on the audio to be transmitted through a Bluetooth protocol stack and transmitting the audio, and if the time delay requirement is higher than the preset time delay value, performing hard coding processing through a processor and transmitting the audio.
In this embodiment, first, when the terminal device detects that the bluetooth device is connected, an audio play request is monitored; then, if the audio playing request is received, determining a generating scene of the audio playing request; then, acquiring a time delay requirement of the audio playing according to the generated scene, and judging whether the time delay requirement is lower than a preset time delay value or not; and finally, if the time delay requirement is lower than the preset time delay value, performing soft coding processing on the audio to be transmitted through a Bluetooth protocol stack and transmitting the audio, and if the time delay requirement is higher than the preset time delay value, performing hard coding processing through a processor and transmitting the audio.
In this embodiment, it should be noted first that, considering the low-delay requirement of the user in the bluetooth transmission process, the mobile phone is connected with the bluetooth headset to realize the low-delay sound effect, and the bluetooth packet interval parameter and the packet size need to be adjusted to realize the low-delay of the sound. In the prior art, the bluetooth packet interval parameter and the packet size cannot be conveniently adjusted because the ADSP (advanced digital signal processing) scheme is adopted in the mobile phone at present and is a hard coding scheme, so that the parameter setting is difficult. The soft coding is to directly transmit the audio data to the Bluetooth protocol stack, code the audio data by the Bluetooth protocol stack, and then transmit the audio data through Bluetooth without processing the audio data through an ADSP chip, so that parameters such as all packet intervals and packet sizes, coding modes and the like can be adjusted by the Bluetooth protocol stack, but the problem is that the power consumption is higher. Therefore, in this embodiment, the two usage scenarios are fused, and the current blue Yan Yinpin transmission mode is adaptively determined, so that the power consumption and the resource consumption of the bluetooth audio transmission are reduced under the condition of lower delay requirement, and the delay of the bluetooth audio transmission is reduced under the condition of higher delay requirement, thereby enhancing the user experience.
Specifically, in this embodiment, when the terminal device detects that the bluetooth device is connected, an audio play request is monitored, where the bluetooth device includes multiple types, i.e., a closed bluetooth device such as a bluetooth headset, an open bluetooth device such as a bluetooth speaker, and a bluetooth switching device, and the audio play request includes a request from multiple sources, i.e., a play request sent by a different application program, and a play request generated by a different function; then, if the audio playing request is received, determining a generating scene of the audio playing request, namely, adaptively judging the time delay requirement of subsequent Bluetooth audio playing according to specific scene information, wherein the scene information comprises the Bluetooth equipment type, playing requests of different application programs or functions and the like; then, acquiring the time delay requirement of the audio playing according to the generated scene, judging whether the time delay requirement is lower than a preset time delay value, namely, pre-judging or pre-estimating the current time delay requirement according to actual scene information to obtain a pre-judging or pre-estimating time delay value, and comparing the time delay value with the time delay value of each preset scene; finally, if the delay requirement is lower than the preset delay value, the audio to be sent is processed and sent through a bluetooth protocol stack in a soft coding mode, if the delay requirement is higher than the preset delay value, the audio to be sent is processed and sent through a processor in a hard coding mode, that is, the embodiment does not adopt a processing mode of performing one-cut processing on one delay value, but determines the pre-determined delay according to different generation scenes, then compares the pre-determined delay with the preset delay value corresponding to each stage, if the delay requirement is lower than the preset delay value, the audio to be sent is processed and sent through the bluetooth protocol stack in a soft coding mode, and if the delay requirement is higher than the preset delay value, the audio to be sent is processed and sent through the processor in a hard coding mode.
The method has the advantages that when the terminal equipment is identified to detect that the Bluetooth equipment is connected, an audio playing request is monitored; then, if the audio playing request is received, determining a generating scene of the audio playing request; then, acquiring a time delay requirement of the audio playing according to the generated scene, and judging whether the time delay requirement is lower than a preset time delay value or not; and finally, if the time delay requirement is lower than the preset time delay value, performing soft coding processing on the audio to be transmitted through a Bluetooth protocol stack and transmitting the audio, and if the time delay requirement is higher than the preset time delay value, performing hard coding processing through a processor and transmitting the audio. The humanized Bluetooth audio control scheme is realized, the problem of power consumption and time delay equalization in the Bluetooth audio transmission process is solved, and the playing experience of the Bluetooth audio is enhanced.
Example two
Fig. 4 is a flowchart of a second embodiment of the bluetooth audio control method according to the present invention, based on the above embodiment, in order to further determine that an audio play request is monitored when the terminal device detects that the bluetooth device is connected, in this embodiment:
s11, when the terminal equipment and the Bluetooth equipment have established Bluetooth connection, establishing analog equipment corresponding to the Bluetooth equipment;
S12, determining an audio soft decoding channel corresponding to the analog equipment.
In this embodiment, first, when the terminal device and the bluetooth device have established a bluetooth connection, an analog device corresponding to the bluetooth device is created; then, an audio soft decoding channel corresponding to the analog device is determined.
Optionally, when the terminal device and the bluetooth device have established bluetooth connection, according to different bluetooth device types, each type of analog device corresponding to the bluetooth device is created, so as to determine adaptive audio soft decoding channels, or determine audio soft decoding channels with different soft decoding capabilities, or determine audio soft decoding channels with different soft decoding quality requirements.
The beneficial effect of the embodiment is that by identifying that when the Bluetooth connection is established between the terminal equipment and the Bluetooth equipment, the analog equipment corresponding to the Bluetooth equipment is created; then, an audio soft decoding channel corresponding to the analog device is determined. The Bluetooth audio control scheme with more humanization is realized, a condition basis is provided for solving the problem of power consumption and time delay equalization in the Bluetooth audio transmission process, and the playing experience of the Bluetooth audio is enhanced.
Example III
Fig. 5 is a flowchart of a third embodiment of the bluetooth audio control method according to the present invention, based on the above embodiment, in order to further determine that if the audio play request is received, a generation scenario of the audio play request is determined, in this embodiment:
s21, determining an application program or a functional component of the audio playing request;
s22, predicting the audio characteristics of the audio playing request according to the interactive content of the application program or the execution content of the functional component;
in this embodiment, first, an application or a functional component of the audio play request is determined; then, predicting the audio characteristics of the audio playing request according to the interactive contents of the application program or the execution contents of the functional components; further, determining scene information corresponding to the audio features is also included.
Optionally, determining whether the current application program is a game application program or an audio-visual application program, or determining whether the current audio playing function is a game sound effect or a game intercom voice in the game application program, or determining the current audio-visual content characteristic in the audio-visual application program, and taking the content characteristic as a determining factor of the subsequent audio characteristic.
Optionally, multi-level prediction is performed on the interactive content of the application program or the execution content of the functional component, and different audio features are respectively determined to correspond to different delay levels.
The embodiment has the beneficial effects that by determining the application program or the functional component of the audio playing request; then, predicting the audio characteristics of the audio playing request according to the interactive contents of the application program or the execution contents of the functional components; finally, scene information corresponding to the audio feature is determined. The Bluetooth audio control scheme with more humanization is realized, a condition basis is provided for solving the problem of power consumption and time delay equalization in the Bluetooth audio transmission process, and the playing experience of the Bluetooth audio is enhanced.
Example IV
Fig. 6 is a flowchart of a fourth embodiment of the bluetooth audio control method according to the present invention, based on the above embodiment, in order to further determine a delay requirement for acquiring the audio playback according to the generated scene, and determine whether the delay requirement is lower than a preset delay value, in this embodiment:
s31, determining delay time corresponding to the scene information according to the scene information and a preset matching relation;
S32, determining the preset value according to the hard coding parameters of the processor, and judging whether the delay time is lower than the preset delay value.
In this embodiment, first, according to the scene information and a preset matching relationship, determining a delay time corresponding to the scene information; and then, determining the preset value according to the hard coding parameters of the processor, and judging whether the delay time is lower than the preset delay value.
Optionally, determining delay time corresponding to the scene information or delay gears of different levels according to the scene information and a preset matching relation;
optionally, determining the preset value according to the hard-coded parameter of the processor currently adopted by the terminal device, and judging whether the delay time is lower than the preset delay value or judging which preset delay gear the delay level falls into.
The method has the beneficial effects that the delay time corresponding to the scene information is determined through the scene information and the preset matching relation; and then, determining the preset value according to the hard coding parameters of the processor, and judging whether the delay time is lower than the preset delay value. The Bluetooth audio control scheme with more humanization is realized, a condition basis is provided for solving the problem of power consumption and time delay equalization in the Bluetooth audio transmission process, and the playing experience of the Bluetooth audio is enhanced.
Example five
Fig. 7 is a flowchart of a fifth embodiment of a bluetooth audio control method according to the present invention, based on the above embodiment, in order to further determine that if the delay requirement is lower than the preset delay value, soft coding is performed on audio to be transmitted through a bluetooth protocol stack and the audio is transmitted, and if the delay requirement is higher than the preset delay value, hard coding is performed through a processor and the audio is transmitted, in this embodiment:
s41, if the delay time is lower than the preset delay value, responding to the audio playing request through the audio software soft decoding channel;
s42, if one or more audio playing requests with delay time lower than the preset delay value exist in the two or more audio playing requests, responding to all the audio playing requests through the audio software soft decoding channel.
In this embodiment, first, if the delay time is lower than the preset delay value, responding to the audio playing request through the audio software soft decoding channel; and then, if one or more audio playing requests with the delay time lower than the preset delay value exist in the two or more audio playing requests, responding to all the audio playing requests through the audio software soft decoding channel.
Specifically, taking a mobile phone as an example, the scheme of the ADSP of the mobile phone is that the audio module directly sends data to the ADSP module, and then the processed data is transmitted to the Bluetooth connection module, so that the function of the Bluetooth headset for listening to songs is realized, while the scheme of the soft coding is that the audio module sends the data to the Bluetooth protocol stack, then codes through the Bluetooth protocol stack, and the processed data is transmitted to the Bluetooth connection module, so that the function of the Bluetooth headset for listening to songs is realized. In this embodiment, an audio output management module and a bluetooth connection management module are added to implement a scheme of switching between soft coding and ADSP, where the audio output management module is used for managing a transmission direction of output data of the audio module in two different schemes, and the bluetooth connection management module is used for managing a bluetooth headset currently connected to simulate the bluetooth headset into two different devices as output devices corresponding to the soft coding and ADSP schemes.
Specifically, for example, when the user connects to the bluetooth headset, the bluetooth connection management module simulates a new device for the output device of the soft coding scheme, in a connected but inactive state, so that in a non-game scenario, the bluetooth module is connected to and activated by the output device of the ADSP module; when a user starts to play audio, the system firstly judges whether the current game scene exists or not; if not, maintaining the original output channel and equipment; if yes, the audio management module switches the audio output to the Bluetooth protocol stack, and meanwhile, the Bluetooth connection management module switches the output equipment for the soft coding scheme to a connected and activated state for receiving Bluetooth audio data transmitted by the soft coding scheme. It can be seen that the beneficial effects of this embodiment are that, in the non-game scene, user experience and better power consumption experience can be kept, and simultaneously in the game scene that the user is sensitive to sound delay, then switch to low-delay scheme, promote user's experience, this scheme can apply to all third party headphones simultaneously, does not need earphone to do any adaptation and modification to accomplish the promotion of sound delay experience.
The method has the advantages that if the delay time is lower than the preset delay value, the audio playing request is responded through the audio software soft decoding channel; and then, if one or more audio playing requests with the delay time lower than the preset delay value exist in the two or more audio playing requests, responding to all the audio playing requests through the audio software soft decoding channel. The Bluetooth audio control scheme with more humanization is realized, the problem of the equilibrium of power consumption and time delay in the Bluetooth audio transmission process is solved, and the playing experience of the Bluetooth audio is enhanced.
Example six
Based on the above embodiments, the present invention also proposes a bluetooth audio control device, the device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the computer program realizing when executed by the processor:
when the terminal equipment detects that the Bluetooth equipment is connected, monitoring an audio playing request;
if the audio playing request is received, determining a generating scene of the audio playing request;
acquiring a time delay requirement of the audio playing according to the generated scene, and judging whether the time delay requirement is lower than a preset time delay value or not;
And if the time delay requirement is lower than the preset time delay value, performing soft coding processing on the audio to be transmitted through a Bluetooth protocol stack and transmitting the audio, and if the time delay requirement is higher than the preset time delay value, performing hard coding processing through a processor and transmitting the audio.
In this embodiment, first, when the terminal device detects that the bluetooth device is connected, an audio play request is monitored; then, if the audio playing request is received, determining a generating scene of the audio playing request; then, acquiring a time delay requirement of the audio playing according to the generated scene, and judging whether the time delay requirement is lower than a preset time delay value or not; and finally, if the time delay requirement is lower than the preset time delay value, performing soft coding processing on the audio to be transmitted through a Bluetooth protocol stack and transmitting the audio, and if the time delay requirement is higher than the preset time delay value, performing hard coding processing through a processor and transmitting the audio.
In this embodiment, it should be noted first that, considering the low-delay requirement of the user in the bluetooth transmission process, the mobile phone is connected with the bluetooth headset to realize the low-delay sound effect, and the bluetooth packet interval parameter and the packet size need to be adjusted to realize the low-delay of the sound. In the prior art, the bluetooth packet interval parameter and the packet size cannot be conveniently adjusted because the ADSP (advanced digital signal processing) scheme is adopted in the mobile phone at present and is a hard coding scheme, so that the parameter setting is difficult. The soft coding is to directly transmit the audio data to the Bluetooth protocol stack, code the audio data by the Bluetooth protocol stack, and then transmit the audio data through Bluetooth without processing the audio data through an ADSP chip, so that parameters such as all packet intervals and packet sizes, coding modes and the like can be adjusted by the Bluetooth protocol stack, but the problem is that the power consumption is higher. Therefore, in this embodiment, the two usage scenarios are fused, and the current blue Yan Yinpin transmission mode is adaptively determined, so that the power consumption and the resource consumption of the bluetooth audio transmission are reduced under the condition of lower delay requirement, and the delay of the bluetooth audio transmission is reduced under the condition of higher delay requirement, thereby enhancing the user experience.
Specifically, in this embodiment, when the terminal device detects that the bluetooth device is connected, an audio play request is monitored, where the bluetooth device includes multiple types, i.e., a closed bluetooth device such as a bluetooth headset, an open bluetooth device such as a bluetooth speaker, and a bluetooth switching device, and the audio play request includes a request from multiple sources, i.e., a play request sent by a different application program, and a play request generated by a different function; then, if the audio playing request is received, determining a generating scene of the audio playing request, namely, adaptively judging the time delay requirement of subsequent Bluetooth audio playing according to specific scene information, wherein the scene information comprises the Bluetooth equipment type, playing requests of different application programs or functions and the like; then, acquiring the time delay requirement of the audio playing according to the generated scene, judging whether the time delay requirement is lower than a preset time delay value, namely, pre-judging or pre-estimating the current time delay requirement according to actual scene information to obtain a pre-judging or pre-estimating time delay value, and comparing the time delay value with the time delay value of each preset scene; finally, if the delay requirement is lower than the preset delay value, the audio to be sent is processed and sent through a bluetooth protocol stack in a soft coding mode, if the delay requirement is higher than the preset delay value, the audio to be sent is processed and sent through a processor in a hard coding mode, that is, the embodiment does not adopt a processing mode of performing one-cut processing on one delay value, but determines the pre-determined delay according to different generation scenes, then compares the pre-determined delay with the preset delay value corresponding to each stage, if the delay requirement is lower than the preset delay value, the audio to be sent is processed and sent through the bluetooth protocol stack in a soft coding mode, and if the delay requirement is higher than the preset delay value, the audio to be sent is processed and sent through the processor in a hard coding mode.
The method has the advantages that when the terminal equipment is identified to detect that the Bluetooth equipment is connected, an audio playing request is monitored; then, if the audio playing request is received, determining a generating scene of the audio playing request; then, acquiring a time delay requirement of the audio playing according to the generated scene, and judging whether the time delay requirement is lower than a preset time delay value or not; and finally, if the time delay requirement is lower than the preset time delay value, performing soft coding processing on the audio to be transmitted through a Bluetooth protocol stack and transmitting the audio, and if the time delay requirement is higher than the preset time delay value, performing hard coding processing through a processor and transmitting the audio. The humanized Bluetooth audio control scheme is realized, the problem of power consumption and time delay equalization in the Bluetooth audio transmission process is solved, and the playing experience of the Bluetooth audio is enhanced.
Example seven
Based on the above embodiments, the computer program when executed by the processor implements:
when the terminal equipment and the Bluetooth equipment have established Bluetooth connection, establishing analog equipment corresponding to the Bluetooth equipment;
an audio soft decoding channel corresponding to the analog device is determined.
In this embodiment, first, when the terminal device and the bluetooth device have established a bluetooth connection, an analog device corresponding to the bluetooth device is created; then, an audio soft decoding channel corresponding to the analog device is determined.
Optionally, when the terminal device and the bluetooth device have established bluetooth connection, according to different bluetooth device types, each type of analog device corresponding to the bluetooth device is created, so as to determine adaptive audio soft decoding channels, or determine audio soft decoding channels with different soft decoding capabilities, or determine audio soft decoding channels with different soft decoding quality requirements.
The beneficial effect of the embodiment is that by identifying that when the Bluetooth connection is established between the terminal equipment and the Bluetooth equipment, the analog equipment corresponding to the Bluetooth equipment is created; then, an audio soft decoding channel corresponding to the analog device is determined. The Bluetooth audio control scheme with more humanization is realized, a condition basis is provided for solving the problem of power consumption and time delay equalization in the Bluetooth audio transmission process, and the playing experience of the Bluetooth audio is enhanced.
Example eight
Based on the above embodiments, the computer program when executed by the processor implements:
determining an application or a functional component of the audio play request;
predicting the audio characteristics of the audio playing request according to the interactive contents of the application program or the execution contents of the functional component;
scene information corresponding to the audio feature is determined.
In this embodiment, first, an application or a functional component of the audio play request is determined; then, predicting the audio characteristics of the audio playing request according to the interactive contents of the application program or the execution contents of the functional components; further, determining scene information corresponding to the audio features is also included.
Optionally, determining whether the current application program is a game application program or an audio-visual application program, or determining whether the current audio playing function is a game sound effect or a game intercom voice in the game application program, or determining the current audio-visual content characteristic in the audio-visual application program, and taking the content characteristic as a determining factor of the subsequent audio characteristic.
Optionally, multi-level prediction is performed on the interactive content of the application program or the execution content of the functional component, and different audio features are respectively determined to correspond to different delay levels.
The embodiment has the beneficial effects that by determining the application program or the functional component of the audio playing request; then, predicting the audio characteristics of the audio playing request according to the interactive contents of the application program or the execution contents of the functional components; finally, scene information corresponding to the audio feature is determined. The Bluetooth audio control scheme with more humanization is realized, a condition basis is provided for solving the problem of power consumption and time delay equalization in the Bluetooth audio transmission process, and the playing experience of the Bluetooth audio is enhanced.
Example nine
Based on the above embodiments, the computer program when executed by the processor implements:
determining delay time corresponding to the scene information according to the scene information and a preset matching relation;
determining the preset value according to the hard coding parameters of the processor, and judging whether the delay time is lower than the preset delay value or not;
if the delay time is lower than the preset delay value, responding to the audio playing request through the audio software soft decoding channel;
if one or more audio playing requests with the delay time lower than the preset delay value exist in the two or more audio playing requests, responding to all the audio playing requests through the audio software soft decoding channel.
In this embodiment, first, according to the scene information and a preset matching relationship, determining a delay time corresponding to the scene information; and then, determining the preset value according to the hard coding parameters of the processor, and judging whether the delay time is lower than the preset delay value.
Optionally, determining delay time corresponding to the scene information or delay gears of different levels according to the scene information and a preset matching relation;
optionally, determining the preset value according to the hard-coded parameter of the processor currently adopted by the terminal device, and judging whether the delay time is lower than the preset delay value or judging which preset delay gear the delay level falls into.
In another embodiment, first, if the delay time is lower than the preset delay value, responding to the audio playing request through the audio software soft decoding channel; and then, if one or more audio playing requests with the delay time lower than the preset delay value exist in the two or more audio playing requests, responding to all the audio playing requests through the audio software soft decoding channel.
Specifically, taking a mobile phone as an example, the scheme of the ADSP of the mobile phone is that the audio module directly sends data to the ADSP module, and then the processed data is transmitted to the Bluetooth connection module, so that the function of the Bluetooth headset for listening to songs is realized, while the scheme of the soft coding is that the audio module sends the data to the Bluetooth protocol stack, then codes through the Bluetooth protocol stack, and the processed data is transmitted to the Bluetooth connection module, so that the function of the Bluetooth headset for listening to songs is realized. In this embodiment, an audio output management module and a bluetooth connection management module are added to implement a scheme of switching between soft coding and ADSP, where the audio output management module is used for managing a transmission direction of output data of the audio module in two different schemes, and the bluetooth connection management module is used for managing a bluetooth headset currently connected to simulate the bluetooth headset into two different devices as output devices corresponding to the soft coding and ADSP schemes.
Specifically, for example, when the user connects to the bluetooth headset, the bluetooth connection management module simulates a new device for the output device of the soft coding scheme, in a connected but inactive state, so that in a non-game scenario, the bluetooth module is connected to and activated by the output device of the ADSP module; when a user starts to play audio, the system firstly judges whether the current game scene exists or not; if not, maintaining the original output channel and equipment; if yes, the audio management module switches the audio output to the Bluetooth protocol stack, and meanwhile, the Bluetooth connection management module switches the output equipment for the soft coding scheme to a connected and activated state for receiving Bluetooth audio data transmitted by the soft coding scheme. It can be seen that the beneficial effects of this embodiment are that, in the non-game scene, user experience and better power consumption experience can be kept, and simultaneously in the game scene that the user is sensitive to sound delay, then switch to low-delay scheme, promote user's experience, this scheme can apply to all third party headphones simultaneously, does not need earphone to do any adaptation and modification to accomplish the promotion of sound delay experience.
The method has the advantages that if the delay time is lower than the preset delay value, the audio playing request is responded through the audio software soft decoding channel; and then, if one or more audio playing requests with the delay time lower than the preset delay value exist in the two or more audio playing requests, responding to all the audio playing requests through the audio software soft decoding channel. The Bluetooth audio control scheme with more humanization is realized, the problem of the equilibrium of power consumption and time delay in the Bluetooth audio transmission process is solved, and the playing experience of the Bluetooth audio is enhanced.
Examples ten
Based on the above embodiment, the present invention further proposes a computer readable storage medium, on which a bluetooth audio control program is stored, which when executed by a processor implements the steps of the bluetooth audio control method as described in any one of the above.
By identifying that the terminal equipment detects that the Bluetooth equipment is connected, the Bluetooth audio control method, the Bluetooth audio control equipment and the computer readable storage medium monitor an audio play request; then, if the audio playing request is received, determining a generating scene of the audio playing request; then, acquiring a time delay requirement of the audio playing according to the generated scene, and judging whether the time delay requirement is lower than a preset time delay value or not; and finally, if the time delay requirement is lower than the preset time delay value, performing soft coding processing on the audio to be transmitted through a Bluetooth protocol stack and transmitting the audio, and if the time delay requirement is higher than the preset time delay value, performing hard coding processing through a processor and transmitting the audio. The humanized Bluetooth audio control scheme is realized, the problem of power consumption and time delay equalization in the Bluetooth audio transmission process is solved, and the playing experience of the Bluetooth audio is enhanced.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The embodiments of the present invention have been described above with reference to the accompanying drawings, but the present invention is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present invention and the scope of the claims, which are to be protected by the present invention.

Claims (3)

1. A bluetooth audio control method, the method comprising:
when the terminal equipment detects that the Bluetooth equipment is connected, monitoring an audio playing request;
if the audio playing request is received, determining a generating scene of the audio playing request;
acquiring a time delay requirement of the audio playing according to the generated scene, and judging whether the time delay requirement is lower than a preset time delay value or not;
if the time delay requirement is lower than the preset time delay value, carrying out soft coding processing on the audio to be transmitted through a Bluetooth protocol stack and transmitting the audio, and if the time delay requirement is higher than the preset time delay value, carrying out hard coding processing through a processor and transmitting the audio;
when the terminal equipment detects that the Bluetooth equipment is connected, the audio playing request is monitored, and the method comprises the following steps:
When the terminal equipment and the Bluetooth equipment have established Bluetooth connection, establishing analog equipment corresponding to the Bluetooth equipment;
determining an audio soft decoding channel corresponding to the analog device;
and if the audio playing request is received, determining a generating scene of the audio playing request, including:
determining an application or a functional component of the audio play request;
predicting the audio characteristics of the audio playing request according to the interactive contents of the application program or the execution contents of the functional component;
determining scene information corresponding to the audio features;
the step of obtaining the time delay requirement of the audio playing according to the generated scene and judging whether the time delay requirement is lower than a preset time delay value comprises the following steps:
determining delay time corresponding to the scene information according to the scene information and a preset matching relation;
determining the preset value according to the hard coding parameters of the processor, and judging whether the delay time is lower than the preset delay value or not;
and if the time delay requirement is lower than the preset time delay value, performing soft coding processing on the audio to be transmitted through a Bluetooth protocol stack and transmitting the audio, and if the time delay requirement is higher than the preset time delay value, performing hard coding processing through a processor and transmitting the audio, wherein the soft coding processing comprises the following steps:
If the delay time is lower than the preset delay value, responding to the audio playing request through the audio software soft decoding channel;
if one or more audio playing requests with the delay time lower than the preset delay value exist in the two or more audio playing requests, responding to all the audio playing requests through the audio software soft decoding channel.
2. A bluetooth audio control device, the device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the computer program being implemented when executed by the processor:
when the terminal equipment detects that the Bluetooth equipment is connected, monitoring an audio playing request;
if the audio playing request is received, determining a generating scene of the audio playing request;
acquiring a time delay requirement of the audio playing according to the generated scene, and judging whether the time delay requirement is lower than a preset time delay value or not;
if the time delay requirement is lower than the preset time delay value, carrying out soft coding processing on the audio to be transmitted through a Bluetooth protocol stack and transmitting the audio, and if the time delay requirement is higher than the preset time delay value, carrying out hard coding processing through a processor and transmitting the audio;
When the terminal equipment detects that the Bluetooth equipment is connected, the audio playing request is monitored, and the method comprises the following steps:
when the terminal equipment and the Bluetooth equipment have established Bluetooth connection, establishing analog equipment corresponding to the Bluetooth equipment;
determining an audio soft decoding channel corresponding to the analog device;
and if the audio playing request is received, determining a generating scene of the audio playing request, including:
determining an application or a functional component of the audio play request;
predicting the audio characteristics of the audio playing request according to the interactive contents of the application program or the execution contents of the functional component;
determining scene information corresponding to the audio features;
the step of obtaining the time delay requirement of the audio playing according to the generated scene and judging whether the time delay requirement is lower than a preset time delay value comprises the following steps:
determining delay time corresponding to the scene information according to the scene information and a preset matching relation;
determining the preset value according to the hard coding parameters of the processor, and judging whether the delay time is lower than the preset delay value or not;
and if the time delay requirement is lower than the preset time delay value, performing soft coding processing on the audio to be transmitted through a Bluetooth protocol stack and transmitting the audio, and if the time delay requirement is higher than the preset time delay value, performing hard coding processing through a processor and transmitting the audio, wherein the soft coding processing comprises the following steps:
If the delay time is lower than the preset delay value, responding to the audio playing request through the audio software soft decoding channel;
if one or more audio playing requests with the delay time lower than the preset delay value exist in the two or more audio playing requests, responding to all the audio playing requests through the audio software soft decoding channel.
3. A computer readable storage medium, wherein a bluetooth audio control program is stored on the computer readable storage medium, which when executed by a processor, implements the steps of the bluetooth audio control method according to claim 1.
CN202010825603.0A 2020-08-17 2020-08-17 Bluetooth audio control method, device and computer readable storage medium Active CN111970668B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010825603.0A CN111970668B (en) 2020-08-17 2020-08-17 Bluetooth audio control method, device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010825603.0A CN111970668B (en) 2020-08-17 2020-08-17 Bluetooth audio control method, device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN111970668A CN111970668A (en) 2020-11-20
CN111970668B true CN111970668B (en) 2023-06-27

Family

ID=73389519

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010825603.0A Active CN111970668B (en) 2020-08-17 2020-08-17 Bluetooth audio control method, device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111970668B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112599142B (en) * 2020-12-14 2024-04-09 北京百瑞互联技术股份有限公司 Bluetooth transmission method, device and storage medium for adjusting background sound and human voice

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108737658A (en) * 2018-05-22 2018-11-02 Oppo(重庆)智能科技有限公司 Mobile terminal and its switching method of Bluetooth audio frequency coding mode, storage medium
CN110933216A (en) * 2020-02-11 2020-03-27 南京雷鲨信息科技有限公司 Audio data transmission method and device, readable storage medium and mobile terminal
WO2020133112A1 (en) * 2018-12-27 2020-07-02 华为技术有限公司 Method for automatically switching bluetooth audio encoding method and electronic apparatus

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11259192B2 (en) * 2017-09-29 2022-02-22 Apple Inc. Ultra-low latency audio over bluetooth

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108737658A (en) * 2018-05-22 2018-11-02 Oppo(重庆)智能科技有限公司 Mobile terminal and its switching method of Bluetooth audio frequency coding mode, storage medium
WO2020133112A1 (en) * 2018-12-27 2020-07-02 华为技术有限公司 Method for automatically switching bluetooth audio encoding method and electronic apparatus
CN110933216A (en) * 2020-02-11 2020-03-27 南京雷鲨信息科技有限公司 Audio data transmission method and device, readable storage medium and mobile terminal

Also Published As

Publication number Publication date
CN111970668A (en) 2020-11-20

Similar Documents

Publication Publication Date Title
CN111708503B (en) Screen projection control method, device and computer readable storage medium
CN110175062B (en) Screen refreshing frame rate method of mobile terminal, mobile terminal and storage medium
CN112004173B (en) Bluetooth headset switching method, mobile terminal and computer readable storage medium
CN107613489B (en) Wireless charging method, wireless hotspot device, terminal and storage medium
CN112394896B (en) Reverse screen-throwing frame rate control method, device and computer readable storage medium
CN109088997B (en) Game audio control method, terminal and computer readable storage medium
CN112423076B (en) Audio screen-throwing synchronous control method, equipment and computer readable storage medium
CN108958695B (en) Audio output method, device and computer readable storage medium
CN110052024B (en) Game vibration adjusting method, adjusting device, mobile terminal and storage medium
CN109711830B (en) Quick display method and device for two-dimension code payment, mobile terminal and storage medium
CN113596231B (en) Screen-throwing display control method, device and computer readable storage medium
CN112437472B (en) Network switching method, equipment and computer readable storage medium
CN112866804B (en) Screen projection self-adaption method, mobile terminal and readable storage medium
CN112102780B (en) Display frame rate regulation and control method, device and computer readable storage medium
CN112667339B (en) Screen refresh rate setting method, terminal and computer readable medium
CN112090065B (en) Network delay regulation and control method, equipment and computer readable storage medium
CN111970738B (en) Network switching control method, device and computer readable storage medium
CN111970668B (en) Bluetooth audio control method, device and computer readable storage medium
CN109462829B (en) Call transfer method, device and computer readable storage medium
CN109561221B (en) Call control method, device and computer readable storage medium
CN109889660B (en) Temporary information recording method, storage medium and mobile terminal
CN109388947B (en) Background management method, device and computer readable storage medium
CN112887776B (en) Method, equipment and computer readable storage medium for reducing audio delay
CN112492450B (en) Sound parameter regulation and control method, device and computer readable storage medium
CN110087290B (en) Power consumption management and control method, terminal and computer readable storage medium

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