CN104866276A - Method, host and system for implementing voice input based on Bluetooth HID service - Google Patents

Method, host and system for implementing voice input based on Bluetooth HID service Download PDF

Info

Publication number
CN104866276A
CN104866276A CN201510263142.1A CN201510263142A CN104866276A CN 104866276 A CN104866276 A CN 104866276A CN 201510263142 A CN201510263142 A CN 201510263142A CN 104866276 A CN104866276 A CN 104866276A
Authority
CN
China
Prior art keywords
bluetooth
hid
main frame
equipment
service
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.)
Pending
Application number
CN201510263142.1A
Other languages
Chinese (zh)
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.)
SHENZHEN HAOBO HIGH TECHNOLOGY Co Ltd
Original Assignee
SHENZHEN HAOBO HIGH 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 HAOBO HIGH TECHNOLOGY Co Ltd filed Critical SHENZHEN HAOBO HIGH TECHNOLOGY Co Ltd
Priority to CN201510263142.1A priority Critical patent/CN104866276A/en
Publication of CN104866276A publication Critical patent/CN104866276A/en
Pending legal-status Critical Current

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

The present invention discloses a method, host and system for implementing voice input based on Bluetooth HID service. The method comprises the following steps: S1, registering a virtual voice input device in a host operating system; S2, acquiring, by the virtual voice input device, voice data using the Bluetooth protocol stack in the operating system; and S3, acquiring, by an audio subsystem in the operating system, the voice data by accessing the virtual voice input device. The host comprises the virtual voice input device. The system comprises the host and a Bluetooth HID device. According to the present invention, communication is implemented based on Bluetooth HID data, power consumption is now, key pressing response is quick, and voice startup is rapid. In addition, HID data flows are read using the virtual voice input device, and voice data is imported to a virtual standard voice input device, such that the system has high adaptability and strong compatibility, thereby enhancing user experience. The method, host and system according to the present invention can be widely applied in various Bluetooth voice communication systems.

Description

The method of phonetic entry and main frame and system is realized based on bluetooth HID service
Technical field
The present invention relates to main frame language data process field, particularly relate to a kind of blue tooth voice input method, the invention still further relates to a kind of realize blue tooth voice input main frame and a kind of blue tooth voice input system.
Background technology
BLE: bluetooth low energy consumption technologies is the robustness wireless technology of low cost, short distance, interoperable, is operated in the 2.4GHz ISM radio frequency band of exempting to permit.
HID serves: The Human Interface Device, hommization human interface device agreement, defines the agreement of bluetooth in human interface device, characteristic sum uses code.Typical application comprises bluetooth mouse, bluetooth keyboard, Bluetooth gamepad etc.The reorganization of this agreement is from USB HID Protocol.
User space: refer to the general rank in Permission Levels, on the other side is the privilege level of keeper or power user (in class Unix system, " root " or " superuser " etc. by name).
Along with the progress of modern science and technology and the raising of people's quality of life, electronic product has been dissolved into the every aspect of people's daily life.In electronic product, the important application of bluetooth is transmitting voice information.Bluetooth supports the Real-Time Voice Transmission of 64Kbit/s and the data transmission of various speed, and voice coding adopts logarithmic pulse code modulation (PCM), or CVSD modulation (CVSD).Voice-and-data can transmit individually or simultaneously.The voice link of bluetooth support is two-way.Bluetooth standard indicates voice should by the carrying of SCO link.Data are by ALC link carrying.
Traditional blue tooth voice input realizes based on specifications such as conventional Bluetooth HSP, HFP, A2DP.Based on conventional Bluetooth HSP, HFP, A2DP speech communication, be mainly used in bluetooth earphone, Baffle Box of Bluetooth etc., when being applied in such as blue Tooth remote controller product, because telepilot requires higher to battery, very fast to vice activation time requirement; The problems such as at this time conventional Bluetooth speech communication, will expose power consumption high, and the vice activation time is fast not.And in prior art, the bluetooth communication based on HID service is generally used for data transmission, as be applied to mobile device speech communication in need APP to be equipped with the corresponding interface program specially just to can read, poor compatibility, Consumer's Experience is bad.
Summary of the invention
In order to solve the problems of the technologies described above, the object of this invention is to provide a kind of low in energy consumption, reflection is fast, support voice Signal transmissions simultaneously, general strong pronunciation inputting method.
In order to solve the problems of the technologies described above, the object of this invention is to provide a kind of low in energy consumption, reflection is fast, support voice Signal transmissions simultaneously, the general main frame realizing phonetic entry by force.
In order to solve the problems of the technologies described above, another object of the present invention be to provide a kind of low in energy consumption, reflection is fast, support voice Signal transmissions simultaneously, general strong voice entry system.
The technical solution adopted in the present invention is:
Realize the method for main frame phonetic entry based on bluetooth HID service, it comprises step:
S1, registers a virtual speech input equipment to host operating system;
S2, described virtual speech input equipment obtains speech data by the bluetooth protocol repertory in operating system;
S3, the audio subsystem in operating system obtains speech data by the described virtual speech input equipment of access.
Preferably, the method for described phonetic entry also comprises step:
A1, main frame is connected with bluetooth HID device pairing, and obtains speech data from bluetooth HID equipment;
A2, is stored into speech data in the bluetooth protocol repertory in operating system.
Preferably, described steps A 1 specifically comprises sub-step:
A11, base unit search bluetooth HID equipment;
A12, main frame is connected with bluetooth HID device pairing;
A13, searches the HID service on the bluetooth HID equipment that connected;
A14, obtains the report attribute mapping of the HID service found;
A15, obtains form and the type of relevant information of HID data from report attribute mapping;
A16, as found there is sound-type in HID data, then monitors the Report Properties of the HID service of bluetooth HID equipment;
A17, obtains the speech data that bluetooth HID equipment sends from Report Properties;
A18, the speech data that deciphering obtains.
Preferably, described bluetooth HID equipment is Bluetooth Low Energy HID equipment, and described main frame is smart mobile phone, intelligent TV set or panel computer.
Preferably, described operating system is android system.
Realize the main frame of phonetic entry based on bluetooth HID service, it is for implementing the method realizing main frame phonetic entry based on bluetooth HID service, and described main frame comprises:
Bluetooth driver module, for receiving bluetooth HID data;
Operating system storehouse service module, comprise bluetooth protocol repertory and virtual speech input equipment, described bluetooth protocol repertory is used for obtaining and voice data from bluetooth driver module, described virtual speech input equipment is used for obtaining speech data from bluetooth protocol repertory, and is sent in audio subsystem by the speech data got;
System architecture module, comprises audio subsystem, and described audio subsystem is used for obtaining speech data from virtual speech input equipment, and the speech data got is sent to reference program;
Application program, for obtaining speech data from audio subsystem.
Preferably, described operating system storehouse service module is Andriod system library service module, and described system architecture module is Andriod system architecture module.
Realize the system of main frame phonetic entry based on bluetooth HID service, it comprises and realizes the main frame of phonetic entry and the bluetooth HID equipment for launching bluetooth HID data based on bluetooth HID service.
Preferably, described bluetooth HID equipment is Bluetooth Low Energy HID equipment, and described main frame is smart mobile phone, intelligent TV set or panel computer.
Preferably, described bluetooth HID equipment is telepilot, bluetooth earphone or game paddle.
The invention has the beneficial effects as follows:
The present invention is based on low-power consumption BLE bluetooth HID data communication, not only low in energy consumption, button reaction is quick, vice activation speed is fast, be highly suitable for but be not limited to the human-computer interaction terminal products such as telepilot, simultaneously by utilizing virtual speech input equipment to read HID data stream, set up the passage of bluetooth protocol repertory and operating system self audio subsystem, speech data is imported to virtual received pronunciation input equipment, the application program of any support received pronunciation input interface standard, directly can read speech data from virtual speech input equipment, applicability is high, compatible strong, thus improve Consumer's Experience.
The present invention can be widely used in various blue tooth voice communication system.
Accompanying drawing explanation
Below in conjunction with accompanying drawing, the specific embodiment of the present invention is described further:
Fig. 1 is the method flow diagram of a kind of embodiment of the inventive method;
Fig. 2 is the system architecture block diagram of a kind of embodiment of present system.
Embodiment
It should be noted that, when not conflicting, the embodiment in the application and the feature in embodiment can combine mutually.
As shown in Figure 1, the method of main frame phonetic entry is realized based on bluetooth HID service, it comprises step: S1, a virtual speech input equipment is registered to host operating system, this virtual speech input equipment is the standard input device utilizing software to build, and upper level applications can utilize general audio input interface to read the speech data of virtual speech input equipment; S2, described virtual speech input equipment obtains speech data by the bluetooth protocol repertory in operating system; S3, the audio subsystem in operating system obtains speech data by the described virtual speech input equipment of access.Preferably, the method for described phonetic entry also comprises step:
As shown in Figure 2, below to carry Android4.3 system in main frame in detail, the inventive method idiographic flow is described in detail.In Android4.3 system, comprise Andriod system library service module (Android System Libs) and android system structure module (Android Framework), Android4.3 system comprises bluetooth protocol repertory at android system storehouse service module, comprise audio subsystem at android system structure module, the various application programs run in android system can obtain speech data from audio subsystem.In this embodiment, bluetooth HID equipment adopts Bluetooth Low Energy (BLE) HID equipment.The HID data that Bluetooth Low Energy (BLE) HID equipment is launched are received by the bluetooth driver module in main frame, and the HID data received are sent to the bluetooth protocol repertory in the service module of android system storehouse by bluetooth driver module.
In this embodiment, working-flow is as follows:
A11, base unit search bluetooth HID equipment;
A12, main frame is connected with bluetooth HID device pairing;
A13, searches the HID service on the bluetooth HID equipment that connected;
A14, obtains the report attribute mapping (Report Map Characteristic) of the HID service found;
A15, obtains form and the type of relevant information of HID data from report attribute mapping;
A16, as found there is sound-type in HID data, then monitors the Report Properties (Report Characteristic) of the HID service of bluetooth HID equipment;
A17, obtains the speech data that bluetooth HID equipment sends from Report Properties.
A18, the speech data that deciphering obtains;
A2, is stored into speech data in the bluetooth protocol repertory in operating system.
Next, need speech data to be supplied to upper level applications, concrete steps comprise:
S1, registers a virtual speech input equipment to host operating system, and virtual speech input equipment directly obtains speech data by the bluetooth protocol repertory (Blueroid) of User space;
S2, described virtual speech input equipment obtains speech data by the bluetooth protocol repertory in operating system;
S3, the audio subsystem in operating system obtains speech data by the described virtual speech input equipment of access.
S4, the application program run on an operating system obtains speech data by audio subsystem.
Preferably, described bluetooth HID equipment is Bluetooth Low Energy HID equipment, and described main frame is smart mobile phone, intelligent TV set or panel computer.
Preferably, described operating system is android system.
Preferably, described bluetooth HID equipment is Bluetooth Low Energy HID equipment, and described main frame is smart mobile phone, intelligent TV set or panel computer etc.
Preferably, described bluetooth HID equipment is telepilot, bluetooth earphone or game paddle etc.
The present invention carries out blue tooth voice communication by utilizing bluetooth HID service, overcome the problem that Bluetooth communication system power consumption is high, response speed is slow, simultaneously by utilizing virtual speech input equipment, set up the passage of bluetooth protocol repertory and operating system self audio subsystem, make application program directly can obtain blue tooth voice data from audio subsystem, compatibility and highly versatile, thus improve Consumer's Experience.The present invention can be widely used in various blue tooth voice communication system.
More than that better enforcement of the present invention is illustrated, but the invention is not limited to described embodiment, those of ordinary skill in the art also can make all equivalent variations or replacement under the prerequisite without prejudice to spirit of the present invention, and these equivalent distortion or replacement are all included in the application's claim limited range.

Claims (10)

1. realize the method for main frame phonetic entry based on bluetooth HID service, it is characterized in that, it comprises step:
S1, registers a virtual speech input equipment to host operating system;
S2, described virtual speech input equipment obtains speech data by the bluetooth protocol repertory in operating system;
S3, the audio subsystem in operating system obtains speech data by the described virtual speech input equipment of access.
2. the method realizing main frame phonetic entry based on bluetooth HID service according to claim 1, is characterized in that, the method for described phonetic entry also comprises step:
A1, main frame is connected with bluetooth HID device pairing, and obtains speech data from bluetooth HID equipment;
A2, is stored into speech data in the bluetooth protocol repertory in operating system.
3. the method realizing main frame phonetic entry based on bluetooth HID service according to claim 2, is characterized in that, described steps A 1 specifically comprises sub-step:
A11, base unit search bluetooth HID equipment;
A12, main frame is connected with bluetooth HID device pairing;
A13, searches the HID service on the bluetooth HID equipment that connected;
A14, obtains the report attribute mapping of the HID service found;
A15, obtains form and the type of relevant information of HID data from report attribute mapping;
A16, as found there is sound-type in HID data, then monitors the Report Properties of the HID service of bluetooth HID equipment;
A17, obtains the speech data that bluetooth HID equipment sends from Report Properties;
A18, the speech data that deciphering obtains.
4. the method realizing main frame phonetic entry based on bluetooth HID service according to Claims 2 or 3, it is characterized in that, described bluetooth HID equipment is Bluetooth Low Energy HID equipment, described main frame is smart mobile phone, intelligent TV set or panel computer.
5. the method realizing main frame phonetic entry based on bluetooth HID service according to claim 4, is characterized in that, described operating system is android system.
6. realize the main frame of phonetic entry based on bluetooth HID service, it is characterized in that, it is for implementing the method realizing main frame phonetic entry based on bluetooth HID service as described in any one of claim 1 to 5, and described main frame comprises:
Bluetooth driver module, for receiving bluetooth HID data;
Operating system storehouse service module, comprise bluetooth protocol repertory and virtual speech input equipment, described bluetooth protocol repertory is used for obtaining and voice data from bluetooth driver module, described virtual speech input equipment is used for obtaining speech data from bluetooth protocol repertory, and is sent in audio subsystem by the speech data got;
System architecture module, comprises audio subsystem, and described audio subsystem is used for obtaining speech data from virtual speech input equipment, and the speech data got is sent to reference program;
Application program, for obtaining speech data from audio subsystem.
7. the main frame realizing phonetic entry based on bluetooth HID service according to claim 6, is characterized in that, described operating system storehouse service module is Andriod system library service module, and described system architecture module is Andriod system architecture module.
8. realize the system of main frame phonetic entry based on bluetooth HID service, it is characterized in that, it comprise as claimed in claims 6 or 7 realize the main frame of phonetic entry and the bluetooth HID equipment for launching bluetooth HID data based on bluetooth HID service.
9. the system realizing main frame phonetic entry based on bluetooth HID service according to claim 8, is characterized in that, described bluetooth HID equipment is Bluetooth Low Energy HID equipment, and described main frame is smart mobile phone, intelligent TV set or panel computer.
10. the system realizing main frame phonetic entry based on bluetooth HID service according to claim 8 or claim 9, it is characterized in that, described bluetooth HID equipment is telepilot, bluetooth earphone or game paddle.
CN201510263142.1A 2015-05-21 2015-05-21 Method, host and system for implementing voice input based on Bluetooth HID service Pending CN104866276A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510263142.1A CN104866276A (en) 2015-05-21 2015-05-21 Method, host and system for implementing voice input based on Bluetooth HID service

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510263142.1A CN104866276A (en) 2015-05-21 2015-05-21 Method, host and system for implementing voice input based on Bluetooth HID service

Publications (1)

Publication Number Publication Date
CN104866276A true CN104866276A (en) 2015-08-26

Family

ID=53912132

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510263142.1A Pending CN104866276A (en) 2015-05-21 2015-05-21 Method, host and system for implementing voice input based on Bluetooth HID service

Country Status (1)

Country Link
CN (1) CN104866276A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105791575A (en) * 2016-03-01 2016-07-20 广东欧珀移动通信有限公司 Incoming call answering method and device
CN105813227A (en) * 2016-04-29 2016-07-27 江苏惠通集团有限责任公司 BLE voice data transmission method and Bluetooth device
CN107635214A (en) * 2017-08-21 2018-01-26 深圳创维-Rgb电子有限公司 Response method, device, system and readable storage medium storing program for executing based on blue Tooth remote controller
CN107705528A (en) * 2017-09-27 2018-02-16 无锡威达智能电子股份有限公司 A kind of Bluetooth voice remote controller
CN107784817A (en) * 2017-09-27 2018-03-09 无锡威达智能电子股份有限公司 Blue tooth voice control system
CN108028818A (en) * 2015-09-09 2018-05-11 纳格拉影像股份有限公司 The method and system that arbitrary data is transmitted with low delay is connected by bluetooth HFP audios
CN108664345A (en) * 2018-05-15 2018-10-16 青岛海信电器股份有限公司 Blue-teeth data processing method, device, equipment and storage medium
CN110188848A (en) * 2019-05-29 2019-08-30 江苏智联天地科技有限公司 A kind of laser barcode scanning data Bluetooth HID system and method based on Android device
CN110536276A (en) * 2019-09-09 2019-12-03 苏州思必驰信息科技有限公司 A kind of voice data transmission method, system and remote controler based on USBHID agreement
CN112423053A (en) * 2020-11-06 2021-02-26 歌尔科技有限公司 Audio sharing method, system, remote controller and computer readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1904864A (en) * 2006-08-15 2007-01-31 北京飞天诚信科技有限公司 Device and method for making HID apparatus provide smart card interface
CN102255947A (en) * 2011-05-16 2011-11-23 深圳创维数字技术股份有限公司 STB (Set Top Box) and man-machine interaction method for STB
CN104036628A (en) * 2014-05-22 2014-09-10 杭州微纳科技有限公司 Intelligent remote controller based on Bluetooth and quick pairing method
CN104065401A (en) * 2014-06-25 2014-09-24 青岛歌尔声学科技有限公司 Voice transmission method based on HID bluetooth module and HID bluetooth voice communication device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1904864A (en) * 2006-08-15 2007-01-31 北京飞天诚信科技有限公司 Device and method for making HID apparatus provide smart card interface
CN102255947A (en) * 2011-05-16 2011-11-23 深圳创维数字技术股份有限公司 STB (Set Top Box) and man-machine interaction method for STB
CN104036628A (en) * 2014-05-22 2014-09-10 杭州微纳科技有限公司 Intelligent remote controller based on Bluetooth and quick pairing method
CN104065401A (en) * 2014-06-25 2014-09-24 青岛歌尔声学科技有限公司 Voice transmission method based on HID bluetooth module and HID bluetooth voice communication device

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108028818A (en) * 2015-09-09 2018-05-11 纳格拉影像股份有限公司 The method and system that arbitrary data is transmitted with low delay is connected by bluetooth HFP audios
CN108028818B (en) * 2015-09-09 2021-01-15 纳格拉影像股份有限公司 Method and system for low latency transfer of arbitrary data over a bluetooth HFP audio connection
CN105791575A (en) * 2016-03-01 2016-07-20 广东欧珀移动通信有限公司 Incoming call answering method and device
CN105813227A (en) * 2016-04-29 2016-07-27 江苏惠通集团有限责任公司 BLE voice data transmission method and Bluetooth device
CN107635214B (en) * 2017-08-21 2019-10-01 深圳创维-Rgb电子有限公司 Response method, device, system and readable storage medium storing program for executing based on blue Tooth remote controller
CN107635214A (en) * 2017-08-21 2018-01-26 深圳创维-Rgb电子有限公司 Response method, device, system and readable storage medium storing program for executing based on blue Tooth remote controller
CN107705528A (en) * 2017-09-27 2018-02-16 无锡威达智能电子股份有限公司 A kind of Bluetooth voice remote controller
CN107784817A (en) * 2017-09-27 2018-03-09 无锡威达智能电子股份有限公司 Blue tooth voice control system
CN108664345A (en) * 2018-05-15 2018-10-16 青岛海信电器股份有限公司 Blue-teeth data processing method, device, equipment and storage medium
CN110188848A (en) * 2019-05-29 2019-08-30 江苏智联天地科技有限公司 A kind of laser barcode scanning data Bluetooth HID system and method based on Android device
CN110536276A (en) * 2019-09-09 2019-12-03 苏州思必驰信息科技有限公司 A kind of voice data transmission method, system and remote controler based on USBHID agreement
CN110536276B (en) * 2019-09-09 2022-05-13 思必驰科技股份有限公司 Voice data transmission method, system and remote controller based on USBHID protocol
CN112423053A (en) * 2020-11-06 2021-02-26 歌尔科技有限公司 Audio sharing method, system, remote controller and computer readable storage medium
CN112423053B (en) * 2020-11-06 2024-04-09 歌尔科技有限公司 Audio sharing method, system, remote controller and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN104866276A (en) Method, host and system for implementing voice input based on Bluetooth HID service
CN107277754B (en) Bluetooth connection method and Bluetooth peripheral equipment
US10403280B2 (en) Lamp device for inputting or outputting voice signal and method of driving the same
CN203289452U (en) Wireless audio system based on acoustic wave communication pairing
KR102152754B1 (en) Communication connecting method for bluetooth device and apparatus therefor
EP3091719B1 (en) Method for short-range wireless communication and electronic device using the same
CN104036628A (en) Intelligent remote controller based on Bluetooth and quick pairing method
CN105096951A (en) Voice control realizing method and system based on intelligent wearable equipment
CN102117121B (en) Accessory for a portable computing device and method for enabling accessory to work
CN106657528A (en) Incoming call management method and device
AU2003259428A1 (en) Automotive mobile terminal connection system providing mobile terminal function to enable dynamic external user interface
CN102970416B (en) A kind of single-button line control earphone realizes method and the communication terminal of multi-functional control
CN203219287U (en) Media playing system and media emitting apparatus
CN103051798A (en) Short-distance wireless data transmission method based on optical sensor and mobile terminal
CN203289645U (en) Sound system capable of conversation based on wireless technology
CN108810860B (en) Audio transmission method, terminal equipment and main earphone
CN101114846A (en) Blue tooth wireless multimedia transmission apparatus and system and method
CN115396520A (en) Control method, control device, electronic equipment and readable storage medium
US20180199147A1 (en) Portable Bluetooth Audio Hub
CN109318241B (en) Learning accompanying robot system for realizing voice interaction/man-machine conversation and method thereof
US9411765B2 (en) Methods of using a peripheral component interconnect express (PCIE) device in a virtual environment
CN105049090A (en) Solar cell type electronic communication apparatus
CN103619073A (en) WLAN-based audio sharing method and mobile terminal
CN210573864U (en) Laser code scanning data Bluetooth HID system based on Android device
CN205670771U (en) A kind of wall embedded Bluetooth phone system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20150826

RJ01 Rejection of invention patent application after publication