CN101035170A - USB-interface based voice communication method and device - Google Patents
USB-interface based voice communication method and device Download PDFInfo
- Publication number
- CN101035170A CN101035170A CN 200610034177 CN200610034177A CN101035170A CN 101035170 A CN101035170 A CN 101035170A CN 200610034177 CN200610034177 CN 200610034177 CN 200610034177 A CN200610034177 A CN 200610034177A CN 101035170 A CN101035170 A CN 101035170A
- Authority
- CN
- China
- Prior art keywords
- usb
- usb interface
- audio
- voice communication
- data
- 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
Links
Images
Landscapes
- Telephonic Communication Services (AREA)
Abstract
The invention discloses a USB interface-based voice communication method and device. And the method comprises: downloading audio data packet from IP network and decoding it to generate audio code stream and transmitting the audio code stream through USB interface and data lines and processing to restore the original voice from the audio code stream; the audio signal sensed by microphone is digitalized and then transmitted through USB interface and data lines, and after processed by VoIP communication software, becomes audio data packet to be unloaded into the IP network. And the device comprises USB connection controller, microprocessor, and HID keyboard, USB-disc FLASH memory, audio D/A converter, output-end connected speaker, and USB audio stream buffer. And the invention can make devices with USB interface (such as MP3/MP4 players and USB-discs) added with voice communication function through less software and hardware updating and change; besides, adopts multi-attribute data stream mixed transmitting method to raise USB cable bandwidth utilization ratio.
Description
[technical field]
The present invention relates to a kind of technology that realizes the real-time voice communication, particularly a kind of USB interface-based voice communication method and device.
[background technology]
The USB technology is widelyd popularize through numerous manufacturers, and more and more universal, USB has become the leading interface and the international standard of computer external equipment.Having can hot plug and the advantage of plug and play.
Meanwhile instant voice information exchanges becomes the essential of people's work and life gradually, and existing voice communication system mainly comprises tool software and earphone, the MIC etc. such as voice-enabled chat, the networking telephone and online audio/video on-demand that install in the computer.Yet these two kinds of the people employed audio frequency apparatuses of custom can't unite two into one at present, and the equipment of band such as MP3/MP4 USB interface also can't bring inconvenience to the network user as voice communication terminal equipment.And can not be by the function of network implementation when reality voice communication.
VoIP is an abbreviation of realizing the technology of Speech Communication on the Computer IP network, traditional program-controlled switching network (PSTN) is based on circuit switching, and VoIP is different with it, is in the broadband IP data network, voice data is packaged into the IP message, in packet switching network, transmits.IP network is to charge by data traffic, and public switched telephone network PSTN is periodic metering, so JICQs such as the voice-enabled chat of use voip technology, the networking telephone can be always online, and the conversation almost free.Present voice-enabled chat only realizes on the computer as terminal, but needs are installed special chat software, needs to be equipped with special microphone.And computer is inconvenient to carry, even its weight and volume of portable computer is not little, also do not have popularizing of pocket digital equipment that MP3/MP4 etc. is convenient for carrying.
[summary of the invention]
Numerous MP3/MP4 user is in the place that network arrives in the prior art in order to solve just for the technology of the present invention, and people can not enjoy the technical problem of instant free voice communication whenever and wherever possible.Merge people and use the equipment of band USB interface and carry out the custom that network audio is communicated by letter, make the equipment of the band USB interface that people carry become voice communication terminal, seamlessly be connected with the realization of diverse network communication software.
The invention provides a kind of USB interface-based voice communication method, this method may further comprise the steps:
101, download packets of audio data from IP network, the decoding back generates audio code stream, by the transmission of USB interface and data wire, is reduced into sound after the processing;
102, by the audio signal that microphone is sensed, after digitlization,, handle back generation packets of audio data by the VoIP communications software modules and be up in the IP network by the transmission of USB interface and data wire.
The method of the invention step 101 further may further comprise the steps: receive packets of audio data by main frame VoIP software module from network, the decoding back generates audio code stream, synchronization endpoints passage by USB driver and usb bus, be sent to the equipment of band USB interface, be reduced into sound by microprocessor, buffer, D/A converter and loud speaker in the equipment of band USB interface again.
Further, step 102 of the present invention further may further comprise the steps: the audio signal that the microphone in the equipment of band USB interface is sensed is after the digitlization of A/D converter, sampling has entered the USB audio buffer, after microprocessor processes, send into the USB synchronization endpoints and arrive USB master controller, driver module, deliver in the network by the VoIP communication software by main frame again.
The present invention further comprises following steps: 401, and audio stream data, block file data should reach man-machine interface data mixed transport in the USB interface passage, were shared in same USB cable bandwidth.
Be applied to a kind of USB interface-based voice communication assembly of the method for the invention, comprise that USB connects controller, output is connected with bus; Microprocessor is connected with bus; The HID keyboard outputs to microprocessor; USB flash disk Flash memory is connected with bus; Also comprise:
Audio frequency D/A converter, its input is connected with bus, and output connects loud speaker;
USB audio stream buffer device, input is connected with bus, and output provides output signal for described audio frequency D/A converter.
Further, device of the present invention also comprises: audio A/D converter, and input is connected with microphone, and output outputs to bus by the audio stream buffer device.
Further, device of the present invention is the multi-functional mobile phone of the networking telephone/mobile phone/MP3 player of voice-enabled chat terminal equipment, band USB interface of network telephone terminal equipment, the band USB interface of network telephone terminal equipment, the base formula USB interface of MP3 player that rise to transform through software and hardware, MP4 player, portable band USB interface or USB flash disk memory, electronic notebook, personal digital assistant PDA, palmtop PC, the e-commerce of band network voice communication function.
By technical scheme of the present invention as seen, this method makes the equipment (as MP3/MP4 player, USB flash disk etc.) of the band USB interface with function of voice communication, and rising to transform by a small amount of software and hardware to increase function of voice communication; Adopt multiattribute data stream combining transmission method simultaneously, improved the USB cable bandwidth utilization, reduced the cost of equipment.
[description of drawings]
Fig. 1 is the MP3 player function block diagram of band function of voice communication.
Fig. 2 is a MP3 equipment USB interface logical channel schematic diagram.
Fig. 3 interrupts input protocol format schematic diagram.
Fig. 4 interrupts output protocol form schematic diagram.
Fig. 5 is a piece input protocol format schematic diagram.
Fig. 6 is a piece output protocol form schematic diagram.
Fig. 7 is an ISO input protocol format schematic diagram.
Fig. 8 is an ISO output protocol form schematic diagram.
Fig. 9 is a USB voice communication software detailed algorithm flow chart.
[embodiment]
Be example with MP3 equipment below, in conjunction with the accompanying drawings specific implementation of the present invention be described in further detail:
Fig. 1 is the MP3 player logic function block diagram of band function of voice communication, and 1-6 partly belongs to matching used host side hardware module or software module among the figure; Comprise USB master controller 1, the operating system and the USB driver module 2 that connect of data with it, by USB dish driver module 3, USB audio driver module 4 and HID driver module 5, be connected on the main frame VoIP software module 6 respectively, be connected to IP network then; Main frame VoIP software module 6 comprises voice playing software, voice-enabled chat software and network telephone software.And 7-15 partly belongs to the hardware module of the band function of voice communication MP3 equipment that can be connected with main frame by USB interface; Comprise: USB connects controller 7, and its input is connected with USB master controller 1 data of described main frame in use, and output is connected with bus; Microprocessor 9 is connected with bus; HID keyboard 15 outputs to microprocessor 9; USB flash disk Flash memory 8 is connected with bus; Audio frequency D/A converter 13, its input is connected with bus, and output connects loud speaker; MP3 decoding device 10, one ends are connected with bus, and audio frequency D/A converter 13 provided output signal as described in another output was given by gating switch (as single-pole double-throw switch (SPDT)); USB audio stream buffer device 11, input is connected with bus, and audio frequency D/A converter 13 provided output signal as described in output was given by gating switch (as single-pole double-throw switch (SPDT)); Audio A/D converter 14, input is connected with microphone, and output outputs to bus by audio stream buffer device 12; Audio A/D converter 14 also is connected with audio frequency D/A converter 13 data simultaneously; Display module 16 is connected with described bus.
The USB interface-based voice communication method of USB interface-based voice communication method of the present invention may further comprise the steps: receive packets of audio data by main frame VoIP software 6 from network, the decoding back generates the audio frequency bitstream, by USB dish driver 3, operating system and USB driver 2, the synchronization endpoints passage that is connected controller 7 with the USB master controller 1, the USB that link to each other by usb bus, deliver to the MP3 equipment of band function of voice communication, be reduced into sound through microprocessor 9, USB audio stream buffer device 11, audio frequency D/A converter 13 and earphone; The audio signal that the microphone of MP3 equipment is sensed is after 14 digitlizations of A/D converter, sampling has entered USB audio stream buffer device 12, after microprocessor 9 is handled, send into the USB synchronization endpoints and arrive USB master controller 1, through driver module 2,4, by main frame by VoIP (Voice Over IP) communications software modules 6 up delivering in the network.
This method by USB interface at transmitting audio data simultaneously, also in the piece end points passage of USB interface, transmit man-machine interface (HID) information such as push-button dialing in transmission block file data, the interrupting channel, realized that the mixing of USB interface multiple data stream transmits in USB interface.Logically, MP3 equipment is equivalent to 4 independently USB external equipments, and as shown in Figure 2, (or a plurality of) USB controller has been realized 4 USB interface (Interface), a corresponding function (Function) peripheral hardware of every interface.
Flow process as shown in Figure 9, MP3 functions of the equipments software sets the data-transmission mode of the different end points of hardware control before device enumeration, controller hardware automatically deposits dissimilar in the bus and end-point data in end points buffering area separately, and each functional software of equipment only need be handled each end points buffer data independently.The logical channel of function device comprises 4 passages (PIPE) as shown in Figure 2 altogether: first passage is the fast passage of USB flash disk, connects the USB flash disk memory device, can realize the USB flash disk function of MP3; Second channel is the audio stream output channel, connects audio playback device and earphone, can realize the broadcast of audio frequency bitstream; Third channel is the audio stream input channel, connects sound pick-up outfit and external microphone, can realize sound-recording function; Four-way is the HID input channel, connects the HID input keyboard, can accept various control commands.Between passage (PIPE) is separate, so the mixing that functions of the equipments software does not need to consider multiple data stream transmits, software complexity reduces greatly.
This method that has realized the mixing transmission of multiple data stream specifically is to realize by the real-time type data, batch-type data and the interrupt-type Data Transport Protocol that adopt USB respectively.
The difference of three types of Data Transport Protocols is: interrupt-type is used for the asynchronous inputoutput data transmission of HID such as keyboard instruction; Bulk transfer is mainly used in the transfer of data that resembles block devices such as USB flash disk, will transmit mutual handshake in interruption and transmission course in batches, guarantees that data are accurate; Real-time Transmission has strict demand to bandwidth, but allows certain error code, has saved the transmission of mutual handshake, is usually used in the audio-video code stream transfer of data.The data format of three kinds of host-host protocols is respectively described below.
1, HID interrupts data transmission format:
As shown in Figure 3, in interrupting the input agreement, IN/ACK is instruction or the answer signal that main frame sends, and DATA0/1 is the interruption data that equipment transmits to main frame, the answer signal when NAK/STALL is the transmission of equipment free of data.As shown in Figure 4, in interrupting output protocol, OUT/DATA0/1 is the instruction and data that main frame sends, and ACK/NAK/STALL is the device acknowledge signal.The DATA0/1 packet is generally less than 8 bytes.
2, piece (Bulk) file data transmission:
As shown in Figure 5, in piece input agreement, IN/ACK is instruction or the answer signal that main frame sends, and DATA0/1 is the interruption data that equipment transmits to main frame, the answer signal when NAK/STALL is the transmission of equipment free of data.As shown in Figure 6, in the piece output protocol, OUT/DATA0/1 is the instruction and data that main frame sends, and ACK/NAK/STALL is the device acknowledge signal.DATA0/1 packet size is 0~1023 byte.
3, synchronous (ISO) audio data transmission:
As shown in Figure 7, in ISO input agreement, IN is the instruction that main frame sends, and DATA0/1 is the data that equipment transmits to main frame, equipment no response signal.As shown in Figure 8, in the ISO output protocol, OUT/DATA0/1 is the instruction and data that main frame sends, equipment no response signal.DATA0/1 packet size is 0~1023 byte.
By these three kinds of agreements, the USB voice data, block file data, HID man-machine interface (dialing key command) data of the equipment of band USB interface respectively in same usb bus and hardware USB device controller in the different end points (logical channel) timesharing transmit.
The MP3 equipment of band function of voice communication comprises the functional part of Fig. 1 the latter half, realizes function of voice communication by increasing USB function of voice communication software for the MP3 player, and the detailed algorithm of USB voice communication software is seen flow chart 9.
In the MP3 equipment, the basic functional principle of USB voice communication software is as follows: after entering voice communication software, MCU is provided with the USB controller parameter earlier, make the USB controller enter operating state, enumerate all devices type (comprising HID, USB audio frequency, three types of function devices of USB flash disk) that interface connects by the control end points of USB to the main frame report then, after main frame recognized all devices and loads the respective drive program for it, all functions equipment that the USB controller of MP3 is connected entered operating state.MCU presses the various instructions or the state of the flow processing USB device of Fig. 9.
The voice communication part, MCU starts audio A/D, D/A converter earlier, the A/D sampled audio data is inserted the FIFO buffering automatically, wait for that MCU takes out, the D/A converter fetches data from audio frequency output FIFO buffering automatically, MCU periodically inserts D/A FIFO to USB OUT buffer data by the USB frame, and the A/D data fifo is imported into USB IN buffering, and starts the usb data transmission.
By above embodiment as seen, this USB interface-based voice communication method of the present invention, adopt multiattribute data stream combining transmission method, realized audio stream data, block file data and man-machine interface data mixed transport in the USB passage, share same USB cable bandwidth, reduced the cost of equipment.This method makes the equipment (as MP3/MP4 player, USB flash disk etc.) of the band USB interface with function of voice communication, by a small amount of software and hardware upgrading, can increase function of voice communication, simultaneously can be easily and application software seamless links such as operating system software such as Windows9x/2000/xp, Linux and voice playing, voice-enabled chat, the networking telephone, realize function of voice communication.
Claims (8)
1, a kind of USB interface-based voice communication method may further comprise the steps:
101, download packets of audio data from IP network, the decoding back generates audio code stream, by the transmission of USB interface and data wire, is reduced into sound after the processing;
102, by the audio signal that microphone is sensed, after digitlization,, handle back generation packets of audio data by the VoIP communications software modules and be up in the IP network by the transmission of USB interface and data wire.
2, a kind of USB interface-based voice communication method according to claim 1, it is characterized in that: step 101 further may further comprise the steps:
Receive packets of audio data by main frame VoIP software module from network, the decoding back generates audio code stream, synchronization endpoints passage by USB driver and usb bus, be sent to the equipment of band USB interface, be reduced into sound by microprocessor, buffer, D/A converter and loud speaker in the equipment of band USB interface again.
3, a kind of USB interface-based voice communication method according to claim 1, it is characterized in that: step 102 further may further comprise the steps:
The audio signal that microphone in the equipment of band USB interface is sensed is after the digitlization of A/D converter, sampling has entered the USB audio buffer, after microprocessor processes, send into the USB synchronization endpoints and arrive USB master controller, driver module, deliver in the network by the VoIP communication software by main frame again.
4, USB interface-based voice communication method according to claim 1 is characterized in that further comprising the steps of:
401, audio stream data, block file data and man-machine interface data mixed transport in the USB interface passage is shared in same USB cable bandwidth.
5, a kind of USB interface-based voice communication assembly comprises that USB connects controller (7), and output is connected with bus; Microprocessor (9) is connected with bus; HID keyboard (15) outputs to microprocessor (9); USB flash disk memory (8) is connected with bus; It is characterized in that, also comprise:
Audio frequency D/A converter (13), its input is connected with bus, and output connects loud speaker;
USB audio stream buffer device (11), input is connected with bus, and output provides output signal for described audio frequency D/A converter (13).
6, USB interface-based voice communication assembly according to claim 5 is characterized in that, also comprises:
Audio A/D converter (14), input is connected with microphone, and output outputs to bus by audio stream buffer device (12).
7, according to according to claim 5 or 6 described USB interface-based voice communication assemblies, it is characterized in that,
Described USB interface-based voice communication assembly is to rise the MP3 player of transforming through software and hardware, the MP4 player, the network telephone terminal equipment of portable band USB interface, the network telephone terminal equipment of base formula USB interface, the voice-enabled chat terminal equipment of band USB interface, the multi-functional mobile phone of the networking telephone/mobile phone/MP3 player of band USB interface, perhaps with the USB flash disk memory of network voice communication function, electronic notebook, personal digital assistant PDA, palmtop PC, e-commerce.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200610034177 CN101035170A (en) | 2006-03-09 | 2006-03-09 | USB-interface based voice communication method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200610034177 CN101035170A (en) | 2006-03-09 | 2006-03-09 | USB-interface based voice communication method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101035170A true CN101035170A (en) | 2007-09-12 |
Family
ID=38731460
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 200610034177 Pending CN101035170A (en) | 2006-03-09 | 2006-03-09 | USB-interface based voice communication method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101035170A (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102033731A (en) * | 2009-09-28 | 2011-04-27 | 冲电气工业株式会社 | Voice communication arrangement and program |
CN102339262A (en) * | 2010-07-19 | 2012-02-01 | 永錄科技股份有限公司 | Signal processing device and method thereof |
CN102073470B (en) * | 2009-11-21 | 2012-12-26 | 炬力集成电路设计有限公司 | Electronic equipment and control method thereof |
WO2014134991A1 (en) * | 2013-03-04 | 2014-09-12 | 福建联迪商用设备有限公司 | Audio communication method and terminal employing same |
CN105739941A (en) * | 2014-12-30 | 2016-07-06 | Gn奈康有限公司 | Method of operating a computer and computer |
CN106294248A (en) * | 2015-05-19 | 2017-01-04 | 深圳市超越自然多媒体有限公司 | A kind of for the control method between smart machine and USB sound card |
CN107534880A (en) * | 2015-04-15 | 2018-01-02 | 华为技术有限公司 | A kind of flow statistical method, device and terminal device |
CN110235451A (en) * | 2017-02-02 | 2019-09-13 | 伯斯有限公司 | Audio network docking |
-
2006
- 2006-03-09 CN CN 200610034177 patent/CN101035170A/en active Pending
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102033731A (en) * | 2009-09-28 | 2011-04-27 | 冲电气工业株式会社 | Voice communication arrangement and program |
CN102033731B (en) * | 2009-09-28 | 2015-02-11 | 冲电气工业株式会社 | Voice communication arrangement and program |
CN102073470B (en) * | 2009-11-21 | 2012-12-26 | 炬力集成电路设计有限公司 | Electronic equipment and control method thereof |
CN102339262A (en) * | 2010-07-19 | 2012-02-01 | 永錄科技股份有限公司 | Signal processing device and method thereof |
WO2014134991A1 (en) * | 2013-03-04 | 2014-09-12 | 福建联迪商用设备有限公司 | Audio communication method and terminal employing same |
CN105739941A (en) * | 2014-12-30 | 2016-07-06 | Gn奈康有限公司 | Method of operating a computer and computer |
CN105739941B (en) * | 2014-12-30 | 2020-03-06 | Gn奈康有限公司 | Method for operating computer and computer |
CN107534880B (en) * | 2015-04-15 | 2020-01-31 | 华为技术有限公司 | traffic statistical method, device and terminal equipment |
CN107534880A (en) * | 2015-04-15 | 2018-01-02 | 华为技术有限公司 | A kind of flow statistical method, device and terminal device |
US10701573B2 (en) | 2015-04-15 | 2020-06-30 | Huawei Technologies Co., Ltd. | Traffic statistics collection method and apparatus, and terminal device |
CN106294248A (en) * | 2015-05-19 | 2017-01-04 | 深圳市超越自然多媒体有限公司 | A kind of for the control method between smart machine and USB sound card |
CN110235451A (en) * | 2017-02-02 | 2019-09-13 | 伯斯有限公司 | Audio network docking |
CN110235451B (en) * | 2017-02-02 | 2021-02-09 | 伯斯有限公司 | Audio network docking |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101035170A (en) | USB-interface based voice communication method and device | |
CN100469115C (en) | Digital TV set with blue tooth transmission audio frequency function and blue tooth transmission method | |
US20050120079A1 (en) | High data rate interface | |
JP2009089392A (en) | Apparatus having mobile terminal as input/output device of computer, system thereof, and method | |
JPH09507621A (en) | Communication interface for unifying handling of various analog drivers and digital data streams | |
EP1629654A2 (en) | Generating and implementing a signal protocol and interface for higher data rates | |
WO2016029659A1 (en) | Method and system for synchronizing music player functions of intelligent device, and bluetooth headset | |
CN100477675C (en) | Bluetooth handset being able to realize wireless audio output | |
US9301339B2 (en) | Method and system for multiple HCI transport for bluetooth host controllers | |
CN212517830U (en) | Multifunctional switching device | |
SE522704C2 (en) | Transmission of audio data and non-audio data between a portable ch communication device and an external terminal | |
CN2847716Y (en) | Telephone set with traditional telephone and network telephone function | |
CN101430640B (en) | Communication terminal with USB audio card, and method for implementing USB audio card in communication terminal | |
CN101931680B (en) | Bluetooth system | |
CN101645951A (en) | Adaptive network telephone device and method for controlling same | |
TW582150B (en) | Modular switch system on high-speed serial bus | |
CN1992737A (en) | Communication method of mobile telephone | |
US20070253440A1 (en) | Internet communication system and method | |
CN1262134C (en) | Method of realizing instant insersion instant use of mobile phone radio communication module | |
CN1738318A (en) | Mobile communication terminal supporting earphone function and video function with a same plughole | |
CN116033404B (en) | Multi-path Bluetooth-linked hybrid communication system and method | |
CN1564594A (en) | Visual telephone compatible public telephone switched network with protocal network of internet | |
CN2696219Y (en) | Network telephone terminal | |
CN2891504Y (en) | Automatic hook-off/hook-on speech telephone with wireless earphones | |
CN101472130A (en) | 3G communication module with visible telephone interface |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Open date: 20070912 |