CN104320843B - Audio synchronization method of Bluetooth sound production device - Google Patents
Audio synchronization method of Bluetooth sound production device Download PDFInfo
- 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
- sounding device
- samples
- bluetooth sounding
- converted
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 58
- 238000006243 chemical reaction Methods 0.000 claims description 35
- 230000001360 synchronised effect Effects 0.000 abstract description 21
- 230000005540 biological transmission Effects 0.000 description 12
- 238000010586 diagram Methods 0.000 description 7
- 230000005236 sound signal Effects 0.000 description 7
- 238000005070 sampling Methods 0.000 description 6
- 230000003111 delayed effect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10L—SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
- G10L19/00—Speech 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/04—Speech 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/16—Vocoder architecture
- G10L19/18—Vocoders using multiple modes
- G10L19/24—Variable rate codecs, e.g. for generating different qualities using a scalable representation such as hierarchical encoding or layered encoding
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B5/00—Near-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
一种蓝牙发声装置的音频同步方法,其中蓝牙发声装置包括第一蓝牙发声装置及第二蓝牙发声装置,第一蓝牙发声装置及第二蓝牙发声装置通过蓝牙进行连接及传输数字音频封包。本发明所述的音频同步方法包括以下步骤:撷取第一蓝牙发声装置及第二蓝牙发声装置在第一时间点转换的样本数量;及依据第一蓝牙发声装置及第二蓝牙发声装置转换的样本数量,调整第二蓝牙发声装置转换的样本速率。通过本发明所述的音频同步方法,可定时检测及调整多个蓝牙发声装置转换的样本数量,使得多个蓝牙发声装置随时保持在同步的状态。
An audio synchronization method for a Bluetooth sound device, wherein the Bluetooth sound device includes a first Bluetooth sound device and a second Bluetooth sound device, and the first Bluetooth sound device and the second Bluetooth sound device are connected and transmit digital audio packets via Bluetooth. The audio synchronization method described in the present invention includes the following steps: capturing the number of samples converted by the first Bluetooth sound device and the second Bluetooth sound device at a first time point; and adjusting the sample rate converted by the second Bluetooth sound device according to the number of samples converted by the first Bluetooth sound device and the second Bluetooth sound device. Through the audio synchronization method described in the present invention, the number of samples converted by multiple Bluetooth sound devices can be detected and adjusted regularly, so that the multiple Bluetooth sound devices can be kept in a synchronized state at all times.
Description
技术领域technical field
本发明涉及一种蓝牙发声装置的音频同步方法,可定时检测及调整多个蓝牙发声装置,使得多个蓝牙发声装置随时保持在同步的状态。The invention relates to an audio synchronization method of a bluetooth sounding device, which can regularly detect and adjust a plurality of bluetooth sounding devices, so that the plurality of bluetooth sounding devices are kept in a synchronized state at any time.
背景技术Background technique
蓝牙(bluetooth)是一种常见的无线传输技术,普遍被应用在短距离的数据传输。在通过蓝牙进行数据传输时,可将两个电子装置的其中一个定义为主装置(Master),而另一个电子装置则被定义为从属装置(Slave)。主装置及从属装置之间会进行配对,并架构出个人局域网络(personal area networks),使得主装置及从属装置可通过无线的方式进行数据的传输。一般而言,主装置可以是手机,而从属装置则是蓝牙耳机或喇叭,其中手机可通过蓝牙将数字声音数据传送至蓝牙耳机或喇叭进行播放,而蓝牙耳机亦可将数字声音数据传送至手机。Bluetooth (bluetooth) is a common wireless transmission technology, which is widely used in short-distance data transmission. During data transmission through Bluetooth, one of the two electronic devices can be defined as a master device (Master), and the other electronic device can be defined as a slave device (Slave). The master device and the slave device are paired, and personal area networks are constructed, so that the master device and the slave device can transmit data wirelessly. Generally speaking, the master device can be a mobile phone, and the slave device is a Bluetooth headset or speaker. The mobile phone can transmit digital sound data to the Bluetooth headset or speaker through Bluetooth for playback, and the Bluetooth headset can also transmit digital sound data to the mobile phone. .
发明内容SUMMARY OF THE INVENTION
本发明的目的主要在于提供一种蓝牙发声装置的音频同步方法,可定时检测及调整多个蓝牙发声装置,使得多个蓝牙发声装置随时保持在同步的状态。The main purpose of the present invention is to provide an audio synchronization method of a Bluetooth sounding device, which can detect and adjust a plurality of Bluetooth sounding devices regularly, so that the plurality of Bluetooth sounding devices are kept in a synchronized state at any time.
本发明提一种蓝牙发声装置的音频同步方法,其中多个蓝牙发声装置中的一个蓝牙发声装置通过蓝牙将数字音频封包传送至其他的蓝牙发声装置。在同一时间点撷取及比较各个蓝牙发声装置转换的样本数量(sample count),以得知各个蓝牙发声装置之间是否同步。The present invention provides an audio synchronization method of a Bluetooth sounding device, wherein one Bluetooth sounding device among a plurality of Bluetooth sounding devices transmits digital audio packets to other Bluetooth sounding devices through Bluetooth. The sample counts (sample count) converted by each Bluetooth sounding device are captured and compared at the same time point, so as to know whether each Bluetooth sounding device is synchronized.
本发明提一种蓝牙发声装置的音频同步方法,其中多个蓝牙发声装置中的一个蓝牙发声装置通过蓝牙将数字音频封包传送至其他的蓝牙发声装置。在同一时间点撷取及比较各个蓝牙发声装置转换的样本数量(sample count),并依据各个样本数量调整至少一个蓝牙发声装置转换样本的速率,例如调整换从属装置的蓝牙发声装置转换样本的速率,以使得各个蓝牙发声装置同步。The present invention provides an audio synchronization method of a Bluetooth sounding device, wherein one Bluetooth sounding device among a plurality of Bluetooth sounding devices transmits digital audio packets to other Bluetooth sounding devices through Bluetooth. Capture and compare the sample counts converted by each Bluetooth sound device at the same time point, and adjust the rate at which at least one Bluetooth sound device converts samples according to the respective sample counts, for example, adjust the rate at which the Bluetooth sound device of the slave device converts the samples , so that each Bluetooth sounding device can be synchronized.
本发明提一种蓝牙发声装置的音频同步方法,其中多个蓝牙发声装置中的一个蓝牙发声装置通过蓝牙将数字音频封包传送至其他的蓝牙发声装置。主要在多个数字音频封包上增加相对应的序号,并以该序号表示各个封包的之前累积的样本数量,以避免在撷取样本数量的过程中发生错误。The present invention provides an audio synchronization method of a Bluetooth sounding device, wherein one Bluetooth sounding device among a plurality of Bluetooth sounding devices transmits digital audio packets to other Bluetooth sounding devices through Bluetooth. Corresponding sequence numbers are mainly added to a plurality of digital audio packets, and the sequence numbers are used to represent the number of samples accumulated before each packet, so as to avoid errors in the process of retrieving the number of samples.
为了达到以上目的,本发明提供一种蓝牙发声装置的音频同步方法,其中蓝牙发声装置包括第一蓝牙发声装置及第二蓝牙发声装置,第一蓝牙发声装置及第二蓝牙发声装置通过蓝牙进行连接及传输数字音频封包,并包括以下步骤:撷取第一蓝牙发声装置及第二蓝牙发声装置在第一时间点转换的样本数量;及依据第一蓝牙发声装置及第二蓝牙发声装置转换的样本数量,调整第二蓝牙发声装置转换样本的速率。In order to achieve the above object, the present invention provides an audio synchronization method of a Bluetooth sounding device, wherein the Bluetooth sounding device includes a first Bluetooth sounding device and a second Bluetooth sounding device, and the first Bluetooth sounding device and the second Bluetooth sounding device are connected through Bluetooth and transmitting digital audio packets, including the following steps: retrieving the number of samples converted by the first bluetooth sounding device and the second bluetooth sounding device at a first time point; and according to the samples converted by the first bluetooth sounding device and the second bluetooth sounding device Quantity, adjusts the rate at which the second Bluetooth sounding device converts samples.
本发明提供另一种蓝牙发声装置的音频同步方法,其中蓝牙发声装置包括第一蓝牙发声装置及第二蓝牙发声装置,第一蓝牙发声装置及第二蓝牙发声装置通过蓝牙进行连接及传输数字音频封包,并包括以下步骤:撷取第一蓝牙发声装置在第一时间点转换的样本数量,并产生第一样本数量;将第一时间点及第一样本数量由第一蓝牙发声装置传送至第二蓝牙发声装置;撷取第二蓝牙发声装置在第一时间点转换的样本数量,并产生第二样本数量;及依据第一样本数量及第二样本数量,调整第二蓝牙发声装置转换样本的速率。The present invention provides another audio synchronization method of a bluetooth sounding device, wherein the bluetooth sounding device comprises a first bluetooth sounding device and a second bluetooth sounding device, and the first bluetooth sounding device and the second bluetooth sounding device are connected through bluetooth and transmit digital audio packet, and includes the following steps: retrieving the number of samples converted by the first bluetooth sounding device at a first time point, and generating a first number of samples; transmitting the first time point and the first number of samples from the first bluetooth sounding device to the second bluetooth sounding device; acquiring the number of samples converted by the second bluetooth sounding device at the first time point, and generating a second number of samples; and adjusting the second bluetooth sounding device according to the first number of samples and the second number of samples The rate at which samples are converted.
本发明音频同步方法一实施例中,包括以下步骤:比较第一蓝牙发声装置及第二蓝牙发声装置在第一时间点转换的样本数量。In an embodiment of the audio synchronization method of the present invention, the method includes the following steps: comparing the number of samples converted by the first bluetooth sounding device and the second bluetooth sounding device at a first time point.
本发明音频同步方法一实施例中,其中第一蓝牙发声装置是主装置,而第二蓝牙发声装置则是从属装置。In an embodiment of the audio synchronization method of the present invention, the first Bluetooth sounding device is a master device, and the second Bluetooth sounding device is a slave device.
本发明音频同步方法一实施例中,包括以下方法:撷取第一蓝牙发声装置及第二蓝牙发声装置在同一时间点转换的样本数量。In an embodiment of the audio synchronization method of the present invention, the method includes the following method: capturing the number of samples converted by the first Bluetooth sounding device and the second Bluetooth sounding device at the same time point.
本发明音频同步方法一实施例中,包括以下步骤:同步第一蓝牙发声装置及第二蓝牙发声装置的时脉。In an embodiment of the audio synchronization method of the present invention, the method includes the following steps: synchronizing the clocks of the first bluetooth sounding device and the second bluetooth sounding device.
本发明音频同步方法一实施例中,包括以下步骤:第一蓝牙发声装置与第二蓝牙发声装置配对,使得第一蓝牙发声装置及第二蓝牙发声装置使用相同的时脉。An embodiment of the audio synchronization method of the present invention includes the following steps: pairing the first Bluetooth sounding device with the second Bluetooth sounding device, so that the first Bluetooth sounding device and the second Bluetooth sounding device use the same clock.
本发明音频同步方法一实施例中,包括以下步骤:第一蓝牙发声装置及第二蓝牙发声装置通过时脉定义第一时间点。In an embodiment of the audio synchronization method of the present invention, the method includes the following steps: the first Bluetooth sounding device and the second Bluetooth sounding device define a first time point through a clock.
本发明音频同步方法一实施例中,其中第一蓝牙发声装置及第二蓝牙发声装置包括:缓冲单元,暂存数字音频封包;译码单元,连接缓冲单元,并译码数字音频封包的样本;样本转换速率调整单元,连接译码单元,并调整采样率;及数字模拟转换单元,连接样本转换速率调整单元,并将样本转换成模拟音频信号。In an embodiment of the audio synchronization method of the present invention, the first bluetooth sounding device and the second bluetooth sounding device include: a buffer unit, which temporarily stores digital audio packets; a decoding unit, which is connected to the buffer unit and decodes samples of the digital audio packets; A sample conversion rate adjustment unit, connected to the decoding unit, and adjusting the sampling rate; and a digital-to-analog conversion unit, connected to the sample conversion rate adjustment unit, and converting the samples into analog audio signals.
本发明音频同步方法一实施例中,包括以下步骤:撷取第一蓝牙发声装置及第二蓝牙发声装置的数字模拟转换单元在第一时间点转换的样本数量;及依据第一蓝牙发声装置及第二蓝牙发声装置转换的样本数量,调整第二蓝牙发声装置的样本转换速率调整单元的采样率。In an embodiment of the audio synchronization method of the present invention, it includes the following steps: capturing the number of samples converted by the digital-to-analog conversion units of the first Bluetooth sounding device and the second Bluetooth sounding device at a first time point; and according to the first Bluetooth sounding device and The number of samples converted by the second bluetooth sounding device is adjusted, and the sampling rate of the sample conversion rate adjustment unit of the second bluetooth sounding device is adjusted.
本发明音频同步方法一实施例中,包括以下步骤:比较第一蓝牙发声装置及第二蓝牙发声装置的数字模拟转换单元在第一时间点转换的样本数量。In an embodiment of the audio synchronization method of the present invention, the method includes the following steps: comparing the number of samples converted by the digital-to-analog conversion units of the first bluetooth sounding device and the second bluetooth sounding device at a first time point.
本发明音频同步方法一实施例中,包括若干个数字音频封包,各个数字音频封包皆包括相对应的序号,各个序号分别用以标示各个数字音频封包之前所累积的样本数量。In an embodiment of the audio synchronization method of the present invention, it includes a plurality of digital audio packets, and each digital audio packet includes a corresponding serial number, and each serial number is used to indicate the number of samples accumulated before each digital audio packet.
以下结合附图和具体实施例对本发明进行详细描述,但不作为对本发明的限定。The present invention is described in detail below with reference to the accompanying drawings and specific embodiments, but is not intended to limit the present invention.
附图说明Description of drawings
图1为本发明所述蓝牙传输系统一实施例的构造示意图;FIG. 1 is a schematic structural diagram of an embodiment of the Bluetooth transmission system according to the present invention;
图2为本发明所述蓝牙发声装置一实施例的方框示意图;FIG. 2 is a schematic block diagram of an embodiment of the Bluetooth sound generating device according to the present invention;
图3为本发明所述蓝牙发声装置的音频同步方法一实施例的步骤流程图;3 is a flow chart of steps of an embodiment of an audio synchronization method for a Bluetooth sounding device according to the present invention;
图4为本发明所述蓝牙发声装置的音频同步方法又一实施例的步骤流程图;4 is a flow chart of steps of another embodiment of the audio synchronization method of the Bluetooth sounding device according to the present invention;
图5为本发明所述的数字音频封包一实施例的示意图;5 is a schematic diagram of an embodiment of a digital audio packet according to the present invention;
图6为本发明所述的数字音频封包又一实施例的示意图;6 is a schematic diagram of another embodiment of the digital audio packet according to the present invention;
图7为本发明所述的数字音频封包又一实施例的示意图。FIG. 7 is a schematic diagram of another embodiment of the digital audio packet according to the present invention.
其中,附图标记where the reference number
10 蓝牙传输系统 11 电子装置10 Bluetooth
12 数字音频封包 121 第一封包12
123 第二封包 124 空白封包123
125 第三封包 13 蓝牙发声装置125 The
131 第一蓝牙发声装置 1311 缓冲单元131 The first
1313 译码单元 1315 样本转换速率调整单元1313
1317 数字模拟转换单元 133 第二蓝牙发声装置1317 Digital-to-
1331 缓冲单元 1333 译码单元1331
1335 样本转换速率调整单元 1337 数字模拟转换单元1335 Sample Conversion
14 模拟音频信号 161 第一序号14
163 第二序号 165 第三序号163
具体实施方式Detailed ways
下面结合附图对本发明的结构原理和工作原理作具体的描述:Below in conjunction with accompanying drawing, structure principle and working principle of the present invention are described in detail:
在说明书及后续的权利要求范围当中,耦接或连接一词在此是包含任何直接及间接的电气连接手段。因此,若文中描述一第一装置耦接于一第二装置,则代表第一装置可直接电气连接于第二装置,或通过其他装置或连接手段间接地电气连接至第二装置。Within the scope of the specification and the following claims, the term coupled or connected is used herein to include any means of direct and indirect electrical connection. Therefore, if a first device is described as being coupled to a second device, it means that the first device can be directly electrically connected to the second device, or indirectly electrically connected to the second device through other devices or connecting means.
图1为本发明所述蓝牙传输系统10一实施例的构造示意图,图2为本发明所述蓝牙发声装置13一实施例的方框示意图。在本发明一实施例中,蓝牙传输系统10主要包括一电子装置11及多个蓝牙发声装置13,其中电子装置11并非必要的构造。为了说明时的便利性,本发明所述的蓝牙发声装置13包括一第一蓝牙发声装置131及一第二蓝牙发声装置133,其中第一蓝牙发声装置131及第二蓝牙发声装置133可通过蓝牙进行连接并传输数字音频封包12。然而在不同实施例中,蓝牙发声装置13的数量亦可为两个以上,并且同样可通过本发明所述的音频同步方法,同步多个蓝牙发声装置13。FIG. 1 is a schematic structural diagram of an embodiment of the Bluetooth
在本发明一实施例中,第一蓝牙发声装置131及第二蓝牙发声装置133可组成一音响系统,其中第一蓝牙发声装置131可为左声道,而第二蓝牙发声装置133可为右声道。就一般双声道的音响系统来说,通常需要使得第一蓝牙发声装置131及第二蓝牙发声装置133尽量同步,才可使得音响系统架构出正确的声道,并达到良好的视听效果。若蓝牙发声装置13的数量为两个以上时,各个蓝牙发声装置13之间同样要进行同步,才能架构出多声道的音响系统。In an embodiment of the present invention, the first
在本发明实施例中,数字音频封包12原本是储存在电子装置11内,电子装置11可通过蓝牙将数字音频封包12传送至第一蓝牙发声装置131,第一蓝牙发声装置131在接收到数字音频封包12后,会通过蓝牙将接收的数字音频封包12传送至第二蓝牙发声装置133。当然电子装置11并非本发明的必要构件,本发明主要应用在多个蓝牙发声装置13,并用以同步多个蓝牙发声装置13的音频,例如可将数字音频封包12储存在第一蓝牙发声装置131内,第一蓝牙发声装置131可通过蓝牙将数字音频封包12传送至第二蓝牙发声装置133。In the embodiment of the present invention, the
在本发明一实施例中,第一蓝牙发声装置131可被定义成主装置(Master),而第二蓝牙发声装置133则被定义为从属装置(Slave)。在第一蓝牙发声装置131通过蓝牙将数字音频封包12传送至第二蓝牙发声装置133前,必需先建立第一蓝牙发声装置131及第二蓝牙发声装置133之间的蓝牙连接。In an embodiment of the present invention, the first
首先要进行第一蓝牙发声装置131及第二蓝牙发声装置133的配对(pair),以同步第一蓝牙发声装置131及第二蓝牙发声装置133的时脉(clock),并使得两者使用相同的时脉。在配对的过程中,第一蓝牙发声装置131会持续发出询问封包,当邻近区域的第二蓝牙发声装置133收到询问封包后,例如附近区域为蓝牙的无线传输范围,第二蓝牙发声装置133会向第一蓝牙发声装置131发出响应封包,其中回应封包内包括第二蓝牙发声装置133的蓝牙设备地址(BD_ADDR,bluetooth address)。First, pair the first
第一蓝牙发声装置131接收到第二蓝牙发声装置133所传送的响应封包后,会依据回应封包的蓝牙设备地址发出连接封包(page)。由于连接封包中包括了蓝牙设备地址,因此只有第二蓝牙发声装置133可以接收到第一蓝牙发声装置131所传送的连接封包。After the first
当第二蓝牙发声装置133接收到连接封包后,便可由连接封包的内容得知第一蓝牙发声装置131的时脉,并使得第二蓝牙发声装置133可与第一蓝牙发声装置131的时脉同步,例如使得第一蓝牙发声装置131及第二蓝牙发声装置133使用相同的时脉。通过上述的步骤便可完成第一蓝牙发声装置131与第二蓝牙发声装置133之间的蓝牙连接,使得第一蓝牙发声装置131及第二蓝牙发声装置133之间可通过蓝牙传输数字音频封包12。After the second
数字音频封包12是先经由电子装置11传送至第一蓝牙发声装置131,而后第一蓝牙发声装置131才会将接收的数字音频封包12传送至第二蓝牙发声装置133,因此第一蓝牙发声装置131及第二蓝牙发声装置133接收到数字音频封包12的时间并不相同。第一蓝牙发声装置131在接收到数字音频封包12后,并不会马上转换及播放音频封包12,而是会确定第二蓝牙发声装置133同样接收到数字音频封包12之后,第一蓝牙发声装置131及第二蓝牙发声装置133才会同时播放声音信号,以使得第一蓝牙发声装置131及第二蓝牙发声装置133播放的声音信号在初始的阶段同步。The
如图2所示,第一蓝牙发声装置131及第二蓝牙发声装置133包括缓冲单元(buffer)1311/1331、译码单元(decode)1313/1333、样本转换速率调整单元(sample rateconversion)1315/1335及数字模拟转换单元(DAC)1317/1337,其中译码单元1313/1333连接缓冲单元1311/1331,而样本转换速率调整单元1315/1335则连接译码单元1313/1333及数字模拟转换单元1317/1337。As shown in FIG. 2 , the first
当然在实际应用时第一蓝牙发声装置131及第二蓝牙发声装置133可能还需要蓝牙传输接口、喇叭、放大单元、微处理器及/或供应电源等不同的构造,才能使得第一蓝牙发声装置131及第二蓝牙发声装置133运作。然而上述的构造与本案主要说明的内容无关,且已揭露在现有技术中,因此不在图2中表示出来,以利于说明。Of course, in practical application, the first
本发明实施例所述的缓冲单元1311/1331可用以暂存数字音频封包12;译码单元1313/1333可用以译码数字音频封包12的样本;样本转换速率调整单元1315/1335可用以调整采样率;及数字模拟转换单元1317/1337可用以将数字音频封包12的样本转换成模拟音频信号14。The
第一蓝牙发声装置131在接收到数字音频封包12后,会先将数字音频封包12暂存在缓冲单元1311内,并通过蓝牙将数字音频封包12传送至第二蓝牙发声装置133。After receiving the
第二蓝牙发声装置133在接收到第一蓝牙发声装置131所传送的数字音频封包12后,同样会将数字音频封包12暂存在缓冲单元1331内。当第一蓝牙发声装置131及第二蓝牙发声装置133都已接收到数字音频封包12后,两者便可同时处理及播放数字音频封包12。例如第一蓝牙发声装置131及第二蓝牙发声装置133具有相同的时脉,因此第一蓝牙发声装置131及第二蓝牙发声装置133可设定在同一个时脉点处理数字音频封包12。After receiving the
数字音频封包12包括多个样本(sample),第一蓝牙发声装置131及第二蓝牙发声装置133会将数字音频封包12的样本传送至译码单元1313/1333进行译码。而后通过样本转换速率调整单元1315/1335将译码后的样本传送至数字模拟转换单元1317/1337,并通过数字模拟转换单元1317/1337样数字的样本转换成模拟信号,使得第一蓝牙发声装置131及第二蓝牙发声装置133同步播放模拟音频信号14。The
然而在经过一段时间的播放后,可能会因为第一蓝牙发声装置131及第二蓝牙发声装置133处理数字音频封包12的速度不同,而导致第一蓝牙发声装置131及第二蓝牙发声装置133播放模拟音频信号14产生不同步的情形,并影响了第一蓝牙发声装置131及第二蓝牙发声装置133的播音质量。However, after a period of playback, the first
图3为本发明所述蓝牙发声装置的音频同步方法一实施例的步骤流程图,请配合参阅图1及图2,为了解决多个发声单元13之间产生不同步播放的问题,本发明进一步提出了一种音频同步方法。首先撷取各个发声单元13在同一个时间点转换的样本数量(samplecount),如步骤21所示。以第一蓝牙发声装置声单元131及第二蓝牙发声装置声单元133为例,可撷取第一蓝牙发声装置131及第二蓝牙发声装置133在第一时间点转换的样本数量,例如可撷取第一蓝牙发声装置131及第二蓝牙发声装置133的数字模拟转换单元1317/1337在第一时间点时转换了多少个样本数量。在本发明实施例中,主要是撷取同一时间点转换的样本数量,要特别注意的是同一时间点指的非同时,在应用时多个发声单元13可同时撷取转换的样本数量,亦可不同时撷取转换的样本数量。3 is a flow chart of steps of an embodiment of the audio synchronization method of the Bluetooth sounding device according to the present invention. Please refer to FIG. 1 and FIG. 2 in conjunction. An audio synchronization method is proposed. First, the sample count converted by each sounding
而后可进一步比较各个蓝牙发声装置13在同一时间点转换的样本数量,如步骤23所示。以第一蓝牙发声装置声单元131及第二蓝牙发声装置声单元133为例,可比较第一蓝牙发声装置131及第二蓝牙发声装置133在第一时间点转换的样本数量,例如比较第一蓝牙发声装置131及第二蓝牙发声装置133的数字模拟转换单元1317/1337在第一时间点转换的样本数量。若第一蓝牙发声装置131及第二蓝牙发声装置133在第一时间点所转换的样本数量不相同,便表示第一蓝牙发声装置131及第二蓝牙发声装置133之间有不同步的情形。Then, the number of samples converted by each
依据蓝牙发声装置13转换的样本数量,调整蓝牙发声装置13转换样本的速率,如步骤25所示。以第一蓝牙发声装置声单元131及第二蓝牙发声装置声单元133为例,当第一蓝牙发声装置131及第二蓝牙发声装置133转换的样本数量不同时,便表示两者不同步,此时可调整第一蓝牙发声装置131及/或第二蓝牙发声装置133转换样本的速率。According to the number of samples converted by the
在本发明一实施例中,若第一蓝牙发声装置131为主装置,而第二蓝牙发声装置133为从属装置,则可依据第一蓝牙发声装置131及第二蓝牙发声装置133转换的样本数量或比较的结果,调整第二蓝牙发声装置133转换样本的速率,例如可调整第二蓝牙发声装置133的样本转换速率调整单元1335的采样率,使得第二蓝牙发声装置133及第一蓝牙发声装置131在同一时间点转换的样本数量相同,达到同步第一蓝牙发声装置131及第二蓝牙发声装置133的目的。当然在不同实施例中,亦可调整第一蓝牙发声装置131转换样本的速率,或者是同时调整第一蓝牙发声装置131及第二蓝牙发声装置133转换样本的速率,皆可以使得第一蓝牙发声装置131及第二蓝牙发声装置133同步。In an embodiment of the present invention, if the first
此外在本发明一实施例中,亦可省略上述步骤23,并直接以转换的样本数量来调整蓝牙发声装置13转换样本的速率,同样可达到同步各个蓝牙发声装置13的目的。In addition, in an embodiment of the present invention, the above-mentioned
在进行本发明实施例所述的步骤21之前,可同步第一蓝牙发声装置131及第二蓝牙发声装置133的时脉,如本发明图1及图2所述的实施方式,再此便不再赘述。此外由于第一蓝牙发声装置131及第二蓝牙发声装置133使用相同的时脉,因此可通过时脉定义第一时间点,并可撷取第一蓝牙发声装置131及第二蓝牙发声装置133在第一时间点转换的样本数量。Before performing
图4为本发明所述蓝牙发声装置的音频同步方法又一实施例的步骤流程图。请配合参阅图1及图2所示,为了说明时的便利性本发明实施例主要以两个发声单元13来进行说明,但发声单元13的数量并非本发明的限制,在实际应用时亦可将本发明所述的方法应用在两个以上的发声单元13。FIG. 4 is a flow chart of steps of still another embodiment of the audio synchronization method of the Bluetooth sound generating device according to the present invention. Please refer to FIG. 1 and FIG. 2 together. For the convenience of description, the embodiment of the present invention is mainly described with two sounding
在本发明实施例中,第一蓝牙发声装置131被定义成主装置(Master),而第二蓝牙发声装置133则被定义为从属装置(Slave)。第一蓝牙发声装置131及第二蓝牙发声装置133会进行配对及蓝牙连接,使得第一蓝牙发声装置131及第二蓝牙发声装置133的时脉同步,其中第一蓝牙发声装置131与第二蓝牙发声装置133之间的配对及连接方法已于上述的实施例中说明,在此便不再赘述。In the embodiment of the present invention, the first
撷取第一蓝牙发声装置131在第一时间点转换的样本数量,例如撷取第一蓝牙发声装置131的数字模拟转换单元1317在第一时间点T1转换的样本数量,并产生第一样本数量SC1,如步骤31所示。第一蓝牙发声装置131可将第一时间点T1及第一样本数量SC1传送至第二蓝牙发声装置133,如步骤33所示。Capture the number of samples converted by the first
第二蓝牙发声装置133在接收到第一时间点T1及第一样本数量SC1后,便会撷取本身在第一时间点T1转换的样本数量,例如撷取第二蓝牙发声装置133的数字模拟转换单元1337在第一时间点T1转换的样本数量,并产生第二样本数量SC2,如步骤35所示。而后便可进一步比较同样在第一时间点T1撷取的第一样本数量SC1及第二样本数量SC2,如步骤37所示。After receiving the first time point T1 and the first number of samples SC1, the second
依据第一样本数量SC1及第二样本数量SC2,或者是第一样本数量SC1及第二样本数量SC2的比较结果,便可得知第一蓝牙发声装置131与第二蓝牙发声装置133之间是否同步。若两者不同步,便可依据转换的样本数量或样本数量的比较结果调整第二蓝牙发声装置133转换样本的速率,例如调整第二蓝牙发声装置133的样本转换速率调整单元1335的采样率,以使得第二蓝牙发声装置133及第一蓝牙发声装置131同步,如步骤39所示。According to the first sample quantity SC1 and the second sample quantity SC2, or the comparison result of the first sample quantity SC1 and the second sample quantity SC2, the relationship between the first
此外在本发明一实施例中,亦可省略上述步骤37,并直接以转换的样本数量来调整蓝牙发声装置13转换样本的速率,同样可达到同步各个蓝牙发声装置13的目的。In addition, in an embodiment of the present invention, the above-mentioned
在本发明上述实施例中,有提及多个蓝牙发声装置13在同一个时间点及/或在第一时间点撷取转换的样本数量。由于多个蓝牙发声装置13在进行蓝牙连接的过程中,便已完成时脉同步的动作,因此各个蓝牙发声装置13使用的时脉都是相同的。在本发明一实施例中,可直接利用蓝牙发声装置13的时脉作为同一个时间点及/或第一时间点的计算标准。In the above-mentioned embodiments of the present invention, it is mentioned that the plurality of Bluetooth
举例来说,可设定各个蓝牙发声装置13,使得各个蓝牙发声装置13在时脉的数量为一百或一百的倍数时撷取转换的样本数量,并依转换的样本数量或样本数量的比较结果,调整一个或多个蓝牙发声装置13的采样率。如此一来便可在使用蓝牙发声装置13的过程中,不断的进行各个蓝牙发声装置13的音频同步。For example, each
为了便于说明本发明的内容,在以下实施例中,进一步将数字音频封包12及样本数量化,如图5-图7所示,当然其中定义的数量仅为了方便说明本发明的内容,数量本身并非本发明的限制。In order to facilitate the description of the content of the present invention, in the following embodiments, the
请配合参阅图5所示,第一蓝牙发声装置131及第二蓝牙发声装置133接收及转换相同的数字音频封包12,其中数字音频封包12包括第一封包121、第二封包123及第三封包125,并假设各个封包121/123/125皆包括100个样本数量。第一蓝牙发声装置131在第一时间点T1撷取的样本转换数量为第一封包121、第二封包123及部分第三封包125的总合,例如第一蓝牙发声装置131仅转换了第三封包125中的50个样本数量,则第一蓝牙发声装置131在第一时间点T1转换的样本数量将会是250个样本数量。Please refer to FIG. 5 , the first
在理想的状况下,第一蓝牙发声装置131及第二蓝牙发声装置133所转换的数字音频封包12应该是完全相同,因此第一蓝牙发声装置131及第二蓝牙发声装置133在第一时间点T1上转换的样本数量也应该是相同的。换言之,若第二蓝牙发声装置133与第一蓝牙发声装置133同步,则第二蓝牙发声装置133在第一时间点T1转换的样本数量亦会是250个样本数量。In an ideal situation, the
为此若第二蓝牙发声装置133在第一时间点T1转换的样本数量大于250个样本数量,便表示第二蓝牙发声装置133转换样本的速率过快,并需要降低第二蓝牙发声装置133转换样本的速率,以使得第二蓝牙发声装置133与第一蓝牙发声装置131同步。Therefore, if the number of samples converted by the second
相反的,若第二蓝牙发声装置133在第一时间点T1撷取的样本转换数量小于250个样本数量,便表示第二蓝牙发声装置133转换样本的速率过慢,并需要提高第二蓝牙发声装置133转换样本的速率。例如可通过第二蓝牙发声装置133内的样本转换速率调整单元1335调整转换样本的速率。On the contrary, if the conversion number of samples captured by the second
在本发明上述实施例中,皆是依据撷取及/或比对多个蓝牙发声装置13在同一时间点累积的样本数量,来调整多个蓝牙发声装置13转换样本的速率。一般来说当各个蓝牙发声装置13之间的连接质量良好时,上述的同步方法并不会产生问题。In the above-mentioned embodiments of the present invention, the rate at which the plurality of
然而当各个蓝牙发声装置13之间的连接质量不佳时,可能会造成传送的数字音频封包12遗失或延迟时,并可能导致累积的样本数量丧失判断多个蓝牙发声装置13是否同步的功能。However, when the connection quality between the
请配合参阅如图6所示,当第一蓝牙发声装置131及第二蓝牙发声装置133之间的传输质量不佳时,可能造成第二蓝牙发声装置133接收到第三封包125的时间延迟。一般而言,当发生封包传送延迟的时候,第二蓝牙发声装置133通常会补上空白封包124,以填补第二蓝牙发声装置133未收到或处理第三封包125的时间。但如此一来,第二蓝牙发声装置133在第一时间点T1转换的样本数量便会包括空白封包124,并造成第一蓝牙发声装置131及第二蓝牙发声装置133实际转换数字音频封包12的样本数量不同,进而导致累积的样本数量丧失判断多个蓝牙发声装置13是否同步的功能。Please refer to FIG. 6 , when the transmission quality between the first
具体来说第一蓝牙发声装置131及第二蓝牙发声装置133接收及转换的数字音频封包12包括第一封包121、第二封包123及部分的第三封包125,并假设第一封包121、第二封包123及第三封包125皆包括100个样本数量,而空白封包124则包括40个样本数量。若第一蓝牙发声装置131在第一时间点T1累积的样本转换数量是250个样本数量,而第二蓝牙发声装置133在第一时间点T1累积的样本转换数量亦是250个样本数量时,应代表第一蓝牙发声装置131与第二蓝牙发声装置133在第一时间点T1为同步。然而实际上第二蓝牙发声装置133转换的250个样本数量中,还包括了空白封包124的40个样本数量,因此第二蓝牙发声装置133实际转换的数字音频封包12的样本数量应该是210个样本数量。换言之,当第一蓝牙发声装置131及第二蓝牙发声装置133的传输质量不佳,或累积的样本数量产生误差时,例如第二蓝牙发声装置133累积的样本数量额外包括了空白封包124的样本数量,便会使得本发明的音频同步方法失去效用。Specifically, the
为了解决上述的问题,本发明的各个数字音频封包12可包括相对应的序号(sequence number),其中序号可用以标示各个数字音频封包12之前所累积的样本数量,例如在第一封包121、第二封包123及第三封包125上分别标上第一序号161、第二序号163及第三序号165。第一序号161、第二序号163及第三序号165可用以表示在第一封包121、第二封包123及第三封包125之前累积的样本数量。In order to solve the above problems, each
如图7所示,若第一封包121、第二封包123及第三封包125皆包括100个样本数量,则因为第一封包121之前并不存在累积的样本数量,因此第一序号161可标示为0。第二封包123之前已累积了第一封包121的100个样本数量,因此第二封包123的第二序号163可标示为100。第三封包125之前已累积了第一封包121及第二封包123的200个样本数量,因此第三封包125的第三序号165可标示为200。撷取第二蓝牙发声装置133在第一时间点T1转换的样本数量时,可直接由第三封包125上的第三序号165得知第二蓝牙发声装置133在转换第三封包125的样本数量之前,已经转换了200个样本,如第一封包121及第二封包123的总合,其中空白封包124的样本数量并不会被计算。如此一来即便在第二封包123及第三封包125之间存在空白封包124,亦不会影响撷取第二蓝牙发声装置133转换数字音频封包12的样本数量。As shown in FIG. 7 , if the
当然上述的序号只要能标示出已处理的封包12的样本数量,便可解决累积的样本数量丧失判断多个蓝牙发声装置13是否同步的功能,因此序号要如何标示封包12的样本数量并非本发明的限制,只要序号能标示出正确的样本数量即可。Of course, as long as the above serial number can indicate the number of samples of the processed
当然,本发明还可有其它多种实施例,在不背离本发明精神及其实质的情况下,熟悉本领域的技术人员当可根据本发明作出各种相应的改变和变形,但这些相应的改变和变形都应属于本发明所附的权利要求的保护范围。Of course, the present invention can also have other various embodiments, without departing from the spirit and essence of the present invention, those skilled in the art can make various corresponding changes and modifications according to the present invention, but these corresponding Changes and deformations should belong to the protection scope of the appended claims of the present invention.
Claims (11)
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 (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI563859B (en) | 2015-04-23 | 2016-12-21 | Airoha Tech Corp | Bluetooth audio packet sharing method |
CN104980191A (en) * | 2015-04-23 | 2015-10-14 | 络达科技股份有限公司 | Sharing method of Bluetooth audio packet |
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 adjustment method, system, host, 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 |
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 |
TWI763581B (en) * | 2019-10-03 | 2022-05-01 | 瑞昱半導體股份有限公司 | Main bluetooth circuit of multi-member bluetooth device capable of dynamically switching operation mode |
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 |
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 |
US11570081B2 (en) | 2019-10-03 | 2023-01-31 | Realtek Semiconductor Corp. | 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 |
KR102523889B1 (en) | 2020-11-05 | 2023-04-19 | 선전 구딕스 테크놀로지 컴퍼니, 리미티드 | Method, device, and equipment for simultaneous audio playback |
CN115664577B (en) * | 2022-10-26 | 2025-02-25 | 瑞昱半导体股份有限公司 | Audio synchronization circuit and audio synchronization method |
Citations (1)
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)
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 |
CN105284134B (en) * | 2012-12-03 | 2018-11-20 | 索诺瓦公司 | The wireless streaming of audio signal is transferred to multiple audio receiver equipment |
-
2014
- 2014-10-08 CN CN201410524717.6A patent/CN104320843B/en active Active
Patent Citations (1)
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 | |
TWI545971B (en) | Audio synchronization method for bluetooth speaker | |
JP5762950B2 (en) | Signal synchronization for multiple data syncs | |
JP6640359B2 (en) | Wireless audio sync | |
EP4336863A3 (en) | Latency negotiation in a heterogeneous network of synchronized speakers | |
US9521503B2 (en) | Audio player with bluetooth function and audio playing method thereof | |
US9742471B1 (en) | NFMI based synchronization | |
CN108337595A (en) | Bluetooth headset realizes the method being precisely played simultaneously | |
TW201419906A (en) | Frame sync across multiple channels | |
US20180020309A1 (en) | Synchronized Audio Playback Devices | |
CN109521988B (en) | Audio playing synchronization method and device | |
US20160192114A1 (en) | Time to play | |
CN107438990B (en) | Method and apparatus for delivering timing information | |
GB2533831A (en) | Synchronised control | |
CN109525873B (en) | Audio playing synchronization method and device | |
CN105450882A (en) | Audio conversion characteristic test method | |
CN104980191A (en) | Sharing method of Bluetooth audio packet | |
JP6582722B2 (en) | Content distribution device | |
US20210194944A1 (en) | A method of improving synchronization of the playback of audio data between a plurality of audio sub-systems | |
CN110730398A (en) | Distributed Wireless Microphone Array Audio Radio Synchronization Method | |
RU2016135255A (en) | DEVICE AND METHOD FOR PLAYING SOUND AND VIDEO | |
US9374653B2 (en) | Method for a multi-channel wireless speaker system | |
CN105472190A (en) | Audio signal time delay testing method | |
CN204795592U (en) | Audiphone communication system | |
EP3340526A1 (en) | Content data delivery system and content data delivery method |
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 |
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. |
|
CP01 | Change in the name or title of a patent holder |