CN112954527A - Wireless earphone, audio synchronization method, system, equipment and computer medium - Google Patents

Wireless earphone, audio synchronization method, system, equipment and computer medium Download PDF

Info

Publication number
CN112954527A
CN112954527A CN202110171774.0A CN202110171774A CN112954527A CN 112954527 A CN112954527 A CN 112954527A CN 202110171774 A CN202110171774 A CN 202110171774A CN 112954527 A CN112954527 A CN 112954527A
Authority
CN
China
Prior art keywords
data communication
communication link
clock
local clock
determining
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
CN202110171774.0A
Other languages
Chinese (zh)
Other versions
CN112954527B (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.)
Goertek Techology Co Ltd
Original Assignee
Goertek Techology 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 Goertek Techology Co Ltd filed Critical Goertek Techology Co Ltd
Priority to CN202110171774.0A priority Critical patent/CN112954527B/en
Publication of CN112954527A publication Critical patent/CN112954527A/en
Application granted granted Critical
Publication of CN112954527B publication Critical patent/CN112954527B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1041Mechanical or electronic switches, or control elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W56/00Synchronisation arrangements
    • H04W56/001Synchronization between nodes

Abstract

The application discloses a wireless earphone, an audio synchronization method, a system, a device and a computer medium, wherein the method comprises the following steps: in a first data communication link formed by connecting a first earphone device and an audio playing device, determining an operation clock of the first data communication link based on a local clock of the first earphone device so as to perform audio transmission based on the operation clock of the first data communication link; and in a second data communication link formed by connecting the second earphone device and the first earphone device, determining the running clock of the second data communication link based on the local clock of the first earphone device so as to carry out audio transmission based on the running clock of the second data communication link. In this application, the local clock of the first headphone device is not changed, and thus the determined corresponding relationship between the operation clock of the first data communication link and the operation clock of the second data communication link is not changed, which is convenient for audio synchronous transmission between the first headphone device and the second headphone device.

Description

Wireless earphone, audio synchronization method, system, equipment and computer medium
Technical Field
The present application relates to the field of headset technology, and more particularly, to a wireless headset, an audio synchronization method, system, device, and computer medium.
Background
With the development of bluetooth communication technology, the wireless headset is transited from a wired mode to a wireless mode, such as a TWS (real wireless stereo) headset, and the wireless headset is more convenient for users to carry and use because there is no connection line.
In summary, how to achieve audio synchronization between wireless headsets is a problem that needs to be solved by those skilled in the art.
Disclosure of Invention
The application aims to provide an audio synchronization method which can solve the technical problem of how to realize audio synchronization between wireless earphones to a certain extent. The application also provides an audio synchronization system, a wireless headset, a device and a computer readable storage medium.
In order to achieve the above purpose, the present application provides the following technical solutions:
an audio synchronization method applied to a wireless headset comprises the following steps:
in a first data communication link formed by connecting a first earphone device and an audio playing device, determining an operation clock of the first data communication link based on a local clock of the first earphone device, so as to perform audio transmission based on the operation clock of the first data communication link;
in a second data communication link formed by connecting a second earphone device with the first earphone device, determining a running clock of the second data communication link based on a local clock of the first earphone device, and carrying out audio transmission based on the running clock of the second data communication link.
Preferably, the determining the operational clock of the first data communication link based on the local clock of the first headset device comprises:
estimating a first deviation value between the local clock of the first earphone device and the local clock of the audio playing device;
determining an operational clock of the first data communication link based on a local clock of the first headset device and the first deviation value;
the determining a running clock of the second data communication link based on the local clock of the first headset device comprises:
acquiring, by the first headset device, a running clock of the first data communication link;
using the running clock of the first data communication link as the local clock of the second data communication link;
determining a running clock of the second data communication link based on a local clock of the second data communication link.
Preferably, the determining the operation clock of the second data communication link based on the local clock of the second data communication link includes:
estimating a second offset value between the local clock of the second headset device and the local clock of the second data communication link;
determining a running clock of the second data communication link based on the local clock of the second headset device and the second offset value.
Preferably, the method further comprises the following steps:
calibrating a running clock of the first data communication link.
Preferably, the calibrating the operation clock of the first data communication link includes:
determining the running time of the first earphone device;
judging whether the operation time length is greater than or equal to a preset time length or not;
and if the running time length is greater than or equal to the preset time length, calibrating the running clock of the first data communication link.
Preferably, the determining the running clock of the first data communication link based on the clock of the first headset device includes:
directly using a local clock of the first headset device as a running clock of the first data communication link;
the determining a running clock of the second data communication link based on the local clock of the first headset device comprises:
estimating a third offset value between the local clock of the second earphone device and the local clock of the first earphone device;
determining a running clock of the second data communication link based on the local clock of the second headset device and the third offset value.
A wireless headset comprising a first headset device and a second headset device:
the first headphone device is to: in a first data communication link formed by connecting with an audio playing device, determining an operation clock of the first data communication link based on a local clock of the first earphone device, so as to perform audio transmission based on the operation clock of the first data communication link;
the second headphone device is to: in a second data communication link formed in connection with the first headset device, determining a running clock of the second data communication link based on a local clock of the first headset device for audio transmission based on the running clock of the second data communication link.
An audio synchronization system applied to a wireless headset, comprising:
the audio playing device comprises a first determining module, a second determining module and a control module, wherein the first determining module is used for determining an operation clock of a first data communication link based on a local clock of a first earphone device in a first data communication link formed by connecting the first earphone device and the audio playing device so as to perform audio transmission based on the operation clock of the first data communication link;
the second determining module is used for determining the running clock of the second data communication link based on the local clock of the first earphone device in a second data communication link formed by connecting the second earphone device with the first earphone device, so as to perform audio transmission based on the running clock of the second data communication link.
An audio synchronization device applied to a wireless headset comprises:
a memory for storing a computer program;
a processor for implementing the steps of the audio synchronization method as described above when executing the computer program.
A computer-readable storage medium for a wireless headset, in which a computer program is stored which, when being executed by a processor, carries out the steps of the audio synchronization method as described above.
The audio synchronization method is applied to a wireless earphone, and in a first data communication link formed by connecting first earphone equipment and audio playing equipment, an operation clock of the first data communication link is determined based on a local clock of the first earphone equipment, so that audio transmission is performed based on the operation clock of the first data communication link; and in a second data communication link formed by connecting the second earphone device and the first earphone device, determining the running clock of the second data communication link based on the local clock of the first earphone device so as to carry out audio transmission based on the running clock of the second data communication link. In the application, the operation clock of the first data communication link is determined based on the local clock of the first earphone device, and the operation clock of the second data communication link is also determined based on the local clock of the first earphone device, and since the local clock of the first earphone device is not changed, the corresponding relationship between the operation clock of the first data communication link and the operation clock of the second data communication link determined by the operation clock of the first data communication link and the operation clock of the second data communication link is not changed, thereby facilitating the synchronization between the operation clock of the first data communication link and the operation clock of the second data communication link, and further facilitating the audio synchronous transmission between the first earphone device and the second earphone device. The audio synchronization system, the audio synchronization device, the wireless headset and the computer readable storage medium solve the corresponding technical problems.
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 or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a wireless headset according to an embodiment of the present disclosure;
fig. 2 is a flowchart of an audio synchronization method provided in an embodiment of the present application;
FIG. 3 is a schematic diagram of the Bluetooth protocol;
FIG. 4 is a schematic diagram of a master-slave player of a wireless headset;
fig. 5 is a schematic structural diagram of an audio synchronization system according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an audio synchronization apparatus according to an embodiment of the present application;
fig. 7 is another schematic structural diagram of an audio synchronization apparatus according to an embodiment of the present application.
Detailed Description
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 only a part of the embodiments of the present application, and not all of the 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.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a wireless headset according to an embodiment of the present disclosure.
The embodiment of the present application provides a wireless headset, including a first headset device 11 and a second headset device 12:
the first headphone device 11 is configured to: in a first data communication link 14 formed in connection with the audio playing device 13, determining an operation clock of the first data communication link 14 based on a local clock of the first headphone device 11 to perform audio transmission based on the operation clock of the first data communication link 14;
the second headphone device 12 is configured to: in the second data communication link 15 formed in connection with the first headphone device 11, the operating clock of the second data communication link 15 is determined based on the local clock of the first headphone device 11 to perform audio transmission based on the operating clock of the second data communication link 15.
In practical applications, during the use of the wireless headset, a data communication link is formed, for example, a Piconet, i.e., Piconet, is formed, which means a micro network formed by various appliances with bluetooth units (i.e., bluetooth modules embedded in various appliances supporting bluetooth technology) in a small range (10-100m) by using bluetooth (Blue tooth) technology. Because the wireless earphone is provided with the first earphone device and the second earphone device, the wireless earphone can form two data communication links in the application process, namely a first data communication link and a second data communication link, wherein the first data communication link is formed by connecting the audio playing device and the first earphone device, the second data communication link is formed by connecting the first earphone device and the second earphone device, since the first data communication link and the second data communication link each determine their own clock, and the nature of bluetooth operation dictates that the clocks of the two data communication links are different, therefore, the clocks of the first data communication link and the second data communication link need to be synchronized subsequently, and the audio transmitted by the first earphone device and the audio transmitted by the second earphone device can be synchronized, which brings difficulty to the audio synchronization of the wireless earphones. In the application, the first earphone device determines the running clock of the first data communication link based on the local clock of the first earphone device, the second earphone device determines the running clock of the second data communication link based on the local clock of the first earphone device, and the local clock of the first earphone device is unchanged, so that the running clock of the first data communication link and the running clock of the second data communication link are synchronized in the generation process by means of the local clock of the first earphone device, the running clock of the first data communication link and the running clock of the second data communication link do not need to be synchronized subsequently, and subsequent audio synchronous transmission is facilitated.
It should be noted that the type of the audio playing device may be determined according to actual needs, for example, the audio playing device may be a mobile phone, a computer, or the like.
The application provides a wireless headset, including first earphone equipment and second earphone equipment: the first headphone device is to: in a first data communication link formed by connecting with the audio playing device, determining an operation clock of the first data communication link based on a local clock of the first earphone device so as to perform audio transmission based on the operation clock of the first data communication link; the second headphone device is to: in a second data communication link formed in connection with the first headphone apparatus, a running clock of the second data communication link is determined based on a local clock of the first headphone apparatus to perform audio transmission based on the running clock of the second data communication link. In the application, the operation clock of the first data communication link is determined based on the local clock of the first earphone device, and the operation clock of the second data communication link is also determined based on the local clock of the first earphone device, and since the local clock of the first earphone device is not changed, the corresponding relationship between the operation clock of the first data communication link and the operation clock of the second data communication link determined by the operation clock of the first data communication link and the operation clock of the second data communication link is not changed, thereby facilitating the synchronization between the operation clock of the first data communication link and the operation clock of the second data communication link, and further facilitating the audio synchronous transmission between the first earphone device and the second earphone device.
In the wireless headset provided in the embodiment of the present application, as can be known from the concept of the bluetooth clock, there are 3 clocks in each data communication link, which are CLKN (local clock), CLKE (predicted clock applied during scanning and paging), and CLK (clock frequency at which the data communication link actually operates), and in the data communication link, the device has a master-slave component, the master device directly uses CLKN as CLK of the data communication link, and the CLK of the slave device is the sum of CLKN and offset, and the offset is data dynamically determined in the master-slave device scanning pair, so that under the condition that the criterion of the bluetooth clock is not changed, in the process of synchronizing the operation clock of the first data communication link and the operation clock of the second data communication link, the first headset device and the second headset device can perform the following operations:
since the first earphone device corresponds to the slave device in the first data communication link and the audio playing device corresponds to the master device, when the first earphone device determines the operation clock of the first data communication link based on the local clock of the first earphone device, a first deviation value between the local clock of the first earphone device and the local clock of the audio playing device can be estimated; determining an operation clock of the first data communication link based on the local clock of the first headset device and the first deviation value;
accordingly, since the second headphone apparatus corresponds to the slave apparatus in the second data communication link and the first headphone apparatus corresponds to the master apparatus, when the second headphone apparatus determines the operation clock of the second data communication link based on the clock of the first headphone apparatus, the operation clock of the first data communication link can be acquired by the first headphone apparatus; using the running clock of the first data communication link as the local clock of the second data communication link; the operating clock of the second data communication link is determined based on the local clock of the second data communication link, at which time the operating clock of the first data communication link and the operating clock of the second data communication link are identical for the first earphone device.
In practical application, in the process that the second headset device determines the running clock of the second data communication link based on the local clock of the second data communication link, a second offset value between the local clock of the second headset device and the local clock of the second data communication link can be estimated; the operating clock of the second data communication link is determined based on the local clock of the second headset device and the second offset value.
In a specific application scenario, as time goes by, there may be an offset between the operation clock of the first data communication link and the operation clock of the second data communication link, for example, a test finds that after 24 hours of operation, CLK has an offset of 3-5 slots, so in order to further ensure clock synchronization between the first data communication link and the second data communication link, the first earphone device may further be configured to: the operational clock of the first data communication link is calibrated.
In a specific application scenario, in order to avoid that the first headset frequently calibrates the operation clock of the first data communication link, the operation duration of the first headset device may be determined in the process that the first headset device calibrates the operation clock of the first data communication link; judging whether the operation time length is greater than or equal to a preset time length or not; and if the running time length is greater than or equal to the preset time length, calibrating the running clock of the first data communication link. In addition, in the process of calibrating the operation clock of the first data communication link, for convenience of clock calibration, the first headset device may also calibrate the operation clock of the first data communication link by using an SDP (Service Discovery Protocol).
In the wireless headset provided in the embodiment of the present application, in a process in which the first headset device determines the operation clock of the first data communication link based on the clock of the first headset device without considering the bluetooth clock, the local clock of the first headset device may be directly used as the operation clock of the first data communication link; correspondingly, the second headset device determines, based on the local clock of the first headset device, a third offset value between the local clock of the second headset device and the local clock of the first headset device in the running clock of the second data communication link; the operating clock of the second data communication link is determined based on the local clock of the second headset device and the third offset value.
Referring to fig. 2, fig. 2 is a flowchart illustrating an audio synchronization method according to an embodiment of the present disclosure.
The audio synchronization method provided by the embodiment of the application is applied to a wireless earphone and can comprise the following steps:
step S101: in a first data communication link formed by connecting the first earphone device and the audio playing device, the operation clock of the first data communication link is determined based on the local clock of the first earphone device, so that audio transmission is carried out based on the operation clock of the first data communication link.
Step S102: and in a second data communication link formed by connecting the second earphone device and the first earphone device, determining the running clock of the second data communication link based on the local clock of the first earphone device so as to carry out audio transmission based on the running clock of the second data communication link.
The audio synchronization method is applied to a wireless earphone, and in a first data communication link formed by connecting first earphone equipment and audio playing equipment, an operation clock of the first data communication link is determined based on a local clock of the first earphone equipment, so that audio transmission is performed based on the operation clock of the first data communication link; and in a second data communication link formed by connecting the second earphone device and the first earphone device, determining the running clock of the second data communication link based on the local clock of the first earphone device so as to carry out audio transmission based on the running clock of the second data communication link. In the application, the operation clock of the first data communication link is determined based on the local clock of the first earphone device, and the operation clock of the second data communication link is also determined based on the local clock of the first earphone device, and since the local clock of the first earphone device is not changed, the corresponding relationship between the operation clock of the first data communication link and the operation clock of the second data communication link determined by the operation clock of the first data communication link and the operation clock of the second data communication link is not changed, thereby facilitating the synchronization between the operation clock of the first data communication link and the operation clock of the second data communication link, and further facilitating the audio synchronous transmission between the first earphone device and the second earphone device.
In the audio synchronization method provided by the embodiment of the application, in the process that the wireless headset determines the running clock of the first data communication link based on the local clock of the first headset device, a first deviation value between the local clock of the first headset device and the local clock of the audio playing device can be estimated; determining an operation clock of the first data communication link based on the local clock of the first headset device and the first deviation value;
correspondingly, in the process of determining the running clock of the second data communication link based on the local clock of the first earphone device, the running clock of the first data communication link can be obtained through the first earphone device; using the running clock of the first data communication link as the local clock of the second data communication link; a running clock of the second data communication link is determined based on the local clock of the second data communication link.
In a specific application scenario, in the process that the wireless headset determines the running clock of the second data communication link based on the local clock of the second data communication link, a second offset value between the local clock of the second headset device and the local clock of the second data communication link can be estimated; the operating clock of the second data communication link is determined based on the local clock of the second headset device and the second offset value.
In a specific application scenario, the wireless headset may further calibrate the operation clock of the first data communication link. Specifically, the running time of the first earphone device may be determined; judging whether the operation time length is greater than or equal to a preset time length or not; and if the running time length is greater than or equal to the preset time length, calibrating the running clock of the first data communication link.
In an audio synchronization method provided by the embodiment of the present application, in a process in which a wireless headset determines an operation clock of a first data communication link based on a clock of first headset equipment, a local clock of the first headset equipment may be directly used as the operation clock of the first data communication link;
correspondingly, in the process that the wireless headset determines the running clock of the second data communication link based on the local clock of the first headset device, a third offset value between the local clock of the second headset device and the local clock of the first headset device can be estimated; the operating clock of the second data communication link is determined based on the local clock of the second headset device and the third offset value.
For ease of understanding, the audio synchronization method provided herein will now be described in conjunction with the bluetooth protocol.
The content of the bluetooth protocol may be as shown in fig. 3, wherein, A2DP (Advanced Audio Distribution Profile) is an Audio data transmission service, the architecture model is divided into A2DP Source (Audio Source) and A2DP Sink (Audio Sink), A2DP establishes communication through sdp (service Distribution protocol) service, queries the A2DP Audio decoder type and capability, and sets the Audio decoder type and parameter used in transmission; the SDP is a user-initiated application, and the application layer learns whether it is necessary to open a communication service, such as RFCOMM, and whether there is a special usage scenario, such as a transmission file, through the SDP, and the SDP can also be used to locate which services are available, but the selection, access, and usage services are not in the scope of the SDP, and need to refer to a specific service protocol, that is, the SDP has a main function of search, such as search service class, search service attribute, service browsing, and the like; a2DP uses SBC (sub band code) as audio codec, SBC is a lossy audio codec algorithm commonly used by Bluetooth, the compression rate is generally between 1/6-1/3, and SBC is frame format, the general frame length is 128 sampling points, under 48k sampling, the duration of one frame is 2.667 milliseconds, the compressed frame length is about 120 bytes, A2DP packs a plurality of SBC frames and sends them to improve the transmission efficiency, generally 5 data frames are packed into a data packet of about 600 bytes and send them, so under the condition of not considering missing error packet retransmission, the code rate of audio stream is about 350 kbps.
In the application process of the wireless headset, after receiving the audio data stream of the audio playing device, the master player, that is, the first headset device, needs to synchronize to the slave player, that is, the second headset device, please refer to fig. 4, where fig. 4 is a playing schematic diagram of the master player and the slave player of the wireless headset, in this process, after receiving the A2DP packet, the master player needs to calculate the playing time, separate the audio played by the slave player through the SBC and transmit the audio to the slave player, after receiving the audio packet, the slave player can determine the playing time, and then the master player and the slave player can perform operations such as audio decoding and playing according to the playing time.
Correspondingly, the audio synchronization method provided by the embodiment of the application can include the following steps:
the method comprises the steps that first earphone equipment pre-estimates a first deviation value between a local clock of the first earphone equipment and a local clock of audio playing equipment, and determines an operation clock of a first data communication link based on the local clock of the first earphone equipment and the first deviation value;
the second earphone equipment acquires the running clock of the first data communication link through the first earphone equipment, takes the running clock of the first data communication link as the local clock of the second data communication link, pre-estimates a second deviation value between the local clock of the second earphone equipment and the local clock of the second data communication link, and determines the running clock of the second data communication link based on the local clock of the second earphone equipment and the second deviation value;
after receiving the remote device audio stream, the first earphone device decodes the remote device audio stream through the SBC to separate a left channel and a right channel, stores one channel of the separated left channel and right channel into a self cache, performs SBC encoding on one channel, and transmits the encoded channel to the second earphone device; it should be noted that, the SBC encoding and decoding process is added in this process, which brings extra consumption to the MCU (microprocessor), but the audio encoding and decoding consumption is limited, which is worth reducing half the bandwidth;
the first earphone device calculates a playing time stamp based on an operation clock of the first data communication link and an operation clock of the second data communication link, wherein the playing time stamp is calculated in a mode of Tplay ═ T current + Tdelay, wherein Tcurrent refers to a reference clock count value of SBC unpacking, namely the corresponding operation clock of the data communication link, and Tdelay refers to an estimated delay value;
the first earphone equipment packs audio data, puts a timestamp in a frame header of each packet data stream and transmits the timestamp to the second earphone equipment;
after receiving the audio data packet sent by the first earphone device, the second earphone device analyzes the timestamp and plays the audio data packet by taking the timestamp as a time reference point; it should be noted that, in the present application, an audio playing buffer pool may be added to buffer an audio data packet to be played, and then the first earphone device and the second earphone device take the audio data packet from the audio playing buffer pool to play;
the first headset device calibrates a running clock of the first data communication link.
Referring to fig. 5, fig. 5 is a schematic structural diagram of an audio synchronization system according to an embodiment of the present disclosure.
The audio synchronization system provided by the embodiment of the application is applied to a wireless earphone and can comprise:
a first determining module 101, configured to determine, in a first data communication link formed by connecting a first headset device and an audio playing device, an operation clock of the first data communication link based on a local clock of the first headset device, so as to perform audio transmission based on the operation clock of the first data communication link;
a second determining module 102, configured to determine, in a second data communication link formed by connecting the second headset device and the first headset device, a running clock of the second data communication link based on a local clock of the first headset device, so as to perform audio transmission based on the running clock of the second data communication link.
An audio synchronization system provided in an embodiment of the present application is applied to a wireless headset, and the first determining module may include:
the first estimation submodule is used for estimating a first deviation value between a local clock of the first earphone device and a local clock of the audio playing device;
the first determining submodule is used for determining the operation clock of the first data communication link based on the local clock of the first earphone device and the first deviation value;
accordingly, the second determining module may include:
the first acquisition submodule is used for acquiring the running clock of the first data communication link through the first earphone equipment;
the first setting submodule is used for taking the running clock of the first data communication link as the local clock of the second data communication link;
a second determining submodule for determining a running clock of the second data communication link based on the local clock of the second data communication link.
The audio synchronization system provided in the embodiment of the present application is applied to a wireless headset, and the second determining sub-module may include:
a first pre-estimating unit, configured to pre-estimate a second offset value between a local clock of the second headset device and a local clock of the second data communication link;
a first determining unit for determining the running clock of the second data communication link based on the local clock of the second headset device and the second offset value.
The audio synchronization system provided by the embodiment of the application is applied to a wireless headset, and can further include:
the first calibration module is used for calibrating the operation clock of the first data communication link.
The audio synchronization system provided by the embodiment of the application is applied to a wireless headset, and the first calibration module may include:
the second determining unit is used for determining the running time of the first earphone device;
the first judgment unit is used for judging whether the running time length is greater than or equal to a preset time length; and if the running time length is greater than or equal to the preset time length, calibrating the running clock of the first data communication link.
An audio synchronization system provided in an embodiment of the present application is applied to a wireless headset, and the first determining module may include:
a third determining unit configured to directly use a local clock of the first headphone apparatus as an operation clock of the first data communication link;
the second determining module may include:
the second pre-estimating unit is used for pre-estimating a third offset value between the local clock of the second earphone device and the local clock of the first earphone device;
a fourth determining unit, configured to determine the running clock of the second data communication link based on the local clock of the second headset device and the third offset value.
The application also provides an audio synchronization device and a computer readable storage medium, which both have the corresponding effects of the audio synchronization method provided by the embodiment of the application. Referring to fig. 6, fig. 6 is a schematic structural diagram of an audio synchronization apparatus according to an embodiment of the present disclosure.
The audio synchronization device provided by the embodiment of the application includes a memory 201 and a processor 202, wherein a computer program is stored in the memory 201, and the processor 202 implements the steps of the audio synchronization method provided by the above embodiment when executing the computer program.
Referring to fig. 7, another audio synchronization apparatus provided in the embodiment of the present application may further include: an input port 203 connected to the processor 202, for transmitting externally input commands to the processor 202; a display unit 204 connected to the processor 202, for displaying the processing result of the processor 202 to the outside; and the communication module 205 is connected with the processor 202 and is used for realizing the communication between the audio synchronization device and the outside world. The display unit 204 may be a display panel, a laser scanning display, or the like; the communication method adopted by the communication module 205 includes, but is not limited to, mobile high definition link technology (HML), Universal Serial Bus (USB), High Definition Multimedia Interface (HDMI), and wireless connection: wireless fidelity technology (WiFi), bluetooth communication technology, bluetooth low energy communication technology, ieee802.11s based communication technology.
A computer-readable storage medium is provided, in which a computer program is stored, and the computer program is executed by a processor to implement the steps of the audio synchronization method provided in the above embodiments
The computer-readable storage media to which this application relates include Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage media known in the art.
For a description of relevant parts in the audio synchronization method, system, device, and computer-readable storage medium provided in the embodiments of the present application, please refer to the detailed description of the corresponding parts in the wireless headset provided in the embodiments of the present application, which is not described herein again. In addition, parts of the above technical solutions provided in the embodiments of the present application, which are consistent with the implementation principles of corresponding technical solutions in the prior art, are not described in detail so as to avoid redundant description.
It is further noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. An audio synchronization method applied to a wireless headset, comprising:
in a first data communication link formed by connecting a first earphone device and an audio playing device, determining an operation clock of the first data communication link based on a local clock of the first earphone device, so as to perform audio transmission based on the operation clock of the first data communication link;
in a second data communication link formed by connecting a second earphone device with the first earphone device, determining a running clock of the second data communication link based on a local clock of the first earphone device, and carrying out audio transmission based on the running clock of the second data communication link.
2. The method of claim 1, wherein determining the operational clock of the first data communication link based on a local clock of the first headset device comprises:
estimating a first deviation value between the local clock of the first earphone device and the local clock of the audio playing device;
determining an operational clock of the first data communication link based on a local clock of the first headset device and the first deviation value;
the determining a running clock of the second data communication link based on the local clock of the first headset device comprises:
acquiring, by the first headset device, a running clock of the first data communication link;
using the running clock of the first data communication link as the local clock of the second data communication link;
determining a running clock of the second data communication link based on a local clock of the second data communication link.
3. The method of claim 2, wherein determining the running clock of the second data communication link based on the local clock of the second data communication link comprises:
estimating a second offset value between the local clock of the second headset device and the local clock of the second data communication link;
determining a running clock of the second data communication link based on the local clock of the second headset device and the second offset value.
4. The method of any of claims 2 to 3, further comprising:
calibrating a running clock of the first data communication link.
5. The method of claim 4, wherein calibrating the operational clock of the first data communication link comprises:
determining the running time of the first earphone device;
judging whether the operation time length is greater than or equal to a preset time length or not;
and if the running time length is greater than or equal to the preset time length, calibrating the running clock of the first data communication link.
6. The method of claim 1, wherein determining the operational clock of the first data communication link based on the clock of the first headset device comprises:
directly using a local clock of the first headset device as a running clock of the first data communication link;
the determining a running clock of the second data communication link based on the local clock of the first headset device comprises:
estimating a third offset value between the local clock of the second earphone device and the local clock of the first earphone device;
determining a running clock of the second data communication link based on the local clock of the second headset device and the third offset value.
7. An audio synchronization system applied to a wireless headset, comprising:
the audio playing device comprises a first determining module, a second determining module and a control module, wherein the first determining module is used for determining an operation clock of a first data communication link based on a local clock of a first earphone device in a first data communication link formed by connecting the first earphone device and the audio playing device so as to perform audio transmission based on the operation clock of the first data communication link;
the second determining module is used for determining the running clock of the second data communication link based on the local clock of the first earphone device in a second data communication link formed by connecting the second earphone device with the first earphone device, so as to perform audio transmission based on the running clock of the second data communication link.
8. A wireless headset comprising a first headset device and a second headset device, characterized in that:
the first headphone device is to: in a first data communication link formed by connecting with an audio playing device, determining an operation clock of the first data communication link based on a local clock of the first earphone device, so as to perform audio transmission based on the operation clock of the first data communication link;
the second headphone device is to: in a second data communication link formed in connection with the first headset device, determining a running clock of the second data communication link based on a local clock of the first headset device for audio transmission based on the running clock of the second data communication link.
9. An audio synchronization device applied to a wireless headset, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the audio synchronization method as claimed in any one of claims 1 to 6 when executing the computer program.
10. A computer-readable storage medium for a wireless headset, in which a computer program is stored which, when being executed by a processor, carries out the steps of the audio synchronization method according to any one of claims 1 to 6.
CN202110171774.0A 2021-02-08 2021-02-08 Wireless earphone, audio synchronization method, system, equipment and computer medium Active CN112954527B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110171774.0A CN112954527B (en) 2021-02-08 2021-02-08 Wireless earphone, audio synchronization method, system, equipment and computer medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110171774.0A CN112954527B (en) 2021-02-08 2021-02-08 Wireless earphone, audio synchronization method, system, equipment and computer medium

Publications (2)

Publication Number Publication Date
CN112954527A true CN112954527A (en) 2021-06-11
CN112954527B CN112954527B (en) 2023-01-24

Family

ID=76244132

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110171774.0A Active CN112954527B (en) 2021-02-08 2021-02-08 Wireless earphone, audio synchronization method, system, equipment and computer medium

Country Status (1)

Country Link
CN (1) CN112954527B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107333339A (en) * 2017-05-16 2017-11-07 恒玄科技(上海)有限公司 Audio data transmission method and double wireless headsets between a kind of pair of wireless headset
CN110519742A (en) * 2019-09-16 2019-11-29 安徽华米信息科技有限公司 A kind of audio sync playback method, device and TWS bluetooth headset
US20200137699A1 (en) * 2018-10-26 2020-04-30 TAP Sound System SAS Synchronization method for synchronizing clocks of a bluetooth device
CN111698672A (en) * 2020-05-26 2020-09-22 展讯通信(上海)有限公司 Audio synchronization method of wireless earphone and wireless earphone
US10809760B1 (en) * 2018-10-29 2020-10-20 Facebook, Inc. Headset clock synchronization
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
CN112188344A (en) * 2020-09-30 2021-01-05 安凯(广州)微电子技术有限公司 TWS earphone and control method thereof
CN112235677A (en) * 2020-10-09 2021-01-15 歌尔科技有限公司 Master-slave switching method of wireless earphone, wireless earphone and readable storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107333339A (en) * 2017-05-16 2017-11-07 恒玄科技(上海)有限公司 Audio data transmission method and double wireless headsets between a kind of pair of wireless headset
US20200137699A1 (en) * 2018-10-26 2020-04-30 TAP Sound System SAS Synchronization method for synchronizing clocks of a bluetooth device
US10809760B1 (en) * 2018-10-29 2020-10-20 Facebook, Inc. Headset clock synchronization
CN110519742A (en) * 2019-09-16 2019-11-29 安徽华米信息科技有限公司 A kind of audio sync playback method, device and TWS bluetooth 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
CN112188344A (en) * 2020-09-30 2021-01-05 安凯(广州)微电子技术有限公司 TWS earphone and control method thereof
CN112235677A (en) * 2020-10-09 2021-01-15 歌尔科技有限公司 Master-slave switching method of wireless earphone, wireless earphone and readable storage medium
CN112039623A (en) * 2020-11-05 2020-12-04 深圳市汇顶科技股份有限公司 Audio synchronous playing method, device, equipment and storage medium

Also Published As

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

Similar Documents

Publication Publication Date Title
US10477474B2 (en) Arbitrating a low power mode for multiple applications running on a device
US8031685B2 (en) Method and system for dynamically changing audio stream bit rate based on condition of a Bluetooth connection
CN111294783B (en) Audio data transmission method, device, chip and electronic equipment
US20090176452A1 (en) Mechanism for improved interoperability when content protection is used with an audio stream
CN109819303B (en) Data output method and related equipment
CN103905880A (en) Playing method of audio data and video data, smart television set and mobile equipment
CN107733745A (en) A kind of synchronous music player method and play system based on WIFI agreements
CN107438990B (en) Method and apparatus for delivering timing information
US11568882B2 (en) Inter-channel phase difference parameter encoding method and apparatus
WO2021175297A1 (en) Distributed data transmission method, apparatus and system
CN107040848A (en) Synchronization parameter transmission method, device and the equipment of AVDTP agreements
CN114982369A (en) Audio data transmission method, device, chip and electronic equipment
JP2020120366A (en) Audio device control method and control circuit
CN113473319A (en) Bluetooth multi-channel audio playing method, device and system
CN112954527B (en) Wireless earphone, audio synchronization method, system, equipment and computer medium
EP4035030A1 (en) Indirect sourced cognitive loudspeaker system
CN115499814A (en) Bluetooth equipment system
JP2015019146A (en) Wireless microphone system
CN113613221A (en) TWS master device, TWS slave device, audio device and system
TWI798890B (en) Bluetooth voice communication system and related computer program product for generating stereo voice effect
CN117998304A (en) Wireless audio data transmission method and related equipment
US20220417637A1 (en) Method and system for wireless transmission of audio data
WO2022134734A1 (en) Wireless communication method and system
CN115967929A (en) Communication method, bluetooth headset and Bluetooth communication system
CN117715244A (en) Wireless audio communication method, device and system

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