Audio playback control method, device, system and computer readable storage medium

Through the periodic state checksum of the low-power Bluetooth module, the communication connection is re-established, and the problem of sudden external playback during audio playback of Bluetooth headsets is solved, which improves user experience and improves reliability, and solves the problem of audio playback in the existing technology. The problem of stability.

CN112925501BActive Publication Date: 2024-12-17NUBIA TECHNOLOGY CO LTD
View PDF 10 Cites 0 Cited by

Patent Information

Application Number
CN202110105767.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-01-26
Publication Date
2024-12-17
Estimated Expiration
2041-01-26

AI Technical Summary

Technical Problem

When using Bluetooth headsets to play audio, the terminal device may suddenly play out the audio due to interference or application software, causing a bad experience to the user.

Method used

The Bluetooth low-power module performs periodic status verification with the Bluetooth headset. If audio data that is not played normally is detected, turn off the speaker and try to re-establish the communication connection of the classic Bluetooth module to ensure the normal transmission and playback of the audio data.

Benefits of technology

It effectively avoids the embarrassing scene of sudden audio playback, improves user experience, and improves reliability through the joint design of Bluetooth headsets and mobile phone devices. The use of low-power BLE modules almost ignores power consumption issues.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112925501B_ABST
    Figure CN112925501B_ABST
Patent Text Reader

Abstract

The present invention discloses an audio playback control method, device, system and computer-readable storage medium, which belongs to the field of communication technology. The method comprises: when using a classic Bluetooth module to establish a connection with a Bluetooth headset to play audio data, using a low-power Bluetooth module to perform a periodic status check with the Bluetooth headset; if information that the Bluetooth headset does not play the audio data normally is obtained during the periodic status check, the speaker of the terminal device and the audio playback of the Bluetooth headset are turned off; otherwise, the audio playback of the speaker is turned off. The present invention avoids the embarrassing scene of the audio suddenly being played out when using a Bluetooth headset, and improves the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to an audio playback control method, device, system and computer-readable storage medium. Background Art

[0002] Bluetooth is a wireless technology standard that enables short-range data exchange between fixed devices, mobile devices, and building personal area networks. In daily life, the use of Bluetooth devices is growing rapidly, and connecting terminal devices to Bluetooth headsets for audio playback is a common way to use Bluetooth technology in daily life.

[0003] When a terminal device uses a Bluetooth headset to play audio, if interference occurs and causes the classic Bluetooth module to be in an abnormal state, the classic Bluetooth module cannot be recognized, or the audio is forced to be played outward due to factors such as some application software installed on the terminal device itself, the terminal device will automatically switch to its own speaker to play the audio outward, causing a bad user experience. Summary of the invention

[0004] In view of this, the purpose of the present invention is to provide an audio playback control method, device, system and computer-readable storage medium to solve the problem of the terminal device audio suddenly being played outward when using a Bluetooth headset in the prior art.

[0005] The technical solution adopted by the present invention to solve the above technical problems is as follows:

[0006] According to a first aspect of the present invention, there is provided an audio playback control method applicable to a terminal device, the method comprising the following steps:

[0007] When the classic Bluetooth module is used to establish a connection with the Bluetooth headset to play audio data, the low-power Bluetooth module is used to perform a periodic status check with the Bluetooth headset;

[0008] If information that the Bluetooth headset does not play the audio data normally is obtained during the periodic status check, turning off the audio playback of the speaker and the Bluetooth headset;

[0009] Otherwise, audio playback from the speaker is muted.

[0010] Optionally, after turning off the audio output of the speaker and the Bluetooth headset, the method further includes:

[0011] Exchanging pairing connection data of the classic Bluetooth module with the Bluetooth headset through the low-power Bluetooth module;

[0012] Establishing a communication connection with the classic Bluetooth module according to the exchanged pairing connection data and initializing the connection state;

[0013] The audio data is transmitted to the Bluetooth headset, and the step of "periodic status verification with the Bluetooth headset using the low-power Bluetooth module" is continued.

[0014] Optionally, the failure of the Bluetooth headset to normally play the audio data includes that the Bluetooth headset does not receive the audio data or the Bluetooth headset is not in a playing state or the audio data played by the Bluetooth headset is inconsistent with the transmitted audio data.

[0015] According to a second aspect of the present invention, another audio playback control method is provided, which is applicable to a Bluetooth headset, and is characterized in that the method comprises:

[0016] When the classic Bluetooth module is used to establish a connection with the terminal device to play audio data, the low-power Bluetooth module is used to perform a periodic status check with the terminal device;

[0017] If it is monitored that the Bluetooth headset does not play the audio data normally, the information that the Bluetooth headset does not play the audio data normally is sent to the terminal device during periodic status check, so that the terminal device turns off the speaker and the audio output of the Bluetooth headset when receiving the information, or turns off the speaker when not receiving the information.

[0018] Optionally, after sending the information that the Bluetooth headset does not play the audio data normally to the terminal device during the periodic status check, the method further includes:

[0019] exchanging pairing connection data of the classic Bluetooth module with the terminal device via the low-power Bluetooth module;

[0020] Establishing a communication connection of the classic Bluetooth module with the terminal device according to the exchanged pairing connection data;

[0021] Receive the audio data transmitted by the terminal device, and continue to execute the step of "performing periodic status check with the terminal device using the low-power Bluetooth module".

[0022] Optionally, when executing the step of “periodically checking the status of the low-power Bluetooth module of the terminal device”, the method further includes:

[0023] Determining whether the Bluetooth module of the terminal device is turned on and / or whether the terminal device outputs audio data to the Bluetooth headset according to the periodic status check;

[0024] If the Bluetooth module of the terminal device is not turned on and / or the terminal device does not output audio data to the Bluetooth headset, turn off the Bluetooth headset.

[0025] According to a third aspect of the present invention, there is provided an audio playback control device applicable to a terminal device, the device comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program implements the method steps described in the first aspect when executed by the processor.

[0026] According to a fourth aspect of the present invention, another audio playback control device is provided, which is suitable for a Bluetooth headset. The device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the method steps described in the second aspect are implemented.

[0027] According to a fifth aspect of the present invention, an audio playback control system is provided, the system comprising a terminal device and a Bluetooth headset, the terminal device comprising the audio playback control device as described in the second aspect, and the Bluetooth headset comprising the audio playback control device as described in the third aspect.

[0028] According to a sixth aspect of the present invention, there is provided a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the audio playback control method as described in the first aspect or the second aspect are implemented.

[0029] The audio playback control method, device, system and computer-readable storage medium of the embodiments of the present invention can notify the device terminal through the periodic status check of the BLE module as long as the Bluetooth headset does not play audio, so that the device terminal can be informed of the situation through the periodic status check of the BLE module, and will check whether the audio playback is in external playback according to the current device status, and turn off the external playback. This process is very short and basically imperceptible to the user, avoiding the embarrassing scene of the audio suddenly being played externally when using the Bluetooth headset, and improving the user experience. At the same time, because the BLE module is used to allow the Bluetooth headset and mobile phone device to be jointly designed, the reliability is higher than the unilateral judgment of the mobile phone device, and the low power consumption of the BLE module can almost ignore the power consumption problem caused by this function. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Figure 1 A schematic diagram of the hardware structure of a mobile terminal for implementing various embodiments of the present invention;

[0031] Figure 2 A flowchart of an audio playback control method provided in Embodiment 1 of the present invention;

[0032] Figure 3 This is a schematic diagram of the module structure of the audio playback control system used in the first embodiment of the present invention;

[0033] Figure 4 Flowcharts of audio playback control methods of some feasible solutions of embodiment 1;

[0034] Figure 5 A flowchart of another audio playback control method provided in Embodiment 3 of the present invention;

[0035] Figure 6 This is a flow chart of audio playback control in some feasible solutions in Example 3.

[0036] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0037] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0038] In the subsequent description, the suffixes such as "module", "component" or "unit" used to represent elements are only used to facilitate the description of the present invention, and have no specific meanings. Therefore, "module", "component" or "unit" can be used in a mixed manner.

[0039] The terminal may be implemented in various forms. For example, the terminal described in the present invention may include mobile terminals such as mobile phones, tablet computers, laptop computers, PDAs, portable media players (PMPs), navigation devices, wearable devices, smart bracelets, pedometers, etc., as well as fixed terminals such as digital TVs and desktop computers.

[0040] The following description will be made by taking a mobile terminal as an example, and those skilled in the art will appreciate that, in addition to components specifically used for mobile purposes, the configuration according to the embodiments of the present invention can also be applied to fixed-type terminals.

[0041] See also Figure 1 , which is a schematic diagram of the hardware structure of a mobile terminal for implementing various embodiments of the present invention, the mobile terminal 100 may include: RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit 103, A / V (audio / video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111 and other components. Those skilled in the art can understand that Figure 1The structure of the mobile terminal shown in the figure does not constitute a limitation on the mobile terminal. The mobile terminal may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0042] Combine the following Figure 1 The following is a detailed introduction to the various components of the mobile terminal:

[0043] The radio frequency unit 101 can be used for receiving and sending signals during information transmission or communication. Specifically, after receiving the downlink information of the base station, it is sent to the processor 110 for processing; in addition, the uplink data is sent to the base station. Generally, 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, etc. In addition, the radio frequency unit 101 can also communicate with the network and other devices through wireless communication. The above-mentioned wireless communication can use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication), GPRS (General Packet Radio Service), CDMA2000 (Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division Duplexing-Long Term Evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution), etc.

[0044] WiFi is a short-range wireless transmission technology. Mobile terminals can help users send and receive emails, browse web pages, and access streaming media through WiFi module 102. It provides users with wireless broadband Internet access. Figure 1 The WiFi module 102 is shown, but it is understandable that it is not an essential component of the mobile terminal and can be omitted as needed without changing the essence of the invention.

[0045] The audio output unit 103 can convert the audio data received by the RF unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output it 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, etc. Moreover, the audio output unit 103 can also provide audio output related to a specific function performed by the mobile terminal 100 (for example, a call signal reception sound, a message reception sound, etc.). The audio output unit 103 may include a speaker, a buzzer, etc.

[0046] The A / V input unit 104 is used to receive audio or video signals. The A / V input unit 104 may include a graphics processor (GPU) 1041 and a microphone 1042, and the graphics processor 1041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The processed image frame can be displayed on the display unit 106. The image frame processed by the graphics processor 1041 can be stored in the memory 109 (or other storage medium) or sent 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 telephone call mode, a recording mode, a voice recognition mode, and other operating modes, and can process such sound into audio data. The processed audio (voice) data can be converted into a format output that can be sent to a mobile communication base station via the radio frequency unit 101 in the case of a telephone call mode. The microphone 1042 can implement various types of noise elimination (or suppression) algorithms to eliminate (or suppress) noise or interference generated in the process of receiving and sending audio signals.

[0047] 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 the ambient light, and the proximity sensor can turn off the display panel 1061 and / or the backlight when the mobile terminal 100 is moved to the ear. As a type of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors that can also be configured on the mobile phone, such as fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., they will not be repeated here.

[0048] The display unit 106 is used to display information input by the user or information provided to the user. The display unit 106 may include a display panel 1061, which may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.

[0049] The user input unit 107 can be used to receive input digital or character information, and to generate key signal input related to the user settings and function control of the mobile terminal. Specifically, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also known as a touch screen, can collect the user's touch operation on or near it (such as the user's operation on the touch panel 1071 or near the touch panel 1071 using any suitable object or accessory such as a finger, stylus, etc.), and drive the corresponding connection device according to a pre-set program. The touch panel 1071 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into the touch point coordinates, and then sends it to the processor 110, and can receive and execute the command sent by the processor 110. In addition, the touch panel 1071 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch panel 1071, the user input unit 107 may also include other input devices 1072. Specifically, the other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, a function key (such as a volume control key, a switch key, etc.), a trackball, a mouse, a joystick, etc., which are not specifically limited here.

[0050] Furthermore, the touch panel 1071 may cover the display panel 1061. When the touch panel 1071 detects a touch operation on or near it, it transmits the information to the processor 110 to determine the type of the touch event. Then, the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Figure 1 In the figure, the touch panel 1071 and the display panel 1061 are used as two independent components to implement the input and output functions of the mobile terminal. However, in some embodiments, the touch panel 1071 and the display panel 1061 can be integrated to implement the input and output functions of the mobile terminal, which is not limited here.

[0051] The interface unit 108 serves as an interface through which at least one external device can be connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, an audio input / output (I / O) port, a video I / O port, a headphone port, etc. 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.

[0052] The memory 109 can be used to store software programs and various data. The memory 109 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory 109 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0053] The processor 110 is the control center of the mobile terminal. It uses various interfaces and lines to connect various parts of the entire mobile terminal. It executes 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, so as to monitor the mobile terminal as a whole. The processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, etc., and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 110.

[0054] The mobile terminal 100 may also include a power supply 111 (such as a battery) for supplying power to various components. Preferably, the power supply 111 may be logically connected to the processor 110 via a power management system, thereby implementing functions such as charging, discharging, and power consumption management through the power management system.

[0055] although Figure 1 Not shown, the mobile terminal 100 may further include a Bluetooth module, etc., which will not be described in detail here.

[0056] Based on the above mobile terminal hardware structure, various embodiments of the method of the present invention are proposed.

[0057] Embodiment 1 of the present invention provides an audio playback control method. The audio playback control method of this embodiment is applicable to Bluetooth devices including mobile terminals. Figure 2 , the method flow includes:

[0058] S201, when using the classic Bluetooth module to establish a connection with the Bluetooth headset to play audio data, using the low-power Bluetooth module to perform a periodic status check with the Bluetooth headset;

[0059] S202, determining whether information that the Bluetooth headset does not play the audio data normally is obtained during the periodic status check, if so, executing step S203, otherwise executing step S204;

[0060] S203, turning off the audio playback of the speaker and the Bluetooth headset;

[0061] S204: Turn off the audio playback of the speaker.

[0062] In actual applications, terminal devices such as smartphones and Bluetooth headsets are equipped with dual-mode Bluetooth, namely classic Bluetooth module and low-power Bluetooth module (Bluetooth Low Energy, BLE). Figure 3 As shown, the classic Bluetooth module is used to transmit audio data during audio playback. If the audio data transmission is interrupted, the Bluetooth headset will stop playing if it does not receive the data. The BLE module uses a variable connection time interval to quickly connect. A period can be set to exchange status information between the terminal device and the Bluetooth headset, that is, a periodic status check. The status information may include one or more of the following information:

[0063] 1. Information that the Bluetooth headset does not play the audio data normally, such as information that the Bluetooth headset does not receive the audio data or the Bluetooth headset is not in the playback state;

[0064] 2. Information about the audio data played by the Bluetooth headset, such as name, source, and playback progress. The terminal device can use this information to determine whether the audio data played by the Bluetooth headset is consistent with the audio data transmitted by the terminal device, and whether there is any delay, and can make corresponding adjustments and corrections based on this information;

[0065] 3. Status information of the classic Bluetooth module of the Bluetooth headset;

[0066] 4. The status information of the classic Bluetooth module of the terminal device and the information of the transmitted audio data, such as the Bluetooth connection information, such as the name, source, playback process and other information. The Bluetooth headset can verify and determine whether it is currently connected to the terminal device based on this information, whether the connected Bluetooth device is this headset, whether the terminal device has output audio to this headset, whether the terminal device is in the external speaker state, etc.

[0067] In practical applications, the variable connection time interval of the BLE module can be set to range from a few milliseconds to a few seconds depending on the specific application.

[0068] In a feasible solution, after turning off the audio output of the speaker and the Bluetooth headset, the method further includes:

[0069] Exchange pairing connection data of the classic Bluetooth module with the Bluetooth headset through the low-power Bluetooth module;

[0070] Establishing a communication connection with the classic Bluetooth module and initializing the connection state with the Bluetooth headset according to the exchanged pairing connection data;

[0071] The audio data is transmitted to the Bluetooth headset, and step S201 is continued.

[0072] In a feasible solution, the situation where the Bluetooth headset fails to play the audio data normally includes that the Bluetooth headset fails to receive the audio data or the Bluetooth headset is not in a playing state or the audio data played by the Bluetooth headset is inconsistent with the transmitted audio data.

[0073] See also Figure 4 , is a flowchart of an audio playback control method in some feasible solutions, comprising the following steps:

[0074] S401, pairing and connecting with a Bluetooth headset, and transmitting audio data to the Bluetooth headset for playback.

[0075] Specifically, this step realizes the transmission of audio data through the classic Bluetooth module.

[0076] S402: Periodically check the status of the BLE module of the Bluetooth headset.

[0077] In this step, the BLE module is used to perform periodic status verification during the audio transmission between the terminal device and the Bluetooth headset, thereby ensuring that the terminal device and the Bluetooth headset are in a connected state and normal working mode, thereby helping the terminal device to determine and verify the audio output mode.

[0078] In actual applications, Bluetooth headsets can also determine whether the current terminal device is in a connected state, whether the connected Bluetooth device is itself, whether the terminal device outputs audio to itself, whether the terminal device is in an external speaker state, etc. based on the BLE periodic status check.

[0079] S403, judging the state of the Bluetooth headset according to the periodic state check, if the Bluetooth headset is in the playing state, executing step S404, if the Bluetooth headset does not receive audio data or the Bluetooth headset is not in the playing state, executing step S405.

[0080] S404: Check whether the playing state of the terminal device is external speaker state, and forcibly turn off the playing of the speaker.

[0081] S405: Turn off audio playback of all devices, and execute step S406.

[0082] In this step, all devices include Bluetooth headsets and speakers. Specifically, the speakers include speakers of the terminal device and speakers of external devices connected to the terminal device.

[0083] S406. Re-establish the connection between the classic Bluetooth module of the terminal device and the classic Bluetooth module of the Bluetooth headset through the BLE module, resume the transmission and playback of the audio data, and continue to execute step S402.

[0084] In this step, the pairing connection data of the classic Bluetooth module can be exchanged with the Bluetooth headset through the low-power Bluetooth module, and then a communication connection of the classic Bluetooth module is established with the Bluetooth headset according to the exchanged pairing connection data, the connection state is initialized, and the connection parameters of the classic Bluetooth module are corrected.

[0085] In actual applications, there are many and complex reasons why Bluetooth headsets suddenly play audio externally. However, with the method of this embodiment, as long as the Bluetooth headset does not play audio, the device terminal will check whether the audio playback is in external playback according to the current device status and turn off the external playback. This process is very short and basically imperceptible to the user. It does not require the user to pay attention to the status of the terminal device and the Bluetooth headset to restore some abnormal states through automatic reconnection, and it ensures to the greatest extent that the audio will not suddenly play externally when using the Bluetooth headset, avoiding embarrassing scenes and improving the user experience. At the same time, because the BLE module is used to jointly design the Bluetooth headset and the mobile phone device, the reliability is higher than the unilateral judgment of the mobile phone device, and the low power consumption of the BLE module can almost ignore the power consumption problem caused by this function.

[0086] Based on the above embodiments, Embodiment 2 of the present invention provides an audio playback control device, which is applicable to a terminal device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the following steps are implemented:

[0087] When the classic Bluetooth module is used to establish a connection with the Bluetooth headset to play audio data, the low-power Bluetooth module is used to perform a periodic status check with the Bluetooth headset;

[0088] If information is obtained during the periodic status check that the Bluetooth headset does not play the audio data normally, then the audio playback of the speaker and the Bluetooth headset is turned off;

[0089] Otherwise, audio playback from the speaker is muted.

[0090] In a feasible solution, after executing the step of “turning off the audio output of the speaker and the Bluetooth headset”, the computer program is further executed by the processor to implement the following steps:

[0091] Exchange pairing connection data of the classic Bluetooth module with the Bluetooth headset through the low-power Bluetooth module;

[0092] Establishing a communication connection with the classic Bluetooth module and initializing the connection state with the Bluetooth headset according to the exchanged pairing connection data;

[0093] The audio data is transmitted to the Bluetooth headset, and the step of "periodic status verification with the Bluetooth headset using the low-power Bluetooth module" is continued.

[0094] In a feasible solution, the failure of the Bluetooth headset to normally play the audio data includes that the Bluetooth headset does not receive the audio data or the Bluetooth headset is not in a playing state or the audio data played by the Bluetooth headset is inconsistent with the transmitted audio data.

[0095] The audio playback control device of this embodiment can detect the situation through the periodic status check of the BLE module as long as the Bluetooth headset does not play audio, and will check whether the audio playback is in external playback according to the current device status, and turn off the external playback. This process is very short and basically imperceptible to the user, avoiding the embarrassing scene of the audio suddenly being played externally when using the Bluetooth headset, and improving the user experience. At the same time, because the BLE module is used to jointly design the Bluetooth headset and the mobile phone device, the reliability is higher than the unilateral judgment of the mobile phone device, and the low power consumption of the BLE module can almost ignore the power consumption problem caused by this function.

[0096] Based on the above embodiments, Embodiment 3 of the present invention provides another audio playback control method, which is applicable to Bluetooth headsets. Figure 5 , the method comprising:

[0097] S501, when establishing a connection with a terminal device by using a classic Bluetooth module to play audio data, performing a periodic status check with the terminal device by using a low-power Bluetooth module;

[0098] S502. If it is monitored that the Bluetooth headset does not play the audio data normally, the information that the Bluetooth headset does not play the audio data normally is sent to the terminal device during periodic status check, so that the terminal device turns off the speaker and the audio output of the Bluetooth headset when receiving the information, or turns off the speaker when not receiving the information.

[0099] In a feasible solution, after step S502, the method further includes the following steps:

[0100] exchanging pairing connection data of the classic Bluetooth module with the terminal device via the low-power Bluetooth module;

[0101] Establishing a communication connection of the classic Bluetooth module with the terminal device according to the exchanged pairing connection data;

[0102] Receive the audio data transmitted by the terminal device, and continue to execute step S501.

[0103] In a feasible solution, when executing step S501, the method further includes:

[0104] Determining whether a Bluetooth module of the terminal device is turned on or whether the terminal device outputs audio data to the Bluetooth headset according to the periodic status check;

[0105] If the Bluetooth module of the terminal device is not turned on and / or the terminal device does not output audio data to the Bluetooth headset, turn off the Bluetooth headset.

[0106] See also Figure 6 , which is a flowchart of audio playback control in some feasible solutions, including the following steps:

[0107] S601, receiving audio data transmitted by a terminal device through a classic Bluetooth module for playback, and simultaneously executing steps S602 and S603.

[0108] Specifically, this step realizes the transmission of audio data through the classic Bluetooth module.

[0109] S602: Periodically check the status with the BLE module of the terminal device.

[0110] The Bluetooth headset can determine whether the current terminal device is in a connected state, whether the connected Bluetooth device is itself, whether the terminal device outputs audio to itself, whether the terminal device is in an external speaker state, etc. based on the BLE periodic status check.

[0111] S6021. Determine whether the Bluetooth of the terminal device is turned on or whether the terminal device outputs audio data to the Bluetooth headset according to the periodic verification status. If so, continue to step S602; otherwise, continue to step S6022.

[0112] S6022, automatically turn off the Bluetooth headset.

[0113] S603, monitoring the status of the Bluetooth headset;

[0114] S6031. Determine whether the Bluetooth headset has not received audio data or is not in a playing state. If so, execute step S6032; otherwise, continue to execute step S603.

[0115] In practical applications, step S603 and step S6031 may be performed by a classic Bluetooth module.

[0116] S6032. When performing periodic status check, information that the Bluetooth headset does not play the audio data normally is sent to the terminal device.

[0117] S6033. Re-establish the connection between the classic Bluetooth module of the terminal device and the classic Bluetooth module of the Bluetooth headset through the BLE module, resume the transmission and playback of audio data, and continue to execute step S601.

[0118] In this step, the pairing connection data of the classic Bluetooth module can be exchanged with the terminal device through the low-power Bluetooth module, and then a communication connection of the classic Bluetooth module is established with the terminal device according to the exchanged pairing connection data, the connection state is initialized, and the connection parameters of the classic Bluetooth module are corrected.

[0119] The audio playback control method of this embodiment can notify the device terminal through the periodic status check of the BLE module as long as the Bluetooth headset does not play audio, so that the device terminal can be informed of the situation through the periodic status check of the BLE module, and will check whether the audio playback is in external playback according to the current device status, and turn off the external playback. This process is very short and basically imperceptible to the user, avoiding the embarrassing scene of the audio suddenly being played externally when using the Bluetooth headset, and improving the user experience. At the same time, because the BLE module is used to allow the Bluetooth headset and mobile phone devices to be jointly designed, the reliability is higher than the unilateral judgment of the mobile phone device, and the low power consumption of the BLE module can almost ignore the power consumption problem caused by this function.

[0120] On the basis of the above-mentioned embodiments, Embodiment 4 of the present invention provides an audio playback control device, which is applicable to a Bluetooth headset, and includes: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the following steps are implemented:

[0121] When the classic Bluetooth module is used to establish a connection with the terminal device to play audio data, the low-power Bluetooth module is used to perform a periodic status check with the terminal device;

[0122] If it is monitored that the Bluetooth headset does not play the audio data normally, the information that the Bluetooth headset does not play the audio data normally is sent to the terminal device during periodic status check, so that the terminal device turns off the speaker and the audio output of the Bluetooth headset when receiving the information, or turns off the speaker when not receiving the information.

[0123] In a feasible solution, after executing the step of "sending information that the Bluetooth headset does not play the audio data normally to the terminal device during periodic status check", the computer program is also executed by the processor to implement the following steps:

[0124] exchanging pairing connection data of the classic Bluetooth module with the terminal device via the low-power Bluetooth module;

[0125] Establishing a communication connection of the classic Bluetooth module with the terminal device according to the exchanged pairing connection data;

[0126] Receive the audio data transmitted by the terminal device, and continue to execute the step of "performing periodic status check with the terminal device using the low-power Bluetooth module".

[0127] In a feasible solution, when executing the step of “periodically checking the status of the low-power Bluetooth module of the terminal device”, the computer program is also executed by the processor to implement the following steps:

[0128] Determining whether the Bluetooth of the terminal device is turned on and / or whether the terminal device outputs audio data to the Bluetooth headset according to the periodic status check;

[0129] If the Bluetooth of the terminal device is not turned on and / or the terminal device does not output audio data to the Bluetooth headset, turn off the Bluetooth headset.

[0130] The audio playback control device of this embodiment can notify the device terminal through the periodic status check of the BLE module as long as the Bluetooth headset does not play audio, so that the device terminal can be informed of the situation through the periodic status check of the BLE module, and will check whether the audio playback is in external playback according to the current device status, and turn off the external playback. This process is very short and basically imperceptible to the user, avoiding the embarrassing scene of the audio suddenly being played externally when using the Bluetooth headset, and improving the user experience. At the same time, because the BLE module is used to allow the Bluetooth headset and mobile phone device to be jointly designed, the reliability is higher than the unilateral judgment of the mobile phone device, and the low power consumption of the BLE module can almost ignore the power consumption problem caused by this function.

[0131] Based on the above embodiments, Embodiment 5 of the present invention provides an audio playback control system, such as Figure 3As shown, the system includes a terminal device and a Bluetooth headset. The terminal device includes the audio playback control device as described in the second embodiment, and the Bluetooth headset includes the audio playback control device as described in the embodiment. No further details will be given here.

[0132] Based on the foregoing embodiments, embodiment 6 of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the audio playback control method described in embodiment 1 or embodiment 3 are implemented.

[0133] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0134] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0135] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0136] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation modes, which are merely illustrative rather than restrictive. Under the guidance of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the present invention and the claims, all of which are within the protection of the present invention.

Claims

1. An audio playback control method, applicable to a terminal device, characterized in that: The method comprises the following steps: When the classic Bluetooth module is used to establish a connection with the Bluetooth headset to play audio data, the low-power Bluetooth module is used to perform a periodic status check with the Bluetooth headset; If information that the Bluetooth headset does not play the audio data normally is obtained during the periodic status check, turning off the audio playback of the speaker and the Bluetooth headset; Otherwise, turn off the audio playback of the speaker; After turning off the audio output of the speaker and the Bluetooth headset, the method further includes: Exchanging pairing connection data of the classic Bluetooth module with the Bluetooth headset through the low-power Bluetooth module; Establishing a communication connection with the classic Bluetooth module according to the exchanged pairing connection data and initializing the connection state; Transmit audio data to the Bluetooth headset, and continue to execute the step of "periodic status verification with the Bluetooth headset using the low-power Bluetooth module"; The Bluetooth headset fails to play the audio data normally, including that the Bluetooth headset fails to receive the audio data, or the Bluetooth headset is not in a playing state, or the audio data played by the Bluetooth headset is inconsistent with the transmitted audio data.

2. An audio playback control method, applicable to a Bluetooth headset, characterized in that: The method comprises: When the classic Bluetooth module is used to establish a connection with the terminal device to play audio data, the low-power Bluetooth module is used to perform a periodic status check with the terminal device; If it is detected that the Bluetooth headset does not play the audio data normally, the information that the Bluetooth headset does not play the audio data normally is sent to the terminal device during the periodic status check, so that the terminal device turns off the speaker and the audio output of the Bluetooth headset when receiving the information, or turns off the speaker when not receiving the information; After sending the information that the Bluetooth headset does not play the audio data normally to the terminal device during the periodic status check, the method further includes: exchanging pairing connection data of the classic Bluetooth module with the terminal device via the low-power Bluetooth module; Establishing a communication connection of the classic Bluetooth module with the terminal device according to the exchanged pairing connection data; Receive the audio data transmitted by the terminal device, and continue to execute the step of "performing periodic status check with the terminal device using the low-power Bluetooth module"; When executing the step of "performing periodic status check with the terminal device using the low-power Bluetooth module", the method further includes: Determining whether the Bluetooth module of the terminal device is turned on and / or whether the terminal device outputs audio data to the Bluetooth headset according to the periodic status check; If the Bluetooth module of the terminal device is not turned on and / or the terminal device does not output audio data to the Bluetooth headset, turn off the Bluetooth headset.

3. An audio playback control device, suitable for terminal equipment, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program implements the method steps according to claim 1 when executed by the processor.

4. An audio playback control device, suitable for a Bluetooth headset, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program implements the method steps according to claim 2 when executed by the processor.

5. An audio playback control system, characterized in that: The system includes a terminal device and a Bluetooth headset, the terminal device includes the audio playback control device according to claim 3, and the Bluetooth headset includes the audio playback control device according to claim 4.

6. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the audio playback control method according to claim 1 or 2 are implemented.

Citation Information

Patent Citations

  • Earphone play control method and apparatus and terminal

    CN105451111A

  • Switching method and device for Bluetooth working modes, Bluetooth chip and electronic equipment

    CN106658366A

  • Bluetooth pairing method and Bluetooth earphone

    CN110753330A

  • Method for performing dual-mode Bluetooth pairing by utilizing audio data and Bluetooth device

    CN110944312A

  • Automatically pairing a Bluetooth low energy (BLE) device to a user device

    US10743165B1