CN113692043A - Prompt message synchronization method and device - Google Patents

Prompt message synchronization method and device Download PDF

Info

Publication number
CN113692043A
CN113692043A CN202110971029.4A CN202110971029A CN113692043A CN 113692043 A CN113692043 A CN 113692043A CN 202110971029 A CN202110971029 A CN 202110971029A CN 113692043 A CN113692043 A CN 113692043A
Authority
CN
China
Prior art keywords
earphone
prompt
master
slave
time
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110971029.4A
Other languages
Chinese (zh)
Other versions
CN113692043B (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.)
Spreadtrum Communications Shanghai Co Ltd
Original Assignee
Spreadtrum Communications Shanghai 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 Spreadtrum Communications Shanghai Co Ltd filed Critical Spreadtrum Communications Shanghai Co Ltd
Priority to CN202110971029.4A priority Critical patent/CN113692043B/en
Publication of CN113692043A publication Critical patent/CN113692043A/en
Application granted granted Critical
Publication of CN113692043B publication Critical patent/CN113692043B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W56/00Synchronisation arrangements
    • H04W56/001Synchronization between nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0638Clock or time synchronisation among nodes; Internode synchronisation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R5/00Stereophonic arrangements
    • H04R5/033Headphones for stereophonic communication
    • 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

Abstract

The embodiment of the application provides a method for synchronizing prompt messages, which is applied to a TWS Bluetooth headset, and when a master headset receives the prompt messages sent by a sound source device, a first playing time is determined based on a first time when the prompt messages are received, clock offset and jitter information between the master headset and a slave headset, and preset preparation time for playing the prompt messages by the slave headset; the master earphone sends a prompt information packet to the slave earphone, the prompt information packet comprises the prompt information and playing time indication information, and the playing time indication information is used for indicating the slave earphone to play the prompt information at a first playing time; and the master earphone determines a second playing time based on the first playing time and the clock offset between the master earphone and the slave earphone, and plays the prompt message at the second playing time. According to the embodiment of the application, the master earphone and the slave earphone can play the prompt messages at the same time point, and the output prompt messages between the master earphone and the slave earphone can be kept synchronous.

Description

Prompt message synchronization method and device
Technical Field
The embodiment of the application relates to the technical field of Bluetooth headsets, in particular to a method and equipment for synchronizing prompt messages.
Background
Due to the True Wireless structure, the True Wireless Stereo (TWS) bluetooth headset completely abandons the trouble of wire, has various use modes, and is more and more favored by users.
In the process of using the sound source equipment, some specific prompt information is generally accompanied, so that a user can conveniently and accurately master the working state of the sound source equipment. After the TWS bluetooth headset is wirelessly connected with the sound source device, the prompting modes of the prompting information generally include a monaural prompting mode and a binaural prompting mode.
In the monaural prompt mode, only the main earphone of the TWS Bluetooth earphone outputs prompt tones, so that the stereo effect cannot be realized, and the user experience is poor; in the binaural prompting mode, the two earphones of the TWS bluetooth earphone output the prompt tone together, but under the influence of various factors, the time for outputting the prompt tone by the two earphones is often different, and the synchronization is difficult to maintain, so that the prompt tones heard by the user are mixed.
Disclosure of Invention
The embodiment of the application provides a prompt message synchronization method and device, and can solve the technical problem that a TWS Bluetooth headset in the prior art is difficult to synchronously output prompt messages.
In a first aspect, an embodiment of the present application provides a method for synchronizing a prompt message, which is applied to a TWS bluetooth headset, where the TWS bluetooth headset includes a master headset and a slave headset, the slave headset is in wireless communication with the master headset, and the master headset is in wireless communication with an audio source device; the method comprises the following steps:
when the master earphone receives prompt information sent by the sound source equipment, determining first playing time based on first time when the prompt information is received, clock offset and jitter information between the master earphone and the slave earphone, and preset preparation time for the slave earphone to play the prompt information;
the master earphone sends a prompt information packet to the slave earphone, the prompt information packet comprises the prompt information and play time indication information, and the play time indication information is used for indicating the slave earphone to play the prompt information at the first play time;
and the master earphone determines a second playing time based on the first playing time and the clock offset between the master earphone and the slave earphone, and plays the prompt message at the second playing time.
In a possible implementation manner, the determining a first playing time based on the first time when the cue information is received, the clock offset and jitter information between the master earphone and the slave earphone, and the preset preparation time for the slave earphone to play the cue information includes:
the master earphone determines a second moment when the slave earphone receives the prompt message based on a first moment when the prompt message is received and clock offset and jitter information between the master earphone and the slave earphone;
and determining the first playing time according to the second time and the preset preparation time.
In a possible implementation manner, after the master earphone sends the prompt packet to the slave earphone, the method further includes:
the master earphone receives feedback information sent by the slave earphone, wherein the feedback information comprises a third playing time for playing the prompt information, which is determined based on a local clock of the slave earphone after the slave earphone receives the prompt information packet;
the master earphone determines whether the first playing time is valid according to the third playing time, and if the first playing time is invalid, the master earphone adjusts the playing time indication information according to the third playing time;
and the master earphone sends the adjusted playing time indication information to the slave earphone, wherein the adjusted playing time indication information is used for indicating the slave earphone to play the prompt information at the playing time indicated by the adjusted playing time indication information.
In a possible embodiment, the method further comprises:
and the master earphone adjusts the second playing time based on the third playing time and the clock offset between the master earphone and the slave earphone, and plays the prompt message at the adjusted second playing time.
In a possible implementation manner, the prompt information includes any one of the following prompt information generated by the sound source device: starting up prompt, closing down prompt, electric quantity prompt, volume adjustment prompt, short message prompt, unlocking prompt and screen locking prompt.
In a second aspect, an embodiment of the present application provides a prompt information synchronization apparatus, which is applied to a TWS bluetooth headset, where the TWS bluetooth headset includes a master headset and a slave headset, the slave headset is connected to the master headset in a wireless communication manner, and the master headset is connected to an audio source device in a wireless communication manner; the device comprises:
the first processing module is used for determining a first playing time based on a first time when the main earphone receives the prompt message sent by the sound source equipment, clock offset and jitter information between the main earphone and the auxiliary earphone and a preset preparation time for the auxiliary earphone to play the prompt message;
a sending module, configured to send a prompt packet to the slave earphone, where the prompt packet includes the prompt information and play time indication information, and the play time indication information is used to indicate the slave earphone to play the prompt information at the first play time;
and the second processing module is used for determining a second playing time based on the first playing time and the clock offset between the master earphone and the slave earphone, and controlling the master earphone to play the prompt message at the second playing time.
In a possible implementation manner, the first processing module is specifically configured to:
when the master earphone receives prompt information sent by the sound source equipment, determining a second time when the slave earphone receives the prompt information based on a first time when the prompt information is received and clock offset and jitter information between the master earphone and the slave earphone;
and determining the first playing time according to the second time and the preset preparation time.
In a possible embodiment, the method further comprises:
a receiving module, configured to receive feedback information sent by the slave earphone, where the feedback information includes a third playing time for playing the prompt information, which is determined based on a local clock of the slave earphone, after the slave earphone receives the prompt information packet;
the first processing module is further configured to:
determining whether the first playing time is valid according to the third playing time, and if the first playing time is invalid, adjusting the playing time indication information according to the third playing time;
the sending module is further configured to:
and sending the adjusted playing time indication information to the slave earphone, wherein the adjusted playing time indication information is used for indicating the slave earphone to play the prompt information at the playing time indicated by the adjusted playing time indication information.
In a possible implementation, the second processing module is further configured to:
and adjusting the second playing time based on the third playing time and the clock offset between the master earphone and the slave earphone, and controlling the master earphone to play the prompt message at the adjusted second playing time.
In a possible implementation manner, the prompt information includes any one of the following prompt information generated by the sound source device: starting up prompt, closing down prompt, electric quantity prompt, volume adjustment prompt, short message prompt, unlocking prompt and screen locking prompt.
In a third aspect, an embodiment of the present application provides a TWS bluetooth headset, including: the earphone comprises a master earphone and a slave earphone, wherein the slave earphone is in wireless communication connection with the master earphone, and the master earphone is in wireless communication connection with an audio source device; the master earpiece includes at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executing the computer-executable instructions stored by the memory causes the at least one processor to perform the method of synchronizing reminder information as provided in the first aspect.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where a computer executing instruction is stored in the computer-readable storage medium, and when a processor executes the computer executing instruction, the method for synchronizing the hint information provided in the first aspect is implemented.
According to the method and the device for synchronizing the prompt messages, when the master earphone receives the prompt messages sent by the sound source device, the time for playing the prompt messages from the slave earphone is predicted based on the first time for receiving the prompt messages, clock offset and jitter information between the master earphone and the slave earphone and the preset preparation time for playing the prompt messages from the earphone, and then the time and the prompt messages are simultaneously sent to the slave earphone, and the slave earphone is instructed to play the prompt messages at the time; meanwhile, the master earphone plays the prompt information at the same time point based on the time and the clock offset between the master earphone and the slave earphone, so that the output prompt information between the master earphone and the slave earphone can be kept synchronous.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments of the present application or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings can be obtained by those skilled in the art without inventive exercise.
Fig. 1 is a schematic view of a usage scenario of a TWS bluetooth headset provided in an embodiment of the present application;
fig. 2 is a schematic flowchart of a method for synchronizing hint information provided in an embodiment of the present application;
fig. 3 is a schematic flowchart of another method for synchronizing hint information provided in an embodiment of the present application;
FIG. 4 is a schematic diagram of program modules of another apparatus for synchronizing hint information provided in an embodiment of the present application;
fig. 5 is a schematic hardware structure diagram of a main headset provided in an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application. In addition, while the disclosure herein has been presented in terms of one or more exemplary examples, it should be appreciated that aspects of the disclosure may be implemented solely as a complete embodiment.
It should be noted that the brief descriptions of the terms in the present application are only for the convenience of understanding the embodiments described below, and are not intended to limit the embodiments of the present application. These terms should be understood in their ordinary and customary meaning unless otherwise indicated.
The terms "first," "second," and the like in the description and claims of this application and in the above-described drawings are used for distinguishing between similar or analogous objects or entities and not necessarily for describing a particular sequential or chronological order, unless otherwise indicated. It is to be understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments described herein are, for example, capable of operation in sequences other than those illustrated or otherwise described herein.
Furthermore, the terms "comprises" and "comprising," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a product or device that comprises a list of elements is not necessarily limited to those elements explicitly listed, but may include other elements not expressly listed or inherent to such product or device.
The term "module," as used herein, refers to any known or later developed hardware, software, firmware, artificial intelligence, fuzzy logic, or combination of hardware and/or software code that is capable of performing the functionality associated with that element.
Referring to fig. 1, fig. 1 is a schematic view of a usage scenario of a TWS bluetooth headset provided in an embodiment of the present application, and in the embodiment of the present application, the TWS bluetooth headset includes an audio source device 100 and a TWS bluetooth headset 200, where the audio source device 100 may be an electronic device in various forms, such as a mobile phone, a tablet computer, a notebook computer, a vehicle-mounted device, an intelligent audio device, an intelligent furniture, a wearable device, and the like.
The TWS bluetooth headset 200 includes two bluetooth headsets without physical connection, which are a master headset 201 and a slave headset 202, respectively, and wireless communication connection can be realized between the master headset 201 and the audio source device 100 and between the master headset 201 and the slave headset 202 through bluetooth, so that playing of audio data provided by the audio source device 100 can be completed through the master headset 201 and the slave headset 202, and a true wireless structure is realized.
In some embodiments, the master earphone 201 and the slave earphone 202 need to be paired with each other, the communication protocol between the master earphone 201 and the slave earphone 202 may be a standard bluetooth protocol or a non-bluetooth protocol, and the master earphone 201 and the audio source device 100 establish a standard bluetooth connection. When the audio source device 100 plays audio, the main earphone 201 obtains the bluetooth parameter that establishes bluetooth connection with the audio source device 100, and subsequently receives the data packet sent by the audio source device 100 based on the bluetooth parameter. Upon receiving the data packet transmitted from the audio source device 100, the master earphone 201 transmits the received data packet to the slave earphone 202 by using the bluetooth connection between the master earphone 201 and the slave earphone 202.
Currently, the sound source device 100 is generally accompanied by some specific prompt information during the use process, so that the user can accurately grasp the working state of the sound source device. When the TWS bluetooth headset adopts the binaural cue method, the time for outputting the cue tone from the master headset 201 and the slave headset 202 is often different due to various factors, and it is difficult to keep synchronization, so that the cue tone heard by the user is mixed.
In order to solve the above technical problem, in an embodiment of the present application, a method for synchronizing a cue message is provided, where when receiving a cue message sent by a sound source device, a master earphone predicts a play time based on a time when the cue message is received, clock offset and jitter information between the master earphone and a slave earphone, and a preset preparation time for playing the cue message from the earphone, and then carries the play time when sending the cue message to the slave earphone, and instructs the slave earphone to play the cue message at the play time, so that the master earphone and the slave earphone can play the cue message at the same time, and synchronization of output of the cue message is ensured. The following examples are given for illustrative purposes.
Referring to fig. 2, fig. 2 is a schematic flow chart of a method for synchronizing prompt messages according to an embodiment of the present application, and an execution main body of the present embodiment may be the main earphone 201 in the embodiment shown in fig. 1. As shown in fig. 2, the method includes:
s201, when the master earphone receives the prompt message sent by the sound source equipment, determining a first playing time based on a first time when the prompt message is received, clock offset and jitter information between the master earphone and the slave earphone, and a preset preparation time for playing the prompt message by the slave earphone.
In the embodiment of the present application, the master earphone and the slave earphone have their own independent clocks, and the clock offset (clock offset) between the master earphone and the slave earphone refers to the time difference between the clock of the master earphone and the clock of the slave earphone. For example, if the value of the master earphone clock is 100 and the value of the slave earphone clock is 91, then the clock offset between the master and slave earphones is 9.
The slave headset stores the clock offset, and during use, the slave headset adds the clock offset to its local clock value to determine when to listen.
When the master earphone transmits data to the slave earphone through the wireless connection at a certain moment, the slave earphone can receive the data at a certain moment, the wireless connection is established according to the time spent by the master earphone and the slave earphone, the time cannot be determined to a great extent, the time is long sometimes and short sometimes, and the time deviation is called jitter (jitter) in a Bluetooth environment. In the embodiment of the application, the time length required for the master earphone to send the prompt message to the slave earphone can be determined according to the jitter information between the master earphone and the slave earphone.
The method includes that after receiving a prompt message sent by a master earphone, a slave earphone needs to complete some initialization preparation work to play the prompt message, so that a certain time interval is usually provided between the time when the slave earphone receives the prompt message sent by the master earphone and the time when the slave earphone plays the prompt message, and the time interval is defined as preparation time for the slave earphone to play the prompt message in the embodiment of the application.
In one possible embodiment, a fixed preparation time period may be set as the preset preparation time period by measuring a plurality of times.
In a possible implementation manner of the present application, when the master earphone receives a prompt message sent by the sound source device, the clock offset of the slave earphone is read, and then a first playing time for playing the prompt message from the slave earphone is determined based on a first time when the master earphone receives the prompt message, the clock offset and jitter information, and the preset preparation time.
For example, assuming that the first time when the master earphone receives the alert information is 00:00:00.00, the clock offset between the master earphone and the slave earphone is 2 milliseconds, the time period required for the master earphone to send the alert information to the slave earphone is 1 millisecond, and the preset preparation time period for the slave earphone to play the alert information is 10 milliseconds, based on the local clock of the master earphone, the first play time when the slave earphone plays the alert information may be 00:00: 00.13. Wherein the first playing time is referenced to a clock local to the slave headset.
In another possible implementation manner of the present application, when the master earphone receives the prompt message sent by the audio source device, the master earphone may determine a second time when the slave earphone receives the prompt message based on a first time when the prompt message is received, and clock offset and jitter information between the master earphone and the slave earphone; and then determining the first playing time according to the second time and the preset preparation time.
For example, assuming that the first time when the master earphone receives the alert information is 00:00:00.00, the clock offset between the master earphone and the slave earphone is 2 milliseconds, and the time required for the master earphone to transmit the alert information to the slave earphone is 1 millisecond, when the slave earphone receives the alert information transmitted by the master earphone, the second time when the slave earphone receives the alert information transmitted by the master earphone can be 00:00:00.03, based on the clock local to the slave earphone. Meanwhile, assuming that the preset preparation time period for playing the reminder from the headphones is 10 milliseconds, the first play time at which the reminder is played from the headphones is determined to be 00:00: 00.13.
It can be understood that, after receiving the above-mentioned prompt message and the first playing time, the slave earphone plays the prompt message when the first playing time arrives based on the local clock of the slave earphone.
S202, the master earphone sends a prompt information packet to the slave earphone, the prompt information packet comprises prompt information and play time indication information, and the play time indication information is used for indicating the slave earphone to play the prompt information at a first play time.
In this embodiment of the application, after determining the first playing time, the master earphone sends the first playing time and the prompt message to the slave earphone together, and instructs the slave earphone to play the prompt message at the first playing time.
In a feasible implementation manner of the present application, in order to ensure the real-time performance of receiving the prompt information by the master earphone and the slave earphone, the time for information interaction between the master earphone and the slave earphone may be reduced by adjusting a Sniff sub-rating (SSR), so as to improve the "real-time performance" of the prompt information.
S203, the master earphone determines a second playing time based on the first playing time and the clock offset between the master earphone and the slave earphone, and plays the prompt message at the second playing time.
In this embodiment of the application, after determining the first play time, the master earphone determines a second play time at which the master earphone plays the prompt message based on the first play time and a clock offset between the master earphone and the slave earphone.
For example, assuming that the first time when the master earphone receives the reminder message is 00:00:00.00 and the clock offset is 2 milliseconds, the second playing time when the master earphone plays the reminder message may be 00:00: 00.11. Wherein the second playing moment is referenced to a local clock of the master earphone.
It can be understood that, after the master earphone determines the second playing time, the prompt message is played when the second playing time arrives based on a local clock of the master earphone. Due to the clock offset between the master and slave earphones, the first playing time "00: 00: 00.13" determined based on the slave earphone clock and the second playing time "00: 00: 00.11" determined based on the master earphone clock are actually the same point in time with respect to the user and, at the same time, with respect to the local clock of the audio source device.
According to the method for synchronizing the prompt messages, when the master earphone receives the prompt messages sent by the sound source equipment, the time for playing the prompt messages from the slave earphone is predicted based on the first time for receiving the prompt messages, clock offset and jitter information between the master earphone and the slave earphone and the preset preparation time for playing the prompt messages from the earphone, and then the time and the prompt messages are sent to the slave earphone at the same time, and the slave earphone is instructed to play the prompt messages at the time; meanwhile, the master earphone plays the prompt information at the same time point based on the time and the clock offset between the master earphone and the slave earphone, so that the output prompt information between the master earphone and the slave earphone can be kept synchronous.
Based on the content described in the foregoing embodiment, referring to fig. 3, fig. 3 is another schematic flow chart of the method for synchronizing prompt information provided in the embodiment of the present application. In some embodiments, the method comprises:
s301, when the master earphone receives the prompt message sent by the sound source equipment, determining a first playing time based on a first time when the prompt message is received, clock offset and jitter information between the master earphone and the slave earphone, and a preset preparation time for playing the prompt message by the slave earphone.
In some embodiments, the prompt message includes any one of the following prompt messages generated by the audio source device: starting up prompt, closing down prompt, electric quantity prompt, volume adjustment prompt, short message prompt, unlocking prompt and screen locking prompt.
S302, the master earphone sends a prompt information packet to the slave earphone, the prompt information packet comprises prompt information and play time indication information, and the play time indication information is used for indicating the slave earphone to play the prompt information at a first play time.
In the embodiment of the present application, the content described in the step S301 and the step S302 is the same as the content described in the step S201 and the step S202 in the embodiment, and specific reference may be made to the description in the embodiment, which is not repeated in the embodiment of the present application.
And S303, the master earphone receives feedback information sent by the slave earphone, wherein the feedback information comprises a third playing time for playing the prompt information, which is determined based on a local clock of the slave earphone after the slave earphone receives the prompt information packet.
In the embodiment of the application, after receiving the prompt message sent by the master earphone, the slave earphone determines the time when the slave earphone actually receives the prompt message based on a local clock of the slave earphone, predicts a third playing time at which the slave earphone can play the prompt message most quickly according to the time and a preset preparation time for playing the prompt message by the slave earphone, and feeds the third playing time back to the master earphone. Wherein the third playing time is referenced to a clock local to the slave headset.
S304, determining whether the first playing time is effective. If not, continuing to execute the steps S305-S307; if yes, go to step S308.
In some embodiments of the present application, it can be understood that, when the third playing time is later than the first playing time, that is, it indicates that the slave earphone cannot play the prompt message at the first playing time specified by the master device, at this time, it may be determined that the first playing time is invalid; when the third playing time is not later than the first playing time, that is, the slave earphone can play the prompt message at the first playing time specified by the master equipment, and at this time, it can be determined that the first playing time is valid.
S305, the master earphone adjusts the playing time indication information according to the third playing time.
And S306, the master earphone sends the adjusted playing time indication information to the slave earphone, wherein the adjusted playing time indication information is used for indicating the slave earphone to play the prompt information at the playing time indicated by the adjusted playing time indication information.
In a possible implementation manner of the present application, when the master earphone determines that the slave earphone cannot play the prompt message at the first play time, the master earphone adjusts the play time indication message, and sends the adjusted play time indication message to the slave earphone to instruct the slave earphone to play the prompt message at a third play time.
In another possible implementation manner of the present application, when the master earphone determines that the slave earphone cannot play the prompt message at the first play time, the first play time is adjusted to be the third play time, and after generating the adjusted play time indication information based on the adjusted first play time, the adjusted play time indication information is sent to the slave earphone to indicate the slave earphone to play the prompt message at the third play time.
In some embodiments of the present application, when the master earphone determines that the slave earphone cannot play the prompt message at the first play time, the master earphone may adjust the first play time to a time after the third play time, generate the adjusted play time indication information based on the adjusted first play time, and transmit the adjusted play time indication information to the slave earphone to instruct the slave earphone to play the prompt message at a time after the third play time.
And S307, the master earphone adjusts the second playing time based on the third playing time and the clock offset between the master earphone and the slave earphone, and plays the prompt message at the adjusted second playing time.
In this embodiment of the application, after the time when the slave earphone plays the prompt message is adjusted, the master earphone needs to adjust the play time of the master earphone in time according to the adjusted play time of the slave earphone, so that the master earphone and the slave earphone can play the prompt message at the same time point.
S308, the master earphone determines a second playing time based on the first playing time and the clock offset between the master earphone and the slave earphone, and plays the prompt message at the second playing time.
In this embodiment of the application, when it is determined that the slave earphone can play the prompt message at the first play time specified by the master device, the master earphone may determine a second play time based on the first play time and a clock offset between the master earphone and the slave earphone, and play the prompt message at the second play time, thereby ensuring that the master earphone and the slave earphone can play the prompt message at the same time point.
Based on the content described in the foregoing embodiment, an apparatus for synchronizing a reminder message is further provided in this embodiment, which is applied to a TWS bluetooth headset, and referring to fig. 4, fig. 4 is a schematic diagram of program modules of the apparatus for synchronizing a reminder message provided in this embodiment, where the apparatus for synchronizing a reminder message includes:
the first processing module 401 is configured to, when the master earphone receives a prompt message sent by the sound source device, determine a first playing time based on a first time when the prompt message is received, clock offset and jitter information between the master earphone and the slave earphone, and a preset preparation time for playing the prompt message by the slave earphone.
A sending module 402, configured to send a prompt packet to the slave earphone, where the prompt packet includes prompt information and play time indication information, and the play time indication information is used to indicate the slave earphone to play the prompt information at a first play time.
The second processing module 403 is configured to determine a second playing time based on the first playing time and a clock offset between the master earphone and the slave earphone, and control the master earphone to play the prompt message at the second playing time.
According to the prompt message synchronizing device provided by the embodiment of the application, when the master earphone receives the prompt message sent by the sound source equipment, the time for playing the prompt message from the slave earphone is predicted based on the first time for receiving the prompt message, clock offset and jitter information between the master earphone and the slave earphone and the preset preparation time for playing the prompt message from the slave earphone, and then the time and the prompt message are simultaneously sent to the slave earphone, and the slave earphone is instructed to play the prompt message at the time; meanwhile, the master earphone plays the prompt information at the same time point based on the time and the clock offset between the master earphone and the slave earphone, so that the output prompt information between the master earphone and the slave earphone can be kept synchronous.
In a possible implementation, the first processing module 401 is specifically configured to:
when the master earphone receives prompt information sent by the sound source equipment, determining a second time when the slave earphone receives the prompt information based on a first time when the prompt information is received and clock offset and jitter information between the master earphone and the slave earphone; and determining the first playing time according to the second time and the preset preparation time.
In a possible embodiment, the method further comprises:
and the receiving module is used for receiving feedback information sent by the slave earphone, wherein the feedback information comprises a third playing time for playing the prompt information, which is determined based on a local clock of the slave earphone after the slave earphone receives the prompt information packet.
The first processing module 401 is further configured to:
and determining whether the first playing time is valid according to the third playing time, and if the first playing time is invalid, adjusting the playing time indication information according to the third playing time.
The sending module 402 is further configured to:
and sending the adjusted playing time indication information to the slave earphone, wherein the adjusted playing time indication information is used for indicating the slave earphone to play the prompt information at the playing time indicated by the adjusted playing time indication information.
In a possible implementation, the second processing module 403 is further configured to:
and adjusting the second playing time based on the third playing time and the clock offset between the master earphone and the slave earphone, and controlling the master earphone to play the prompt message at the adjusted second playing time.
It should be noted that, in the embodiment of the present application, the content specifically executed by the first processing module 401, the sending module 402, and the second processing module 403 may refer to the relevant content in the embodiments shown in fig. 2 to fig. 3, which is not described herein again.
Further, based on the content described in the foregoing embodiments, an embodiment of the present application further provides a TWS bluetooth headset, including a master headset and a slave headset, where the slave headset is in wireless communication with the master headset, and the master headset is in wireless communication with an audio source device; the master earpiece includes at least one processor and memory; wherein the memory stores computer execution instructions; the at least one processor executes the computer execution instructions stored in the memory to implement the steps executed by the main headset in the above embodiments, and specific execution contents may refer to related contents in the embodiments shown in fig. 2 to fig. 3, which are not described herein again.
For better understanding of the embodiment of the present application, referring to fig. 5, fig. 5 is a schematic diagram of a hardware structure of a main headset according to the embodiment of the present application.
As shown in fig. 5, the main headphone of the present embodiment includes: a processor 501 and a memory 502; wherein:
a memory 502 for storing computer-executable instructions;
the processor 501 is configured to execute computer-executable instructions stored in the memory to implement the steps executed by the main headset in the foregoing embodiment, and specific executed contents may refer to related contents in the embodiments shown in fig. 2 to fig. 3, which are not described herein again.
Alternatively, the memory 502 may be separate or integrated with the processor 501.
When the memory 502 is provided separately, the device further comprises a bus 503 for connecting said memory 502 and the processor 501.
Further, based on the content described in the foregoing embodiments, an embodiment of the present application further provides a computer-readable storage medium, where a computer-executable instruction is stored in the computer-readable storage medium, and when a processor executes the computer-executable instruction, the step executed by the main earphone in the foregoing embodiments is implemented, and the specific executed content may refer to the related content in the embodiments shown in fig. 2 to fig. 3, which is not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described device embodiments are merely illustrative, and for example, the division of the modules is only one logical division, and other divisions may be realized in practice, for example, a plurality of modules may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or modules, and may be in an electrical, mechanical or other form.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present application may be integrated into one processing unit, or each module may exist alone physically, or two or more modules are integrated into one unit. The unit formed by the modules can be realized in a hardware form, and can also be realized in a form of hardware and a software functional unit.
The integrated module implemented in the form of a software functional module may be stored in a computer-readable storage medium. The software functional module is stored in a storage medium and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute some steps of the methods according to the embodiments of the present application.
It should be understood that the Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in the incorporated application may be directly implemented by a hardware processor, or may be implemented by a combination of hardware and software modules in the processor.
The memory may comprise a high-speed RAM memory, and may further comprise a non-volatile storage NVM, such as at least one disk memory, and may also be a usb disk, a removable hard disk, a read-only memory, a magnetic or optical disk, etc.
The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, the buses in the figures of the present application are not limited to only one bus or one type of bus.
The storage medium may be implemented by any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. Of course, the storage medium may also be integral to the processor. The processor and the storage medium may reside in an Application Specific Integrated Circuits (ASIC). Of course, the processor and the storage medium may reside as discrete components in an electronic device or host device.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.

Claims (12)

1. A prompt message synchronization method is applied to a TWS Bluetooth headset which is a true wireless stereo, and comprises a master headset and a slave headset, wherein the slave headset is in wireless communication connection with the master headset, and the master headset is in wireless communication connection with an audio source device; the method comprises the following steps:
when the master earphone receives prompt information sent by the sound source equipment, determining first playing time based on first time when the prompt information is received, clock offset and jitter information between the master earphone and the slave earphone, and preset preparation time for the slave earphone to play the prompt information;
the master earphone sends a prompt information packet to the slave earphone, the prompt information packet comprises the prompt information and play time indication information, and the play time indication information is used for indicating the slave earphone to play the prompt information at the first play time;
and the master earphone determines a second playing time based on the first playing time and the clock offset between the master earphone and the slave earphone, and plays the prompt message at the second playing time.
2. The method of claim 1, wherein determining a first playing time based on the first time of receiving the alert message, clock offset and jitter information between the master earphone and the slave earphone, and a preset preparation time for the slave earphone to play the alert message comprises:
the master earphone determines a second moment when the slave earphone receives the prompt message based on a first moment when the prompt message is received and clock offset and jitter information between the master earphone and the slave earphone;
and determining the first playing time according to the second time and the preset preparation time.
3. The method of claim 1, wherein after the master earphone sends the prompt packet to the slave earphone, the method further comprises:
the master earphone receives feedback information sent by the slave earphone, wherein the feedback information comprises a third playing time for playing the prompt information, which is determined based on a local clock of the slave earphone after the slave earphone receives the prompt information packet;
the master earphone determines whether the first playing time is valid according to the third playing time, and if the first playing time is invalid, the master earphone adjusts the playing time indication information according to the third playing time;
and the master earphone sends the adjusted playing time indication information to the slave earphone, wherein the adjusted playing time indication information is used for indicating the slave earphone to play the prompt information at the playing time indicated by the adjusted playing time indication information.
4. The method of claim 3, further comprising:
and the master earphone adjusts the second playing time based on the third playing time and the clock offset between the master earphone and the slave earphone, and plays the prompt message at the adjusted second playing time.
5. The method according to any one of claims 1 to 4, wherein the prompt message comprises any one of the following prompt messages generated by the audio source device: starting up prompt, closing down prompt, electric quantity prompt, volume adjustment prompt, short message prompt, unlocking prompt and screen locking prompt.
6. A prompt message synchronization device is applied to a TWS Bluetooth headset which is a true wireless stereo, and comprises a master headset and a slave headset, wherein the slave headset is in wireless communication connection with the master headset, and the master headset is in wireless communication connection with an audio source device; the device comprises:
the first processing module is used for determining a first playing time based on a first time when the main earphone receives the prompt message sent by the sound source equipment, clock offset and jitter information between the main earphone and the auxiliary earphone and a preset preparation time for the auxiliary earphone to play the prompt message;
a sending module, configured to send a prompt packet to the slave earphone, where the prompt packet includes the prompt information and play time indication information, and the play time indication information is used to indicate the slave earphone to play the prompt information at the first play time;
and the second processing module is used for determining a second playing time based on the first playing time and the clock offset between the master earphone and the slave earphone, and controlling the master earphone to play the prompt message at the second playing time.
7. The apparatus of claim 6, wherein the first processing module is specifically configured to:
when the master earphone receives prompt information sent by the sound source equipment, determining a second time when the slave earphone receives the prompt information based on a first time when the prompt information is received and clock offset and jitter information between the master earphone and the slave earphone;
and determining the first playing time according to the second time and the preset preparation time.
8. The apparatus of claim 6, further comprising:
a receiving module, configured to receive feedback information sent by the slave earphone, where the feedback information includes a third playing time for playing the prompt information, which is determined based on a local clock of the slave earphone, after the slave earphone receives the prompt information packet;
the first processing module is further configured to:
determining whether the first playing time is valid according to the third playing time, and if the first playing time is invalid, adjusting the playing time indication information according to the third playing time;
the sending module is further configured to:
and sending the adjusted playing time indication information to the slave earphone, wherein the adjusted playing time indication information is used for indicating the slave earphone to play the prompt information at the playing time indicated by the adjusted playing time indication information.
9. The apparatus of claim 8, wherein the second processing module is further configured to:
and adjusting the second playing time based on the third playing time and the clock offset between the master earphone and the slave earphone, and controlling the master earphone to play the prompt message at the adjusted second playing time.
10. The apparatus according to any one of claims 6 to 9, wherein the prompt message comprises any one of the following prompt messages generated by the sound source device: starting up prompt, closing down prompt, electric quantity prompt, volume adjustment prompt, short message prompt, unlocking prompt and screen locking prompt.
11. A TWS Bluetooth headset, comprising: the earphone comprises a master earphone and a slave earphone, wherein the slave earphone is in wireless communication connection with the master earphone, and the master earphone is in wireless communication connection with an audio source device; the master earpiece includes at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executing the computer-executable instructions stored by the memory causes the at least one processor to perform the method of synchronizing toasts according to any of claims 1 to 5.
12. A computer-readable storage medium having stored thereon computer-executable instructions which, when executed by a processor, implement the method of synchronizing reminder messages according to any one of claims 1 to 5.
CN202110971029.4A 2021-08-23 2021-08-23 Prompt message synchronization method and device Active CN113692043B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110971029.4A CN113692043B (en) 2021-08-23 2021-08-23 Prompt message synchronization method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110971029.4A CN113692043B (en) 2021-08-23 2021-08-23 Prompt message synchronization method and device

Publications (2)

Publication Number Publication Date
CN113692043A true CN113692043A (en) 2021-11-23
CN113692043B CN113692043B (en) 2023-01-24

Family

ID=78581625

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110971029.4A Active CN113692043B (en) 2021-08-23 2021-08-23 Prompt message synchronization method and device

Country Status (1)

Country Link
CN (1) CN113692043B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110290412A (en) * 2019-08-26 2019-09-27 恒玄科技(北京)有限公司 A kind of audio sync playback method, device and loudspeaker apparatus, wireless headset
CN111698672A (en) * 2020-05-26 2020-09-22 展讯通信(上海)有限公司 Audio synchronization method of wireless earphone and wireless earphone
CN111817811A (en) * 2020-06-22 2020-10-23 芯原微电子(上海)股份有限公司 TWS earphone audio frequency synchronous playing method and system, TWS earphone
CN111918261A (en) * 2020-08-13 2020-11-10 南京中感微电子有限公司 Bluetooth audio equipment synchronous playing method and system and Bluetooth audio master and slave equipment
CN112039623A (en) * 2020-11-05 2020-12-04 深圳市汇顶科技股份有限公司 Audio synchronous playing method, device, equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110290412A (en) * 2019-08-26 2019-09-27 恒玄科技(北京)有限公司 A kind of audio sync playback method, device and loudspeaker apparatus, wireless headset
CN111698672A (en) * 2020-05-26 2020-09-22 展讯通信(上海)有限公司 Audio synchronization method of wireless earphone and wireless earphone
CN111817811A (en) * 2020-06-22 2020-10-23 芯原微电子(上海)股份有限公司 TWS earphone audio frequency synchronous playing method and system, TWS earphone
CN111918261A (en) * 2020-08-13 2020-11-10 南京中感微电子有限公司 Bluetooth audio equipment synchronous playing method and system and Bluetooth audio master and slave equipment
CN112039623A (en) * 2020-11-05 2020-12-04 深圳市汇顶科技股份有限公司 Audio synchronous playing method, device, equipment and storage medium
CN113179468A (en) * 2020-11-05 2021-07-27 深圳市汇顶科技股份有限公司 Audio synchronous playing method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN113692043B (en) 2023-01-24

Similar Documents

Publication Publication Date Title
CN111698672B (en) Audio synchronization method of wireless earphone and wireless earphone
US11368777B2 (en) Method and system for upgrading program of TWS headset, and TWS headset
CN110166877A (en) A kind of audio frequency playing method, device and the charging box of TWS earphone
US20180213317A1 (en) Method and Apparatus for Adjusting Sound Field of an Earphone and a Terminal
CN204652645U (en) Audio signal compensation of delay device, sound card and terminal equipment
JP7476327B2 (en) AUDIO DATA PROCESSING METHOD, DELAY TIME ACQUISITION METHOD, SERVER, AND COMPUTER PROGRAM
CN109547897A (en) A kind of method, apparatus, system and the wireless headset box of wireless headset connection
CN108289232B (en) Control method of playing device, terminal device and storage medium
US20180082672A1 (en) Information processing apparatus and information processing method thereof
CN112579038A (en) Built-in recording method and device, electronic equipment and storage medium
CN114040373A (en) Audio service processing method and device, electronic equipment and storage medium
CN110795127A (en) Wireless earphone and upgrading method and device thereof
CN110888619A (en) Digital audio power amplifier synchronization circuit and method and electronic equipment
US20210152917A1 (en) Electronic device for performing communication connection to external electronic device and operation method thereof
CN111526506B (en) Charging box and method for wireless communication and audio playing kit
CN113473319A (en) Bluetooth multi-channel audio playing method, device and system
CN113692043B (en) Prompt message synchronization method and device
CN112105005B (en) Method and device for controlling Bluetooth equipment to play
CN111107226A (en) Volume control method applied to mobile terminal
CN111190568A (en) Volume adjusting method and device
CN110764806A (en) TWS earphone and upgrading method and device thereof
CN113613221B (en) TWS master device, TWS slave device, audio device and system
CN108184193A (en) Control method for playing back, bluetooth equipment and the computer storage media of bluetooth playback terminal
CN113407147A (en) Audio playing method, device, equipment and storage medium
CN113746982B (en) Audio playing control method and device, electronic equipment and 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