CN111698672B - Audio synchronization method of wireless earphone and wireless earphone - Google Patents

Audio synchronization method of wireless earphone and wireless earphone Download PDF

Info

Publication number
CN111698672B
CN111698672B CN202010458774.4A CN202010458774A CN111698672B CN 111698672 B CN111698672 B CN 111698672B CN 202010458774 A CN202010458774 A CN 202010458774A CN 111698672 B CN111698672 B CN 111698672B
Authority
CN
China
Prior art keywords
earphone
audio
link
synchronous
terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010458774.4A
Other languages
Chinese (zh)
Other versions
CN111698672A (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 CN202010458774.4A priority Critical patent/CN111698672B/en
Publication of CN111698672A publication Critical patent/CN111698672A/en
Application granted granted Critical
Publication of CN111698672B publication Critical patent/CN111698672B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W56/00Synchronisation arrangements
    • H04W56/0005Synchronisation arrangements synchronizing of arrival of multiple uplinks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/15Setup of multiple wireless link connections
    • 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

Abstract

The embodiment of the application provides an audio synchronization method of a wireless earphone and the wireless earphone, wherein the method is applied to the wireless earphone, and the wireless earphone comprises the following steps: earphone A and earphone B; the method comprises the following steps: headset a establishes a first link with an audio source device, the first link for receiving data of the audio source device; the earphone A and the earphone B establish a second link, and the second link is used for transmitting audio synchronization information; and the earphone A or the earphone B is a dynamic synchronous terminal according to the parameters of the two earphones, and the synchronous terminal is used for sending audio synchronous information through the second link. The technical scheme provided by the application has the advantage of high user experience.

Description

Audio synchronization method of wireless earphone and wireless earphone
Technical Field
The application relates to the technical field of terminal accessories, in particular to an audio synchronization method of a wireless earphone and the wireless earphone.
Background
With the development of mobile communication technology, smart phones become the most common devices for users, and wireless headsets occupy their important positions as important accessories of smart phones.
The wireless earphone uses the bluetooth earphone as an example, and the stereo broadcast is realized through receiving the left and right channel data of smart mobile phone respectively to left and right earphone, but because controlling the earphone and belonging to two independent chip subsystems, there is the deviation in crystal clock itself between them to lead to controlling the earphone and hardly realizing the accurate synchronization of audio data, influenced user's experience degree.
Disclosure of Invention
The embodiment of the application discloses an audio synchronization method of a wireless earphone, which can realize the accurate synchronization of audio data of a left earphone and a right earphone and improve the user experience.
The first aspect of the embodiment of the present application discloses an audio synchronization method for a wireless headset, where the method is applied to the wireless headset, and the wireless headset includes: earphone A and earphone B; the method comprises the following steps:
headset a establishes a first link with an audio source device, the first link for receiving data of the audio source device;
the earphone A and the earphone B establish a second link, and the second link is used for transmitting audio synchronization information;
and the earphone A or the earphone B is a dynamic synchronization terminal according to the parameters of the two earphones, and the synchronization terminal is used for sending audio synchronization information through the second link.
In a second aspect, a wireless headset is provided, the wireless headset comprising: earphone A and earphone B;
the earphone A is used for establishing a first link with an audio source device, and the first link is used for receiving data of the audio source device;
the earphone A is also used for establishing a second link with the earphone B, and the second link is used for transmitting audio synchronization information;
and the earphone A or the earphone B is a dynamic synchronous terminal according to the parameters of the two earphones, and the synchronous terminal is used for sending audio synchronous information through the second link.
In a third aspect, there is provided a wireless headset comprising a processor, a memory, a communication interface, and one or more programs stored in the memory and configured for execution by the processor, the programs comprising instructions for performing the steps of the method of the first aspect.
A fourth aspect of embodiments of the present application discloses a computer-readable storage medium, which is characterized by storing a computer program for electronic data exchange, wherein the computer program causes a computer to execute the method of the first aspect.
A fifth aspect of embodiments of the present application discloses a computer program product, wherein the computer program product comprises a non-transitory computer-readable storage medium storing a computer program, the computer program being operable to cause a computer to perform some or all of the steps as described in the first aspect of embodiments of the present application. The computer program product may be a software installation package.
By implementing the embodiment of the application, the earphone A and the audio source device establish a first link, and the first link is used for receiving data of the audio source device; the earphone A and the earphone B establish a second link, and the second link is used for transmitting audio synchronization information; the earphone A or the earphone B is a dynamic synchronous terminal according to the parameters of the two earphones, and the synchronous terminal is used for sending audio synchronous information through the second link, so that the earphone A and the earphone B can dynamically select the synchronous terminal according to the parameters, the problem of unbalanced power consumption of the two earphones can be solved, in addition, the synchronous accuracy of the two earphones can be improved by establishing a special synchronous link (the second link), and the user experience degree is improved.
Drawings
The drawings used in the embodiments of the present application are described below.
FIG. 1 is a schematic structural diagram of a usage framework provided by an embodiment of the present application;
fig. 1a is a schematic structural diagram of an earphone a according to an embodiment of the present application;
fig. 1b is a schematic structural diagram of a terminal according to an embodiment of the present application;
FIG. 2 is a flow chart of an audio synchronization method for a wireless headset;
fig. 3 is a flowchart illustrating an audio synchronization method for a wireless headset according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a wireless headset provided in an embodiment of the present application;
fig. 5 is a schematic diagram of another hardware structure of a wireless headset according to an embodiment of the present disclosure.
Detailed Description
The embodiments of the present application will be described below with reference to the drawings.
The term "and/or" in this application is only one kind of association relationship describing the associated object, and means that there may be three kinds of relationships, for example, a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" in this document indicates that the former and latter related objects are in an "or" relationship.
The "plurality" appearing in the embodiments of the present application means two or more. The descriptions of the first, second, etc. appearing in the embodiments of the present application are only for illustrating and differentiating the objects, and do not represent the order or the particular limitation of the number of the devices in the embodiments of the present application, and do not constitute any limitation to the embodiments of the present application. The term "connect" in the embodiments of the present application refers to various connection manners, such as direct connection or indirect connection, to implement communication between devices, which is not limited in this embodiment of the present application.
A terminal in the embodiments of the present application may refer to various forms of UE, access terminal, subscriber unit, subscriber station, mobile station, MS (mobile station), remote station, remote terminal, mobile device, user terminal, terminal device (terminal equipment), wireless communication device, user agent, or user equipment. The terminal device may also be a cellular phone, a cordless phone, an SIP (session initiation protocol) phone, a WLL (wireless local loop) station, a PDA (personal digital assistant) with a wireless communication function, a handheld device with a wireless communication function, a computing device or other processing device connected to a wireless modem, a vehicle-mounted device, a wearable device, a terminal device in a future 5G network or a terminal device in a future evolved PLMN (public land mobile network, chinese), and the like, which are not limited in this embodiment.
Referring to fig. 1, fig. 1 is a schematic diagram of a network architecture disclosed in an embodiment of the present application, where the network architecture may include an electronic device and a wireless headset, where the wireless headset may be communicatively connected to the electronic device through a wireless network (e.g., bluetooth, infrared, or WiFi). It should be noted that the wireless headset may include one or more headsets, and the embodiments of the present application are not limited thereto. In a specific implementation, the wireless headset may send a pairing request to the electronic device, and the electronic device may receive the pairing request sent by the wearable device, where the wearable device includes at least one independent component, and in response to the pairing request, detect a number of components included in the wearable device, and display information of the wearable device, such as an electric quantity, a pairing number, and the like, according to the number of components.
As shown in fig. 1a, fig. 1a is a structural diagram of a wireless headset according to an embodiment of the present application, and as shown in fig. 1a, two headsets may be completely separated from each other. As shown in fig. 1a, the wireless headset includes: two earphones, each earphone comprising: the earphone comprises an earphone housing 121 and a loudspeaker arranged on the surface of the earphone housing 121, and the earphone further comprises: the wireless transceiver 122, a processing chip (not shown), and a battery (not shown), wherein the processing chip is electrically connected to the touch pad, the wireless transceiver, and the speaker, specifically, the electrical connection may be through a bus, but in practical applications, the electrical connection may also be through other connection methods.
Referring to fig. 1b, fig. 1b is a schematic structural diagram of an electronic device 100 disclosed in the embodiment of the present application, where the electronic device 100 includes a storage and processing circuit 110, and a communication circuit 120 and an audio component 140 connected to the storage and processing circuit 110, and a display component 130 or a touch component may also be disposed in some specific electronic devices 100.
The electronic device 100 may include control circuitry that may include storage and processing circuitry 110. The storage and processing circuitry 110 may be a memory, such as a hard drive memory, a non-volatile memory (e.g., flash memory or other electronically programmable read-only memory used to form a solid state drive, etc.), a volatile memory (e.g., static or dynamic random access memory, etc.), etc., and the embodiments of the present application are not limited thereto. Processing circuitry in storage and processing circuitry 110 may be used to control the operation of electronic device 100. The processing circuitry may be implemented based on one or more microprocessors, microcontrollers, digital signal processors, baseband processors, power management units, audio codec chips, application specific integrated circuits, display driver integrated circuits, and the like.
The storage and processing circuitry 110 may be used to run software in the electronic device 100, such as Voice Over Internet Protocol (VOIP) telephone call applications, simultaneous interpretation functions, media playing applications, operating system functions, and so forth. The software may be used to perform control operations such as camera-based image capture, ambient light measurement based on an ambient light sensor, proximity sensor measurement based on a proximity sensor, information display functions implemented based on status indicators such as status indicator lights of light emitting diodes, touch event detection based on a touch sensor, operations associated with performing wireless communication functions, operations associated with collecting and generating audio signals, control operations associated with collecting and processing button press event data, and other functions in the electronic device 100, without limitation.
The electronic device 100 may also include input-output circuitry 150. The input-output circuit 150 may be used to enable the electronic device 100 to input and output data, i.e., to allow the electronic device 100 to receive data from an external device and also to allow the electronic device 100 to output data from the electronic device 100 to the external device. The input-output circuit 150 may further include a sensor 170. The sensors 170 may include ambient light sensors, optical and capacitive based proximity sensors, touch sensors (e.g., optical based touch sensors and/or capacitive touch sensors, where the touch sensors may be part of a touch display screen or used independently as a touch sensor structure), acceleration sensors, and other sensors, among others.
Input-output circuitry 150 may also include a touch sensor array (i.e., display 130 may be a touch display screen). The touch sensor may be a capacitive touch sensor formed by a transparent touch sensor electrode (e.g., an Indium Tin Oxide (ITO) electrode) array, or may be a touch sensor formed using other touch technologies, such as acoustic wave touch, pressure sensitive touch, resistive touch, optical touch, and the like, and the embodiments of the present application are not limited thereto.
The electronic device 100 may also include an audio component 140. The audio component 140 may be used to provide audio input and output functionality for the electronic device 100. The audio components 140 in the electronic device 100 may include a speaker, a microphone, a buzzer, a tone generator, and other components for generating and detecting sound.
The communication circuit 120 may be used to provide the electronic device 100 with the capability to communicate with external devices. The communication circuit 120 may include analog and digital input-output interface circuits, and wireless communication circuits based on radio frequency signals and/or optical signals. The wireless communication circuitry in communication circuitry 120 may include radio-frequency transceiver circuitry, power amplifier circuitry, low noise amplifiers, switches, filters, and antennas. For example, the wireless Communication circuitry in the Communication circuitry 120 may include circuitry to support Near Field Communication (NFC) by transmitting and receiving Near Field coupled electromagnetic signals. For example, the communication circuit 120 may include a near field communication antenna and a near field communication transceiver. The communications circuitry 120 may also include a cellular telephone transceiver and antenna, a wireless local area network transceiver circuitry and antenna, and so forth.
The electronic device 100 may further include a battery, power management circuitry, and other input-output units 160. The input-output unit 160 may include buttons, joysticks, click wheels, scroll wheels, touch pads, keypads, keyboards, cameras, light emitting diodes or other status indicators, and the like.
A user may input commands through input-output circuitry 150 to control the operation of electronic device 100, and may use output data of input-output circuitry 150 to enable receipt of status information and other outputs from electronic device 100.
In this application, the wireless headset may also be referred to as a wearable device, a bluetooth headset, a separate earplug, or the like, and the application is not limited to the specific form of the wireless headset, and only the wireless headset needs to wirelessly communicate audio data with the electronic device.
Referring to fig. 2, fig. 2 provides an audio synchronization method of a wireless headset, which is implemented under the network architecture shown in fig. 1, and is applied to the wireless headset shown in fig. 1a, the wireless headset comprising: an earphone A and an earphone B; as shown in fig. 2, the method may include the steps of:
step S201, a first link is established between the earphone A and an audio source device, and the first link is used for receiving data of the audio source device;
in an alternative, the audio source device may be a smart phone as shown in fig. 1b, but in practical applications, it may also be other audio source devices, for example: tablet computers, smart televisions, and the like.
The first link may be a wireless link, which includes but is not limited to: bluetooth links, wifi links, etc.
Step S202, establishing a second link between the earphone A and the earphone B, wherein the second link is used for transmitting audio synchronization information;
the second link may be a wireless link including, but not limited to: bluetooth link, wifi link, etc.
And S203, dynamically synchronizing the terminal according to the parameters of the two earphones by the earphone A or the earphone B, wherein the synchronizing terminal is used for sending the audio synchronizing information through the second link.
In an alternative, the parameters of the two earphones include, but are not limited to: the remaining power of the two headsets, the received signal quality of the two headsets, etc. Of course, in practical application, other parameters of the two earphones can be used, and the application does not limit the concrete expression of the parameters of the two earphones.
It should be noted that the synchronization terminal is not identical to the master earphone of the wireless earphone, and the synchronization terminal of the present application is only operated as clock synchronization and does not relate to the corresponding function of the master earphone, that is, in practical applications, the synchronization terminal may be the master earphone or the slave earphone.
According to the technical scheme provided by the application, a first link is established between an earphone A and an audio source device, and the first link is used for receiving data of the audio source device; the earphone A and the earphone B establish a second link, and the second link is used for transmitting audio synchronization information; the earphone A or the earphone B is a dynamic synchronous terminal according to the parameters of the two earphones, and the synchronous terminal is used for sending audio synchronous information through the second link, so that the earphone A and the earphone B can dynamically select the synchronous terminal according to the parameters, the problem of unbalanced power consumption of the two earphones can be solved, in addition, the synchronous accuracy of the two earphones can be improved by establishing a special synchronous link (the second link), and the user experience degree is improved.
In an alternative arrangement, the first and second electrodes may be,
the audio synchronization information includes: the network clock of the second link is adopted as the reference clock CLK for audio synchronous playing AUD_REF
The CLK is used at the starting time point of the earphone A and the earphone B for playing the audio data AUD_REF Is a reference point of time;
and the earphone A and the earphone B send a plurality of audio synchronous frames in an approximate mode before the starting time point, and the audio synchronous frames are used for realizing the time synchronization of the earphone A and the earphone B.
The method for approximatively sending a plurality of audio synchronization frames by the headset a and the headset B before the starting time point may specifically include:
and the synchronous terminal sends a plurality of audio synchronous frames to the asynchronous terminal before the starting time point, wherein a first time difference between a current synchronous frame and a previous synchronous frame in the plurality of audio synchronous frames is larger than a second time difference between the current synchronous frame and a next synchronous frame. That is, the closer to the starting time point, the higher the frequency of the audio synchronization frame transmitted by the synchronization terminal, which enables the time of the headset a and the headset B at the starting time point to be more synchronized.
In addition, the technical scheme adopts a mode of sending a plurality of audio synchronous frames in an approaching mode, so that the audio synchronization can be carried out for a plurality of times before the starting time point, and the accuracy of the audio synchronization is improved.
In an optional aspect, the method further includes:
the method comprises the steps that an earphone B obtains information of a first link of the earphone A, and the earphone B determines a time point when the earphone A receives audio data through the information of the first link;
headphone B starts receiving audio source data of the audio source device at the point in time.
In the following optional scheme, dynamically determining that the headset a is a synchronous terminal and the headset B is an asynchronous terminal, in an optional scheme, the method further includes:
when the time for playing the audio data by the earphone A exceeds a first time threshold, the earphone A sends an empty data packet to the earphone B through the second link, and the empty data packet is used for realizing synchronization of the reference time points of the earphone A and the earphone B.
According to the technical scheme, after the audio data is played for a time threshold, time synchronization is achieved through the null data packet, and the problem that the time of the earphone A and the time of the earphone B are not synchronous when the audio data is played is solved.
In an optional aspect, the method further includes:
after the earphone A starts to play the audio data, sending the playing information of the audio data of the current frame of the earphone A to the earphone B at intervals of N audio frames;
the playing information of the audio data of the current frame includes, but is not limited to: SEQ including audio frames AN And the T of the audio reference clock BN )。
And the earphone B obtains a first time deviation of the earphone A and the earphone B according to the time difference of the network, the playing information of the audio data of the current frame and the sampling rate, and the earphone B adjusts the frequency division coefficient of a phase-locked loop (PLL) according to the first time deviation.
According to the technical scheme, after the audio data are played, time synchronization is achieved through the empty data packet, and the problem that the time of the earphone A and the time of the earphone B are not synchronous when the audio data are played is solved.
The audio synchronous playing of the optional scheme comprises two key processes of playing initial point synchronization and playing process synchronization, and aiming at the playing initial point synchronization, a certain fixed time point is set as a synchronous playing time point of two earphones, and then before the synchronous playing time point is reached, the accurate synchronization of the playing time point is realized by adopting audio reference frame synchronization and a high-precision delay counter.
The fixed timing of the above-mentioned synchronous terminal is not changed.
In an optional aspect, the method further includes:
the earphone A sends the playing parameter information of the Mth frame audio data of the earphone B to the earphone B every M frames (including but not limited to SEQ of the Mth frame) MA And T MA );
And the earphone B calculates to obtain a second time deviation between the earphone A and the earphone B according to the playing parameter information of the earphone A and the playing parameter information of the earphone B, and the earphone B adjusts the audio PLL according to the second time deviation.
According to the alternative scheme, after the audio data starts to be played, the two earphones are unsynchronized due to individual difference or temperature influence, the calibration and synchronization of the audio PLL are completed through first audio synchronization, the synchronization precision of the two earphones is adjusted to within 1us, and after the first synchronization is completed, the synchronization precision of the two earphones is kept within 1us through second synchronization by the left earphone and the right earphone. Therefore, the technical scheme of the application has the advantage of accurate time synchronization.
Example one
An embodiment of the present application provides an audio synchronization method for a wireless headset, where the method is implemented under a network architecture as shown in fig. 1, and the method is applied to the wireless headset as shown in fig. 1a, where the wireless headset includes: earphone A and earphone B; as shown in fig. 3, the method may specifically include:
in a particular embodiment implementation, headset a and the audio source device establish an ACL link or SCO link (first link) through which audio source device A2DP data or voice data may be sent to headset a. Headset a and headset B establish an ACL link (second link) for audio information synchronization, headset a sends the link information of the audio source device to headset B, which receives the data of the audio source device at the same time that headset a receives audio. The earphone A and the earphone B determine that the earphone A or the earphone B sets an Audio GO (synchronous terminal) according to the electric quantity information and the received signal quality, in the embodiment, the earphone A is used as the Audio GO, after the earphone A receives a play start command of a user, the earphone A sends the command message to the earphone B, the earphone A and the earphone B set a certain future time as a play start time point of first frame Audio data, and the time point adopts a network clock of a link of the earphone A and the earphone B as a reference clock. Before the playing time point comes, the earphone A and the earphone B receive the coded data sent by the audio source, the earphone A and the earphone B decode and buffer the decoded data, and in the interval, the earphone A and the earphone B update the Bluetooth synchronous clocks of the earphone A and the earphone B by sending the audio synchronous frame and then update the synchronous timer. By means of the approach, the synchronization precision of the starting time can be improved to the maximum extent. After the playing starts, because the earphone a and the earphone B are independent chip systems, the AUDIO clock systems of the earphone a and the earphone B are different, and the two clock deviations are large due to the influence of temperature, the AUDIO PLL of the earphone a and the earphone B needs to be calibrated through a first synchronization operation, a certain AUDIO frame number is continuously counted, then the playing time deviation is calculated, the AUDIO PLL is adjusted according to the time deviation, the process is repeated for a plurality of times, the step size of each adjustment is changed from large to small, and after the first synchronization operation, the synchronization accuracy of the earphone a and the earphone B can be controlled within 1 us. After the first synchronization operation is completed, the earphone A sends the played AUDIO frame number and the time information to the earphone B in a fixed period, the earphone B calculates the time difference according to the frame number and the time information of the two earphones, and then AUDIO PLL fine adjustment is carried out, so that the synchronization accuracy of the earphone A and the earphone B is kept within 1 us.
Referring to fig. 4, fig. 4 provides a wireless headset that may include: a headphone a401 and a headphone B402,
a headset a for establishing a first link with an audio source device, the first link for receiving data of the audio source device;
the earphone A is also used for establishing a second link with the earphone B, and the second link is used for transmitting audio synchronization information;
and the earphone A or the earphone B is a dynamic synchronous terminal according to the parameters of the two earphones, and the synchronous terminal is used for sending audio synchronous information through the second link.
In an alternative, the parameters of the two earphones include but are not limited to: the remaining power of the two headsets, the received signal quality of the two headsets, etc. Of course, in practical application, other parameters of the two earphones can be used, and the application does not limit the concrete expression of the parameters of the two earphones.
It should be noted that the synchronization terminal is not identical to the master earphone of the wireless earphone, and the synchronization terminal of the present application is only operated as clock synchronization and does not relate to the corresponding function of the master earphone, that is, in practical applications, the synchronization terminal may be the master earphone or the slave earphone.
According to the technical scheme provided by the application, a first link is established between an earphone A and an audio source device, and the first link is used for receiving data of the audio source device; the earphone A and the earphone B establish a second link, and the second link is used for transmitting audio synchronization information; the earphone A or the earphone B is a dynamic synchronous terminal according to the parameters of the two earphones, and the synchronous terminal is used for sending audio synchronous information through the second link, so that the earphone A and the earphone B can dynamically select the synchronous terminal according to the parameters, the problem of unbalanced power consumption of the two earphones can be solved, in addition, the synchronous accuracy of the two earphones can be improved by establishing a special synchronous link (the second link), and the user experience degree is improved.
In an alternative arrangement, the first and second electrodes may be,
the audio synchronization information includes: the network clock of the second link is adopted as the reference clock CLK for audio synchronous playing AUD_REF
The CLK is used at the starting time point of the playing of the audio data by the earphone A and the earphone B AUD_REF Is a reference point of time;
and the synchronous terminal is used for sending a plurality of audio synchronous frames in an approaching mode before the starting time point, and the audio synchronous frames are used for realizing the time synchronization of the earphone A and the earphone B.
In an alternative arrangement, the first and second parts may be formed from a single piece,
and the synchronous terminal is used for sending a null data packet to the asynchronous terminal through the second link when the time for playing the audio data exceeds a first time threshold, wherein the null data packet is used for realizing the synchronization of the reference time points of the earphone A and the earphone B.
In an alternative arrangement, the first and second parts may be formed from a single piece,
the synchronous terminal is used for sending the playing information of the audio data of the current frame of the synchronous terminal to the asynchronous terminal every N audio frames after the audio data is played;
and the asynchronous terminal obtains the first time deviation of the earphone A and the earphone B according to the time difference of the network, the playing information of the audio data of the current frame and the sampling rate, and adjusts the frequency division coefficient of the PLL according to the first time deviation.
The fixed timing of the synchronization terminal is unchanged.
In an alternative arrangement, the first and second electrodes may be,
the synchronous terminal is used for sending the playing parameter information of the Mth frame audio data of the asynchronous terminal to the asynchronous terminal every M frames;
and the asynchronous terminal is used for calculating to obtain a second time deviation of the earphone A and the earphone B through the playing parameter information of the synchronous terminal and the playing parameter information of the asynchronous terminal, and the asynchronous terminal adjusts the audio PLL according to the second time deviation.
The specific processing manner of the synchronous terminal shown in fig. 4 may refer to the description of the embodiment shown in fig. 2, which is not described herein again.
Referring to fig. 5, fig. 5 is a wireless headset 50 provided in an embodiment of the present application, where the wireless headset (headset a and headset B)50 includes a processor 501, a memory 502, a battery 504, and a communication interface 503, and the processor 501, the memory 502, and the communication interface 503 are connected to each other through a bus 504.
The memory 502 includes, but is not limited to, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), or a portable read-only memory (CD-ROM), and the memory 702 is used for related computer programs and data. The communication interface 503 is used to receive and transmit data.
The processor 501 may be one or more Central Processing Units (CPUs), and in the case that the processor 501 is one CPU, the CPU may be a single-core CPU or a multi-core CPU.
The processor 501 in the wireless headset 50 is configured to read the computer program code stored in the memory 502 and perform the following operations:
establishing a first link with an audio source device, the first link for receiving data of the audio source device;
establishing a second link, wherein the second link is used for transmitting audio synchronization information;
and the synchronous terminal is used for sending audio synchronous information through the second link.
An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, and when the computer program runs on a network device, the method flows shown in fig. 2 and fig. 3 are implemented.
The embodiments of the present application also provide a computer program product, where when the computer program product runs on a terminal, the method flows shown in fig. 2 and fig. 3 are implemented.
The above description has introduced the solution of the embodiment of the present application mainly from the perspective of the method-side implementation process. It will be appreciated that the electronic device, in order to carry out the functions described above, may comprise corresponding hardware structures and/or software templates for performing the respective functions. Those of skill in the art will readily appreciate that the present application is capable of hardware or a combination of hardware and computer software implementing the various illustrative elements and algorithm steps described in connection with the embodiments provided herein. Whether a function is performed in hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiment of the present application, the electronic device may be divided into the functional units according to the method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit. The integrated unit may be implemented in the form of hardware, or may also be implemented in the form of a software functional unit. It should be noted that the division of the unit in the embodiment of the present application is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
It should be noted that for simplicity of description, the above-mentioned embodiments of the method are described as a series of acts, but those skilled in the art should understand that the present application is not limited by the described order of acts, as some steps may be performed in other orders or simultaneously according to the present application. Further, those skilled in the art will also appreciate that the embodiments described in the specification are presently preferred and that no acts or templates referred to are necessarily required by the application.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the above-described division of the units is only one type of division of logical functions, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed coupling or direct coupling or communication connection between each other may be through some interfaces, indirect coupling or communication connection between devices or units, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units 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 units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit may be implemented in the form of hardware, or may also be implemented in the form of a software functional unit.
The integrated unit may be stored in a computer readable memory if it is implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a memory, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the above-mentioned method of the embodiments of the present application. And the aforementioned memory comprises: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash Memory disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The foregoing embodiments have been described in detail, and specific examples are used herein to explain the principles and implementations of the present application, where the above description of the embodiments is only intended to help understand the method and its core ideas of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. An audio synchronization method for a wireless headset, the method being applied to the wireless headset, the wireless headset comprising: earphone A and earphone B; the method comprises the following steps:
the method comprises the steps that a headset A establishes a first link with an audio source device, and the first link is used for receiving data of the audio source device;
the earphone A and the earphone B establish a second link, and the second link is used for transmitting audio synchronization information;
the earphone A or the earphone B dynamically selects a synchronous terminal according to the parameters of the two earphones, and the synchronous terminal is used for sending audio synchronous information through the second link; the step of dynamically selecting the synchronous terminal according to the parameters of the two earphones by the earphone A or the earphone B specifically comprises the following steps:
and the earphone A or the earphone B dynamically determines the synchronous terminal according to the electric quantities of the two earphones or the quality of the received signals of the two earphones.
2. The method of claim 1,
the audio synchronization information includes: the network clock of the second link is adopted as the reference clock CLK for audio synchronous playing AUD_REF
The CLK is used at the starting time point of the playing of the audio data by the earphone A and the earphone B AUD_REF Is a time reference point;
and the synchronous terminal sends a plurality of audio synchronous frames in an approaching mode before the starting time point, and the audio synchronous frames are used for realizing the time synchronization of the earphone A and the earphone B.
3. The method of claim 1, further comprising:
the method comprises the steps that an earphone B obtains information of a first link of the earphone A, and the earphone B determines a time point when the earphone A receives audio data through the information of the first link;
the headphone B starts receiving the audio source data of the audio source device at the point in time.
4. The method according to claim 1 or 2, characterized in that the method further comprises:
and when the time for playing the audio data by the synchronous terminal exceeds a first time threshold, the synchronous terminal sends an empty data packet to the asynchronous terminal through the second link, wherein the empty data packet is used for realizing the synchronization of the reference time points of the earphone A and the earphone B.
5. The method according to claim 1 or 2, characterized in that the method further comprises:
after the synchronous terminal starts to play the audio data, sending the playing information of the audio data of the current frame of the synchronous terminal to the asynchronous terminal every N audio frames;
and the asynchronous terminal obtains the first time deviation of the earphone A and the earphone B according to the time difference of the network, the playing information of the audio data of the current frame and the sampling rate, and adjusts the frequency division coefficient of the PLL according to the first time deviation.
6. The method of claim 5,
the fixed timing of the synchronization terminal is unchanged.
7. The method of claim 5, further comprising:
the synchronous terminal sends the playing parameter information of the M-th frame audio data of the asynchronous terminal to the asynchronous terminal every M frames;
and the asynchronous terminal calculates to obtain a second time deviation of the earphone A and the earphone B through the playing parameter information of the synchronous terminal and the playing parameter information of the asynchronous terminal, and the asynchronous terminal adjusts the audio PLL according to the second time deviation.
8. A wireless headset, comprising: earphone A and earphone B;
the earphone A is used for establishing a first link with an audio source device, and the first link is used for receiving data of the audio source device;
the earphone A is also used for establishing a second link with the earphone B, and the second link is used for transmitting audio synchronization information;
the earphone A or the earphone B dynamically selects a synchronous terminal according to the parameters of the two earphones, and the synchronous terminal is used for sending audio synchronous information through the second link;
the step of dynamically selecting the synchronous terminal according to the parameters of the two earphones by the earphone A or the earphone B specifically comprises the following steps:
and the earphone A or the earphone B dynamically determines the synchronous terminal according to the electric quantities of the two earphones or the quality of the received signals of the two earphones.
9. A wireless headset comprising a processor, a memory, a communication interface, and one or more programs stored in the memory and configured to be executed by the processor, the programs comprising instructions for performing the steps in the method of any of claims 1-7.
10. A computer-readable storage medium, characterized in that a computer program for electronic data exchange is stored, wherein the computer program causes a computer to perform the method according to any one of claims 1-7.
CN202010458774.4A 2020-05-26 2020-05-26 Audio synchronization method of wireless earphone and wireless earphone Active CN111698672B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010458774.4A CN111698672B (en) 2020-05-26 2020-05-26 Audio synchronization method of wireless earphone and wireless earphone

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010458774.4A CN111698672B (en) 2020-05-26 2020-05-26 Audio synchronization method of wireless earphone and wireless earphone

Publications (2)

Publication Number Publication Date
CN111698672A CN111698672A (en) 2020-09-22
CN111698672B true CN111698672B (en) 2022-09-13

Family

ID=72478398

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010458774.4A Active CN111698672B (en) 2020-05-26 2020-05-26 Audio synchronization method of wireless earphone and wireless earphone

Country Status (1)

Country Link
CN (1) CN111698672B (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111817811B (en) * 2020-06-22 2022-10-11 芯原微电子(上海)股份有限公司 TWS earphone audio frequency synchronous playing method and system, TWS earphone
CN112153513B (en) * 2020-09-24 2023-03-24 恒玄科技(上海)股份有限公司 Wireless earphone for wireless communication, wireless communication method and medium
CN112153514B (en) * 2020-09-24 2022-10-28 恒玄科技(上海)股份有限公司 Wireless earphone for wireless communication, wireless communication method and medium
CN112188344B (en) * 2020-09-30 2023-01-13 广州安凯微电子股份有限公司 TWS earphone and control method thereof
CN114666741B (en) * 2020-12-22 2023-07-14 Oppo广东移动通信有限公司 Wireless communication method and system
CN112822588B (en) * 2020-12-31 2022-10-21 展讯通信(上海)有限公司 Data transmission method and device, communication chip and earphone equipment
CN112954527B (en) * 2021-02-08 2023-01-24 歌尔科技有限公司 Wireless earphone, audio synchronization method, system, equipment and computer medium
CN113225691B (en) * 2021-04-02 2022-07-08 北京小米移动软件有限公司 Audio processing method, device and storage medium
CN113613125A (en) * 2021-04-26 2021-11-05 珠海市杰理科技股份有限公司 Audio synchronization control method and device, audio equipment and system
CN113242546B (en) * 2021-06-25 2023-04-21 南京中感微电子有限公司 Audio forwarding method, device and storage medium
CN114499587B (en) * 2021-07-22 2022-12-23 荣耀终端有限公司 Audio synchronization communication method, system, wireless earphone, terminal and storage medium
CN113692043B (en) * 2021-08-23 2023-01-24 展讯通信(上海)有限公司 Prompt message synchronization method and device
CN114827973B (en) * 2022-06-29 2022-11-29 荣耀终端有限公司 Binaural consistency control method, graphical interface, system and related device

Citations (4)

* 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
CN109391926A (en) * 2018-01-10 2019-02-26 展讯通信(上海)有限公司 The data processing method and wireless audio devices of wireless audio devices
US10412481B1 (en) * 2019-01-30 2019-09-10 Bestechnic (Shanghai) Co., Ltd. Operation mode switch of wireless headphones
CN110381485A (en) * 2019-06-14 2019-10-25 华为技术有限公司 Bluetooth communication method, TWS bluetooth headset and terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8155335B2 (en) * 2007-03-14 2012-04-10 Phillip Rutschman Headset having wirelessly linked earpieces

Patent Citations (4)

* 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
CN109391926A (en) * 2018-01-10 2019-02-26 展讯通信(上海)有限公司 The data processing method and wireless audio devices of wireless audio devices
US10412481B1 (en) * 2019-01-30 2019-09-10 Bestechnic (Shanghai) Co., Ltd. Operation mode switch of wireless headphones
CN110381485A (en) * 2019-06-14 2019-10-25 华为技术有限公司 Bluetooth communication method, TWS bluetooth headset and terminal

Also Published As

Publication number Publication date
CN111698672A (en) 2020-09-22

Similar Documents

Publication Publication Date Title
CN111698672B (en) Audio synchronization method of wireless earphone and wireless earphone
US11102697B2 (en) Method for controlling earphone switching and earphone
WO2021008614A1 (en) Method for establishing communication connection and wearable device
CN109412704B (en) Electromagnetic interference control method and related product
WO2017181365A1 (en) Earphone channel control method, related apparatus, and system
US11838064B2 (en) Method for controlling display and related products
CN109639367B (en) Electromagnetic interference adjusting method and related product
CN108541080B (en) Method for realizing loop connection between first electronic equipment and second electronic equipment and related product
CN109348055B (en) Display control method, display control device, electronic apparatus, and readable storage medium
US11399088B2 (en) Method for establishing communication connection and related products
KR20120051898A (en) A multi earphone device capable recognizing actions and a method of recognizing actions thereof
US20210120608A1 (en) Method for establishing communication connection and related products
CN106506437B (en) Audio data processing method and device
US11903054B2 (en) Method for establishing communication connection and related products
WO2020025034A1 (en) Master/slave switching method for wearable apparatus and related product
WO2019137426A1 (en) Spatial relationship determination method, terminal and base station
CN103458114B (en) A kind of method of switching multi-media stream, equipment and terminal
CN108834013B (en) Wearable equipment electric quantity balancing method and related product
CN108882084B (en) Wearable equipment electric quantity balancing method and related product
CN112771828A (en) Audio data communication method and electronic equipment
JP2022539669A (en) Mobile terminal and control method
CN109155803B (en) Audio data processing method, terminal device and storage medium
WO2019062502A1 (en) Information transmission method, terminal, network device, and computer readable storage medium
CN109040425B (en) Information processing method and related product
WO2020107169A1 (en) Audio mode correction method and apparatus, and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant