CN104734740B - A kind of wireless audio data communications method and device - Google Patents

A kind of wireless audio data communications method and device Download PDF

Info

Publication number
CN104734740B
CN104734740B CN201310713575.3A CN201310713575A CN104734740B CN 104734740 B CN104734740 B CN 104734740B CN 201310713575 A CN201310713575 A CN 201310713575A CN 104734740 B CN104734740 B CN 104734740B
Authority
CN
China
Prior art keywords
audio data
data
unit
audio
send
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
CN201310713575.3A
Other languages
Chinese (zh)
Other versions
CN104734740A (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.)
Nationz Technologies Inc
Original Assignee
Nationz Technologies Inc
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 Nationz Technologies Inc filed Critical Nationz Technologies Inc
Priority to CN201310713575.3A priority Critical patent/CN104734740B/en
Publication of CN104734740A publication Critical patent/CN104734740A/en
Application granted granted Critical
Publication of CN104734740B publication Critical patent/CN104734740B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention is suitable for the communications field, provides a kind of wireless audio data communications method and device, this method include:Initial data is encoded, the first audio data is generated;One bit flag position is set in first audio data, and the flag bit includes to send source information;Start to send first audio data;Initialize audio receiving unit;First audio data is completed to send.The present invention initializes audio receiving unit before audio data is sent completely, and it is always maintained at the open state of audio receiving unit, shorten the time of data interaction, it is also identified simultaneously by flag bit and sends client information, to filter out the invalid information outside target, data transmission efficiency is further improved.

Description

A kind of wireless audio data communications method and device
Technical field
The invention belongs to the communications field more particularly to a kind of wireless audio data communications methods and device.
Background technology
Currently, in the wireless audio data communication system based on mobile terminal, mobile terminal plays transmitting terminal or reception The role at end or both, interactive flow are typically that mobile terminal sends audio data, itself is opened after being sent Recording system, the audio data for waiting opposite end to be received to send, the processing such as then recorded, decoded.
But since mobile terminal initialization recording system still needs the regular hour, usually tens to hundreds of in the least Second, the performance that this depends on the mobile terminal is good and bad, therefore, when the presence of this period delays the interaction of communicating pair significantly Between, reduce the efficiency of wireless audio data communication.
Invention content
The embodiment of the present invention is designed to provide a kind of wireless audio data communications method, it is intended to solve wireless sound at present Frequency is according to the low problem of communication efficiency.
The embodiment of the present invention is achieved in that a kind of wireless audio data communications method, includes the following steps:
Initial data is encoded, the first audio data is generated;
One bit flag position is set in first audio data, and the flag bit includes to send source information;
Start to send first audio data;
Initialize audio receiving unit;
First audio data is completed to send.
The another object of the embodiment of the present invention is to provide a kind of wireless audio data communication equipment, and described device includes:
First coding unit generates the first audio data, and in first audio for being encoded to initial data One bit flag position is set in data, and the flag bit includes to send source information;
Audio receiving unit, the audio data for receiving external transmission;
Audio transmission unit is used for transmission the first audio data to outside;
Initialization control unit, for after starting to send first audio data for the first time, controlling the audio and connecing Receive unit initialization.
After starting to send audio data, audio data receives audio single the embodiment of the present invention before being sent completely Member is initialized, and is always maintained at the open state of audio receiving unit so that completes to connect in first time after transmission The preparation for receiving audio data can timely receive audio data, and be no longer needed to just when receiving audio data again Beginningization audio receiving unit substantially reduces the time that communication both-end carries out data interaction, improves communication transfer speeds, simultaneously Also identify that send client information further improves data transmission efficiency to filter out the invalid information outside target by flag bit..
Description of the drawings
Fig. 1 is the flow chart for the wireless audio data communications method that first embodiment of the invention provides;
Fig. 2 is the flow chart for the wireless audio data communications method that second embodiment of the invention provides;
Fig. 3 is the flow chart for the wireless audio data communications method that third embodiment of the invention provides;
Fig. 4 is the structure chart for the wireless audio data communication equipment that one embodiment of the invention provides;
Fig. 5 is the preferred exemplary construction figure for the wireless audio data communication equipment that one embodiment of the invention provides.
Specific implementation mode
In order to make the purpose , technical scheme and advantage of the present invention be clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
After starting to send audio data, audio data receives audio single the embodiment of the present invention before being sent completely Member is initialized, and is always maintained at the open state of audio receiving unit, shortens the time of data interaction, while also being passed through Flag bit identification sends client information and further improves data transmission efficiency to filter out the invalid information outside target.
The realization of the present invention is described in detail below in conjunction with specific embodiment:
Fig. 1 shows the flow for the wireless audio data communications method that first embodiment of the invention provides, for the ease of saying Bright, only the parts related to the present invention are shown.
As an embodiment of the present invention, which includes the following steps:
In step S101, initial data is encoded, generates the first audio data;
In step s 102, a bit flag position is set in the first audio data, which includes to send source information;
In embodiments of the present invention, the first place or last position of audio data can be set to by sending flag bit, for pair Transmission source is identified, and then filters out the invalid information outside target, for example, the flag bit for representing transmitting terminal is set as 1, it will generation The flag bit of table receiving terminal is set as zero.
In step s 103, start to send the first audio data;
In step S104, audio receiving unit is initialized;
As an embodiment of the present invention, recoding unit may be used in audio receiving unit or other Audio storage units are real It is existing.
In step S105, completes the first audio data and send.
In embodiments of the present invention, for transmitting terminal after starting to send audio data, audio data is right before being sent completely Audio receiving unit is initialized, and the audio receiving unit is constantly in the shape for receiving audio data from after initialization State, until communication interaction is completed, in order to ensure that the audio data received is effective, rather than the sound just sent out from transmitting terminal Frequency evidence, therefore setting includes the flag bit for sending source information in audio data when sending, to distinguish.
After starting to send audio data, audio data receives audio single the embodiment of the present invention before being sent completely Member is initialized, and is always maintained at the open state of audio receiving unit so that completes to connect in first time after transmission The preparation for receiving audio data can timely receive audio data, and be no longer needed to just when receiving audio data again Beginningization audio receiving unit substantially reduces the time that communication both-end carries out data interaction, improves communication transfer speeds, simultaneously Also identify that send client information further improves data transmission efficiency to filter out the invalid information outside target by flag bit.
Fig. 2 shows the flows for the wireless audio data communications method that second embodiment of the invention provides, for the ease of saying Bright, only the parts related to the present invention are shown.
As an embodiment of the present invention, which includes the following steps:
In step s 201, initial data is encoded, generates the first audio data;
In step S202, a bit flag position is set in the first audio data, which includes to send source information;
In step S203, start to send the first audio data;
In step S204, audio receiving unit is initialized;
In step S205, completes the first audio data and send;
In step S206, second audio data is received;
In step S207, judge transmission source information in second audio data whether with the transmission in the first audio data Source information is consistent;
If so, returning to step S206;
If it is not, thening follow the steps S208, second audio data is decoded, generates valid data;
In embodiments of the present invention, judge whether the audio data is audio that this transmitting terminal is sent by flag bit Data, for example, the flag bit of transmitting terminal is set as 1, the flag bit of receiving terminal is set as zero, then, when transmitting terminal recognizes When flag bit in reception data is 1, it is believed that the audio data is invalid data, is not handled the data, and when identification The audio data for being zero to flag bit is just decoded processing.
It in step S209, is encoded after carrying out data processing to valid data, generates third audio data;
In step S210, a bit flag position is set in third audio data, flag bit includes to send source information;
In step S211, third audio data is sent.
In embodiments of the present invention, audio receiving unit is constantly in open state after completing to initialize, without every Secondary data re-start initialization after sending, until communication interaction is completed, and in order to avoid audio receiving unit receives certainly The invalid data that body is sent, when sending, setting includes the flag bit for sending source information in audio data, by flag bit The identification audio-frequency information from transmitting terminal itself or receiving terminal, to be decoded to the audio data from receiving terminal, After data processing, coding is sent again.
After starting to send audio data, audio data receives audio single the embodiment of the present invention before being sent completely Member is initialized, and is always maintained at the open state of audio receiving unit so that completes to connect in first time after transmission The preparation for receiving audio data can timely receive audio data, and be no longer needed to just when receiving audio data again Beginningization audio receiving unit substantially reduces the time that communication both-end carries out data interaction, improves communication transfer speeds, simultaneously Also identify that send client information further improves data transmission efficiency to filter out the invalid information outside target by flag bit.
Fig. 3 shows the flow for the wireless audio data communications method that third embodiment of the invention provides, for the ease of saying Bright, only the parts related to the present invention are shown.
As an embodiment of the present invention, which includes the following steps:
In step S301, the coding unit of transmitting terminal encodes initial data, generates the first audio data;
In step s 302, a transmitting terminal flag bit is set in the first audio data;
In step S303, playback unit starts to send the first audio data;
In step s 304, recoding unit is initialized;
In step S305, completes the first audio data and send;
In step S306, second audio data is received by recoding unit;
In step S307, judging unit judge the transmission source information in second audio data whether with the first audio data In transmission source information it is consistent;
If so, returning to step S306;
If it is not, thening follow the steps S308, analog-to-digital conversion is carried out to second audio data by AD conversion unit, generates number Word signal;
In step S309, decoding unit is decoded the digital signal, generates valid data;
In step S310, coding unit encodes after carrying out data processing to valid data, generates third audio data;
In step S311, a receiving terminal flag bit is set in third audio data;
In step S312, playback unit sends third audio data.
As a preferred embodiment of the present invention, playback unit can also be realized by loud speaker, recoding unit can also lead to Cross microphone realization.
In embodiments of the present invention, the mobile terminal devices such as mobile phone or tablet computer may be used in transmitting terminal, and receiving terminal can With using the mobile terminal devices such as mobile phone or tablet computer, can also be comprising digital-to-analogue/AD conversion unit, coding/decoding unit, The other-end of processing/judging unit and transmission/reception unit.
As an embodiment of the present invention, if mobile terminal mobile phone or tablet computer are as transmitting terminal, in addition a mobile phone or For tablet computer as receiving terminal, wireless audio data transmission may be implemented in this method.
If mobile terminal mobile phone or tablet computer, as transmitting terminal, another terminal KEY is as receiving terminal, then this method Audio mobile payment or authentication may be implemented.
After starting to send audio data, audio data receives audio single the embodiment of the present invention before being sent completely Member is initialized, and mobile terminal is then turned on recording module after being sent without waiting for data, and is known by flag bit The audio data does not come from transmitting terminal or receiving terminal, to save the time of recoding unit initialization, is handed over reaching to shorten The mutual time improves the purpose of audio data interactive speed.
Fig. 4 shows the structure of wireless audio data communication equipment provided in an embodiment of the present invention, for convenience of description, only Show part related to the present invention.
As an embodiment of the present invention, which includes:
First coding unit 11 generates the first audio data, and in the first audio number for being encoded to initial data According to one bit flag position of middle setting, which includes to send source information;
Audio receiving unit 12, the audio data for receiving external transmission;
Audio transmission unit 13 is used for transmission the first audio data to outside;
Initialization control unit 10, for starting to send for the first time after the first audio data at the beginning of control audio receiving unit Beginningization.
In embodiments of the present invention, the first place or last position of audio data can be set to by sending flag bit, for pair Transmission source is identified, and then filters out the invalid information outside target, for example, the flag bit for representing transmitting terminal is set as 1, it will generation The flag bit of table receiving terminal is set as zero.
In embodiments of the present invention, after starting to send audio data, audio data has been sent audio transmission unit 13 It is initialized at control audio receiving unit 12 before, and the audio receiving unit 12 is constantly in reception from after initialization The state of audio data, until communication interaction is completed, in order to ensure that the audio data received is effective, rather than just from hair The audio data that sending end is sent out, thus send when in audio data setting comprising send source information flag bit, so as into Row is distinguished.
After starting to send audio data, audio data receives audio single the embodiment of the present invention before being sent completely Member is initialized, and is always maintained at the open state of audio receiving unit so that completes to connect in first time after transmission The preparation for receiving audio data can timely receive audio data, and be no longer needed to just when receiving audio data again Beginningization audio receiving unit substantially reduces the time that communication both-end carries out data interaction, improves communication transfer speeds, simultaneously Also identify that send client information further improves data transmission efficiency to filter out the invalid information outside target by flag bit.
Fig. 5 shows the preferred exemplary construction of wireless audio data communication equipment provided in an embodiment of the present invention, in order to just In explanation, only the parts related to the present invention are shown.
As an embodiment of the present invention, recoding unit may be used in audio receiving unit or other Audio storage units are real It is existing.
As an embodiment of the present invention, which further includes:
Judging unit 14, for judge the transmission source information in second audio data whether with the hair in the first audio data Send source information consistent;
Decoding unit 15, for believing with the transmission source in the first audio data when the transmission source information in second audio data When ceasing inconsistent, second audio data is decoded, generates valid data;
Processing unit 16, for carrying out data processing to valid data;
Second coding unit 17 generates third audio data for treated that valid data encode to data, and One bit flag position is set in third audio data, and flag bit includes to send source information, then control audio transmission unit and send the Three audio datas.
As an embodiment of the present invention, the first coding unit 11 and the second coding unit 17 can be multiplexed.
In embodiments of the present invention, judging unit 14 judges whether the audio data is that this transmitting terminal is sent by flag bit The audio data gone out, for example, the flag bit of transmitting terminal is set as 1, the flag bit of receiving terminal is set as zero, then, work as hair When the flag bit that sending end recognizes in reception data is 1, it is believed that the audio data is invalid data, and processing unit 16 is not to the number According to being handled, and data processing and decoding are just carried out when recognize the audio data that flag bit is zero.
As a preferred embodiment of the present invention, the realization of playback unit, such as loud speaker may be used in audio transmission unit 13.
As a preferred embodiment of the present invention, recoding unit realization, such as microphone may be used in audio receiving unit 12.
As a preferred embodiment of the present invention, the wireless audio data communication equipment 1 can also include:
AD conversion unit 18 generates digital signal, and number is believed for carrying out analog-to-digital conversion to second audio data Number being sent to decoding unit is decoded.
It in embodiments of the present invention, can also be by AD conversion unit or other data processing units to audio receipt Carry out further optimization processing.
In embodiments of the present invention, the mobile terminal devices such as mobile phone or tablet computer may be used in transmitting terminal, and receiving terminal can With using the mobile terminal devices such as mobile phone or tablet computer, can also be comprising digital-to-analogue/AD conversion unit, coding/decoding unit, The other-end of processing/judging unit and transmission/reception unit.
As an embodiment of the present invention, if mobile terminal mobile phone or tablet computer are as transmitting terminal, in addition a mobile phone or For tablet computer as receiving terminal, wireless audio data transmission may be implemented in this method.
If mobile terminal mobile phone or tablet computer, as transmitting terminal, another terminal KEY is as receiving terminal, then this method Audio mobile payment or authentication may be implemented.
After starting to send audio data, audio data receives audio single the embodiment of the present invention before being sent completely Member is initialized, and mobile terminal is then turned on recording module after being sent without waiting for data, and is known by flag bit The audio data does not come from transmitting terminal or receiving terminal, to save the time of recoding unit initialization, is handed over reaching to shorten The mutual time improves the purpose of audio data interactive speed.
The above is merely preferred embodiments of the present invention, be not intended to limit the invention, it is all the present invention spirit and All any modification, equivalent and improvement made by within principle etc., should all be included in the protection scope of the present invention.

Claims (7)

1. a kind of wireless audio data communications method, which is characterized in that the method includes following step:
Initial data is encoded, the first audio data is generated;
One bit flag position is set in first audio data, and the flag bit includes to send source information;
Playback unit starts to send first audio data;
Initialize recoding unit;
The playback unit is completed first audio data and is sent.
2. the method as described in claim 1, which is characterized in that under further including after the step of completion audio data is sent State step:
Receive second audio data;
Judge transmission source information in the second audio data whether with the transmission source information one in first audio data It causes;
If so, returning to the step of executing the reception second audio data;
If it is not, then being decoded to the second audio data, valid data are generated;
It is encoded after carrying out data processing to the valid data, generates third audio data;
One bit flag position is set in the third audio data, and the flag bit includes to send source information;
Send the third audio data.
3. method as claimed in claim 2, which is characterized in that it is described that the second audio data is decoded, generate significant figure According to the step of be specially:
Analog-to-digital conversion is carried out to the second audio data, generates digital signal;
The digital signal is decoded, valid data are generated.
4. the method as described in claim 1, which is characterized in that the flag bit that the audio data of transmitting terminal output carries to be arranged It is 1, the flag bit that the audio data of receiving terminal output carries is set as 0.
5. a kind of wireless audio data communication equipment, which is characterized in that described device includes:
First coding unit generates the first audio data, and in first audio data for being encoded to initial data One bit flag position of middle setting, the flag bit include to send source information;
Recoding unit, the audio data for receiving external transmission;
Playback unit is used for transmission the first audio data to outside;
Initialization control unit, for after starting to send first audio data for the first time and completing first sound Before frequency is according to transmission, the recoding unit initialization is controlled.
6. device as claimed in claim 5, which is characterized in that described device further includes:
The recoding unit, for receiving second audio data;
Judging unit, for judge the transmission source information in the second audio data whether in first audio data It is consistent to send source information;
Decoding unit, for when the transmission source information in the second audio data and the transmission source in first audio data When information is inconsistent, the second audio data is decoded, generates valid data;
Processing unit, for carrying out data processing to the valid data;
Second coding unit generates third audio data, and described for treated that valid data encode to data One bit flag position is set in third audio data, and the flag bit includes to send source information, then control the playback unit and send The third audio data.
7. device as claimed in claim 6, which is characterized in that described device further includes:
AD conversion unit generates digital signal, and by the number for carrying out analog-to-digital conversion to the second audio data Signal is sent to the decoding unit and is decoded.
CN201310713575.3A 2013-12-20 2013-12-20 A kind of wireless audio data communications method and device Active CN104734740B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310713575.3A CN104734740B (en) 2013-12-20 2013-12-20 A kind of wireless audio data communications method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310713575.3A CN104734740B (en) 2013-12-20 2013-12-20 A kind of wireless audio data communications method and device

Publications (2)

Publication Number Publication Date
CN104734740A CN104734740A (en) 2015-06-24
CN104734740B true CN104734740B (en) 2018-08-14

Family

ID=53458233

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310713575.3A Active CN104734740B (en) 2013-12-20 2013-12-20 A kind of wireless audio data communications method and device

Country Status (1)

Country Link
CN (1) CN104734740B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001041128A1 (en) * 1999-11-30 2001-06-07 Motorola Inc. Differentiation of error conditions in digital voice communication systems
CN102307271A (en) * 2011-05-05 2012-01-04 上海博超科技有限公司 Network digital integrated talkback system and transmission method thereof
CN102509216A (en) * 2011-11-08 2012-06-20 南京音优行信息技术有限公司 Method and device for realizing on-site mobile payment by using audio signal
CN103414982A (en) * 2013-07-31 2013-11-27 北京小米科技有限责任公司 Method and device for offering voice

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001041128A1 (en) * 1999-11-30 2001-06-07 Motorola Inc. Differentiation of error conditions in digital voice communication systems
CN102307271A (en) * 2011-05-05 2012-01-04 上海博超科技有限公司 Network digital integrated talkback system and transmission method thereof
CN102509216A (en) * 2011-11-08 2012-06-20 南京音优行信息技术有限公司 Method and device for realizing on-site mobile payment by using audio signal
CN103414982A (en) * 2013-07-31 2013-11-27 北京小米科技有限责任公司 Method and device for offering voice

Also Published As

Publication number Publication date
CN104734740A (en) 2015-06-24

Similar Documents

Publication Publication Date Title
EP3629561A1 (en) Data transmission method and system, and bluetooth headphone
CN103117836B (en) Method and apparatus for equipment association
CN108182944A (en) Control the method, apparatus and intelligent terminal of intelligent terminal
CN108243481A (en) Document transmission method and device
WO2017028651A1 (en) Method, apparatus and system for performing configuration setting between devices
WO2018049892A1 (en) Data transmission method and apparatus, and terminal
US20050208893A1 (en) Bluetooth earphone module with audio player function
CN107005800A (en) Transmission, method of reseptance and the device of audio file, equipment and its system
CN103955822A (en) Method for mobile payment by transmitting data through variable frequency sound waves
CN104780091A (en) Instant messaging method and instant messaging system with speech and audio processing function
CN110351419B (en) Intelligent voice system and voice processing method thereof
CN213906675U (en) Portable wireless bluetooth recording equipment
CN103442427A (en) Data synchronization method, device and system as well as echo cancellation method and system
CN104580309A (en) Information pushing method as well as audio terminal, mobile terminal and pushing system
CN111885412B (en) HDMI signal screen transmission method and wireless screen transmission device
CN109102816A (en) Coding control method, device and electronic equipment
CN104734740B (en) A kind of wireless audio data communications method and device
CN111713119B (en) Headset, headset system and method in headset system
CN111526506A (en) Charging box and method for wireless communication and audio playing kit
CN111081238B (en) Bluetooth sound box voice interaction control method, device and system
CN104507055B (en) The USB digital hand platform systems and its means of communication communicated based on mobile network
WO2023124248A1 (en) Voiceprint recognition method and apparatus
CN203827335U (en) Wireless network device and communication system
CN116261124A (en) Data transmission method and device, electronic equipment and intelligent terminal
JP6497112B2 (en) Wireless receiver and mute control method thereof

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