WO2023193667A1 - Clock synchronization method and system of audio device, and electronic device - Google Patents
Clock synchronization method and system of audio device, and electronic device Download PDFInfo
- Publication number
- WO2023193667A1 WO2023193667A1 PCT/CN2023/085677 CN2023085677W WO2023193667A1 WO 2023193667 A1 WO2023193667 A1 WO 2023193667A1 CN 2023085677 W CN2023085677 W CN 2023085677W WO 2023193667 A1 WO2023193667 A1 WO 2023193667A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- audio device
- clock difference
- signal
- clock
- audio
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 59
- 238000004891 communication Methods 0.000 claims abstract description 103
- 238000004590 computer program Methods 0.000 claims description 18
- 230000015654 memory Effects 0.000 claims description 11
- 238000013461 design Methods 0.000 description 15
- 238000001914 filtration Methods 0.000 description 14
- 230000006870 function Effects 0.000 description 12
- 238000010586 diagram Methods 0.000 description 7
- 230000004044 response Effects 0.000 description 6
- 238000005259 measurement Methods 0.000 description 5
- 230000003190 augmentative effect Effects 0.000 description 4
- 238000004364 calculation method Methods 0.000 description 4
- 230000000694 effects Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- FGUUSXIOTUKUDN-IBGZPJMESA-N C1(=CC=CC=C1)N1C2=C(NC([C@H](C1)NC=1OC(=NN=1)C1=CC=CC=C1)=O)C=CC=C2 Chemical compound C1(=CC=CC=C1)N1C2=C(NC([C@H](C1)NC=1OC(=NN=1)C1=CC=CC=C1)=O)C=CC=C2 FGUUSXIOTUKUDN-IBGZPJMESA-N 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000012937 correction Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L7/00—Arrangements for synchronising receiver with transmitter
- H04L7/0079—Receiver details
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L7/00—Arrangements for synchronising receiver with transmitter
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L7/00—Arrangements for synchronising receiver with transmitter
- H04L7/0016—Arrangements for synchronising receiver with transmitter correction of synchronization errors
- H04L7/0033—Correction by delay
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R5/00—Stereophonic arrangements
Definitions
- the present application relates to the field of electronic technology, and in particular to a clock synchronization method and system for audio equipment and electronic equipment.
- a speaker set includes at least two speakers that can play the same song for better stereo sound. It should be noted that if the clocks of the two speakers are not synchronized, the stereo effect will be seriously affected.
- the purpose of this application is to provide a clock synchronization method, system and electronic equipment for audio equipment.
- a clock synchronization method for audio equipment is provided.
- the method is applied to a system.
- the system includes a first audio equipment and a second audio equipment.
- the method includes: the first audio equipment and the The second audio device establishes a first communication connection; the first audio device or the second audio device calculates a first clock difference between the first audio device and the second audio device based on the first communication connection.
- the first audio device and the second audio device establish a second communication connection; the first audio device or the second audio device calculates the first audio device and the second audio device based on the A second clock difference exists in the second communication connection; the first audio device or the second audio device calculates a third clock difference based on the first clock difference and the second clock difference; the first audio device Clock synchronization is performed with the second audio device based on the third clock difference.
- two audio devices can establish different communication connections to measure the clock difference between the two audio devices under different communication connections.
- the final clock difference is obtained by combining the clock differences measured under different communication connections.
- this application can improve the accuracy of clock synchronization compared to the clock difference measured by a single communication connection.
- the second audio device calculates a first clock difference between the first audio device and the second audio device based on the first communication connection, including: the first audio device Send a first signal to the second audio device and record the first sending time of the first signal; the second audio device receives the first information and record the first receiving time of the first signal. ; The first audio device sends a second signal to the second audio device, and the second signal carries the first sending time; the second audio device sends a third signal to the first audio device , and record the second sending moment of the third signal; the first audio device receives the third signal, and records the second receiving moment of the third signal; the first audio device sends a signal to the third signal.
- the second audio device sends a fourth signal, and the fourth signal carries the second receiving time; the second audio device is based on the first sending time, the first receiving time, the second sending time, At the second receiving time, the first clock difference is calculated. That is to say, when the first audio device establishes the first communication connection with the second audio device, the second audio device can obtain four times, namely the first sending time, the first receiving time, the second sending time, and the second receiving time. time, and the first clock difference is calculated through four times.
- the clock difference measured by a single communication connection will not be the final clock difference.
- the first clock difference and the second clock difference (the clock difference measured under the second communication connection) are determined together.
- the final clock difference is to improve the accuracy of clock synchronization.
- the second audio device calculates a second clock difference between the first audio device and the second audio device based on the second communication connection, including: the first audio device Send a fifth signal to the second audio device, and record the third sending time of the fifth signal; the second audio device receives the fifth information, and record the third receiving time of the fifth signal.
- the first audio device sends a sixth signal to the second audio device, and the sixth signal carries the third sending time; the second audio device sends a seventh signal to the first audio device , and record the fourth sending moment of the seventh signal; the first audio device receives the seventh signal, and records the fourth receiving moment of the seventh signal; the first audio device sends the signal to the third
- the second audio device sends an eighth signal, and the eighth signal carries the fourth receiving time; the second audio device is based on the third sending time, the third receiving time, the fourth sending time, At the fourth receiving time, the second clock difference is calculated.
- the second audio device can obtain four moments, namely the third sending moment, the third receiving moment, the fourth sending moment, and the fourth receiving moment. time, and the second clock difference is calculated through four times.
- the clock difference measured by a single communication connection will not be the final clock difference.
- the second clock difference is determined together with the first clock difference (the clock difference measured under the first communication connection). The final clock difference is to improve the accuracy of clock synchronization.
- the third clock difference is an intermediate value of the first clock difference and the second clock difference.
- the third clock difference is the average of the first clock difference and the second clock difference.
- two audio devices can establish different communication connections to measure the clock difference between the two audio devices under different communication connections.
- the final clock difference can be obtained by integrating the clock differences measured under different communication connections. , to achieve synchronization between two audio devices. Compared with the clock difference measured by a single communication connection, this application can improve the accuracy of clock synchronization.
- the first clock difference includes multiple values
- the second clock difference includes multiple values
- the third clock difference is an intermediate value between the first average value and the second average value
- the first average value is an average value of multiple values of the first clock difference
- the second average value is an average value of multiple values of the second clock difference. That is to say, when the first audio device establishes the first communication connection with the second audio device, the first clock difference obtained after multiple measurements has multiple values.
- the first audio device establishes the second communication connection with the second audio device
- the second clock difference obtained through multiple measurements has multiple values
- the final clock difference is determined through multiple values of the first clock difference and multiple values of the second clock difference, which is more accurate.
- the first clock difference includes multiple values
- the second clock difference includes multiple values
- the first audio device is based on the first clock difference and the second clock difference.
- the method further includes: the first audio device or the second audio device determining that a first variance of multiple values of the first clock difference is less than a first threshold, and/or determining that the The second variance of the plurality of values of the second clock difference is less than the second threshold. It should be noted that if the differences between the multiple values of the first clock difference are not large and the differences between the multiple values of the second clock difference are not large, the measurement result is considered to be valid, which can be based on the multiple values of the first clock difference and the second clock difference. Multiple values of clock difference determine the final clock difference to improve accuracy.
- the method further includes: determining that the first variance is greater than or equal to a first threshold, and determining that the second variance is greater than or equal to a second threshold; the first audio device or The second audio device outputs prompt information, and the prompt information is used to prompt to recalculate the clock difference. It should be noted that if the differences between the multiple values of the first clock difference are not large, or the differences between the multiple values of the second clock difference are not large, the measurement results are considered invalid. For example, the communication is interfered and the difference is large. In this case, , which can prompt the user to re-measure in order to obtain accurate measurement results.
- the first communication connection is a wireless connection
- the second communication connection is a wired connection
- first communication connection and the second communication connection are different communication connections.
- one is a wired connection and the other is a wireless connection; or both are wireless connections, but one is a WIFI connection and the other is a wireless connection. Is it a Bluetooth connection and so on.
- a clock synchronization method for audio equipment is also provided.
- the method is applied to a first audio equipment, and the method includes: establishing a first communication connection between the first audio equipment and a second audio equipment; An audio device calculates a first clock difference between the first audio device and the second audio device based on the first communication connection; the first audio device and the second audio device establish a second communication connection; The first audio device calculates a second clock difference between the first audio device and the second audio device based on the second communication connection; the first audio device calculates a second clock difference between the first audio device and the second audio device based on the first clock difference and the The second clock difference calculates a third clock difference; the first audio device and the second audio device perform clock synchronization based on the third clock difference.
- the first audio device calculates a first clock difference between the first audio device and the second audio device based on the first communication connection, including:
- the first audio device sends a first signal to the second audio device, and records the first sending moment of the first signal
- the first audio device receives a second signal sent by the second audio device, and the second signal carries a first receiving time.
- the first receiving time is when the second audio device receives the first information. moment;
- the first audio device receives a third signal from the second audio device, and records a second reception moment of the third signal
- the first audio device receives a fourth signal from the second audio device, the fourth signal carries a second sending time, and the second sending time is when the second audio device sends the third signal. time;
- the first audio device calculates the first clock difference based on the first sending time, the first receiving time, the second sending time, and the second receiving time.
- the first audio device calculates the second clock difference that exists when the first audio device and the second audio device are connected based on the second communication, including:
- the first audio device sends a fifth signal to the second audio device, and records a third sending moment of the fifth signal
- the first audio device receives a sixth signal sent by the second audio device, and the sixth signal carries a third receiving time, and the sixth receiving time is when the second audio device receives the fifth moment of signal;
- the first audio device receives a seventh signal from the second audio device, and records a fifth reception moment of the seventh signal
- the first audio device receives an eighth signal from the second audio device, the eighth signal carries a fifth sending time, and the fifth sending time is the time when the second audio device sends the seventh signal. time;
- the first audio device calculates the second clock difference based on the third sending time, the third receiving time, the fourth sending time, and the fourth receiving time.
- the third clock difference is an intermediate value of the first clock difference and the second clock difference.
- the first clock difference includes multiple values
- the second clock difference includes multiple values
- the third clock difference is an intermediate value between the first average value and the second average value
- the first average value is an average value of multiple values of the first clock difference
- the second average value is an average value of multiple values of the second clock difference.
- the first clock difference includes multiple values
- the second clock difference includes multiple values
- the first audio device calculates a third clock difference based on the first clock difference and the second clock difference, it further includes:
- the method further includes:
- first variance is greater than or equal to a first threshold
- second variance is greater than or equal to a second threshold
- Prompt information is output, and the prompt information is used to prompt to recalculate the clock difference.
- the first communication connection is a wireless connection
- the second communication connection is a wired connection
- a communication system including: a first audio device and a second audio device;
- the first audio device performs the steps of the first audio device in the method described in the first aspect
- the second audio device performs the steps of the second audio device in the method described in the first aspect.
- an electronic device including:
- processor memory, and, one or more programs
- the one or more programs are stored in the memory, and the one or more programs include instructions that, when executed by the processor, cause the electronic device to perform the above second aspect The method steps described.
- a computer-readable storage medium is also provided.
- the computer-readable storage medium is used to store a computer program.
- the computer program When the computer program is run on a computer, it causes the computer to execute the above-mentioned first aspect or the above-mentioned aspect. The method described in the second aspect.
- a computer program product including a computer program, which when the computer program is run on a computer, causes the computer to execute the method described in the first aspect or the second aspect.
- a graphical user interface on an electronic device having a display screen, a memory, and a processor, the processor being configured to execute one or more computer programs stored in the memory,
- the graphical user interface includes a graphical user interface displayed when the electronic device executes the method described in the first aspect or the second aspect.
- embodiments of the present application further provide a chip, which is coupled to a memory in an electronic device and used to call a computer program stored in the memory and execute the technical solution of the first aspect or the second aspect.
- the present application "Coupled" in the embodiments means that two components are directly or indirectly combined with each other.
- the chip includes a processor, and the processor is configured to read the computer program in the memory and execute the technical solution of the first aspect or the second aspect.
- Figure 1 is a schematic diagram of a communication system provided by an embodiment of the present application.
- Figure 2 is another schematic diagram of a communication system provided by an embodiment of the present application.
- FIG. 3 is a schematic flowchart of a clock synchronization method for audio equipment provided by an embodiment of the present application
- Figure 4 is a schematic diagram of a clock difference determination process provided by an embodiment of the present application.
- FIG. 5 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
- the at least one involved in the embodiments of this application includes one or more; where multiple means greater than or equal to two.
- words such as “first” and “second” are only used for the purpose of distinguishing the description, and cannot be understood to express or imply relative importance, nor can they be understood to express Or suggestive order.
- the first operation and the second operation do not represent the importance of the two or the order of the two, but are only used to differentiate the description.
- "and/or" only describes the association relationship, indicating that three relationships can exist, for example, A and/or B, which can mean: A exists alone, A and B exist simultaneously, and B exists alone. these three situations.
- the character "/" in this article generally indicates that the related objects are an "or” relationship.
- Embodiments of the present application provide a clock synchronization method for audio equipment, which may be applicable to communication systems.
- the communication system includes at least two devices. Clock synchronization needs to be established between the at least two devices.
- the at least two devices may be any type of devices, as long as clock synchronization needs to be established.
- the communication system includes at least two audio devices, for example, a first audio device and a second audio device.
- the first audio device is the main device.
- the second audio device is an auxiliary device or a slave device; alternatively, the first audio device is an auxiliary device or a slave device and the second audio device is a master device.
- the first audio device may be a device capable of playing sound, such as a portable electronic device such as a speaker, earphones, mobile phone, tablet computer, laptop computer, etc.; or it may also be a wearable device such as a watch or bracelet; or, It can be smart home devices such as smart screens and refrigerators; or it can be vehicle-mounted equipment, etc.; or it can be virtual reality (Virtual Reality, VR) equipment, augmented reality (Augmented Reality, AR) equipment, mixed reality technology ( Mixed Reality, MR) equipment, etc.
- VR Virtual Reality
- AR Augmented Reality
- MR mixed reality technology
- the second audio device may be a device capable of playing sound, such as a portable electronic device such as a speaker, earphones, mobile phone, tablet computer, or notebook computer; or it may also be a wearable device such as a watch or bracelet; or, It can also be smart home equipment such as smart screens and refrigerators; or it can be vehicle-mounted equipment, etc.; or it can be virtual reality (Virtual Reality, VR) equipment, augmented reality (Augmented Reality, AR) equipment, or mixed reality technology (Mixed Reality, MR) device, etc.
- VR Virtual Reality
- AR Augmented Reality
- MR mixed reality technology
- the first audio device and the second audio device may be the same type of device.
- the first audio device and the second audio device are both speakers.
- the first audio device and the second audio device may also be different types of devices.
- the embodiments of this application are not limiting.
- this article mainly takes the example that both the first audio device and the second audio device are speakers.
- a communication system includes a first audio device and a second audio device.
- the first audio device and the second audio device are both speakers.
- the first audio device and the second audio device can use the clock synchronization method provided by this application to establish clock synchronization. In this way, the clock synchronization of the two audio devices can improve the stereo sound effect.
- Figure 2 is a schematic structural diagram of a first audio device and a second audio device provided by an embodiment of the present application. As shown in Figure 2, the left half is the structure of the first audio device, and the right half is the structure of the second audio device.
- the first audio device includes a first timing module, a first communication interface and a second communication interface.
- the first timing synchronization module is used to regularly start the time synchronization function of the first audio device, and the time synchronization function is also called a clock synchronization function.
- the first communication interface is used to establish a first communication connection with the second audio device.
- the second communication interface is used to establish a second communication connection with the second audio device.
- the first communication interface may be a wireless interface, such as a wifi interface.
- the second communication interface may be, for example, a wired interface, such as a powerline communication (PLC) interface.
- PLC powerline communication
- the first audio device also includes a data filtering module for filtering valid data among multiple clock differences.
- a data filtering module for filtering valid data among multiple clock differences. The specific implementation process will be introduced later.
- an instruction can be sent to the first timing synchronization module to instruct the first timing synchronization module to re-execute the clock synchronization process.
- the first audio device also includes a clock setting module for setting the clock of the first audio device to synchronize it with the clock in the second audio device.
- the second audio device includes a second timing synchronization module, a third communication interface, and a fourth communication interface.
- the second timing synchronization module is used to regularly start the timing synchronization module in the second audio device.
- the third communication interface is used to establish a first communication connection with the first audio device.
- the third communication interface establishes a first communication connection with the first communication interface in the first audio device.
- the fourth communication interface is used to establish a second communication connection with the first audio device.
- the fourth communication interface establishes a second communication connection with the second communication interface in the second audio device.
- the third communication interface may be a wireless interface, such as a wifi interface.
- the fourth communication interface may be a wired interface, such as a powerline communication (PLC) interface.
- PLC powerline communication
- the second audio device also includes a data filtering module, which is used to filter valid data among multiple clock differences.
- a data filtering module which is used to filter valid data among multiple clock differences. The specific implementation process will be introduced later.
- an instruction can be sent to the second timing synchronization module to instruct the second timing synchronization module to re-execute the clock synchronization process.
- the second audio device also includes a clock setting module for setting the clock of the second audio device to synchronize it with the clock in the first audio device.
- the second audio device may not have a data filtering module and a clock setting module.
- a data filtering module and a clock setting module may be provided in the second audio device.
- both the first audio device and the second audio device may have a data filtering module and a clock setting module.
- an audio device with a data filtering module and a clock setting module can serve as a master device, and an audio device without a data filtering module and a clock setting module can serve as a slave device; or, an audio device with a data filtering module and a clock setting module can serve as a slave device.
- the audio device without data filtering module and clock setting module acts as a slave device.
- FIG. 3 is a schematic flowchart of a clock synchronization method for audio equipment provided by an embodiment of the present application. The process includes:
- the first audio device starts clock synchronization.
- the first timing synchronization module in the first audio device will regularly start the clock synchronization function. For example, every other day or every 7 days, the first timing synchronization module will start the clock synchronization function regularly.
- the first audio device may also initiate clock synchronization under user operation, and the user operation may be any type of operation input by the user on the first audio device.
- the second audio device starts clock synchronization.
- the second timing synchronization module in the second audio device will regularly start the clock synchronization function. For example, every other day or every 7 days, the second timing synchronization module will start the clock synchronization function regularly.
- the cycles in which the first timing synchronization module and the second timing synchronization module start the clock synchronization function may be the same or different.
- the second audio device can also initiate clock synchronization under user operation, and the user operation can be any type of operation input by the user on the second audio device.
- the first audio device establishes a first communication connection with the second audio device.
- the first communication connection can be a wired connection or a wireless connection. If it is a wireless connection, it can be a variety of wireless connection methods such as Bluetooth and WIFI.
- the first audio device and the second audio device calculate a first clock difference.
- the calculation process of the first clock difference will be described below with reference to FIG. 4 .
- the process includes the following steps:
- Step a The first audio device sends the first message to the second audio device, and records the sending time T1 of the first message.
- the first message may be a synchronization (synchronize, Sync) message.
- Step b The second audio device receives the first message and records the receiving time T2 of the first message.
- Step c The first audio device sends a second message to the second audio device, and the second message carries the sending time T1.
- the second message may be a Follow_Up message. Therefore, the second audio device obtains T1.
- step d the second audio device sends the third message to the first audio device, and records the sending time T3 of the third message.
- the third message may be a delay request (Delay_Req) message.
- Step e The first audio device receives the third message and records the receiving time T4 of the third message.
- Step f The first audio device sends a fourth message to the second audio device, and the fourth message carries the reception time T4.
- the fourth message may be a delay request (Delay_Resp) response.
- the second audio device side obtains four times, T1, T2, T3, and T4.
- the second audio device can calculate the first clock difference based on these four moments.
- Tmsd represents the duration of information from the first audio device to the second audio device
- Tsmd represents the duration of information from the second audio device to the first audio device
- the first audio device starts with the first audio device sending the first message to the second audio device until the second audio device obtains four times (T1, T2, T3, T4) according to these four times.
- the second audio device may start sending the first information to the first audio device, wait until the first audio device obtains four moments, and determine the relationship between the first audio device and the second audio device based on the four moments. clock difference.
- the roles of the first audio device and the second audio device are reversed in the above steps a to f.
- the first clock difference can also be calculated in other ways.
- the first clock difference is equal to the first duration plus the second duration. half.
- the first duration is the duration of the message from the first audio device to the second audio device
- the second duration is the duration of the response to the message from the second audio device to the first audio device.
- the first audio device establishes a second communication connection with the second audio device.
- the second communication connection can be a wired connection or a wireless connection. If it is a wireless connection, it can be a variety of wireless connection methods such as Bluetooth and WIFI.
- the second communication connection and the first communication connection may be in the same connection mode, or may be in different connection modes.
- the first communication connection and the second communication connection may be different connections, for example, one is a wired connection and the other is a wireless connection. In this case, the interference between the two connection methods is small and the calculated clock difference is more accurate.
- the first communication connection before the first audio device establishes the second communication connection with the second audio device, the first communication connection may or may not be interrupted. In order to improve the accuracy of clock synchronization, the first communication connection can be interrupted to reduce interference to the second communication connection and improve the calculated clock difference to be more accurate.
- the calculation method of the second clock difference is the same as the calculation method of the first clock difference mentioned above, and will not be repeated.
- the first audio device and the second audio device calculate a third clock difference based on the first clock difference and the second clock difference.
- the calculation method of the third clock difference includes at least one of the following:
- the first clock difference is a value, represented by A
- the second clock difference is a value, represented by B.
- the third clock difference is the intermediate value of the first clock difference and the second clock difference, for example, the average value of the first clock difference and the second clock difference, that is, (A+B)/2.
- Method 2 the first clock difference has multiple values, such as multiple A's, and the second clock difference has multiple values, such as multiple B's.
- the third clock difference is a third average value of the first average value (the average value of multiple A's) and the second average value (the average value of multiple B's).
- the first clock difference has multiple values. It can be understood that the process in Figure 4 has been executed multiple times, because each time it is executed, one clock difference is obtained, and if it is repeated multiple times, multiple clock differences are obtained, so the first clock difference There are multiple values.
- the second clock difference has multiple values, and the same principle is used.
- Method 3 The first clock difference is multiple values, such as multiple A's. Calculate the variance of multiple A's and obtain the variance 1.
- the second clock difference is multiple values, such as multiple Bs. Calculate the variance of multiple Bs and obtain the variance 2.
- the first clock difference and the second clock difference are considered to be valid data, and the third clock difference can be calculated based on the first clock difference and the second clock difference, for example, use Method 2 above calculates the third clock difference.
- Threshold 1 and threshold 2 may be the same or different, and are not limited in the embodiments of this application.
- the first audio device or the second audio device can re-execute the clock synchronization process, for example, re-execute S301.
- the clock of the second audio device can be controlled to increase by 500ms.
- the clock of the second audio device can be controlled to be reduced by 500ms.
- FIG. 5 is a schematic structural diagram of an electronic device 500 provided by an embodiment of the present application.
- the electronic device 500 may be the first audio device or the second audio device mentioned above.
- the electronic device 500 may include: one or more processors 501; one or more memories 502; a communication interface 503, and one or more computer programs 504. Each of the above devices can communicate through one or more Bus 505 connection.
- the one or more computer programs 504 are stored in the memory 502 and configured to be executed by the one or more processors 501
- the one or more computer programs 304 include instructions.
- the above instructions can be used to perform relevant steps of the first audio device or the second audio device in the above corresponding embodiments.
- the communication interface 503 is used to implement communication between the first audio device or the second audio device and other devices.
- the communication interface may be a transceiver.
- An embodiment of the present application also provides a communication system.
- the communication system includes a first audio device and a second audio device.
- the first audio device may be a speaker, a mobile phone, a tablet, a PC, a watch, or other devices.
- the second audio device may be a speaker, mobile phone, tablet, PC, watch, etc.
- the structure of the first audio device and the second audio device can be seen in Figure 5 .
- the electronic device 500 shown in FIG. 5 is a first audio device
- the instructions of one or more computer programs 504 are executed by the processor
- the first audio device is caused to execute the first audio device as described above ( For example, main speakers).
- the electronic device 500 shown in FIG. 5 is a second audio device
- the electronic device 500 is caused to execute the second audio device (such as , auxiliary speaker) steps.
- the method provided by the embodiments of the present application is introduced from the perspective of an electronic device (such as a first audio device or a second audio device) as the execution subject.
- the electronic device may include a hardware structure and/or a software module to implement the above functions in the form of a hardware structure, a software module, or a hardware structure plus a software module. Whether one of the above functions is performed as a hardware structure, a software module, or a hardware structure plus a software module depends on the specific application and design constraints of the technical solution.
- the terms “when” or “after” may be interpreted to mean “if" or “after” or “in response to determining" or “in response to detecting ...”.
- the phrase “when determining" or “if (stated condition or event) is detected” may be interpreted to mean “if it is determined" or “in response to determining" or “on detecting (stated condition or event)” or “in response to detecting (stated condition or event)”.
- relational terms such as first and second are used to distinguish one entity from another entity, without limiting any actual relationship and order between these entities.
- the above embodiments it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof.
- software it may be implemented in whole or in part in the form of a computer program product.
- the computer program product includes one or more computer instructions.
- the computer program instructions When the computer program instructions are loaded and executed on a computer, the processes or functions described in accordance with the embodiments of the present invention are generated in whole or in part.
- the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device.
- the computer instructions may be stored in or transmitted from one computer-readable storage medium to another, e.g., the computer instructions may be transferred from a website, computer, server, or data center Transmission to another website, computer, server or data center by wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) means.
- the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains one or more available media integrated.
- the available media may be magnetic media (eg, floppy disk, hard disk, magnetic tape), optical media (eg, DVD), or semiconductor media (eg, Solid State Disk (SSD)), etc.
- SSD Solid State Disk
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Physics & Mathematics (AREA)
- Acoustics & Sound (AREA)
- Synchronisation In Digital Transmission Systems (AREA)
Abstract
A clock synchronization method and system of an audio device, and an electronic device. A first audio device establishes a first communication connection with a second audio device; the first audio device calculates a first clock difference between the first audio device and the second audio device on the basis of the first communication connection; the first audio device establishes a second communication connection with the second audio device; the first audio device calculates a second clock difference between the first audio device and the second audio device on the basis of the second communication connection; the first audio device calculates a third clock difference on the basis of the first clock difference and the second clock difference; the first audio device and the second audio device perform clock synchronization on the basis of the third clock difference. According to the mode, two audio devices can establish different communication connections so as to measure clock differences between the two audio devices under the different communication connections, and a final clock difference is obtained by integrating the measured clock differences under the different communication connections, so that the synchronization between the two audio devices is realized, and the accuracy of clock synchronization is improved.
Description
相关申请的交叉引用Cross-references to related applications
[根据细则91更正 23.04.2023]
本申请要求在2022年04月06日提交中国专利局、申请号为202210359514.0、申请名称为“一种音频设备的时钟同步方法、系统以及音频设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。[Correction 23.04.2023 under Rule 91]
This application requires the priority of the Chinese patent application submitted to the China Patent Office on April 6, 2022, with the application number 202210359514.0 and the application name "A clock synchronization method, system and audio equipment for audio equipment", and its entire content has been approved This reference is incorporated into this application.
本申请要求在2022年04月06日提交中国专利局、申请号为202210359514.0、申请名称为“一种音频设备的时钟同步方法、系统以及音频设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。[Correction 23.04.2023 under Rule 91]
This application requires the priority of the Chinese patent application submitted to the China Patent Office on April 6, 2022, with the application number 202210359514.0 and the application name "A clock synchronization method, system and audio equipment for audio equipment", and its entire content has been approved This reference is incorporated into this application.
本申请涉及电子技术领域,尤其涉及一种音频设备的时钟同步方法、系统以及电子设备。The present application relates to the field of electronic technology, and in particular to a clock synchronization method and system for audio equipment and electronic equipment.
为了提升居家、办公等生活体验,越来越多的人们追求更好的音频播放效果。例如,市场上存在音箱组。音箱组中包括至少两个音箱,这两个音箱可以播放同一首歌曲,以带来更好的立体声效。需要说明的是,如果两个音箱时钟不同步,会严重影响立体声效。In order to improve the life experience at home and in the office, more and more people are pursuing better audio playback effects. For example, there are speaker sets on the market. A speaker set includes at least two speakers that can play the same song for better stereo sound. It should be noted that if the clocks of the two speakers are not synchronized, the stereo effect will be seriously affected.
发明内容Contents of the invention
本申请的目的在于提供了一种音频设备的时钟同步方法、系统以及电子设备。The purpose of this application is to provide a clock synchronization method, system and electronic equipment for audio equipment.
第一方面,提供一种音频设备的时钟同步方法,所述方法应用于系统,所述系统中包括第一音频设备和第二音频设备,所述方法包括:所述第一音频设备与所述第二音频设备建立第一通信连接;所述第一音频设备或所述第二音频设备计算所述第一音频设备与所述第二音频设备基于所述第一通信连接存在的第一时钟差;所述第一音频设备与所述第二音频设备建立第二通信连接;所述第一音频设备或所述第二音频设备计算所述第一音频设备与所述第二音频设备基于所述第二通信连接存在的第二时钟差;所述第一音频设备或所述第二音频设备基于所述第一时钟差和所述第二时钟差计算第三时钟差;所述第一音频设备与所述第二音频设备基于所述第三时钟差进行时钟同步。In a first aspect, a clock synchronization method for audio equipment is provided. The method is applied to a system. The system includes a first audio equipment and a second audio equipment. The method includes: the first audio equipment and the The second audio device establishes a first communication connection; the first audio device or the second audio device calculates a first clock difference between the first audio device and the second audio device based on the first communication connection. ; The first audio device and the second audio device establish a second communication connection; the first audio device or the second audio device calculates the first audio device and the second audio device based on the A second clock difference exists in the second communication connection; the first audio device or the second audio device calculates a third clock difference based on the first clock difference and the second clock difference; the first audio device Clock synchronization is performed with the second audio device based on the third clock difference.
通过这种方式,两个音频设备可以建立不同的通信连接,以测量出不同通信连接下两个音频设备之间存在的时钟差,综合不同通信连接下所测得的时钟差得到最终时钟差,以实现两个音频设备之间的同步,相比于单通信连接所测得的时钟差,本申请能够提升时钟同步的准确性。In this way, two audio devices can establish different communication connections to measure the clock difference between the two audio devices under different communication connections. The final clock difference is obtained by combining the clock differences measured under different communication connections. To achieve synchronization between two audio devices, this application can improve the accuracy of clock synchronization compared to the clock difference measured by a single communication connection.
在一种可能的设计中,所述第二音频设备计算所述第一音频设备与所述第二音频设备基于所述第一通信连接存在的第一时钟差,包括:所述第一音频设备向所述第二音频设备发送第一信号,并记录所述第一信号的第一发送时刻;所述第二音频设备接收所述第一信息,并记录所述第一信号的第一接收时刻;所述第一音频设备向所述第二音频设备发送第二信号,所述第二信号中携带所述第一发送时刻;所述第二音频设备向所述第一音频设备发送第三信号,并记录所述第三信号的第二发送时刻;所述第一音频设备接收所述第三信号,并记录所述第三信号的第二接收时刻;所述第一音频设备向所述第二音频设备发送第四信号,所述第四信号中携带所述第二接收时刻;所述第二音频设备基于所述第一发送时刻、所述第一接收时刻、所述第二发送时刻、所述第二接收时刻,计算得到所述第一时钟差。也就是说,当第一音频设备与第二音频设备建立第一通信连接时,第二音频设备可以获得四个时刻,即第一发送时刻、第一接收时刻、第二发送时刻、第二接收时刻,通过四个时刻计算得到第一时钟差。在本申请实施例中,单通信连接所测得的时钟差不会最为最终时钟差,例如,第一时钟差与第二时钟差(在第二通信连接下所测得的时钟差)一起确定最终时钟差,以提升时钟同步的准确性。In a possible design, the second audio device calculates a first clock difference between the first audio device and the second audio device based on the first communication connection, including: the first audio device Send a first signal to the second audio device and record the first sending time of the first signal; the second audio device receives the first information and record the first receiving time of the first signal. ; The first audio device sends a second signal to the second audio device, and the second signal carries the first sending time; the second audio device sends a third signal to the first audio device , and record the second sending moment of the third signal; the first audio device receives the third signal, and records the second receiving moment of the third signal; the first audio device sends a signal to the third signal. The second audio device sends a fourth signal, and the fourth signal carries the second receiving time; the second audio device is based on the first sending time, the first receiving time, the second sending time, At the second receiving time, the first clock difference is calculated. That is to say, when the first audio device establishes the first communication connection with the second audio device, the second audio device can obtain four times, namely the first sending time, the first receiving time, the second sending time, and the second receiving time. time, and the first clock difference is calculated through four times. In the embodiment of the present application, the clock difference measured by a single communication connection will not be the final clock difference. For example, the first clock difference and the second clock difference (the clock difference measured under the second communication connection) are determined together. The final clock difference is to improve the accuracy of clock synchronization.
在一种可能的设计中,所述第二音频设备计算所述第一音频设备与所述第二音频设备基于所述第二通信连接存在的第二时钟差,包括:所述第一音频设备向所述第二音频设备发送第五信号,并记录所述第五信号的第三发送时刻;所述第二音频设备接收所述第五信息,并记录所述第五信号的第三接收时刻;所述第一音频设备向所述第二音频设备发送第六信号,所述第六信号中携带所述第三发送时刻;所述第二音频设备向所述第一音频设备发送第七信号,并记录所述第七信号的第四发送时刻;所述第一音频设备接收所述第七信号,并记录所述第七信号的第四接收时刻;所述第一音频设备向所述第二音频设备发送第八信号,所述第八信号中携带所述第四接收时刻;所述第二音频设备基于所述第三发送时刻、所述第三接收时刻、所述第四发送时刻、所述第四接收时刻,计算得到所述第二时钟差。也就是说,当第一音频设备与第二音频设备建立第二通信连接时,第二音频设备可以获得四个时刻,即第三发送时刻、第三接收时刻、第四发送时刻、第四接收时刻,通过四个时刻计算得到第二时钟差。在本申请实施例中,单通信连接所测得的时钟差不会最为最终时钟差,例如,第二时钟差与第一时钟差(在第一通信连接下所测得的时钟差)一起确定最终时钟差,以提升时钟同步的准确性。In a possible design, the second audio device calculates a second clock difference between the first audio device and the second audio device based on the second communication connection, including: the first audio device Send a fifth signal to the second audio device, and record the third sending time of the fifth signal; the second audio device receives the fifth information, and record the third receiving time of the fifth signal. ; The first audio device sends a sixth signal to the second audio device, and the sixth signal carries the third sending time; the second audio device sends a seventh signal to the first audio device , and record the fourth sending moment of the seventh signal; the first audio device receives the seventh signal, and records the fourth receiving moment of the seventh signal; the first audio device sends the signal to the third The second audio device sends an eighth signal, and the eighth signal carries the fourth receiving time; the second audio device is based on the third sending time, the third receiving time, the fourth sending time, At the fourth receiving time, the second clock difference is calculated. That is to say, when the first audio device establishes a second communication connection with the second audio device, the second audio device can obtain four moments, namely the third sending moment, the third receiving moment, the fourth sending moment, and the fourth receiving moment. time, and the second clock difference is calculated through four times. In the embodiment of the present application, the clock difference measured by a single communication connection will not be the final clock difference. For example, the second clock difference is determined together with the first clock difference (the clock difference measured under the first communication connection). The final clock difference is to improve the accuracy of clock synchronization.
在一种可能的设计中,所述第三时钟差是所述第一时钟差与所述第二时钟差的中间值。例如,第三时钟差是第一时钟差与第二时钟差的平均值。总之,本申请中,两个音频设备可以建立不同的通信连接,以测量出不同通信连接下两个音频设备之间存在的时钟差,综合不同通信连接下所测得的时钟差得到最终时钟差,以实现两个音频设备之间的同步,相比于单通信连接所测得的时钟差,本申请能够提升时钟同步的准确性。In a possible design, the third clock difference is an intermediate value of the first clock difference and the second clock difference. For example, the third clock difference is the average of the first clock difference and the second clock difference. In short, in this application, two audio devices can establish different communication connections to measure the clock difference between the two audio devices under different communication connections. The final clock difference can be obtained by integrating the clock differences measured under different communication connections. , to achieve synchronization between two audio devices. Compared with the clock difference measured by a single communication connection, this application can improve the accuracy of clock synchronization.
在一种可能的设计中,所述第一时钟差包括多个值,所述第二时钟差包括多个值,所述第三时钟差是第一平均值和第二平均值的中间值,所述第一平均值为所述第一时钟差的多个值的平均值,所述第二平均值为所述第二时钟差的多个值的平均值。也就是说,当第一音频设备与第二音频设备建立第一通信连接时,经过多次测量得到的第一时钟差有多个值,当第一音频设备与第二音频设备建立第二通信连接时,经过多次测量得到的第二时钟差有多个值,通过第一时钟差的多个值与第二时钟差的多个值确定最终时钟差,准确性更高。In a possible design, the first clock difference includes multiple values, the second clock difference includes multiple values, and the third clock difference is an intermediate value between the first average value and the second average value, The first average value is an average value of multiple values of the first clock difference, and the second average value is an average value of multiple values of the second clock difference. That is to say, when the first audio device establishes the first communication connection with the second audio device, the first clock difference obtained after multiple measurements has multiple values. When the first audio device establishes the second communication connection with the second audio device, During connection, the second clock difference obtained through multiple measurements has multiple values, and the final clock difference is determined through multiple values of the first clock difference and multiple values of the second clock difference, which is more accurate.
在一种可能的设计中,所述第一时钟差包括多个值,所述第二时钟差包括多个值;所述第一音频设备基于所述第一时钟差和所述第二时钟差计算第三时钟差之前,还包括:所述第一音频设备或所述第二音频设备确定所述第一时钟差的多个值的第一方差小于第一阈值,和/或,确定所述第二时钟差的多个值的第二方差小于第二阈值。需要说明的是,如果第一时钟差的多个值的差异不大,第二时钟差的多个值差异不大,认为测量结果有效,可以基于通过第一时钟差的多个值与第二时钟差的多个值确定最终时钟差,以提升准确性。In a possible design, the first clock difference includes multiple values, and the second clock difference includes multiple values; the first audio device is based on the first clock difference and the second clock difference. Before calculating the third clock difference, the method further includes: the first audio device or the second audio device determining that a first variance of multiple values of the first clock difference is less than a first threshold, and/or determining that the The second variance of the plurality of values of the second clock difference is less than the second threshold. It should be noted that if the differences between the multiple values of the first clock difference are not large and the differences between the multiple values of the second clock difference are not large, the measurement result is considered to be valid, which can be based on the multiple values of the first clock difference and the second clock difference. Multiple values of clock difference determine the final clock difference to improve accuracy.
在一种可能的设计中,所述方法还包括:确定所述第一方差大于或等于第一阈值,且,确定所述第二方差大于或等于第二阈值;所述第一音频设备或所述第二音频设备输出提示信息,所述提示信息用于提示重新进行时钟差计算。需要说明的是,如果第一时钟差的多个值的差异不大,或,第二时钟差的多个值差异不大,认为测量结果无效,例如,通信受到干扰导致差异较大,此时,可以提示用户重新进行测量,以便得到准确的测量结果。In a possible design, the method further includes: determining that the first variance is greater than or equal to a first threshold, and determining that the second variance is greater than or equal to a second threshold; the first audio device or The second audio device outputs prompt information, and the prompt information is used to prompt to recalculate the clock difference. It should be noted that if the differences between the multiple values of the first clock difference are not large, or the differences between the multiple values of the second clock difference are not large, the measurement results are considered invalid. For example, the communication is interfered and the difference is large. In this case, , which can prompt the user to re-measure in order to obtain accurate measurement results.
在一种可能的设计中,所述第一通信连接为无线连接,所述第二通信连接为有线连接。In a possible design, the first communication connection is a wireless connection, and the second communication connection is a wired connection.
需要说明的是,第一通信连接与第二通信连接是不同的通信连接,例如,一个是有线连接,另一个是无线连接;或者,两个都是无线连接,但一个是WIFI连接,另一个是蓝牙连接等等。It should be noted that the first communication connection and the second communication connection are different communication connections. For example, one is a wired connection and the other is a wireless connection; or both are wireless connections, but one is a WIFI connection and the other is a wireless connection. Is it a Bluetooth connection and so on.
第二方面,还提供一种音频设备的时钟同步方法,所述方法应用于第一音频设备,所述方法包括:所述第一音频设备与第二音频设备建立第一通信连接;所述第一音频设备计算所述第一音频设备与所述第二音频设备基于所述第一通信连接存在的第一时钟差;所述第一音频设备与所述第二音频设备建立第二通信连接;所述第一音频设备计算所述第一音频设备与所述第二音频设备基于所述第二通信连接存在的第二时钟差;所述第一音频设备基于所述第一时钟差和所述第二时钟差计算第三时钟差;所述第一音频设备与所述第二音频设备基于所述第三时钟差进行时钟同步。In a second aspect, a clock synchronization method for audio equipment is also provided. The method is applied to a first audio equipment, and the method includes: establishing a first communication connection between the first audio equipment and a second audio equipment; An audio device calculates a first clock difference between the first audio device and the second audio device based on the first communication connection; the first audio device and the second audio device establish a second communication connection; The first audio device calculates a second clock difference between the first audio device and the second audio device based on the second communication connection; the first audio device calculates a second clock difference between the first audio device and the second audio device based on the first clock difference and the The second clock difference calculates a third clock difference; the first audio device and the second audio device perform clock synchronization based on the third clock difference.
在一种可能的设计中,所述第一音频设备计算所述第一音频设备与所述第二音频设备基于所述第一通信连接存在的第一时钟差,包括:In a possible design, the first audio device calculates a first clock difference between the first audio device and the second audio device based on the first communication connection, including:
所述第一音频设备向所述第二音频设备发送第一信号,并记录所述第一信号的第一发送时刻;The first audio device sends a first signal to the second audio device, and records the first sending moment of the first signal;
所述第一音频设备接收所述第二音频设备发送的第二信号,所述第二信号中携带第一接收时刻,所述第一接收时刻是所述第二音频设备接收所述第一信息的时刻;The first audio device receives a second signal sent by the second audio device, and the second signal carries a first receiving time. The first receiving time is when the second audio device receives the first information. moment;
所述第一音频设备接收所述第二音频设备的第三信号,并记录所述第三信号的第二接收时刻;The first audio device receives a third signal from the second audio device, and records a second reception moment of the third signal;
所述第一音频设备接收所述第二音频设备的第四信号,所述第四信号中携带第二发送时间,所述第二发送时刻为所述第二音频设备发送所述第三信号的时刻;The first audio device receives a fourth signal from the second audio device, the fourth signal carries a second sending time, and the second sending time is when the second audio device sends the third signal. time;
所述第一音频设备基于所述第一发送时刻、所述第一接收时刻、所述第二发送时刻、所述第二接收时刻,计算得到所述第一时钟差。The first audio device calculates the first clock difference based on the first sending time, the first receiving time, the second sending time, and the second receiving time.
在一种可能的设计中,所述第一音频设备计算所述第一音频设备与所述第二音频设备基于所述第二通信连接时存在的第二时钟差,包括:In a possible design, the first audio device calculates the second clock difference that exists when the first audio device and the second audio device are connected based on the second communication, including:
所述第一音频设备向所述第二音频设备发送第五信号,并记录所述第五信号的第三发送时刻;The first audio device sends a fifth signal to the second audio device, and records a third sending moment of the fifth signal;
所述第一音频设备接收所述第二音频设备发送的第六信号,所述第六信号中携带的第三接收时刻,所述第六接收时刻为所述第二音频设备接收所述第五信号的时刻;The first audio device receives a sixth signal sent by the second audio device, and the sixth signal carries a third receiving time, and the sixth receiving time is when the second audio device receives the fifth moment of signal;
所述第一音频设备接收所述第二音频设备的第七信号,并记录所述第七信号的第五接收时刻;The first audio device receives a seventh signal from the second audio device, and records a fifth reception moment of the seventh signal;
所述第一音频设备接收所述第二音频设备的第八信号,所述第八信号中携带第五发送时刻,所述第五发送时刻为所述第二音频设备发送所述第七信号的时刻;The first audio device receives an eighth signal from the second audio device, the eighth signal carries a fifth sending time, and the fifth sending time is the time when the second audio device sends the seventh signal. time;
所述第一音频设备基于所述第三发送时刻、所述第三接收时刻、所述第四发送时刻、所述第四接收时刻,计算得到所述第二时钟差。The first audio device calculates the second clock difference based on the third sending time, the third receiving time, the fourth sending time, and the fourth receiving time.
在一种可能的设计中,所述第三时钟差是所述第一时钟差与所述第二时钟差的中间值。In a possible design, the third clock difference is an intermediate value of the first clock difference and the second clock difference.
在一种可能的设计中,所述第一时钟差包括多个值,所述第二时钟差包括多个值,所述第三时钟差是第一平均值和第二平均值的中间值,所述第一平均值为所述第一时钟差的多个值的平均值,所述第二平均值为所述第二时钟差的多个值的平均值。In a possible design, the first clock difference includes multiple values, the second clock difference includes multiple values, and the third clock difference is an intermediate value between the first average value and the second average value, The first average value is an average value of multiple values of the first clock difference, and the second average value is an average value of multiple values of the second clock difference.
在一种可能的设计中,所述第一时钟差包括多个值,所述第二时钟差包括多个值;In a possible design, the first clock difference includes multiple values, and the second clock difference includes multiple values;
所述第一音频设备基于所述第一时钟差和所述第二时钟差计算第三时钟差之前,还包括:Before the first audio device calculates a third clock difference based on the first clock difference and the second clock difference, it further includes:
确定所述第一时钟差的多个值的第一方差小于第一阈值,和/或,determining that a first variance of a plurality of values of the first clock difference is less than a first threshold, and/or,
确定所述第二时钟差的多个值的第二方差小于第二阈值。It is determined that a second variance of the plurality of values of the second clock difference is less than a second threshold.
在一种可能的设计中,所述方法还包括:In a possible design, the method further includes:
确定所述第一方差大于或等于第一阈值,且,确定所述第二方差大于或等于第二阈值;It is determined that the first variance is greater than or equal to a first threshold, and it is determined that the second variance is greater than or equal to a second threshold;
输出提示信息,所述提示信息用于提示重新进行时钟差计算。Prompt information is output, and the prompt information is used to prompt to recalculate the clock difference.
在一种可能的设计中,所述第一通信连接为无线连接,所述第二通信连接为有线连接。In a possible design, the first communication connection is a wireless connection, and the second communication connection is a wired connection.
第三方面,还提供一种通信系统,包括:第一音频设备和第二音频设备;In a third aspect, a communication system is also provided, including: a first audio device and a second audio device;
所述第一音频设备执行如上述第一方面所述的方法中第一音频设备的步骤;The first audio device performs the steps of the first audio device in the method described in the first aspect;
所述第二音频设备执行如上述第一方面所述的方法中第二音频设备的步骤。The second audio device performs the steps of the second audio device in the method described in the first aspect.
第四方面,还提供一种电子设备,包括:In a fourth aspect, an electronic device is also provided, including:
处理器,存储器,以及,一个或多个程序;processor, memory, and, one or more programs;
其中,所述一个或多个程序被存储在所述存储器中,所述一个或多个程序包括指令,当所述指令被所述处理器执行时,使得所述电子设备执行如上述第二方面所述的方法步骤。Wherein, the one or more programs are stored in the memory, and the one or more programs include instructions that, when executed by the processor, cause the electronic device to perform the above second aspect The method steps described.
第五方面,还提供一种计算机可读存储介质,所述计算机可读存储介质用于存储计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行如上述第一方面或上述第二方面所述的方法。In a fifth aspect, a computer-readable storage medium is also provided. The computer-readable storage medium is used to store a computer program. When the computer program is run on a computer, it causes the computer to execute the above-mentioned first aspect or the above-mentioned aspect. The method described in the second aspect.
第六方面,还提供一种计算机程序产品,包括计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行如上述第一方面或第二方面所述的方法。In a sixth aspect, a computer program product is also provided, including a computer program, which when the computer program is run on a computer, causes the computer to execute the method described in the first aspect or the second aspect.
第七方面,还提供一种电子设备上的图形用户界面,所述电子设备具有显示屏、存储器、以及处理器,所述处理器用于执行存储在所述存储器中的一个或多个计算机程序,所述图形用户界面包括所述电子设备执行上述第一方面或第二方面所述的方法时显示的图形用户界面。In a seventh aspect, a graphical user interface on an electronic device is also provided, the electronic device having a display screen, a memory, and a processor, the processor being configured to execute one or more computer programs stored in the memory, The graphical user interface includes a graphical user interface displayed when the electronic device executes the method described in the first aspect or the second aspect.
第八方面,本申请实施例还提供一种芯片,所述芯片与电子设备中的存储器耦合,用于调用存储器中存储的计算机程序并执行上述第一方面或第二方面的技术方案,本申请实施例中“耦合”是指两个部件彼此直接或间接地结合。示例性的,所述芯片中包括处理器,所述处理器用于读取存储器中的计算机程序并执行上述第一方面或第二方面的技术方案。In an eighth aspect, embodiments of the present application further provide a chip, which is coupled to a memory in an electronic device and used to call a computer program stored in the memory and execute the technical solution of the first aspect or the second aspect. The present application "Coupled" in the embodiments means that two components are directly or indirectly combined with each other. Exemplarily, the chip includes a processor, and the processor is configured to read the computer program in the memory and execute the technical solution of the first aspect or the second aspect.
上述第二方面至第八方面的有益效果,请参见第一方面的有益效果,不重复赘述。For the beneficial effects of the second to eighth aspects mentioned above, please refer to the beneficial effects of the first aspect and will not be repeated.
图1为本申请一实施例提供的通信系统的示意图;Figure 1 is a schematic diagram of a communication system provided by an embodiment of the present application;
图2为本申请一实施例提供的通信系统的另一种示意图;Figure 2 is another schematic diagram of a communication system provided by an embodiment of the present application;
图3为本申请一实施例提供的音频设备的时钟同步方法的流程示意图;Figure 3 is a schematic flowchart of a clock synchronization method for audio equipment provided by an embodiment of the present application;
图4为本申请一实施例提供的时钟差的确定流程的示意图;Figure 4 is a schematic diagram of a clock difference determination process provided by an embodiment of the present application;
图5为本申请一实施例提供的电子设备的结构示意图。FIG. 5 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
以下,对本申请实施例中的部分用语进行解释说明,以便于本领域技术人员理解。In the following, some terms used in the embodiments of the present application are explained to facilitate understanding by those skilled in the art.
本申请实施例涉及的至少一个,包括一个或者多个;其中,多个是指大于或者等于两个。另外,需要理解的是,在本说明书的描述中,“第一”、“第二”等词汇,仅用于区分描述的目的,而不能理解为明示或暗示相对重要性,也不能理解为明示或暗示顺序。例如,第一操作和第二操作并不代表二者的重要程度或者代表二者的顺序,仅仅是为了区分描述。在本申请实施例中,“和/或”,仅仅是描述关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。The at least one involved in the embodiments of this application includes one or more; where multiple means greater than or equal to two. In addition, it should be understood that in the description of this specification, words such as "first" and "second" are only used for the purpose of distinguishing the description, and cannot be understood to express or imply relative importance, nor can they be understood to express Or suggestive order. For example, the first operation and the second operation do not represent the importance of the two or the order of the two, but are only used to differentiate the description. In the embodiment of this application, "and/or" only describes the association relationship, indicating that three relationships can exist, for example, A and/or B, which can mean: A exists alone, A and B exist simultaneously, and B exists alone. these three situations. In addition, the character "/" in this article generally indicates that the related objects are an "or" relationship.
在本说明书中描述的参考“一个实施例”或“一些实施例”等意味着在本说明书的一个或多个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本说明书中的不同之处出现的语句“在一个实施例中”、“在一些实施例中”、“在其他一些实施例中”、“在另外一些实施例中”等不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其他方式另外特别强调。术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。Reference in this specification to "one embodiment" or "some embodiments" or the like means that a particular feature, structure or characteristic described in connection with the embodiment is included in one or more embodiments of the specification. Therefore, the phrases "in one embodiment", "in some embodiments", "in other embodiments", "in other embodiments", etc. appearing in different places in this specification are not necessarily References are made to the same embodiment, but rather to "one or more but not all embodiments" unless specifically stated otherwise. The terms “including,” “includes,” “having,” and variations thereof all mean “including but not limited to,” unless otherwise specifically emphasized.
本申请实施例提供一种音频设备的时钟同步方法,该方法可以适用于通信系统。通信系统包括至少两个设备。所述至少两个设备之间需要建立时钟同步。所述至少两个设备可以是任意类型的设备,只要需要建立时钟同步即可。本申请实施例中,以通信系统中包括至少两个音频设备为例,例如,第一音频设备和第二音频设备。其中,第一音频设备是主设备。第二音频设备是辅设备或从设备;或者,第一音频设备是辅设备或从设备,第二音频设备是主设备。Embodiments of the present application provide a clock synchronization method for audio equipment, which may be applicable to communication systems. The communication system includes at least two devices. Clock synchronization needs to be established between the at least two devices. The at least two devices may be any type of devices, as long as clock synchronization needs to be established. In the embodiment of the present application, it is taken as an example that the communication system includes at least two audio devices, for example, a first audio device and a second audio device. Among them, the first audio device is the main device. The second audio device is an auxiliary device or a slave device; alternatively, the first audio device is an auxiliary device or a slave device and the second audio device is a master device.
示例性的,第一音频设备可以是能够播放声音的设备,例如音箱、耳机、手机、平板电脑、笔记本电脑等便捷式电子设备;或者,还可以是手表、手环等穿戴设备;或者,还可以是智慧屏、冰箱等智能家居设备;或者,还可以是车载设备等等,或者,还可以是虚拟现实(Virtual Reality,VR)设备、增强现实(Augmented Reality,AR)设备、混合现实技术(Mixed Reality,MR)设备,等等,总之本申请实施例不限定第一设备的具体类型。For example, the first audio device may be a device capable of playing sound, such as a portable electronic device such as a speaker, earphones, mobile phone, tablet computer, laptop computer, etc.; or it may also be a wearable device such as a watch or bracelet; or, It can be smart home devices such as smart screens and refrigerators; or it can be vehicle-mounted equipment, etc.; or it can be virtual reality (Virtual Reality, VR) equipment, augmented reality (Augmented Reality, AR) equipment, mixed reality technology ( Mixed Reality, MR) equipment, etc. In short, the embodiments of this application do not limit the specific type of the first equipment.
示例性的,第二音频设备可以是能够播放声音的设备,例如,音箱、耳机、手机、平板电脑、笔记本电脑等便捷式电子设备;或者,还可以是手表、手环等穿戴设备;或者,还可以是智慧屏、冰箱等智能家居设备;或者,还可以是车载设备等等,或者,还可以是虚拟现实(Virtual Reality,VR)设备、增强现实(Augmented Reality,AR)设备、混合现实技术(Mixed Reality,MR)设备,等等,总之本申请实施例不限定第二设备的具体类型。For example, the second audio device may be a device capable of playing sound, such as a portable electronic device such as a speaker, earphones, mobile phone, tablet computer, or notebook computer; or it may also be a wearable device such as a watch or bracelet; or, It can also be smart home equipment such as smart screens and refrigerators; or it can be vehicle-mounted equipment, etc.; or it can be virtual reality (Virtual Reality, VR) equipment, augmented reality (Augmented Reality, AR) equipment, or mixed reality technology (Mixed Reality, MR) device, etc. In short, the embodiments of this application do not limit the specific type of the second device.
第一音频设备与第二音频设备可以是相同类型的设备,例如,第一音频设备和第二音频设备都是音箱,当然,第一音频设备和第二音频设备也可以是不同类型的设备,本申请实施例不作限定。The first audio device and the second audio device may be the same type of device. For example, the first audio device and the second audio device are both speakers. Of course, the first audio device and the second audio device may also be different types of devices. The embodiments of this application are not limiting.
为了方便理解,本文主要以第一音频设备和第二音频设备都是音箱为例进行说明。For the convenience of understanding, this article mainly takes the example that both the first audio device and the second audio device are speakers.
示例性的,请参见图1,为本申请实施例提供的通信系统的示意图。如图1所示,通信系统包括第一音频设备和第二音频设备。其中,第一音频设备和第二音频设备都以音箱为例。其中,第一音频设备和第二音频设备可以使用本申请提供的时钟同步方法建立时钟同步,这样,两个音频设备的时钟同步可以提升立体声音效果。For example, please refer to Figure 1, which is a schematic diagram of a communication system provided by an embodiment of the present application. As shown in Figure 1, a communication system includes a first audio device and a second audio device. Among them, the first audio device and the second audio device are both speakers. Among them, the first audio device and the second audio device can use the clock synchronization method provided by this application to establish clock synchronization. In this way, the clock synchronization of the two audio devices can improve the stereo sound effect.
下面介绍本申请相关的设备。The equipment related to this application is introduced below.
图2为本申请实施例提供的第一音频设备和第二音频设备的结构示意图。如图2所示,左半部分为第一音频设备的结构,右半部分为第二音频设备的结构。Figure 2 is a schematic structural diagram of a first audio device and a second audio device provided by an embodiment of the present application. As shown in Figure 2, the left half is the structure of the first audio device, and the right half is the structure of the second audio device.
第一音频设备包括第一定时对时模块、第一通信接口和第二通信接口。其中,第一定时对时模块用于定时的启动第一音频设备的对时功能,对时功能也称为时钟同步功能。第一通信接口用于与第二音频设备建立第一通信连接。第二通信接口用于与第二音频设备建立第二通信连接。示例性的,第一通信接口例如可以是无线接口,例如wifi接口。第二通信接口例如可以是有线接口,例如电力线通信(powerline communication,PLC)接口。The first audio device includes a first timing module, a first communication interface and a second communication interface. Among them, the first timing synchronization module is used to regularly start the time synchronization function of the first audio device, and the time synchronization function is also called a clock synchronization function. The first communication interface is used to establish a first communication connection with the second audio device. The second communication interface is used to establish a second communication connection with the second audio device. For example, the first communication interface may be a wireless interface, such as a wifi interface. The second communication interface may be, for example, a wired interface, such as a powerline communication (PLC) interface.
第一音频设备中还包括数据筛选模块,用于在多个时钟差中筛选有效数据,具体实现过程将在后文介绍。在一些实施例中,当数据筛选模块没有筛选出有效数据时,可以向第一定时对时模块发送指令,以指示第一定时对时模块重新执行时钟同步流程。The first audio device also includes a data filtering module for filtering valid data among multiple clock differences. The specific implementation process will be introduced later. In some embodiments, when the data filtering module does not filter out valid data, an instruction can be sent to the first timing synchronization module to instruct the first timing synchronization module to re-execute the clock synchronization process.
第一音频设备中还包括时钟设置模块,用于设置第一音频设备的时钟使其与第二音频设备中的时钟同步。The first audio device also includes a clock setting module for setting the clock of the first audio device to synchronize it with the clock in the second audio device.
第二音频设备包括第二定时对时模块、第三通信接口和第四通信接口。其中,第二定时对时模块用于定时的启动第二音频设备中的定时对时模块。第三通信接口用于与第一音频设备建立第一通信连接,例如,第三通信接口与第一音频设备中的第一通信接口建立第一通信连接。第四通信接口用于与第一音频设备建立第二通信连接,例如,第四通信接口与第二音频设备中的第二通信接口建立第二通信连接。示例性的,第三通信接口可以是无线接口,例如wifi接口。第四通信接口可以是有线接口,例如电力线通信(powerline communication,PLC)接口。The second audio device includes a second timing synchronization module, a third communication interface, and a fourth communication interface. Wherein, the second timing synchronization module is used to regularly start the timing synchronization module in the second audio device. The third communication interface is used to establish a first communication connection with the first audio device. For example, the third communication interface establishes a first communication connection with the first communication interface in the first audio device. The fourth communication interface is used to establish a second communication connection with the first audio device. For example, the fourth communication interface establishes a second communication connection with the second communication interface in the second audio device. Exemplarily, the third communication interface may be a wireless interface, such as a wifi interface. The fourth communication interface may be a wired interface, such as a powerline communication (PLC) interface.
第二音频设备中还包括数据筛选模块,用于在多个时钟差中筛选有效数据,具体实现过程将在后文介绍。在一些实施例中,当数据筛选模块没有筛选出有效数据时,可以向第二定时对时模块发送指令,以指示第二定时对时模块重新执行时钟同步流程。The second audio device also includes a data filtering module, which is used to filter valid data among multiple clock differences. The specific implementation process will be introduced later. In some embodiments, when the data filtering module does not filter out valid data, an instruction can be sent to the second timing synchronization module to instruct the second timing synchronization module to re-execute the clock synchronization process.
第二音频设备中还包括时钟设置模块,用于设置第二音频设备的时钟使其与第一音频设备中的时钟同步。The second audio device also includes a clock setting module for setting the clock of the second audio device to synchronize it with the clock in the first audio device.
需要说明的是,在一些实施例中,第一音频设备中具有数据筛选模块和时钟设置模块的情况下,第二音频设备中可以不设置数据筛选模块和时钟设置模块。或者,在第一音频设备中不具有数据筛选模块和时钟设置模块的情况下,第二音频设备中可以设置数据筛选模块和时钟设置模块。当然,第一音频设备和第二音频设备中都可以具有数据筛选模块和时钟设置模块。示例性的,具有数据筛选模块和时钟设置模块的音频设备可以作为主设备,不具有数据筛选模块和时钟设置模块的音频设备作为从设备;或者,具有数据筛选模块和时钟设置模块的音频设备可以作为主设备,不具有数据筛选模块和时钟设置模块的音频设备作为从设备。It should be noted that in some embodiments, when the first audio device has a data filtering module and a clock setting module, the second audio device may not have a data filtering module and a clock setting module. Alternatively, when the first audio device does not have a data filtering module and a clock setting module, a data filtering module and a clock setting module may be provided in the second audio device. Of course, both the first audio device and the second audio device may have a data filtering module and a clock setting module. For example, an audio device with a data filtering module and a clock setting module can serve as a master device, and an audio device without a data filtering module and a clock setting module can serve as a slave device; or, an audio device with a data filtering module and a clock setting module can serve as a slave device. As a master device, the audio device without data filtering module and clock setting module acts as a slave device.
下面结合附图对本申请的技术方案进行详细的阐述。The technical solution of the present application will be described in detail below with reference to the accompanying drawings.
图3为本申请一实施例提供的音频设备的时钟同步方法的流程示意图。所述流程包括:FIG. 3 is a schematic flowchart of a clock synchronization method for audio equipment provided by an embodiment of the present application. The process includes:
S301,第一音频设备启动时钟同步。S301, the first audio device starts clock synchronization.
示例性的,第一音频设备中的第一定时对时模块会定时的启动时钟同步功能,例如,每隔一天或7天,第一定时对时模块就定时一次启动时钟同步功能。在另一些实施例中,第一音频设备还可以在用户操作下,启动时钟同步,所述用户操作可以是用户在第一音频设备上输入的任何类型的操作。For example, the first timing synchronization module in the first audio device will regularly start the clock synchronization function. For example, every other day or every 7 days, the first timing synchronization module will start the clock synchronization function regularly. In other embodiments, the first audio device may also initiate clock synchronization under user operation, and the user operation may be any type of operation input by the user on the first audio device.
S302,第二音频设备启动时钟同步。S302, the second audio device starts clock synchronization.
示例性的,第二音频设备中的第二定时对时模块会定时的启动时钟同步功能,例如,每隔一天或7天,第二定时对时模块就定时一次启动时钟同步功能。其中,第一定时对时模块和第二定时对时模块启动时钟同步功能的周期可以相同或不同。在另一些实施例中,第二音频设备还可以在用户操作下,启动时钟同步,所述用户操作可以是用户在第二音频设备上输入的任何类型的操作。For example, the second timing synchronization module in the second audio device will regularly start the clock synchronization function. For example, every other day or every 7 days, the second timing synchronization module will start the clock synchronization function regularly. The cycles in which the first timing synchronization module and the second timing synchronization module start the clock synchronization function may be the same or different. In other embodiments, the second audio device can also initiate clock synchronization under user operation, and the user operation can be any type of operation input by the user on the second audio device.
S303,第一音频设备与第二音频设备建立第一通信连接。S303. The first audio device establishes a first communication connection with the second audio device.
其中,第一通信连接可以是有线连接或无线连接,如果是无线连接可以是蓝牙、WIFI等多种无线连接方式。Wherein, the first communication connection can be a wired connection or a wireless connection. If it is a wireless connection, it can be a variety of wireless connection methods such as Bluetooth and WIFI.
S304,第一音频设备和第二音频设备计算第一时钟差。S304. The first audio device and the second audio device calculate a first clock difference.
下面结合图4,说明第一时钟差的计算过程。该过程包括如下步骤:The calculation process of the first clock difference will be described below with reference to FIG. 4 . The process includes the following steps:
步骤a,第一音频设备向第二音频设备发送第一消息,并记录第一消息的发送时刻T1。其中,第一消息可以是同步(synchronize,Sync)报文。Step a: The first audio device sends the first message to the second audio device, and records the sending time T1 of the first message. The first message may be a synchronization (synchronize, Sync) message.
步骤b,第二音频设备接收第一消息,并记录第一消息的接收时刻T2。Step b: The second audio device receives the first message and records the receiving time T2 of the first message.
步骤c,第一音频设备向第二音频设备发送第二消息,第二消息中携带发送时刻T1。其中,第二消息可以是跟随(Follow_Up)报文。因此,第二音频设备获取到了T1。Step c: The first audio device sends a second message to the second audio device, and the second message carries the sending time T1. The second message may be a Follow_Up message. Therefore, the second audio device obtains T1.
步骤d,第二音频设备向第一音频设备发送第三消息,并记录第三消息的发送时刻T3。其中,第三消息可以是延迟请求(Delay_Req)报文。In step d, the second audio device sends the third message to the first audio device, and records the sending time T3 of the third message. The third message may be a delay request (Delay_Req) message.
步骤e,第一音频设备接收第三消息,并记录第三消息的接收时刻T4。Step e: The first audio device receives the third message and records the receiving time T4 of the third message.
步骤f,第一音频设备向第二音频设备发送第四消息,第四消息中携带接收时刻T4。其中,第四消息可以是延迟请求(Delay_Resp)响应。Step f: The first audio device sends a fourth message to the second audio device, and the fourth message carries the reception time T4. The fourth message may be a delay request (Delay_Resp) response.
也就是说,第二音频设备侧获取到了四个时刻,T1、T2、T3、T4。第二音频设备可以根据这四个时刻计算出第一时钟差。例如,第一音频设备和第二音频设备之间的第一时钟差(图4中未示出)表示为Tms,满足如下公式,Tmsd=T2+Tms-T1Tsmd=T4–(Tms+T3)In other words, the second audio device side obtains four times, T1, T2, T3, and T4. The second audio device can calculate the first clock difference based on these four moments. For example, the first clock difference (not shown in Figure 4) between the first audio device and the second audio device is expressed as Tms and satisfies the following formula, Tmsd=T2+Tms-T1Tsmd=T4–(Tms+T3)
其中,Tmsd表示信息从第一音频设备到第二音频设备的时长,Tsmd表示信息从第二音频设备到第一音频设备的时长,假设通信路径的对称性,Tmsd==Tsmd,所以上述的两个公式变形为:T2+Tms–T1=T4–(Tms+T3)Among them, Tmsd represents the duration of information from the first audio device to the second audio device, and Tsmd represents the duration of information from the second audio device to the first audio device. Assuming the symmetry of the communication path, Tmsd==Tsmd, so the above two The formula is transformed into: T2+Tms–T1=T4–(Tms+T3)
因此,通过上面的公式可以求解出Tms=1/2*(T2–T1+T4-T3),即第一时钟差为1/2*(T2–T1+T4-T3)。Therefore, Tms=1/2*(T2–T1+T4-T3) can be solved through the above formula, that is, the first clock difference is 1/2*(T2–T1+T4-T3).
需要说明的是,上面的图4中,以第一音频设备向第二音频设备发送第一消息开始,直到第二音频设备获取到四个时刻(T1、T2、T3、T4)后根据这四个时刻计算第一时钟差为例。在另一些实施例,可以第二音频设备向第一音频设备发送第一信息开始,等到第一音频设备获取到四个时刻后,根据所述四个时刻确定第一音频设备与第二音频设备之间的时钟差。简单来说,上述步骤a至步骤f中第一音频设备和第二音频设备的角色对调。It should be noted that in Figure 4 above, it starts with the first audio device sending the first message to the second audio device until the second audio device obtains four times (T1, T2, T3, T4) according to these four times. Calculate the first clock difference at a moment as an example. In other embodiments, the second audio device may start sending the first information to the first audio device, wait until the first audio device obtains four moments, and determine the relationship between the first audio device and the second audio device based on the four moments. clock difference. To put it simply, the roles of the first audio device and the second audio device are reversed in the above steps a to f.
需要说明的是,图4是S304的一种可实现方式,在另一些实施例中,还可以通过其它方式计算第一时钟差,例如,第一时钟差等于第一时长加上第二时长的一半。第一时长是信息从第一音频设备到第二音频设备的时长,第二时长是对所述信息的响应从第二音频设备到第一音频设备的时长。It should be noted that Figure 4 is an implementation manner of S304. In other embodiments, the first clock difference can also be calculated in other ways. For example, the first clock difference is equal to the first duration plus the second duration. half. The first duration is the duration of the message from the first audio device to the second audio device, and the second duration is the duration of the response to the message from the second audio device to the first audio device.
S305,第一音频设备与第二音频设备建立第二通信连接。S305. The first audio device establishes a second communication connection with the second audio device.
其中,第二通信连接可以是有线连接或无线连接,如果是无线连接可以是蓝牙、WIFI等多种无线连接方式。第二通信连接与第一通信连接可以是相同的连接方式,或者,不同的连接方式。为了提升时钟同步精准度,第一通信连接和第二通信连接可以是不同连接,例如,一个是有线连接,另一个是无线连接。这样的话,两种连接方式之间干扰小,计算出的时钟差较为准确。Wherein, the second communication connection can be a wired connection or a wireless connection. If it is a wireless connection, it can be a variety of wireless connection methods such as Bluetooth and WIFI. The second communication connection and the first communication connection may be in the same connection mode, or may be in different connection modes. In order to improve the clock synchronization accuracy, the first communication connection and the second communication connection may be different connections, for example, one is a wired connection and the other is a wireless connection. In this case, the interference between the two connection methods is small and the calculated clock difference is more accurate.
在一些实施例中,第一音频设备与第二音频设备建立第二通信连接之前,可以中断或不中断第一通信连接。为了提升时钟同步的精准度,可以中断第一通信连接,以降低对第二通信连接的干扰,提升计算的时钟差较为准确。In some embodiments, before the first audio device establishes the second communication connection with the second audio device, the first communication connection may or may not be interrupted. In order to improve the accuracy of clock synchronization, the first communication connection can be interrupted to reduce interference to the second communication connection and improve the calculated clock difference to be more accurate.
S306,第一音频设备和第二音频设备计算第二时钟差。S306: The first audio device and the second audio device calculate a second clock difference.
其中,第二时钟差的计算方法与前文中第一时钟差的计算方法原理相同,不重复赘述。The calculation method of the second clock difference is the same as the calculation method of the first clock difference mentioned above, and will not be repeated.
S307,第一音频设备和第二音频设备基于第一时钟差和第二时钟差计算第三时钟差。S307: The first audio device and the second audio device calculate a third clock difference based on the first clock difference and the second clock difference.
在本申请实施例中,第三时钟差的计算方式包括如下至少一种:In this embodiment of the present application, the calculation method of the third clock difference includes at least one of the following:
方式1,第一时钟差是一个值,以A表示,第二时钟差是一个值,以B表示。第三时钟差是第一时钟差和第二时钟差的中间值,例如第一时钟差和第二时钟差的平均值,即(A+B)/2。Method 1, the first clock difference is a value, represented by A, and the second clock difference is a value, represented by B. The third clock difference is the intermediate value of the first clock difference and the second clock difference, for example, the average value of the first clock difference and the second clock difference, that is, (A+B)/2.
方式2,第一时钟差是多个值,例如多个A,第二时钟差是多个值,例如多个B。第三时钟差是第一平均值(多个A的平均值)与第二平均值(多个B的平均值)的第三平均值。其中,第一时钟差是多个值,可以理解为,执行了多次图4的流程,因为每执行一次得到一个时钟差,重复执行多次,则得到多个时钟差,所以第一时钟差有多个值。第二时钟差是多个值,也是采用相同的原理。Method 2: the first clock difference has multiple values, such as multiple A's, and the second clock difference has multiple values, such as multiple B's. The third clock difference is a third average value of the first average value (the average value of multiple A's) and the second average value (the average value of multiple B's). Among them, the first clock difference has multiple values. It can be understood that the process in Figure 4 has been executed multiple times, because each time it is executed, one clock difference is obtained, and if it is repeated multiple times, multiple clock differences are obtained, so the first clock difference There are multiple values. The second clock difference has multiple values, and the same principle is used.
方式3,第一时钟差是多个值,例如多个A,计算多个A的方差,得到方差1。第二时钟差是多个值,例如多个B,计算多个B的方差,得到方差2。Method 3: The first clock difference is multiple values, such as multiple A's. Calculate the variance of multiple A's and obtain the variance 1. The second clock difference is multiple values, such as multiple Bs. Calculate the variance of multiple Bs and obtain the variance 2.
若方差1小于阈值1,且,方差2小于阈值2,那么认为第一时钟差和第二时钟差是有效数据,可以根据第一时钟差和第二时钟差计算第三时钟差,例如,使用上面的方式2计算得到第三时钟差。其中,阈值1与阈值2可以相同或不同,本申请实施例不作限定。If variance 1 is less than threshold 1, and variance 2 is less than threshold 2, then the first clock difference and the second clock difference are considered to be valid data, and the third clock difference can be calculated based on the first clock difference and the second clock difference, for example, use Method 2 above calculates the third clock difference. Threshold 1 and threshold 2 may be the same or different, and are not limited in the embodiments of this application.
若方差1大于或等于阈值1,和/或,方差2大于或等于阈值2,那么认为第一时钟差和第二时钟差是无效数据,无需根据第一时钟差和第二时钟差计算第三时钟差。此时,第一音频设备或第二音频设备可以重新执行时钟同步流程,例如,重新执行S301。If variance 1 is greater than or equal to threshold 1, and/or variance 2 is greater than or equal to threshold 2, then the first clock difference and the second clock difference are considered to be invalid data, and there is no need to calculate the third clock difference based on the first clock difference and the second clock difference. Clock difference. At this time, the first audio device or the second audio device can re-execute the clock synchronization process, for example, re-execute S301.
S308,第一音频设备和第二音频设备根据第三时钟差进行时钟配置。S308: The first audio device and the second audio device perform clock configuration based on the third clock difference.
假设第三时钟差为500ms,那么可以控制第二音频设备的时钟增加500ms。假设第三时钟差为-500ms,那么可以控制第二音频设备的时钟降低500ms。Assuming that the third clock difference is 500ms, the clock of the second audio device can be controlled to increase by 500ms. Assuming that the third clock difference is -500ms, the clock of the second audio device can be controlled to be reduced by 500ms.
图5为本申请实施例提供的电子设备500的结构示意图。电子设备500可以是前文中的第一音频设备或第二音频设备。如图5所示,电子设备500可以包括:一个或多个处理器501;一个或多个存储器502;通信接口503,以及一个或多个计算机程序504,上述各器件可以通过一个或多个通信总线505连接。其中该一个或多个计算机程序504被存储在上述存储器502中并被配置为被该一个或多个处理器501执行,该一个或多个计算机程序304包括指令。比如,上述指令可以用于执行如上面相应实施例中第一音频设备或第二音频设备的相关步骤。通信接口503用于实现第一音频设备或第二音频设备与其他设备的通信,比如通信接口可以是收发器。FIG. 5 is a schematic structural diagram of an electronic device 500 provided by an embodiment of the present application. The electronic device 500 may be the first audio device or the second audio device mentioned above. As shown in Figure 5, the electronic device 500 may include: one or more processors 501; one or more memories 502; a communication interface 503, and one or more computer programs 504. Each of the above devices can communicate through one or more Bus 505 connection. Where the one or more computer programs 504 are stored in the memory 502 and configured to be executed by the one or more processors 501 , the one or more computer programs 304 include instructions. For example, the above instructions can be used to perform relevant steps of the first audio device or the second audio device in the above corresponding embodiments. The communication interface 503 is used to implement communication between the first audio device or the second audio device and other devices. For example, the communication interface may be a transceiver.
本申请实施例还提供一种通信系统。所述通信系统中包括第一音频设备和第二音频设备。示例性的,第一音频设备可以是音箱、手机、平板电脑、PC、手表等设备。第二音频设备可以是音箱、手机、平板电脑、PC、手表等设备。其中,第一音频设备和第二音频设备的结构可以参见图5所示。比如,当图5所示的电子设备500是第一音频设备时,当一个或多个计算机程序504的指令被处理器执行时,使得所述第一音频设备执行如前文中第一音频设备(如,主音箱)的步骤。当图5所示的电子设备500是第二音频设备时,当一个或多个计算机程序504的指令被所述处理器执行时,使得所述电子设备500执行如前文中第二音频设备(如,辅音箱)的步骤。An embodiment of the present application also provides a communication system. The communication system includes a first audio device and a second audio device. For example, the first audio device may be a speaker, a mobile phone, a tablet, a PC, a watch, or other devices. The second audio device may be a speaker, mobile phone, tablet, PC, watch, etc. The structure of the first audio device and the second audio device can be seen in Figure 5 . For example, when the electronic device 500 shown in FIG. 5 is a first audio device, when the instructions of one or more computer programs 504 are executed by the processor, the first audio device is caused to execute the first audio device as described above ( For example, main speakers). When the electronic device 500 shown in FIG. 5 is a second audio device, when the instructions of one or more computer programs 504 are executed by the processor, the electronic device 500 is caused to execute the second audio device (such as , auxiliary speaker) steps.
上述本申请提供的实施例中,从电子设备(例如第一音频设备或第二音频设备)作为执行主体的角度对本申请实施例提供的方法进行了介绍。为了实现上述本申请实施例提供的方法中的各功能,电子设备可以包括硬件结构和/或软件模块,以硬件结构、软件模块、或硬件结构加软件模块的形式来实现上述各功能。上述各功能中的某个功能以硬件结构、软件模块、还是硬件结构加软件模块的方式来执行,取决于技术方案的特定应用和设计约束条件。In the above-mentioned embodiments provided by the present application, the method provided by the embodiments of the present application is introduced from the perspective of an electronic device (such as a first audio device or a second audio device) as the execution subject. In order to implement each function in the method provided by the above embodiments of the present application, the electronic device may include a hardware structure and/or a software module to implement the above functions in the form of a hardware structure, a software module, or a hardware structure plus a software module. Whether one of the above functions is performed as a hardware structure, a software module, or a hardware structure plus a software module depends on the specific application and design constraints of the technical solution.
以上实施例中所用,根据上下文,术语“当…时”或“当…后”可以被解释为意思是“如果…”或“在…后”或“响应于确定…”或“响应于检测到…”。类似地,根据上下文,短语“在确定…时”或“如果检测到(所陈述的条件或事件)”可以被解释为意思是“如果确定…”或“响应于确定…”或“在检测到(所陈述的条件或事件)时”或“响应于检测到(所陈述的条件或事件)”。另外,在上述实施例中,使用诸如第一、第二之类的关系术语来区份一个实体和另一个实体,而并不限制这些实体之间的任何实际的关系和顺序。As used in the above embodiments, depending on the context, the terms "when" or "after" may be interpreted to mean "if..." or "after" or "in response to determining..." or "in response to detecting …”. Similarly, depending on the context, the phrase "when determining..." or "if (stated condition or event) is detected" may be interpreted to mean "if it is determined..." or "in response to determining..." or "on detecting (stated condition or event)” or “in response to detecting (stated condition or event)”. In addition, in the above embodiments, relational terms such as first and second are used to distinguish one entity from another entity, without limiting any actual relationship and order between these entities.
在本说明书中描述的参考“一个实施例”或“一些实施例”等意味着在本申请的一个或多个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本说明书中的不同之处出现的语句“在一个实施例中”、“在一些实施例中”、“在其他一些实施例中”、“在另外一些实施例中”等不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其他方式另外特别强调。术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。Reference in this specification to "one embodiment" or "some embodiments" or the like means that a particular feature, structure or characteristic described in connection with the embodiment is included in one or more embodiments of the application. Therefore, the phrases "in one embodiment", "in some embodiments", "in other embodiments", "in other embodiments", etc. appearing in different places in this specification are not necessarily References are made to the same embodiment, but rather to "one or more but not all embodiments" unless specifically stated otherwise. The terms “including,” “includes,” “having,” and variations thereof all mean “including but not limited to,” unless otherwise specifically emphasized.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本发明实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid State Disk(SSD))等。在不冲突的情况下,以上各实施例的方案都可以组合使用。In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in accordance with the embodiments of the present invention are generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another, e.g., the computer instructions may be transferred from a website, computer, server, or data center Transmission to another website, computer, server or data center by wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains one or more available media integrated. The available media may be magnetic media (eg, floppy disk, hard disk, magnetic tape), optical media (eg, DVD), or semiconductor media (eg, Solid State Disk (SSD)), etc. As long as there is no conflict, the solutions of the above embodiments can be used in combination.
需要指出的是,本专利申请文件的一部分包含受著作权保护的内容。除了对专利局的专利文件或记录的专利文档内容制作副本以外,著作权人保留著作权。It should be noted that part of this patent application document contains content protected by copyright. The copyright owner retains copyright except in making copies of the contents of the patent document or records in the Patent Office.
Claims (11)
- 一种音频设备的时钟同步方法,其特征在于,所述方法应用于系统,所述系统中包括第一音频设备和第二音频设备,所述方法包括:A clock synchronization method for audio equipment, characterized in that the method is applied to a system, the system includes a first audio equipment and a second audio equipment, and the method includes:所述第一音频设备与所述第二音频设备建立第一通信连接;The first audio device establishes a first communication connection with the second audio device;所述第一音频设备或所述第二音频设备计算所述第一音频设备与所述第二音频设备基于所述第一通信连接存在的第一时钟差;The first audio device or the second audio device calculates a first clock difference between the first audio device and the second audio device based on the first communication connection;所述第一音频设备与所述第二音频设备建立第二通信连接;The first audio device establishes a second communication connection with the second audio device;所述第一音频设备或所述第二音频设备计算所述第一音频设备与所述第二音频设备基于所述第二通信连接存在的第二时钟差;The first audio device or the second audio device calculates a second clock difference between the first audio device and the second audio device based on the second communication connection;所述第一音频设备或所述第二音频设备基于所述第一时钟差和所述第二时钟差计算第三时钟差;The first audio device or the second audio device calculates a third clock difference based on the first clock difference and the second clock difference;所述第一音频设备与所述第二音频设备基于所述第三时钟差进行时钟同步。The first audio device and the second audio device perform clock synchronization based on the third clock difference.
- 根据权利要求1所述的方法,其特征在于,所述第二音频设备计算所述第一音频设备与所述第二音频设备基于所述第一通信连接存在的第一时钟差,包括:The method of claim 1, wherein the second audio device calculates a first clock difference between the first audio device and the second audio device based on the first communication connection, including:所述第一音频设备向所述第二音频设备发送第一信号,并记录所述第一信号的第一发送时刻;The first audio device sends a first signal to the second audio device, and records the first sending moment of the first signal;所述第二音频设备接收所述第一信息,并记录所述第一信号的第一接收时刻;The second audio device receives the first information and records the first reception moment of the first signal;所述第一音频设备向所述第二音频设备发送第二信号,所述第二信号中携带所述第一发送时刻;The first audio device sends a second signal to the second audio device, and the second signal carries the first sending time;所述第二音频设备向所述第一音频设备发送第三信号,并记录所述第三信号的第二发送时刻;The second audio device sends a third signal to the first audio device, and records the second sending moment of the third signal;所述第一音频设备接收所述第三信号,并记录所述第三信号的第二接收时刻;The first audio device receives the third signal and records the second reception moment of the third signal;所述第一音频设备向所述第二音频设备发送第四信号,所述第四信号中携带所述第二接收时刻;The first audio device sends a fourth signal to the second audio device, where the fourth signal carries the second receiving time;所述第二音频设备基于所述第一发送时刻、所述第一接收时刻、所述第二发送时刻、所述第二接收时刻,计算得到所述第一时钟差。The second audio device calculates the first clock difference based on the first sending time, the first receiving time, the second sending time, and the second receiving time.
- 根据权利要求1所述的方法,其特征在于,所述第二音频设备计算所述第一音频设备与所述第二音频设备基于所述第二通信连接存在的第二时钟差,包括:The method of claim 1, wherein the second audio device calculates a second clock difference between the first audio device and the second audio device based on the second communication connection, including:所述第一音频设备向所述第二音频设备发送第五信号,并记录所述第五信号的第三发送时刻;The first audio device sends a fifth signal to the second audio device, and records a third sending moment of the fifth signal;所述第二音频设备接收所述第五信息,并记录所述第五信号的第三接收时刻;The second audio device receives the fifth information and records the third reception moment of the fifth signal;所述第一音频设备向所述第二音频设备发送第六信号,所述第六信号中携带所述第三发送时刻;The first audio device sends a sixth signal to the second audio device, where the sixth signal carries the third sending time;所述第二音频设备向所述第一音频设备发送第七信号,并记录所述第七信号的第四发送时刻;The second audio device sends a seventh signal to the first audio device, and records a fourth sending moment of the seventh signal;所述第一音频设备接收所述第七信号,并记录所述第七信号的第四接收时刻;The first audio device receives the seventh signal and records a fourth reception moment of the seventh signal;所述第一音频设备向所述第二音频设备发送第八信号,所述第八信号中携带所述第四 接收时刻;The first audio device sends an eighth signal to the second audio device, the eighth signal carries the fourth time of reception;所述第二音频设备基于所述第三发送时刻、所述第三接收时刻、所述第四发送时刻、所述第四接收时刻,计算得到所述第二时钟差。The second audio device calculates the second clock difference based on the third sending time, the third receiving time, the fourth sending time, and the fourth receiving time.
- 根据权利要求1所述的方法,其特征在于,所述第三时钟差是所述第一时钟差与所述第二时钟差的中间值。The method of claim 1, wherein the third clock difference is an intermediate value of the first clock difference and the second clock difference.
- 根据权利要求1所述的方法,其特征在于,所述第一时钟差包括多个值,所述第二时钟差包括多个值,所述第三时钟差是第一平均值和第二平均值的中间值,所述第一平均值为所述第一时钟差的多个值的平均值,所述第二平均值为所述第二时钟差的多个值的平均值。The method of claim 1, wherein the first clock difference includes a plurality of values, the second clock difference includes a plurality of values, and the third clock difference is a first average value and a second average value. The first average value is the average value of multiple values of the first clock difference, and the second average value is the average value of multiple values of the second clock difference.
- 根据权利要求1所述的方法,其特征在于,所述第一时钟差包括多个值,所述第二时钟差包括多个值;所述第一音频设备基于所述第一时钟差和所述第二时钟差计算第三时钟差之前,还包括:The method of claim 1, wherein the first clock difference includes a plurality of values, the second clock difference includes a plurality of values; the first audio device is based on the first clock difference and the Before calculating the third clock difference, the second clock difference also includes:所述第一音频设备或所述第二音频设备确定所述第一时钟差的多个值的第一方差小于第一阈值,和/或,确定所述第二时钟差的多个值的第二方差小于第二阈值。The first audio device or the second audio device determines that a first variance of multiple values of the first clock difference is less than a first threshold, and/or determines that a first variance of multiple values of the second clock difference is less than a first threshold. The second variance is less than the second threshold.
- 根据权利要求6所述的方法,其特征在于,所述方法还包括:The method of claim 6, further comprising:确定所述第一方差大于或等于第一阈值,且,确定所述第二方差大于或等于第二阈值;It is determined that the first variance is greater than or equal to a first threshold, and it is determined that the second variance is greater than or equal to a second threshold;所述第一音频设备或所述第二音频设备输出提示信息,所述提示信息用于提示重新进行时钟差计算。The first audio device or the second audio device outputs prompt information, and the prompt information is used to prompt to recalculate the clock difference.
- 根据权利要求1所述的方法,其特征在于,所述第一通信连接为无线连接,所述第二通信连接为有线连接。The method of claim 1, wherein the first communication connection is a wireless connection, and the second communication connection is a wired connection.
- 一种通信系统,其特征在于,包括:第一音频设备和第二音频设备;A communication system, characterized by including: a first audio device and a second audio device;所述第一音频设备执行如权利要求1至8任一项所述的方法中第一音频设备的步骤;The first audio device performs the steps of the first audio device in the method according to any one of claims 1 to 8;所述第二音频设备执行如权利要求1至8任一项所述的方法中第二音频设备的步骤。The second audio device performs the steps of the second audio device in the method according to any one of claims 1 to 8.
- 一种电子设备,其特征在于,包括:An electronic device, characterized by including:处理器,存储器,以及,一个或多个程序;processor, memory, and, one or more programs;其中,所述一个或多个程序被存储在所述存储器中,所述一个或多个程序包括指令,当所述指令被所述处理器执行时,使得所述电子设备执行如权利要求1至8中任意一项所述的方法中第一音频设备或第二音频设备的步骤。Wherein, the one or more programs are stored in the memory, and the one or more programs include instructions that, when executed by the processor, cause the electronic device to perform the tasks of claims 1 to The steps of the first audio device or the second audio device in the method described in any one of 8.
- 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质用于存储计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行如权利要求1至8中任意一项所述的方法。 A computer-readable storage medium, characterized in that the computer-readable storage medium is used to store a computer program. When the computer program is run on a computer, it causes the computer to execute any one of claims 1 to 8. method described in the item.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210359514.0 | 2022-04-06 | ||
CN202210359514.0A CN116938430A (en) | 2022-04-06 | 2022-04-06 | Clock synchronization method and system of audio equipment and audio equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2023193667A1 true WO2023193667A1 (en) | 2023-10-12 |
Family
ID=88244035
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2023/085677 WO2023193667A1 (en) | 2022-04-06 | 2023-03-31 | Clock synchronization method and system of audio device, and electronic device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN116938430A (en) |
WO (1) | WO2023193667A1 (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080019398A1 (en) * | 2006-07-20 | 2008-01-24 | Adimos Systems Ltd. | Clock recovery in wireless media streaming |
CN109600186A (en) * | 2018-11-20 | 2019-04-09 | Ut斯达康通讯有限公司 | Clock synchronizing method and device |
CN112910592A (en) * | 2021-02-22 | 2021-06-04 | 北京小米松果电子有限公司 | Clock synchronization method and device, terminal and storage medium |
CN113687686A (en) * | 2021-08-10 | 2021-11-23 | 北京小米移动软件有限公司 | Clock synchronization method and device, electronic equipment and storage medium |
-
2022
- 2022-04-06 CN CN202210359514.0A patent/CN116938430A/en active Pending
-
2023
- 2023-03-31 WO PCT/CN2023/085677 patent/WO2023193667A1/en unknown
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080019398A1 (en) * | 2006-07-20 | 2008-01-24 | Adimos Systems Ltd. | Clock recovery in wireless media streaming |
CN109600186A (en) * | 2018-11-20 | 2019-04-09 | Ut斯达康通讯有限公司 | Clock synchronizing method and device |
CN112910592A (en) * | 2021-02-22 | 2021-06-04 | 北京小米松果电子有限公司 | Clock synchronization method and device, terminal and storage medium |
CN113687686A (en) * | 2021-08-10 | 2021-11-23 | 北京小米移动软件有限公司 | Clock synchronization method and device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN116938430A (en) | 2023-10-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106557297B (en) | Adapting audio output based on context | |
WO2022094835A1 (en) | Audio synchronization playback method, apparatus, device, and storage medium | |
US9467735B2 (en) | Synchronizing digital audio and analog video from a portable media device | |
JP6626440B2 (en) | Method and apparatus for playing multimedia files | |
WO2014079228A1 (en) | Method for automatic cleaning background application of electronic device, electronic device and storage medium | |
JP2019186930A (en) | Method and apparatus for reducing continuous-wakeup delay in bluetooth loudspeaker, and bluetooth loudspeaker | |
TW200529000A (en) | High data rate interface with improved link synchronization | |
WO2022048075A1 (en) | Clock synchronization method and apparatus, and storage medium | |
JP2019526844A (en) | System and method for controlling an isochronous data stream | |
WO2017166607A1 (en) | Earphone-based sound recording control method and apparatus, electronic device, and storage medium | |
WO2022135244A1 (en) | Data synchronization method and related device | |
WO2023029850A1 (en) | Data processing method and apparatus, and electronic device and medium | |
TW201743322A (en) | Method for synchronously accessing audio data and audio playback system using the same | |
CN112398567A (en) | Clock synchronization method and device in encryption communication process and multi-device system | |
WO2023193667A1 (en) | Clock synchronization method and system of audio device, and electronic device | |
US20230014836A1 (en) | Method for chorus mixing, apparatus, electronic device and storage medium | |
WO2022062979A1 (en) | Audio processing method, computer-readable storage medium, and electronic device | |
WO2023207807A1 (en) | Audio playback method, system, and electronic device | |
WO2024066694A1 (en) | Connection method and apparatus for audio devices, and storage medium and device | |
CN107239253B (en) | Wireless local area network player, system and method for synchronizing playing speed | |
WO2017166606A1 (en) | Audio playback method and apparatus, terminal device, electronic device, and storage medium | |
WO2023165384A1 (en) | Synchronous playback method and apparatus, terminal device and storage medium | |
WO2022155879A1 (en) | Time synchronization method and related device | |
CN111263206B (en) | Synchronous playing method and device of multimedia information, storage medium and mobile terminal | |
WO2024083192A1 (en) | Audio processing method and apparatus, device, storage medium, and program product |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 23784231 Country of ref document: EP Kind code of ref document: A1 |