CN109039390B - Method for Bluetooth bidirectional transmission of voice data - Google Patents

Method for Bluetooth bidirectional transmission of voice data Download PDF

Info

Publication number
CN109039390B
CN109039390B CN201811076453.7A CN201811076453A CN109039390B CN 109039390 B CN109039390 B CN 109039390B CN 201811076453 A CN201811076453 A CN 201811076453A CN 109039390 B CN109039390 B CN 109039390B
Authority
CN
China
Prior art keywords
address code
voice
bluetooth device
voice data
voice signal
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
CN201811076453.7A
Other languages
Chinese (zh)
Other versions
CN109039390A (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.)
Ma Yi
Original Assignee
Shenzhen Zhuifengma Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Zhuifengma Technology Co ltd filed Critical Shenzhen Zhuifengma Technology Co ltd
Priority to CN201811076453.7A priority Critical patent/CN109039390B/en
Publication of CN109039390A publication Critical patent/CN109039390A/en
Application granted granted Critical
Publication of CN109039390B publication Critical patent/CN109039390B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • H04B5/72
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication

Abstract

The invention discloses a method for bidirectionally transmitting voice data by Bluetooth, which specifically comprises the following steps: (1) a Bluetooth device at a sending end collects a voice signal, performs A/D conversion on the voice signal, and converts an analog voice signal into a digital voice signal; (2) setting the address code of the receiving end Bluetooth device at the front end of the digital voice signal, and setting the address code of the sending end Bluetooth device at the tail end of the digital voice signal; (3) the Bluetooth equipment at the sending end sends the configured voice signal; (4) the receiving end Bluetooth device receives and screens the voice signals. The invention can simply distinguish the transmitted data or the received data.

Description

Method for Bluetooth bidirectional transmission of voice data
Technical Field
The invention relates to a method for bidirectionally transmitting voice data by Bluetooth.
Background
In the prior art, bluetooth bidirectionally transmits voice data, and bluetooth devices need to distinguish the voice data as transmitted data or received data.
Disclosure of Invention
The invention provides a method for bidirectionally transmitting voice data by Bluetooth, which can simply distinguish the transmitted data or the received data.
The technical scheme of the invention is realized as follows:
a method for Bluetooth bidirectional transmission of voice data specifically comprises the following steps:
(1) a Bluetooth device at a sending end collects a voice signal, performs A/D conversion on the voice signal, and converts an analog voice signal into a digital voice signal;
(2) setting the address code of the receiving end Bluetooth device at the front end of the digital voice signal, and setting the address code of the sending end Bluetooth device at the tail end of the digital voice signal;
(3) the Bluetooth equipment at the sending end sends the configured voice signal;
(4) the receiving end Bluetooth device receives and screens the voice signals.
Preferably, in step (3), the sending-end bluetooth device buffers the configured voice signal in the sending data buffer, and then sends the configured voice signal.
Preferably, in step (4), after buffering the received voice signal in the received data buffer, the receiving-end bluetooth device analyzes whether the address code of the front end of the voice signal is the same as the address code of the device, and if so, converts the voice signal into an analog signal and plays the analog signal.
Preferably, the method further comprises the following steps:
(5) the receiving end Bluetooth device extracts the address code at the tail end of the voice signal and sets the extracted address code at the front end of the returned voice signal.
Preferably, steps (1) and (2) specifically include the following:
(1) the method comprises the steps that a sending end Bluetooth device collects multiple groups of voice signals, A/D conversion is carried out on all the voice signals, analog voice signals are converted into digital voice signals, and the multiple groups of voice signals correspond to multiple receiving end Bluetooth devices;
(2) the address code of the corresponding receiving end Bluetooth device is arranged at the front end of each group of digital voice signals, and the address code of the sending end Bluetooth device is arranged at the tail end of the digital voice signals.
Preferably, steps (1), (2) and (3) specifically include the following:
(1) the method comprises the steps that a sending end Bluetooth device collects multiple groups of voice signals, A/D conversion is carried out on all the voice signals, analog voice signals are converted into digital voice signals, and the multiple groups of voice signals correspond to the same receiving end Bluetooth device;
(2) the address code of the corresponding receiving end Bluetooth device and the timestamp for collecting each group of voice signals are arranged at the front end of each group of digital voice signals, and the address code of the transmitting end Bluetooth device is arranged at the tail end of the digital voice signals;
(3) the Bluetooth device at the sending end takes the timestamp as the priority level for judging the sending of each group of voice signals, and sends the configured voice signals according to the priority level.
Preferably, step (3) is preceded by the following steps:
the transmitting end Bluetooth device packs the address code of the receiving end Bluetooth device and the address code of the transmitting end Bluetooth device and sends the packed address code and the packed address code to the receiving end Bluetooth device, and the receiving end Bluetooth device packs the address code of the transmitting end Bluetooth device and the address code of the receiving end Bluetooth device and responses the packed address code to the transmitting end Bluetooth device.
Preferably, step (2) is preceded by the following steps:
the sending end Bluetooth device acquires the address code of the receiving end Bluetooth device.
The invention has the beneficial effects that: the transmitted data or the received data can be distinguished more simply.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart illustrating a method for bluetooth bi-directional voice data transmission according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As shown in fig. 1, the present invention provides a method for bluetooth bidirectional voice data transmission, which specifically includes the following steps:
(1) a Bluetooth device at a sending end collects a voice signal, performs A/D conversion on the voice signal, and converts an analog voice signal into a digital voice signal;
(2) setting the address code of the receiving end Bluetooth device at the front end of the digital voice signal, and setting the address code of the sending end Bluetooth device at the tail end of the digital voice signal;
(3) the Bluetooth equipment at the sending end sends the configured voice signal;
(4) the receiving end Bluetooth device receives and screens the voice signals.
Preferably, in step (3), the sending-end bluetooth device buffers the configured voice signal in the sending data buffer, and then sends the configured voice signal.
Preferably, in step (4), after buffering the received voice signal in the received data buffer, the receiving-end bluetooth device analyzes whether the address code of the front end of the voice signal is the same as the address code of the device, and if so, converts the voice signal into an analog signal and plays the analog signal.
Preferably, the method further comprises the following steps:
(5) the receiving end Bluetooth device extracts the address code at the tail end of the voice signal and sets the extracted address code at the front end of the returned voice signal.
Preferably, steps (1) and (2) specifically include the following:
(1) the method comprises the steps that a sending end Bluetooth device collects multiple groups of voice signals, A/D conversion is carried out on all the voice signals, analog voice signals are converted into digital voice signals, and the multiple groups of voice signals correspond to multiple receiving end Bluetooth devices;
(2) the address code of the corresponding receiving end Bluetooth device is arranged at the front end of each group of digital voice signals, and the address code of the sending end Bluetooth device is arranged at the tail end of the digital voice signals.
Preferably, steps (1), (2) and (3) specifically include the following:
(1) the method comprises the steps that a sending end Bluetooth device collects multiple groups of voice signals, A/D conversion is carried out on all the voice signals, analog voice signals are converted into digital voice signals, and the multiple groups of voice signals correspond to the same receiving end Bluetooth device;
(2) the address code of the corresponding receiving end Bluetooth device and the timestamp for collecting each group of voice signals are arranged at the front end of each group of digital voice signals, and the address code of the transmitting end Bluetooth device is arranged at the tail end of the digital voice signals;
(3) the Bluetooth device at the sending end takes the timestamp as the priority level for judging the sending of each group of voice signals, and sends the configured voice signals according to the priority level.
Preferably, step (3) is preceded by the following steps:
the transmitting end Bluetooth device packs the address code of the receiving end Bluetooth device and the address code of the transmitting end Bluetooth device and sends the packed address code and the packed address code to the receiving end Bluetooth device, and the receiving end Bluetooth device packs the address code of the transmitting end Bluetooth device and the address code of the receiving end Bluetooth device and responses the packed address code to the transmitting end Bluetooth device.
Preferably, step (2) is preceded by the following steps:
the sending end Bluetooth device acquires the address code of the receiving end Bluetooth device.
In other embodiments, the sending end bluetooth device judges whether data subpackaging is needed or not after the step (1), and if so, performs the next step; dividing the digital voice signal into a plurality of voice data packets, and sequentially setting an address code, a packet encoding number and a timestamp of the Bluetooth equipment at a receiving end at the starting end of each voice data packet; setting an address code of the Bluetooth equipment of the sending end at the end of the voice data packet; in the step (3), a Bluetooth transmission link is established, and the configured voice data packets are sequentially sent according to the packet coding number or the timestamp. Correspondingly, the receiving end Bluetooth device receives the voice data packet; each group of voice data packets consists of first address code information, a timestamp, voice data and second address code information; extracting first address code information from the front end of the voice data packet, comparing the first address code information with the address code of the equipment, judging whether the first address code information is consistent with the address code of the equipment, if so, entering the next step, and if not, discarding the voice data packet; extracting a time stamp from the front end included in the voice data, taking the time stamp as a priority judgment standard of processing, extracting second address code information from the tail end of the voice data packet, and grouping the received voice data packet according to the second address code information; and recombining the grouped voice data packets according to the time stamp, converting the voice data packets into analog voice signals, and playing the analog voice signals. The voice data packet may be comprised of first address code information, a timestamp, voice data, background noise data, and second address code information. And setting fixed byte number for the first address code information, the timestamp, the background noise data and the second address code information, wherein after receiving the voice data packet, the receiving end Bluetooth equipment can selectively discard the background noise data, and can also optimize the voice data by using the background noise data.
The encoding method of the voice data packet comprises the following steps:
acquiring an original audio, removing non-voice data in the original audio, acquiring voice segment data and background voice data, and quantizing, encoding and transmitting the voice segment data and the background voice data respectively;
extracting characteristic parameters of input voice segment data and background voice data, wherein the extracted characteristic parameters comprise a line spectrum pair, a pitch period and a gain mean value, and performing parameter transformation on the parameters to convert the parameters into a format required by parameter quantization;
and quantizing and encoding various voice parameters, and generating a voice data packet according to the formats of the first address code information, the timestamp, the voice data, the background noise data and the second address code information.
The invention can simply distinguish the sent data or the received data, and the Bluetooth equipment also sends the data packet in a broadcasting mode so as to prevent the problems that the pairing of the Bluetooth equipment is interrupted, the data transmission fails and the experience of a user is poor.
The technical scheme discloses the improvement point of the invention, and technical contents which are not disclosed in detail can be realized by the prior art by a person skilled in the art.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (8)

1. A method for Bluetooth bidirectional transmission of voice data is characterized by comprising the following steps:
(1) a Bluetooth device at a sending end collects a voice signal, performs A/D conversion on the voice signal, and converts an analog voice signal into a digital voice signal;
(2) setting the address code of the receiving end Bluetooth device at the front end of the digital voice signal, and setting the address code of the sending end Bluetooth device at the tail end of the digital voice signal;
(3) the Bluetooth equipment at the sending end sends the configured voice signal;
(4) receiving and screening voice signals by the receiving end Bluetooth equipment;
after the transmitting end Bluetooth device performs the step (1), judging whether data subpackaging is needed, and if so, performing the next step; dividing the digital voice signal into a plurality of voice data packets, and sequentially setting an address code, a packet encoding number and a timestamp of the Bluetooth equipment at a receiving end at the starting end of each voice data packet; setting an address code of the Bluetooth equipment of the sending end at the end of the voice data packet; in the step (3), a Bluetooth transmission link is established, and configured voice data packets are sequentially sent according to packet coding numbers or timestamps; correspondingly, the receiving end Bluetooth device receives the voice data packet; each group of voice data packets consists of first address code information, a timestamp, voice data and second address code information; extracting first address code information from the front end of the voice data packet, comparing the first address code information with the address code of the equipment, judging whether the first address code information is consistent with the address code of the equipment, if so, entering the next step, and if not, discarding the voice data packet; extracting a time stamp from the front end included in the voice data, taking the time stamp as a priority judgment standard of processing, extracting second address code information from the tail end of the voice data packet, and grouping the received voice data packet according to the second address code information; recombining the grouped voice data packets according to the timestamp, converting the voice data packets into analog voice signals, and playing the analog voice signals; or the voice data packet is composed of first address code information, a timestamp, voice data, background noise data and second address code information; setting fixed byte number for the first address code information, the timestamp, the background noise data and the second address code information, and after receiving the voice data packet, selecting to discard the background noise data by the receiving end Bluetooth device and optimizing the voice data by using the background noise data;
the encoding method of the voice data packet comprises the following steps:
acquiring an original audio, removing non-voice data in the original audio, acquiring voice segment data and background voice data, and quantizing, encoding and transmitting the voice segment data and the background voice data respectively;
extracting characteristic parameters of input voice segment data and background voice data, wherein the extracted characteristic parameters comprise a line spectrum pair, a pitch period and a gain mean value, and performing parameter transformation on the parameters to convert the parameters into a format required by parameter quantization;
and quantizing and encoding various voice parameters, and generating a voice data packet according to the formats of the first address code information, the timestamp, the voice data, the background noise data and the second address code information.
2. The method according to claim 1, wherein in step (3), the sending-end bluetooth device sends the configured voice signal after buffering the configured voice signal in the sending-end data buffer.
3. The method according to claim 1, wherein in step (4), the receiving end bluetooth device buffers the received voice signal in the received data buffer, and then resolves whether the address code of the front end of the voice signal is the same as the address code of the device, and if yes, converts the voice signal into an analog signal and plays the analog signal.
4. The method of claim 3, further comprising the steps of:
(5) the receiving end Bluetooth device extracts the address code at the tail end of the voice signal and sets the extracted address code at the front end of the returned voice signal.
5. The method according to claim 1, wherein the steps (1) and (2) specifically include the following steps:
(1) the method comprises the steps that a sending end Bluetooth device collects multiple groups of voice signals, A/D conversion is carried out on all the voice signals, analog voice signals are converted into digital voice signals, and the multiple groups of voice signals correspond to multiple receiving end Bluetooth devices;
(2) the address code of the corresponding receiving end Bluetooth device is arranged at the front end of each group of digital voice signals, and the address code of the sending end Bluetooth device is arranged at the tail end of the digital voice signals.
6. The method of claim 1, wherein the voice data is transmitted in both directions via Bluetooth,
the steps (1), (2) and (3) specifically comprise the following contents:
(1) the method comprises the steps that a sending end Bluetooth device collects multiple groups of voice signals, A/D conversion is carried out on all the voice signals, analog voice signals are converted into digital voice signals, and the multiple groups of voice signals correspond to the same receiving end Bluetooth device;
(2) the address code of the corresponding receiving end Bluetooth device and the timestamp for collecting each group of voice signals are arranged at the front end of each group of digital voice signals, and the address code of the transmitting end Bluetooth device is arranged at the tail end of the digital voice signals;
(3) the Bluetooth device at the sending end takes the timestamp as the priority level for judging the sending of each group of voice signals, and sends the configured voice signals according to the priority level.
7. The method of claim 1, wherein step (3) is preceded by the steps of:
the transmitting end Bluetooth device packs the address code of the receiving end Bluetooth device and the address code of the transmitting end Bluetooth device and sends the packed address code and the packed address code to the receiving end Bluetooth device, and the receiving end Bluetooth device packs the address code of the transmitting end Bluetooth device and the address code of the receiving end Bluetooth device and responses the packed address code to the transmitting end Bluetooth device.
8. The method of claim 1, wherein step (2) is preceded by the steps of:
the sending end Bluetooth device acquires the address code of the receiving end Bluetooth device.
CN201811076453.7A 2018-09-14 2018-09-14 Method for Bluetooth bidirectional transmission of voice data Active CN109039390B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811076453.7A CN109039390B (en) 2018-09-14 2018-09-14 Method for Bluetooth bidirectional transmission of voice data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811076453.7A CN109039390B (en) 2018-09-14 2018-09-14 Method for Bluetooth bidirectional transmission of voice data

Publications (2)

Publication Number Publication Date
CN109039390A CN109039390A (en) 2018-12-18
CN109039390B true CN109039390B (en) 2021-04-27

Family

ID=64622393

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811076453.7A Active CN109039390B (en) 2018-09-14 2018-09-14 Method for Bluetooth bidirectional transmission of voice data

Country Status (1)

Country Link
CN (1) CN109039390B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2850178Y (en) * 2005-06-07 2006-12-20 和恩科技股份有限公司 Blue tooth earphone seat with bidirectional speech transmission
CN101114859A (en) * 2007-09-05 2008-01-30 勾延根 Digital cordless microphone
CN101719911A (en) * 2009-11-24 2010-06-02 中兴通讯股份有限公司 Method, device and system capable of transmitting multimedia data by Bluetooth and playing in real time
CN202798680U (en) * 2012-06-19 2013-03-13 杨子忠 System with short-distance starting frequency-comparison 2.4G digital wireless microphone and a plurality of simultaneously used wireless audio frequency transmission receivers
CN104065401A (en) * 2014-06-25 2014-09-24 青岛歌尔声学科技有限公司 Voice transmission method based on HID bluetooth module and HID bluetooth voice communication device
EP3352077A1 (en) * 2017-01-24 2018-07-25 Da Sheng Inc. Method for synchronously taking audio and video in order to proceed one-to-multi multimedia stream

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2850178Y (en) * 2005-06-07 2006-12-20 和恩科技股份有限公司 Blue tooth earphone seat with bidirectional speech transmission
CN101114859A (en) * 2007-09-05 2008-01-30 勾延根 Digital cordless microphone
CN101719911A (en) * 2009-11-24 2010-06-02 中兴通讯股份有限公司 Method, device and system capable of transmitting multimedia data by Bluetooth and playing in real time
CN202798680U (en) * 2012-06-19 2013-03-13 杨子忠 System with short-distance starting frequency-comparison 2.4G digital wireless microphone and a plurality of simultaneously used wireless audio frequency transmission receivers
CN104065401A (en) * 2014-06-25 2014-09-24 青岛歌尔声学科技有限公司 Voice transmission method based on HID bluetooth module and HID bluetooth voice communication device
EP3352077A1 (en) * 2017-01-24 2018-07-25 Da Sheng Inc. Method for synchronously taking audio and video in order to proceed one-to-multi multimedia stream

Also Published As

Publication number Publication date
CN109039390A (en) 2018-12-18

Similar Documents

Publication Publication Date Title
CN104320843B (en) Audio synchronization method of Bluetooth sound production device
CN108847248B (en) Bluetooth device audio processing method, system, readable storage medium and Bluetooth device
US9059970B1 (en) Method of compressing and decompressing I/Q sample data in cloud radio access network
CA2404926A1 (en) Data transmitting method and receiving method, and video data transmitting device and receiving device
CN109039390B (en) Method for Bluetooth bidirectional transmission of voice data
CN103826084A (en) Audio encoding method
CA2682153A1 (en) Method of transmitting data in a communication system
CN102263771A (en) Mobile terminal, adapter as well as method and system for playing multi-media data
CN106683682A (en) Method for improving speech transmission efficiency
CN105024764A (en) Audio-format-based file transmission method and system
JP2007174058A (en) Slave station of wireless lan system, and method for performing band guarantee
WO2018161277A1 (en) Audio channel-based digital communication method and apparatus
JPH06501344A (en) multichannel data compressor
CN100369489C (en) Embedded wireless coder of dynamic access code tactics
CN110730398A (en) Distributed wireless microphone array audio frequency reception synchronization method
JP2012050023A (en) Image data transmission device, image data receiving device, image data transmission system, image data transmission method, and image data receiving method
CN106209343B (en) Synchronize the broadcasting of the digital signal sent to multiple movable audio frequency terminals
JP5310892B2 (en) Digital broadcasting method
CN103209399A (en) Short message transmission and receiving system and method
JP7172903B2 (en) Signal transmission system and signal transmission method
CN202889522U (en) Wireless audio/video transmission system
JP5746963B2 (en) Communications system
CN219496929U (en) Remote tuning equipment
CN202889531U (en) Wireless audio/video acquisition system
JP5012840B2 (en) Sender network and broadcasting system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 518000 a506-3, building a, huashengtai science and technology building, 36 hanghang Road, Sanwei community, Hangcheng street, Bao'an District, Shenzhen City, Guangdong Province

Applicant after: SHENZHEN ZHUIFENGMA TECHNOLOGY Co.,Ltd.

Address before: 518000 south block, Tairan Cangsong building, 6 Tairan Road, chegong temple, Shatou street, Futian District, Shenzhen, Guangdong, 2011, 2012

Applicant before: SHENZHEN ZHUIFENGMA TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230420

Address after: Room 801, Building E, No. 111, North 1st Lane, Chuangye Second Road, Bao'an District, Shenzhen City, Guangdong Province, 518101

Patentee after: Ma Yi

Address before: 518000 a506-3, building a, huashengtai science and technology building, 36 hanghang Road, Sanwei community, Hangcheng street, Bao'an District, Shenzhen City, Guangdong Province

Patentee before: SHENZHEN ZHUIFENGMA TECHNOLOGY Co.,Ltd.