CN104507041B - A kind of short distance bluetooth two way voice communication system based on Android - Google Patents

A kind of short distance bluetooth two way voice communication system based on Android Download PDF

Info

Publication number
CN104507041B
CN104507041B CN201410853526.4A CN201410853526A CN104507041B CN 104507041 B CN104507041 B CN 104507041B CN 201410853526 A CN201410853526 A CN 201410853526A CN 104507041 B CN104507041 B CN 104507041B
Authority
CN
China
Prior art keywords
voice
module
voice data
output
input
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
CN201410853526.4A
Other languages
Chinese (zh)
Other versions
CN104507041A (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.)
Allwinner Technology Co Ltd
Original Assignee
Allwinner 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 Allwinner Technology Co Ltd filed Critical Allwinner Technology Co Ltd
Priority to CN201410853526.4A priority Critical patent/CN104507041B/en
Publication of CN104507041A publication Critical patent/CN104507041A/en
Application granted granted Critical
Publication of CN104507041B publication Critical patent/CN104507041B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor

Abstract

The short distance bluetooth two way voice communication system based on Android that the invention discloses a kind of, including voice input/output module, it send for acquiring external voice Data Concurrent and is additionally operable to play the voice data received from intelligent direction handover module to intelligent direction handover module;Voice output input module is additionally operable to receive the voice data concurrency that user terminal is sent by bluetooth and sent to intelligent direction handover module for receiving voice data that intelligent direction handover module is sent and be sent to corresponding user terminal by bluetooth;Intelligent direction handover module, if the voice data received from voice input/output module, the voice data is then output by voice input module and is sent to corresponding user terminal, if inputting the voice data received from voice output, then the voice data is played by voice input/output module.The present invention can transmit audio, voice data, and realize the intelligence switching of voice direction.

Description

A kind of short distance bluetooth two way voice communication system based on Android
Technical field
The present invention relates to field of voice communication, especially a kind of short distance bluetooth two way voice communication based on Android System.
Background technology
Existing blue tooth voice communicates, for example the voice communication between Android device and bluetooth headset is based on synchronous Orientation connection(SCO)Link, the sample rate of the data of the link transmission based on SCO is generally 8KHz or 16KHz, Bu Nengchuan The audio data of defeated frequency bigger, the audio transmission being unfavorable between equipment.
Bluetooth double-directional speech greatly improves the experience of Android platform bluetooth applications, it is suitable for two Android Voice communication is carried out between equipment, voice data distributes specification by advanced audio(A2DP)It is transmitted, it is based on asynchronous It is connectionless(ACL)Link, and ACL link can transmit the data more than 44.1KHz sample rates, improve the matter of audio transmission Amount.But it currently based on the usually audio data being transmitted using A2DP, and could be realized in the case of manual operation Transmitted in both directions.
Invention content
To solve the above problems, the purpose of the present invention is to provide a kind of bluetooth two way voice communication based on Android Method and system can not only transmit audio, voice data, can also detect the input state of voice to realize voice direction Intelligence switching.
Technical solution is used by the present invention solves the problems, such as it:
A kind of short distance bluetooth two way voice communication system based on Android, including:
Voice input/output module is sent to for acquiring external voice data, and by collected external voice data Intelligent direction handover module is additionally operable to play the voice data received from intelligent direction handover module;
Voice output input module, the voice data sent for receiving intelligent direction handover module, and by the voice number It is sent to corresponding user terminal according to by bluetooth, is additionally operable to receive the voice data that user terminal is sent by bluetooth, and by the language Sound data are sent to intelligent direction handover module;
Intelligent direction handover module, intelligence direction handover module are connected to voice input/output module and voice output Between input module, for judging it is the voice data received from voice input/output module, or it is defeated from voice output Enter the voice data received, if from the voice data that voice input/output module receives, then sends the voice data To voice output input module, and it is output by voice input module and the voice data is sent to corresponding user terminal, if The voice data received is inputted from voice output, then the voice data is sent to voice input/output module, and pass through language Sound input/output module plays the voice data.
Further, further include:
Audio sharing module switches for passing through to start an audio and share thread audio data is sent to intelligent direction Module and the audio data for receiving the handover module transmission of intelligent direction.
Further, the audio shares the audio data that thread only transmits single direction in the same time.
Further, the voice input/output module or voice output input module send language to intelligent direction handover module When sound data, the audio of intelligence direction handover module notification audio sharing module shares hair of the thread stopping to audio data When sending, and being not received by the voice data of voice input/output module or voice output input module within a certain period of time, lead to Bosom friend's frequency division enjoys thread and continues to send audio data.
Further, the voice input/output module judges that the maximum amplitude of external voice data whithin a period of time is more than When the threshold values of setting, external voice data are acquired.
The beneficial effects of the invention are as follows:
The present invention uses a kind of short distance bluetooth two way voice communication system based on Android, makes based on A2DP's Android device bluetooth double-directional speech can not only transmit audio, voice data, can also detect the input state of voice to Realize the intelligence switching of voice direction, meanwhile, the Android device bluetooth double-directional speech based on A2DP only uses on hardware Universal asynchronous receiving-transmitting transmitter(UART)Interface does not need pulse code modulation(PCM)Interface solves the complexity on hardware Problem.
Description of the drawings
The invention will be further described with example below in conjunction with the accompanying drawings.
Fig. 1 is the structural schematic diagram of system of the present invention;
Fig. 2 is system communication of the present invention and shares the flow diagram of audio.
Specific implementation mode
Shown in referring to Fig.1, a kind of short distance bluetooth two way voice communication system based on Android of the invention, including:
Voice input/output module is sent to for acquiring external voice data, and by collected external voice data Intelligent direction handover module is additionally operable to play the voice data received from intelligent direction handover module;
Voice output input module, the voice data sent for receiving intelligent direction handover module, and by the voice number It is sent to corresponding user terminal according to by bluetooth, is additionally operable to receive the voice data that user terminal is sent by bluetooth, and by the language Sound data are sent to intelligent direction handover module;
Intelligent direction handover module, intelligence direction handover module are connected to voice input/output module and voice output Between input module, for judging it is the voice data received from voice input/output module, or it is defeated from voice output Enter the voice data received, if from the voice data that voice input/output module receives, then sends the voice data To voice output input module, and it is output by voice input module and the voice data is sent to corresponding user terminal, if The voice data received is inputted from voice output, then the voice data is sent to voice input/output module, and pass through language Sound input/output module plays the voice data.
Wherein, the voice input/output module judge the maximum amplitude of external voice data whithin a period of time be more than set When fixed threshold values, external voice data are acquired.
The present invention is additionally provided with audio sharing module, starts an audio for passing through and shares thread and send audio data The audio data sent to intelligent direction handover module and the intelligent direction handover module of reception, and the audio shares thread same One time only transmitted the audio data of single direction.
Do not conflict with what is communicated to ensure that voice is shared, the voice input/output module or voice output input module to When intelligent direction handover module sends voice data, the audio of intelligence direction handover module notification audio sharing module is shared Thread stops transmission to audio data, and is not received by voice input/output module within a certain period of time or voice output is defeated When entering the voice data of module, notification audio shares thread and continues to send audio data.
With reference to shown in Fig. 2, system of the present invention is in the flow chart for carrying out communication and sharing with audio, when there is audio input When, when voice input/output module detects that the audio is more than the threshold value of setting, then local audio broadcasting is judged whether there is, such as Fruit has, then suspends broadcasting, and otherwise, voice input/output module acquires the voice data and sends it to intelligent direction switching mould Voice data is sent to voice output input module by block, intelligent direction handover module, and voice output input module passes through bluetooth Voice data is sent to corresponding user terminal;Later, present invention detects whether the audios for having pause, if so, then carrying out this Ground audio plays, and when audio plays, shares if carrying out audio, audio sharing module starts an audio and shares thread by audio Data are sent to intelligent direction handover module, which is sent to output input module, language by intelligent direction handover module Voice data is sent to corresponding user terminal by sound output input module by bluetooth, realizes that audio is shared.
The application scenarios of the present invention are mainly that short distance two way voice communication is shared with audio.As long as one party user is opposite When equipment is spoken and sound is more than certain threshold value, equipment can detect voice input at this time, to rapidly switch automatically To voice input state, then voice data is by by the equipment of Bluetooth transmission to another party user, another party user Hear the other user's one's voice in speech.User can choose whether audio being shared with another user, is shared with when by audio When another user, not only user itself can hear that audio, another user can also hear audio simultaneously.
The present invention technically realizes the intelligence switching of voice direction, when playing, sharing audio if there is voice data Need transmission then can first suspend the broadcasting of audio, etc. voice data transmissions are complete is further continued for playing audio, and hardware communications are connect Demand on mouth is preferably minimized, it is thus only necessary to simple UART interface.
The above, only presently preferred embodiments of the present invention, the invention is not limited in the above embodiments, as long as It reaches the technique effect of the present invention with identical means, should all belong to the scope of protection of the present invention.

Claims (2)

1. a kind of short distance bluetooth two way voice communication system based on Android, which is characterized in that including:
Voice input/output module is sent to intelligence for acquiring external voice data, and by collected external voice data Direction handover module is additionally operable to play the voice data received from intelligent direction handover module;
Voice output input module, the voice data sent for receiving intelligent direction handover module, and the voice data is led to It crosses bluetooth and is sent to corresponding user terminal, be additionally operable to receive the voice data that user terminal is sent by bluetooth, and by the voice number According to being sent to intelligent direction handover module;
Intelligent direction handover module, intelligence direction handover module are connected to voice input/output module and voice output input Between module, mould is inputted for judging it is the voice data received from voice input/output module, or from voice output If the voice data that block receives then sends the voice data from the voice data that voice input/output module receives To voice output input module, and it is output by voice input module and the voice data is sent to corresponding user terminal, if The voice data received from voice output input module, then be sent to voice input/output module, and lead to by the voice data It crosses voice input/output module and plays the voice data;
Audio sharing module starts an audio and shares thread audio data is sent to intelligent direction handover module for passing through With the audio data for receiving the handover module transmission of intelligent direction;
The audio shares the audio data that thread only transmits single direction in the same time;
When the voice input/output module or voice output input module send voice data to intelligent direction handover module, institute The audio for stating intelligent direction handover module notification audio sharing module shares transmission of the thread stopping to audio data, and certain When being not received by the voice data of voice input/output module or voice output input module in the time, notification audio shares line Cheng Jixu sends audio data.
2. a kind of short distance bluetooth two way voice communication system based on Android according to claim 1, feature exist In the voice input/output module judges that the maximum amplitude of external voice data whithin a period of time is more than the threshold values of setting When, acquire external voice data.
CN201410853526.4A 2014-12-29 2014-12-29 A kind of short distance bluetooth two way voice communication system based on Android Active CN104507041B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410853526.4A CN104507041B (en) 2014-12-29 2014-12-29 A kind of short distance bluetooth two way voice communication system based on Android

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410853526.4A CN104507041B (en) 2014-12-29 2014-12-29 A kind of short distance bluetooth two way voice communication system based on Android

Publications (2)

Publication Number Publication Date
CN104507041A CN104507041A (en) 2015-04-08
CN104507041B true CN104507041B (en) 2018-09-25

Family

ID=52948743

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410853526.4A Active CN104507041B (en) 2014-12-29 2014-12-29 A kind of short distance bluetooth two way voice communication system based on Android

Country Status (1)

Country Link
CN (1) CN104507041B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106658369B (en) * 2016-12-06 2020-02-07 歌尔科技有限公司 Bidirectional voice communication equipment, communication system and communication method
CN106776595B (en) * 2017-01-07 2023-07-28 安徽声讯信息技术有限公司 Central processing module interaction system based on Bluetooth transmission

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102457618A (en) * 2011-12-22 2012-05-16 苏州群凯信息系统有限公司 Novel mobile communication terminal
CN103068063A (en) * 2011-10-20 2013-04-24 中兴通讯股份有限公司 Multimode communication method, terminal and system
CN103166935A (en) * 2011-12-16 2013-06-19 中兴通讯股份有限公司 Method and device for realizing near field communication
CN203721183U (en) * 2013-12-25 2014-07-16 安徽科大讯飞信息科技股份有限公司 A voice wakening device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013048880A1 (en) * 2011-09-30 2013-04-04 Apple Inc. Automatically adapting user interfaces for hands-free interaction
CN103516418B (en) * 2012-06-29 2016-06-08 深圳市快播科技有限公司 A kind of multimedia interaction communication system, method and the equipment of reception
CN103841137A (en) * 2012-11-22 2014-06-04 腾讯科技(深圳)有限公司 Method for intelligent terminal to control webpage application, and intelligent terminal
US20140267148A1 (en) * 2013-03-14 2014-09-18 Aliphcom Proximity and interface controls of media devices for media presentations

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103068063A (en) * 2011-10-20 2013-04-24 中兴通讯股份有限公司 Multimode communication method, terminal and system
CN103166935A (en) * 2011-12-16 2013-06-19 中兴通讯股份有限公司 Method and device for realizing near field communication
CN102457618A (en) * 2011-12-22 2012-05-16 苏州群凯信息系统有限公司 Novel mobile communication terminal
CN203721183U (en) * 2013-12-25 2014-07-16 安徽科大讯飞信息科技股份有限公司 A voice wakening device

Also Published As

Publication number Publication date
CN104507041A (en) 2015-04-08

Similar Documents

Publication Publication Date Title
US10820098B2 (en) Wireless microphone system, control method and audio-video conference system
CN108600897A (en) Realize the one drag two bluetooth headset and communication means of low frequency switching
CN107277668B (en) A kind of double bluetooth headsets
EP3133846A3 (en) In-vehicle system (ivs) control of emergency data communications
WO2018152908A1 (en) Method and device for identifying voice source from bluetooth headset
EP2083606A3 (en) Multi-standby mobile terminal and host function providing method for the same
CN105763213A (en) Wireless Headset System With Two Different Radio Protocols
EP3367651A3 (en) Communication system and terminal device
CN111294777A (en) Control method and communication method of Bluetooth audio transmitter
CN103914003B (en) Device for sharing music through body contact by two people
CN104507041B (en) A kind of short distance bluetooth two way voice communication system based on Android
CN203933621U (en) A kind of HID blue tooth voice communicator
CN201323575Y (en) Bluetooth headset
CN104954078A (en) Sound wave communication based control and response method and sound wave communication based control and response device
CN204965739U (en) Intelligent voice remote controller
CN108462914A (en) A method of promoting earphone experience
CN103166935A (en) Method and device for realizing near field communication
CN204425599U (en) A kind of earphone based on bone conduction technology
CN203812011U (en) Device for sharing music through body contact of two persons
CN206004892U (en) A kind of wireless blue tooth Play System and wireless blue tooth playing device
CN106658246A (en) Wireless microphone system
CN106658253A (en) Earphone and implementation method thereof
CN205610864U (en) Microphone
CN204465674U (en) A kind of remote speech translation terminal
CN204795592U (en) Audiphone communication system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant