CN104320843B - Audio synchronization method of Bluetooth sound production device - Google Patents

Audio synchronization method of Bluetooth sound production device Download PDF

Info

Publication number
CN104320843B
CN104320843B CN201410524717.6A CN201410524717A CN104320843B CN 104320843 B CN104320843 B CN 104320843B CN 201410524717 A CN201410524717 A CN 201410524717A CN 104320843 B CN104320843 B CN 104320843B
Authority
CN
China
Prior art keywords
bluetooth sound
sound generating
bluetooth
generating device
samples
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410524717.6A
Other languages
Chinese (zh)
Other versions
CN104320843A (en
Inventor
谢坤融
苏义峰
林政良
邱圣友
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dafa Technology Co.,Ltd.
Original Assignee
Airoha Technology Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Airoha Technology Corp filed Critical Airoha Technology Corp
Priority to CN201410524717.6A priority Critical patent/CN104320843B/en
Publication of CN104320843A publication Critical patent/CN104320843A/en
Application granted granted Critical
Publication of CN104320843B publication Critical patent/CN104320843B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L19/00Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis
    • G10L19/04Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis using predictive techniques
    • G10L19/16Vocoder architecture
    • G10L19/18Vocoders using multiple modes
    • G10L19/24Variable rate codecs, e.g. for generating different qualities using a scalable representation such as hierarchical encoding or layered encoding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B5/00Near-field transmission systems, e.g. inductive or capacitive transmission systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Computational Linguistics (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Multimedia (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The audio synchronization method of the Bluetooth sound production device comprises the steps that the Bluetooth sound production device comprises a first Bluetooth sound production device and a second Bluetooth sound production device, and the first Bluetooth sound production device and the second Bluetooth sound production device are connected through Bluetooth and transmit digital audio packets. The audio synchronization method of the invention comprises the following steps: capturing the number of samples converted by the first Bluetooth sound generating device and the second Bluetooth sound generating device at a first time point; and adjusting the sample rate converted by the second Bluetooth sound generating device according to the sample number converted by the first Bluetooth sound generating device and the second Bluetooth sound generating device. The audio synchronization method can detect and adjust the number of samples converted by the plurality of Bluetooth sound generating devices at regular time, so that the plurality of Bluetooth sound generating devices can be kept in a synchronous state at any time.

Description

Audio synchronization method of Bluetooth sound production device
Technical Field
The invention relates to an audio synchronization method of a Bluetooth sound production device, which can detect and adjust a plurality of Bluetooth sound production devices at regular time so that the plurality of Bluetooth sound production devices can be kept in a synchronous state at any time.
Background
Bluetooth (bluetooth) is a common wireless transmission technology, and is commonly used for data transmission over short distances. When data transmission is performed through bluetooth, one of the two electronic devices may be defined as a Master device (Master), and the other electronic device may be defined as a Slave device (Slave). The master device and the slave device are paired and a personal area network (personal area networks) is constructed, so that the master device and the slave device can transmit data in a wireless mode. Generally, the master device can be a mobile phone, and the slave device can be a bluetooth headset or a speaker, wherein the mobile phone can transmit digital sound data to the bluetooth headset or the speaker for playing through bluetooth, and the bluetooth headset can also transmit the digital sound data to the mobile phone.
Disclosure of Invention
The invention mainly aims to provide an audio synchronization method of a Bluetooth sound production device, which can detect and adjust a plurality of Bluetooth sound production devices at regular time so that the plurality of Bluetooth sound production devices can be kept in a synchronous state at any time.
The invention provides an audio synchronization method of Bluetooth sound production devices, wherein one Bluetooth sound production device in a plurality of Bluetooth sound production devices transmits a digital audio packet to other Bluetooth sound production devices through Bluetooth. The sample count converted by each bluetooth sound generating device is captured and compared at the same time point to know whether each bluetooth sound generating device is synchronous or not.
The invention provides an audio synchronization method of Bluetooth sound production devices, wherein one Bluetooth sound production device in a plurality of Bluetooth sound production devices transmits a digital audio packet to other Bluetooth sound production devices through Bluetooth. The sample count converted by each bluetooth sound generating device is captured and compared at the same time point, and the rate of converting the sample by at least one bluetooth sound generating device is adjusted according to the sample count, for example, the rate of converting the sample by the bluetooth sound generating device of the slave device is adjusted, so that each bluetooth sound generating device is synchronous.
The invention provides an audio synchronization method of Bluetooth sound production devices, wherein one Bluetooth sound production device in a plurality of Bluetooth sound production devices transmits a digital audio packet to other Bluetooth sound production devices through Bluetooth. The corresponding sequence numbers are added to a plurality of digital audio packets, and the sequence numbers are used for representing the number of samples accumulated before each packet, so that errors are avoided in the process of acquiring the number of samples.
In order to achieve the above object, the present invention provides an audio synchronization method for a bluetooth sound generating device, wherein the bluetooth sound generating device includes a first bluetooth sound generating device and a second bluetooth sound generating device, the first bluetooth sound generating device and the second bluetooth sound generating device are connected via bluetooth and transmit digital audio packets, and the method includes the following steps: capturing the number of samples converted by the first Bluetooth sound generating device and the second Bluetooth sound generating device at a first time point; and adjusting the rate of converting the samples by the second Bluetooth sound generating device according to the number of the samples converted by the first Bluetooth sound generating device and the second Bluetooth sound generating device.
The invention provides another audio synchronization method of a Bluetooth sound production device, wherein the Bluetooth sound production device comprises a first Bluetooth sound production device and a second Bluetooth sound production device, the first Bluetooth sound production device and the second Bluetooth sound production device are connected through Bluetooth and transmit digital audio packets, and the audio synchronization method comprises the following steps: capturing the number of samples converted by the first Bluetooth sounding device at a first time point, and generating a first sample number; transmitting the first time point and the first sample number from the first Bluetooth sound production device to the second Bluetooth sound production device; capturing the number of samples converted by the second Bluetooth sounding device at the first time point, and generating a second sample number; and adjusting the rate of the second Bluetooth sounding device for converting the samples according to the first sample quantity and the second sample quantity.
In an embodiment of the audio synchronization method of the present invention, the method includes the following steps: and comparing the number of the samples converted by the first Bluetooth sound generating device and the second Bluetooth sound generating device at the first time point.
In an embodiment of the audio synchronization method of the present invention, the first bluetooth sound generating device is a master device, and the second bluetooth sound generating device is a slave device.
In an embodiment of the audio synchronization method of the present invention, the method includes the following steps: and capturing the number of samples converted by the first Bluetooth sound production device and the second Bluetooth sound production device at the same time point.
In an embodiment of the audio synchronization method of the present invention, the method includes the following steps: and synchronizing the clock pulse of the first Bluetooth sound production device and the second Bluetooth sound production device.
In an embodiment of the audio synchronization method of the present invention, the method includes the following steps: first bluetooth sound generating mechanism pairs with second bluetooth sound generating mechanism for first bluetooth sound generating mechanism and second bluetooth sound generating mechanism use the same clock pulse.
In an embodiment of the audio synchronization method of the present invention, the method includes the following steps: the first Bluetooth sound production device and the second Bluetooth sound production device define a first time point through a clock pulse.
In an embodiment of the audio synchronization method of the present invention, the first bluetooth sound generating device and the second bluetooth sound generating device include: the buffer unit temporarily stores the digital audio packet; the decoding unit is connected with the buffer unit and decodes the samples of the digital audio packets; the sample conversion rate adjusting unit is connected with the decoding unit and adjusts the sampling rate; and the digital-analog conversion unit is connected with the sample conversion rate adjusting unit and converts the samples into analog audio signals.
In an embodiment of the audio synchronization method of the present invention, the method includes the following steps: capturing the number of samples converted at a first time point by digital-to-analog conversion units of a first Bluetooth sound generating device and a second Bluetooth sound generating device; and adjusting the sampling rate of a sample conversion rate adjusting unit of the second Bluetooth sound generating device according to the number of the samples converted by the first Bluetooth sound generating device and the second Bluetooth sound generating device.
In an embodiment of the audio synchronization method of the present invention, the method includes the following steps: and comparing the number of the samples converted at the first time point by the digital-analog conversion units of the first Bluetooth sounding device and the second Bluetooth sounding device.
In an embodiment of the audio synchronization method of the present invention, the audio synchronization method includes a plurality of digital audio packets, each of the digital audio packets includes a corresponding sequence number, and each of the sequence numbers is used to mark a number of samples accumulated before each of the digital audio packets.
The invention is described in detail below with reference to the drawings and specific examples, but the invention is not limited thereto.
Drawings
FIG. 1 is a schematic diagram of an embodiment of a Bluetooth transmission system according to the present invention;
FIG. 2 is a block diagram of an embodiment of the Bluetooth sound generating device according to the present invention;
FIG. 3 is a flowchart illustrating steps of an embodiment of an audio synchronization method for a Bluetooth sound generating device according to the present invention;
FIG. 4 is a flowchart illustrating steps of an audio synchronization method for a Bluetooth sound generating device according to another embodiment of the present invention;
FIG. 5 is a diagram of a digital audio packet according to an embodiment of the present invention;
FIG. 6 is a diagram of a digital audio packet according to another embodiment of the present invention;
FIG. 7 is a diagram of a digital audio packet according to another embodiment of the present invention.
Wherein the reference numerals
10 bluetooth transmission system 11 electronic device
12 digital audio packets 121 first packet
123 second packet 124 blank packet
125 third packet 13 bluetooth sound production device
131 first bluetooth sound emitting device 1311 buffer unit
1313 decoding unit 1315 sample slew rate adjustment unit
1317 digital-to-analog conversion unit 133 second bluetooth sound emitting device
1331 buffer 1333 decoding unit
1335 sample slew rate adjustment unit 1337 digital to analog conversion unit
14 analog audio signal 161 first sequence number
163 second sequence number 165 third sequence number
Detailed Description
The invention will be described in detail with reference to the following drawings, which are provided for illustration purposes and the like:
in the description and in the claims that follow, the term coupled or connected is intended to encompass any direct or indirect electrical connection. Thus, if a first device couples to a second device, that connection may be through a direct electrical connection, or through an indirect electrical connection via other devices and connections.
Fig. 1 is a schematic structural diagram of an embodiment of a bluetooth transmission system 10 according to the present invention, and fig. 2 is a schematic block diagram of an embodiment of a bluetooth sound generating device 13 according to the present invention. In an embodiment of the present invention, the bluetooth transmission system 10 mainly includes an electronic device 11 and a plurality of bluetooth sound generating devices 13, wherein the electronic device 11 is not necessarily configured. For convenience of illustration, the bluetooth sound generating device 13 of the present invention includes a first bluetooth sound generating device 131 and a second bluetooth sound generating device 133, wherein the first bluetooth sound generating device 131 and the second bluetooth sound generating device 133 can be connected via bluetooth and transmit the digital audio packet 12. However, in different embodiments, the number of the bluetooth sound generating devices 13 may be more than two, and the plurality of bluetooth sound generating devices 13 may also be synchronized by the audio synchronization method of the present invention.
In an embodiment of the present invention, the first bluetooth sound generating device 131 and the second bluetooth sound generating device 133 may form a sound system, wherein the first bluetooth sound generating device 131 may be a left channel and the second bluetooth sound generating device 133 may be a right channel. In a general dual-channel sound system, it is usually necessary to synchronize the first bluetooth sound generating device 131 and the second bluetooth sound generating device 133 as much as possible so that the sound system can construct a correct sound channel and achieve a good audio-visual effect. If the number of the bluetooth sound generating devices 13 is more than two, the bluetooth sound generating devices 13 should be synchronized with each other to construct a multi-channel sound system.
In the embodiment of the present invention, the digital audio packet 12 is originally stored in the electronic device 11, the electronic device 11 can transmit the digital audio packet 12 to the first bluetooth sound generating device 131 through bluetooth, and after receiving the digital audio packet 12, the first bluetooth sound generating device 131 transmits the received digital audio packet 12 to the second bluetooth sound generating device 133 through bluetooth. Although the electronic device 11 is not a necessary component of the present invention, the present invention is mainly applied to a plurality of bluetooth sound generating devices 13 and is used to synchronize the audio of the plurality of bluetooth sound generating devices 13, for example, the digital audio packet 12 can be stored in the first bluetooth sound generating device 131, and the first bluetooth sound generating device 131 can transmit the digital audio packet 12 to the second bluetooth sound generating device 133 through bluetooth.
In an embodiment of the present invention, the first bluetooth sound generating device 131 may be defined as a Master device (Master), and the second bluetooth sound generating device 133 may be defined as a Slave device (Slave). Before the first bluetooth sound generating device 131 transmits the digital audio packet 12 to the second bluetooth sound generating device 133 through bluetooth, a bluetooth connection between the first bluetooth sound generating device 131 and the second bluetooth sound generating device 133 must be established.
First, pairing (pair) of the first bluetooth sound generating device 131 and the second bluetooth sound generating device 133 is performed to synchronize clocks (clocks) of the first bluetooth sound generating device 131 and the second bluetooth sound generating device 133, so that the two devices use the same clock. During the pairing process, the first bluetooth sound generating device 131 continuously sends out inquiry packets, and after the second bluetooth sound generating device 133 in the neighboring area receives the inquiry packets, for example, the neighboring area is a bluetooth wireless transmission range, the second bluetooth sound generating device 133 sends out response packets to the first bluetooth sound generating device 131, where the response packets include a bluetooth device address (BD _ ADDR, bluetooth address) of the second bluetooth sound generating device 133.
After receiving the response packet transmitted by the second bluetooth sound generating device 133, the first bluetooth sound generating device 131 will send out a connection packet (page) according to the bluetooth device address of the response packet. Since the connection packet includes the bluetooth device address, only the second bluetooth sound generating device 133 can receive the connection packet transmitted by the first bluetooth sound generating device 131.
After the second bluetooth sound generating device 133 receives the connection packet, the clock of the first bluetooth sound generating device 131 can be known from the content of the connection packet, and the second bluetooth sound generating device 133 can synchronize with the clock of the first bluetooth sound generating device 131, for example, the first bluetooth sound generating device 131 and the second bluetooth sound generating device 133 use the same clock. Through the above steps, the bluetooth connection between the first bluetooth sound generating device 131 and the second bluetooth sound generating device 133 can be completed, so that the digital audio packet 12 can be transmitted between the first bluetooth sound generating device 131 and the second bluetooth sound generating device 133 through bluetooth.
The digital audio packet 12 is first transmitted to the first bluetooth sound generating device 131 through the electronic device 11, and then the first bluetooth sound generating device 131 transmits the received digital audio packet 12 to the second bluetooth sound generating device 133, so the time for receiving the digital audio packet 12 by the first bluetooth sound generating device 131 and the second bluetooth sound generating device 133 is different. After the first bluetooth sound generating device 131 receives the digital audio packet 12, the audio packet 12 is not immediately converted and played, but it is determined that after the second bluetooth sound generating device 133 also receives the digital audio packet 12, the first bluetooth sound generating device 131 and the second bluetooth sound generating device 133 will simultaneously play sound signals, so that the sound signals played by the first bluetooth sound generating device 131 and the second bluetooth sound generating device 133 are synchronized at an initial stage.
As shown in fig. 2, the first bluetooth sound generating device 131 and the second bluetooth sound generating device 133 include a buffer unit (buffer)1311/1331, a decode unit (decode)1313/1333, a sample rate conversion unit (sample rate conversion)1315/1335, and a digital-to-analog conversion unit (DAC)1317/1337, wherein the decode unit 1313/1333 is connected to the buffer unit 1311/1331, and the sample rate conversion unit 1315/1335 is connected to the decode unit 1313/1333 and the digital-to-analog conversion unit 1317/1337.
Certainly, in practical applications, the first bluetooth sound generating device 131 and the second bluetooth sound generating device 133 may further need different structures such as a bluetooth transmission interface, a speaker, an amplifying unit, a microprocessor and/or a power supply, so as to enable the first bluetooth sound generating device 131 and the second bluetooth sound generating device 133 to operate. However, the above-mentioned structure is not relevant to the main description of the present application and is disclosed in the prior art, and therefore is not shown in fig. 2 for the convenience of description.
The buffering unit 1311/1331 according to the embodiment of the present invention can be used to temporarily store the digital audio packet 12; the decoding unit 1313/1333 may be used to decode samples of the digital audio packet 12; the sample slew rate adjustment unit 1315/1335 may be used to adjust the sampling rate; and a digital-to-analog conversion unit 1317/1337 may be used to convert the samples of digital audio packets 12 into analog audio signals 14.
After receiving the digital audio packet 12, the first bluetooth sound generating device 131 first stores the digital audio packet 12 in the buffer unit 1311, and transmits the digital audio packet 12 to the second bluetooth sound generating device 133 through bluetooth.
After receiving the digital audio packets 12 transmitted by the first bluetooth sound generating device 131, the second bluetooth sound generating device 133 will also temporarily store the digital audio packets 12 in the buffer unit 1331. When the first bluetooth sound generating device 131 and the second bluetooth sound generating device 133 have received the digital audio packet 12, they can process and play the digital audio packet 12 at the same time. For example, the first bluetooth sound generating device 131 and the second bluetooth sound generating device 133 have the same clock, so the first bluetooth sound generating device 131 and the second bluetooth sound generating device 133 can process the digital audio packet 12 at the same clock.
The digital audio packet 12 includes a plurality of samples (samples), and the first bluetooth sound generating device 131 and the second bluetooth sound generating device 133 transmit the samples of the digital audio packet 12 to the decoding unit 1313/1333 for decoding. The decoded samples are then transmitted to the digital-to-analog conversion unit 1317/1337 by the sample slew rate adjustment unit 1315/1335, and the digital samples are converted into analog signals by the digital-to-analog conversion unit 1317/1337, so that the first bluetooth sound generating device 131 and the second bluetooth sound generating device 133 can synchronously play the analog audio signal 14.
However, after a period of time, the speed of processing the digital audio packets 12 by the first bluetooth sound generating device 131 and the second bluetooth sound generating device 133 may be different, which may cause the first bluetooth sound generating device 131 and the second bluetooth sound generating device 133 to play the analog audio signals 14 out of synchronization, and affect the broadcast quality of the first bluetooth sound generating device 131 and the second bluetooth sound generating device 133.
Fig. 3 is a flowchart illustrating steps of an embodiment of an audio synchronization method for a bluetooth sound generating apparatus according to the present invention, please refer to fig. 1 and fig. 2, and the present invention further provides an audio synchronization method for solving the problem of asynchronous playing generated among a plurality of sound generating units 13. First, the sample number (sample) converted by each sound unit 13 at the same time point is extracted, as shown in step 21. Taking the first bluetooth sound generating device sound unit 131 and the second bluetooth sound generating device sound unit 133 as an example, the number of samples converted by the first bluetooth sound generating device 131 and the second bluetooth sound generating device 133 at the first time point can be extracted, for example, how many samples are converted by the digital-to-analog conversion unit 1317/1337 of the first bluetooth sound generating device 131 and the second bluetooth sound generating device 133 at the first time point can be extracted. In the embodiment of the present invention, the converted sample number at the same time point is mainly captured, and it should be noted that the converted sample number may be captured by a plurality of sound units 13 at the same time or may not be captured at the same time when the same time point is not the same.
The number of samples converted at the same time point by each bluetooth sound generating device 13 may then be further compared, as shown in step 23. Taking the first bluetooth sound generating device sound unit 131 and the second bluetooth sound generating device sound unit 133 as an example, the number of samples converted at the first time point by the first bluetooth sound generating device 131 and the second bluetooth sound generating device 133 can be compared, for example, the number of samples converted at the first time point by the digital-to-analog conversion unit 1317/1337 of the first bluetooth sound generating device 131 and the second bluetooth sound generating device 133 can be compared. If the number of samples converted by the first bluetooth sound generating device 131 and the second bluetooth sound generating device 133 at the first time point is different, it indicates that there is an out-of-synchronization between the first bluetooth sound generating device 131 and the second bluetooth sound generating device 133.
The rate of converting the samples by the bluetooth sound generating device 13 is adjusted according to the number of the samples converted by the bluetooth sound generating device 13, as shown in step 25. Taking the first bluetooth sound generating device sound unit 131 and the second bluetooth sound generating device sound unit 133 as an example, when the number of samples converted by the first bluetooth sound generating device 131 and the second bluetooth sound generating device 133 is different, it indicates that the two are not synchronous, and at this time, the rate of converting the samples by the first bluetooth sound generating device 131 and/or the second bluetooth sound generating device 133 can be adjusted.
In an embodiment of the present invention, if the first bluetooth sound generating device 131 is a master device and the second bluetooth sound generating device 133 is a slave device, the rate of converting the samples of the second bluetooth sound generating device 133 can be adjusted according to the number of the samples converted by the first bluetooth sound generating device 131 and the second bluetooth sound generating device 133 or the comparison result, for example, the sampling rate of the sample conversion rate adjusting unit 1335 of the second bluetooth sound generating device 133 can be adjusted, so that the number of the samples converted by the second bluetooth sound generating device 133 and the first bluetooth sound generating device 131 at the same time point is the same, thereby achieving the purpose of synchronizing the first bluetooth sound generating device 131 and the second bluetooth sound generating device 133. In different embodiments, the first bluetooth sound generating device 131 and the second bluetooth sound generating device 133 may be synchronized by adjusting the rate at which the first bluetooth sound generating device 131 converts samples, or adjusting the rate at which the first bluetooth sound generating device 131 and the second bluetooth sound generating device 133 convert samples simultaneously.
In addition, in an embodiment of the present invention, the step 23 can be omitted, and the number of the converted samples can be directly used to adjust the rate of converting the samples by the bluetooth sound generating device 13, so as to achieve the purpose of synchronizing the bluetooth sound generating devices 13.
Before performing step 21 according to the embodiment of the present invention, the clocks of the first bluetooth sound generating device 131 and the second bluetooth sound generating device 133 may be synchronized, as in the embodiment of fig. 1 and fig. 2 of the present invention, and thus, the details are not repeated. In addition, since the first bluetooth sound generating device 131 and the second bluetooth sound generating device 133 use the same clock, the first time point can be defined by the clock, and the number of samples converted by the first bluetooth sound generating device 131 and the second bluetooth sound generating device 133 at the first time point can be captured.
Fig. 4 is a flowchart illustrating steps of an audio synchronization method of a bluetooth sound generating apparatus according to another embodiment of the present invention. Referring to fig. 1 and fig. 2, for convenience of description, the embodiment of the present invention is mainly described with two sound generating units 13, but the number of the sound generating units 13 is not a limitation of the present invention, and the method of the present invention may be applied to more than two sound generating units 13 in practical applications.
In the embodiment of the present invention, the first bluetooth sound generating device 131 is defined as a Master device (Master), and the second bluetooth sound generating device 133 is defined as a Slave device (Slave). The first bluetooth sound generating device 131 and the second bluetooth sound generating device 133 are paired and bluetooth-connected, so that the clocks of the first bluetooth sound generating device 131 and the second bluetooth sound generating device 133 are synchronized, wherein the pairing and connecting method between the first bluetooth sound generating device 131 and the second bluetooth sound generating device 133 is described in the above embodiments, and is not described herein again.
The number of samples converted by the first bluetooth sound generating device 131 at the first time point, for example, the number of samples converted by the digital-to-analog conversion unit 1317 of the first bluetooth sound generating device 131 at the first time point T1, is extracted, and a first number of samples SC1 is generated, as shown in step 31. The first bluetooth sound device 131 may transmit the first time point T1 and the first sample number SC1 to the second bluetooth sound device 133, as shown in step 33.
After receiving the first time point T1 and the first sample number SC1, the second bluetooth sound generating device 133 extracts the number of samples converted by itself at the first time point T1, for example, the number of samples converted by the digital-to-analog conversion unit 1337 of the second bluetooth sound generating device 133 at the first time point T1, and generates a second sample number SC2, as shown in step 35. The first sample quantity SC1 and the second sample quantity SC2, also taken at the first time point T1, may then be further compared, as shown in step 37.
According to the comparison result between the first sample amount SC1 and the second sample amount SC2, or the comparison result between the first sample amount SC1 and the second sample amount SC2, it can be known whether the first bluetooth sound generating apparatus 131 and the second bluetooth sound generating apparatus 133 are synchronized. If the two are not synchronized, the rate of converting the samples by the second bluetooth sound generating device 133 can be adjusted according to the number of converted samples or the comparison result of the number of samples, for example, the sampling rate of the sample conversion rate adjusting unit 1335 of the second bluetooth sound generating device 133 can be adjusted, so that the second bluetooth sound generating device 133 and the first bluetooth sound generating device 131 are synchronized, as shown in step 39.
In addition, in an embodiment of the present invention, the step 37 can be omitted, and the number of the converted samples can be directly used to adjust the rate of converting the samples by the bluetooth sound generating device 13, so as to achieve the purpose of synchronizing the bluetooth sound generating devices 13.
In the above embodiments of the present invention, it is mentioned that the plurality of bluetooth sound generating devices 13 capture the converted sample number at the same time point and/or at a first time point. Since the plurality of bluetooth sound generating devices 13 complete the clock synchronization during the bluetooth connection, the clocks used by the respective bluetooth sound generating devices 13 are the same. In an embodiment of the present invention, the clock of the bluetooth sound generating device 13 can be directly used as the calculation standard of the same time point and/or the first time point.
For example, each bluetooth sound generating device 13 may be configured such that each bluetooth sound generating device 13 captures the converted sample number when the number of clocks is one hundred or a multiple of one hundred, and the sampling rate of one or more bluetooth sound generating devices 13 is adjusted according to the converted sample number or the comparison result of the sample numbers. Therefore, the audio synchronization of each bluetooth sound generating device 13 can be continuously performed during the process of using the bluetooth sound generating devices 13.
For convenience of illustration, in the following embodiments, the digital audio packets 12 and the sample numbers are further quantized, as shown in fig. 5-7, but the numbers are only defined for convenience of illustration, and the numbers are not limited thereto.
Referring to fig. 5, the first bluetooth sound generating device 131 and the second bluetooth sound generating device 133 receive and convert the same digital audio packet 12, wherein the digital audio packet 12 includes the first packet 121, the second packet 123 and the third packet 125, and each packet 121/123/125 is assumed to include 100 sample numbers. The number of samples converted by the first bluetooth sound generating device 131 at the first time point T1 is the total of the first packet 121, the second packet 123 and the partial third packet 125, for example, if the first bluetooth sound generating device 131 converts only 50 samples in the third packet 125, the number of samples converted by the first bluetooth sound generating device 131 at the first time point T1 will be 250 samples.
Ideally, the digital audio packets 12 converted by the first bluetooth sound generating device 131 and the second bluetooth sound generating device 133 should be identical, and therefore, the number of samples converted by the first bluetooth sound generating device 131 and the second bluetooth sound generating device 133 at the first time point T1 should also be identical. In other words, if the second bluetooth sound generating device 133 and the first bluetooth sound generating device 133 are synchronized, the number of samples converted by the second bluetooth sound generating device 133 at the first time point T1 is also 250 samples.
Therefore, if the number of samples converted by the second bluetooth sound generating device 133 at the first time point T1 is greater than 250 samples, it indicates that the rate of converting the samples by the second bluetooth sound generating device 133 is too fast, and it is necessary to reduce the rate of converting the samples by the second bluetooth sound generating device 133 so that the second bluetooth sound generating device 133 and the first bluetooth sound generating device 131 are synchronized.
Conversely, if the number of samples converted by the second bluetooth sound generating device 133 at the first time point T1 is less than 250 samples, it indicates that the rate of samples converted by the second bluetooth sound generating device 133 is too slow, and it is necessary to increase the rate of samples converted by the second bluetooth sound generating device 133. The rate at which samples are converted may be adjusted, for example, by a sample conversion rate adjustment unit 1335 within the second bluetooth sound generating device 133.
In the above embodiments of the present invention, the rate of converting the samples by the bluetooth sound generating devices 13 is adjusted according to the number of the samples collected and/or compared by the bluetooth sound generating devices 13 accumulated at the same time point. Generally, the synchronization method does not cause problems when the connection quality between the bluetooth sound generating devices 13 is good.
However, when the connection quality between the bluetooth sound generating devices 13 is poor, the transmitted digital audio packets 12 may be lost or delayed, and the accumulated number of samples may be lost to determine whether the bluetooth sound generating devices 13 are synchronized.
As shown in fig. 6, when the transmission quality between the first bluetooth sound generating device 131 and the second bluetooth sound generating device 133 is poor, a time delay of the second bluetooth sound generating device 133 receiving the third packet 125 may be caused. Generally, when a packet transmission delay occurs, the second bluetooth sound device 133 usually fills up the blank packet 124 to fill up the time when the second bluetooth sound device 133 does not receive or process the third packet 125. However, the number of samples converted by the second bluetooth sound generating device 133 at the first time point T1 includes the blank packet 124, and the number of samples actually converted by the first bluetooth sound generating device 131 and the second bluetooth sound generating device 133 into the digital audio packet 12 is different, so that the accumulated number of samples loses the function of determining whether the plurality of bluetooth sound generating devices 13 are synchronized.
Specifically, the digital audio packets 12 received and converted by the first bluetooth sound generating device 131 and the second bluetooth sound generating device 133 include the first packet 121, the second packet 123 and a portion of the third packet 125, and it is assumed that the first packet 121, the second packet 123 and the third packet 125 all include 100 samples, and the blank packet 124 includes 40 samples. If the number of sample transitions accumulated by the first bluetooth sound generating device 131 at the first time point T1 is 250 sample numbers, and the number of sample transitions accumulated by the second bluetooth sound generating device 133 at the first time point T1 is also 250 sample numbers, it should be indicated that the first bluetooth sound generating device 131 and the second bluetooth sound generating device 133 are synchronized at the first time point T1. However, in practice, the number of samples of the blank packet 124 is also included in the number of 250 samples converted by the second bluetooth sound generating device 133, so the number of samples of the digital audio packet 12 actually converted by the second bluetooth sound generating device 133 should be 210 samples. In other words, when the transmission quality of the first bluetooth sound generating device 131 and the second bluetooth sound generating device 133 is poor, or the accumulated number of samples has an error, for example, the number of samples accumulated by the second bluetooth sound generating device 133 additionally includes the number of samples of the blank packet 124, the audio synchronization method of the present invention is disabled.
In order to solve the above problem, each digital audio packet 12 of the present invention may include a corresponding sequence number (sequence number), wherein the sequence number may be used to indicate the number of samples accumulated before each digital audio packet 12, for example, a first sequence number 161, a second sequence number 163 and a third sequence number 165 are respectively marked on the first packet 121, the second packet 123 and the third packet 125. The first sequence number 161, the second sequence number 163, and the third sequence number 165 may be used to indicate the number of samples accumulated before the first packet 121, the second packet 123, and the third packet 125.
As shown in fig. 7, if the first packet 121, the second packet 123 and the third packet 125 all include 100 sample numbers, the first sequence number 161 may be marked as 0 because the first packet 121 does not have a cumulative sample number before. The second packet 123 has previously accumulated 100 samples of the first packet 121, so the second sequence number 163 of the second packet 123 may be labeled 100. The third packet 125 has previously accumulated 200 samples of the first packet 121 and the second packet 123, so the third sequence number 165 of the third packet 125 may be labeled 200. When the number of samples converted by the second bluetooth sound generating device 133 at the first time point T1 is retrieved, it can be directly known from the third sequence number 165 of the third packet 125 that the second bluetooth sound generating device 133 has converted 200 samples before converting the number of samples of the third packet 125, such as the total of the first packet 121 and the second packet 123, where the number of samples of the blank packet 124 is not counted. Therefore, even if there is a blank packet 124 between the second packet 123 and the third packet 125, the number of samples for capturing the converted digital audio packet 12 by the second bluetooth sound generating device 133 will not be affected.
Of course, the above-mentioned serial number can only mark the number of samples of the processed packet 12, and can solve the problem that the accumulated number of samples loses the function of determining whether the plurality of bluetooth sound generating devices 13 are synchronized, so how to mark the number of samples of the packet 12 by the serial number is not a limitation of the present invention, as long as the serial number can mark the correct number of samples.
The present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof, and it should be understood that various changes and modifications can be effected therein by one skilled in the art without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (11)

1. The utility model provides an audio frequency synchronization method of bluetooth sound generating mechanism, wherein bluetooth sound generating mechanism includes first bluetooth sound generating mechanism and second bluetooth sound generating mechanism, and first bluetooth sound generating mechanism and second bluetooth sound generating mechanism pass through a plurality of digital audio frequency packages of bluetooth transmission, its characterized in that, includes following step:
the first Bluetooth sound generating device transmits the digital audio packets to the second Bluetooth sound generating device through Bluetooth, wherein each digital audio packet comprises a corresponding serial number, and each serial number is used for marking the number of samples accumulated before each digital audio packet;
capturing the number of samples converted by a digital-analog conversion unit of a first Bluetooth sound production device at a first time point;
capturing the number of samples converted by the second Bluetooth sounding device at the first time point, capturing the serial number of the digital audio packet converted by the second Bluetooth sounding device at the first time point, and obtaining the number of samples converted before the number of samples of the digital audio packet is converted according to the captured serial number, wherein the number of samples converted at the first time point is determined by the second Bluetooth sounding device according to the number of samples converted before the number of samples of the digital audio packet is converted; and
and adjusting the rate of converting the samples by the second Bluetooth sound generating device according to the number of the samples converted by the first Bluetooth sound generating device and the second Bluetooth sound generating device at the first time point.
2. The audio synchronization method of claim 1, comprising the steps of: and comparing the number of the samples converted by the first Bluetooth sound generating device and the second Bluetooth sound generating device at the first time point.
3. The audio synchronization method of claim 1, wherein the first bluetooth sound generating device is a master device and the second bluetooth sound generating device is a slave device.
4. The audio synchronization method of claim 1, comprising the method of:
and capturing the number of samples converted by the first Bluetooth sound production device and the second Bluetooth sound production device at the same time point.
5. The audio synchronization method of claim 1, comprising the steps of: and synchronizing the clock pulse of the first Bluetooth sound production device and the second Bluetooth sound production device.
6. The audio synchronization method of claim 5, comprising the steps of: first bluetooth sound generating mechanism pairs with second bluetooth sound generating mechanism for first bluetooth sound generating mechanism and second bluetooth sound generating mechanism use the same clock pulse.
7. The audio synchronization method of claim 6, comprising the steps of: the first Bluetooth sound production device and the second Bluetooth sound production device define a first time point through a clock pulse.
8. The utility model provides an audio frequency synchronization method of bluetooth sound generating mechanism, wherein bluetooth sound generating mechanism includes first bluetooth sound generating mechanism and second bluetooth sound generating mechanism, and first bluetooth sound generating mechanism and second bluetooth sound generating mechanism connect and transmit a plurality of digital audio frequency packages through the bluetooth, its characterized in that, includes following step:
the first Bluetooth sound generating device transmits the digital audio packets to the second Bluetooth sound generating device through Bluetooth, wherein each digital audio packet comprises a corresponding serial number, and each serial number is used for marking the number of samples accumulated before each digital audio packet;
capturing the number of samples converted by a digital-analog conversion unit of a first Bluetooth sound production device at a first time point, and generating a first sample number;
transmitting the first time point and the first sample number from the first Bluetooth sound production device to the second Bluetooth sound production device;
capturing the number of samples converted by the second Bluetooth sounding device at a first time point, and when generating a second sample number, capturing the serial number of the digital audio packet converted by the second Bluetooth sounding device at the first time point, obtaining the number of samples converted by the second Bluetooth sounding device before converting the number of samples of the digital audio packet according to the captured serial number, and determining the number of samples converted at the first time point according to the number of samples converted before converting the number of samples of the digital audio packet; and
and adjusting the rate of converting the samples of the second Bluetooth sounding device according to the number of the first samples and the number of the second samples.
9. The audio synchronization method of claim 8, comprising the steps of: and comparing the number of the samples converted by the first Bluetooth sound generating device and the second Bluetooth sound generating device at the first time point.
10. The audio synchronization method of claim 8, comprising the steps of: and synchronizing the clock pulse of the first Bluetooth sound production device and the second Bluetooth sound production device.
11. The audio synchronization method of claim 10, comprising the steps of: the first Bluetooth sound production device and the second Bluetooth sound production device define a first time point through a clock pulse.
CN201410524717.6A 2014-10-08 2014-10-08 Audio synchronization method of Bluetooth sound production device Active CN104320843B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410524717.6A CN104320843B (en) 2014-10-08 2014-10-08 Audio synchronization method of Bluetooth sound production device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410524717.6A CN104320843B (en) 2014-10-08 2014-10-08 Audio synchronization method of Bluetooth sound production device

Publications (2)

Publication Number Publication Date
CN104320843A CN104320843A (en) 2015-01-28
CN104320843B true CN104320843B (en) 2020-07-24

Family

ID=52375991

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410524717.6A Active CN104320843B (en) 2014-10-08 2014-10-08 Audio synchronization method of Bluetooth sound production device

Country Status (1)

Country Link
CN (1) CN104320843B (en)

Families Citing this family (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104980191A (en) * 2015-04-23 2015-10-14 络达科技股份有限公司 Sharing method for Bluetooth audio packet
TWI563859B (en) 2015-04-23 2016-12-21 Airoha Tech Corp Bluetooth audio packet sharing method
US10191715B2 (en) * 2016-03-25 2019-01-29 Semiconductor Components Industries, Llc Systems and methods for audio playback
CN107040874A (en) * 2017-03-07 2017-08-11 建荣半导体(深圳)有限公司 Method, device and the bluetooth equipment of blue-teeth data simultaneously operating
CN107170460B (en) 2017-06-30 2020-12-08 深圳Tcl新技术有限公司 Sound quality adjusting method, system, host terminal and storage medium
CN109521988B (en) * 2017-09-18 2022-04-15 炬芯科技股份有限公司 Audio playing synchronization method and device
CN108111997B (en) * 2017-12-15 2020-12-08 珠海市杰理科技股份有限公司 Bluetooth device audio synchronization method and system
US10631363B1 (en) * 2018-10-23 2020-04-21 Google Llc Two stage role switch for fully wireless earbuds
US11134367B2 (en) 2019-10-03 2021-09-28 Realtek Semiconductor Corp. Main bluetooth circuit of multi-member bluetooth device capable of dynamically switching operation mode
TWI736378B (en) * 2019-10-03 2021-08-11 瑞昱半導體股份有限公司 Multi-member bluetooth device capable of dynamically switching operation mode, and related main bluetooth circuit and auxiliary bluetooth circuit
US11375579B2 (en) 2019-10-03 2022-06-28 Realtek Semiconductor Corp. Multi-member Bluetooth device capable of adaptively switching operation mode in response to data type change of received packets, and related main Bluetooth circuit and auxiliary Bluetooth circuit
US11570081B2 (en) 2019-10-03 2023-01-31 Realtek Semiconductor Corp. Multi-member bluetooth device capable of dynamically switching operation mode
US11412576B2 (en) 2019-10-03 2022-08-09 Realtek Semiconductor Corp. Auxiliary Bluetooth circuit of multi-member Bluetooth device capable of dynamically switching operation mode
CN111885554B (en) * 2020-04-24 2023-09-12 珠海市杰理科技股份有限公司 Link switching method based on dual-wireless Bluetooth communication and related equipment
CN112235685B (en) * 2020-09-30 2022-07-15 瑞芯微电子股份有限公司 Sound box networking method and sound box system
WO2022094835A1 (en) 2020-11-05 2022-05-12 深圳市汇顶科技股份有限公司 Audio synchronization playback method, apparatus, device, and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101742405A (en) * 2008-11-17 2010-06-16 英华达(南京)科技有限公司 Bluetooth broadcast communication system and Bluetooth broadcast communication method

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100255890A1 (en) * 2001-06-27 2010-10-07 John Mikkelsen Download management of audio and visual content, product method and system
US8509361B2 (en) * 2010-02-04 2013-08-13 Issc Technologies Corp. Simplified acquisition apparatus and method for a Bluetooth receiver
US8768252B2 (en) * 2010-09-02 2014-07-01 Apple Inc. Un-tethered wireless audio system
US20130266152A1 (en) * 2012-04-06 2013-10-10 Koss Corporation Synchronizing wireless earphones
WO2014086388A1 (en) * 2012-12-03 2014-06-12 Phonak Ag Wireless streaming of an audio signal to multiple audio receiver devices

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101742405A (en) * 2008-11-17 2010-06-16 英华达(南京)科技有限公司 Bluetooth broadcast communication system and Bluetooth broadcast communication method

Also Published As

Publication number Publication date
CN104320843A (en) 2015-01-28

Similar Documents

Publication Publication Date Title
CN104320843B (en) Audio synchronization method of Bluetooth sound production device
US9817629B2 (en) Audio synchronization method for bluetooth speakers
KR101178252B1 (en) Synchronization of signals for multiple data sinks
US9521503B2 (en) Audio player with bluetooth function and audio playing method thereof
CN109565466B (en) Lip sound synchronization method and device among multiple devices
TW201419906A (en) Frame sync across multiple channels
GB2486183A (en) Time stamps are added to data transmitted via Bluetooth® connections to facilitate synchronised output of the data from a plurality of devices.
CN109521988B (en) Audio playing synchronization method and device
EP4336863A3 (en) Latency negotiation in a heterogeneous network of synchronized speakers
CN107438990B (en) Method and apparatus for delivering timing information
JP6232870B2 (en) Wireless communication system, wireless communication method, program, and recording medium
CN109257641B (en) Audio and video synchronization method and system in wireless screen transmission
JP6712153B2 (en) Audio system
CN110730398A (en) Distributed wireless microphone array audio frequency reception synchronization method
CN103368614A (en) Audio transmitting method, audio receiving method, transmitting device and receiving device
CN106209343B (en) Synchronize the broadcasting of the digital signal sent to multiple movable audio frequency terminals
TWI587697B (en) Multimedia synchronization system and method
US9374653B2 (en) Method for a multi-channel wireless speaker system
JP2015104072A (en) Communication apparatus, signal process program, and recording medium
CN204795592U (en) Audiphone communication system
JP2013153312A (en) Transmission device, transmission method, and communication system
US20220286986A1 (en) Radio apparatus for communicating digital audio streams
CN112954527B (en) Wireless earphone, audio synchronization method, system, equipment and computer medium
CN109039390B (en) Method for Bluetooth bidirectional transmission of voice data
CN116996460A (en) Data transmitting apparatus, data receiving apparatus, data transmitting method, and data transmitting system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: Science Park, Hsinchu, Taiwan, China Road 6-5, building 5

Patentee after: Dafa Technology Co.,Ltd.

Address before: Science Park, Hsinchu, Taiwan, China Road 6-5, building 5

Patentee before: AIROHA TECHNOLOGY CORP.