CN101072177A - Method for transmitting voice - Google Patents

Method for transmitting voice Download PDF

Info

Publication number
CN101072177A
CN101072177A CNA200710075127XA CN200710075127A CN101072177A CN 101072177 A CN101072177 A CN 101072177A CN A200710075127X A CNA200710075127X A CN A200710075127XA CN 200710075127 A CN200710075127 A CN 200710075127A CN 101072177 A CN101072177 A CN 101072177A
Authority
CN
China
Prior art keywords
voice
computer
data
wireless terminal
serial port
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
CNA200710075127XA
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CNA200710075127XA priority Critical patent/CN101072177A/en
Publication of CN101072177A publication Critical patent/CN101072177A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The method includes two procedures: voice sending and voice receiving. The voice sending procedure includes following steps: (A1) computer microphone records general PCM (pulse code modulation) data; (A2) computer compresses general PCM data into voice data; (A3) through USB virtual serial port, computer sends voice data to wireless terminal. The voice receiving procedure includes steps: (B1) computer receives voice data transferred from USB virtual serial port; (B2) decompressing voice data to general PCM data; (B3) computer earphone plays back general PCM data. In the method, through USB virtual serial port, voice is transferred between computer and 3G wireless terminals. Using earphone and microphone owned by computer self, the invention takes out hardware of earphone and microphone from wireless terminal so as to reduce cost, simplify structural design of wireless terminal, and raise quality of communication.

Description

A kind of method of transferring voice
Technical field
The present invention relates to communication field, relate in particular to the method for voice transfer between 3g wireless terminal and the computer.
Background technology
Current various 3G wireless terminal is used in the whole world widely, especially those scarcely populated areas.The user is inserted into computer to him, can make a phone call, surfs the Net and send SMS message etc.But these 3G terminal all must be joined a cover earphone Mike usually, come receiving and transmitting voice by this accessory, have increased cost, and have had the bad shortcoming of speech quality.
In the speech transmissions method of the described ICP/IP protocol of patent application CN200510034465, set up at least two TCP for each voice channel and is connected between transmitting terminal and receiving terminal, the message that will contain speech data is simultaneously interleaving according to certain rule and pass through each TCP connection transmission.This method is applicable to the telecommunication network terminal, as shown in Figure 1, comes transferring voice by the TCP/IP port between telecommunication network terminal and the computer, need set up network and connect, and realizes complexity, and it is unreliable to transmit.
Summary of the invention
Technical problem to be solved by this invention provides a kind of method that is applicable to voice transfer between computer and the 3g wireless terminal, improves speech quality, reduces cost.
For solving the problems of the technologies described above, the present invention is achieved by the following technical solutions:
A kind of method of transferring voice comprises that voice send and voice receive two processes;
Described voice process of transmitting may further comprise the steps:
A1, the common PCM of computer microphone records (pulse code modulated) data;
A2, computer become speech data with common PCM data compression;
A3, computer expert cross the USB virtual serial port speech data are sent to wireless terminal;
Described voice receiving course may further comprise the steps:
B1, computer receive the speech data that wireless terminal comes from the transmission of USB virtual serial port;
B2, voice data decompression is become common PCM data;
B3, computer earphone are play common PCM data.
Wherein, the voice transfer between described computer and the wireless terminal can adopt synchronously or asynchronous system; When adopting the method for synchronization, the overtime boundary of read-write is set.
Wherein, also comprise the initialization of program before described voice send and receive, recording playback format parameter, initialization recording play parameter promptly are set and for the buffering area allocation space, start multimedia timer thread and the full message of timed sending playback buffering area.
Wherein, described method also comprises, when finding loss of voice is arranged before voice data decompression is contracted, gets the compensation of first three frame speech data as loss of voice.
Wherein, described method also comprises: the form and the compression algorithm of test data after speech data is compressed.
Beneficial effect of the present invention is: the present invention proposes the method for passing through USB virtual serial port transferring voice between computer and the 3g wireless terminal, the headset that has utilized computer to carry, can remove the headset hardware on the wireless terminal, reduced cost, simplify the structural design of wireless terminal, and improved speech quality.
Description of drawings
Fig. 1 is the ICP/IP protocol speech transmissions method schematic diagram of prior art;
Fig. 2 utilizes the USB virtual serial port to carry out the method schematic diagram of voice transfer;
Fig. 3 detail flowchart of the present invention.
Embodiment
The present invention is described in further detail below in conjunction with the drawings and specific embodiments:
As shown in Figure 2, the present invention has taked to utilize the method for USB virtual serial port transferring voice, and this method comprises that voice send and voice receive two processes, and these two processes can concurrently be carried out.
Computer comprises following step to the process that the 3g wireless terminal sends voice:
A1, the common PCM data of computer microphone records one frame;
A2, computer become speech data with common PCM data compression;
A3, computer expert cross the USB virtual serial port speech data are sent to wireless terminal.
The process that computer receives from the voice of 3g wireless terminal comprises following step:
B1, computer receive the speech data that wireless terminal comes from the transmission of USB virtual serial port;
B2, voice data decompression is become common PCM data;
B3, computer earphone are play normal pulsed sign indicating number modulating data.
As shown in Figure 3, utilize the USB virtual serial port to come the detailed process of transferring voice to be:
301, open the USB virtual serial port, parameters such as recording playback form are set.Opening of serial ports can be used synchronously or asynchronous system.When adopting the method for synchronization, it is overtime that read-write need be set, so as not to the 3g wireless terminal not send or when not receiving data computer side wait indefinitely always.
302, initialization recording play parameter is given the buffering area allocation space.
303, start multimedia timer thread, the message that timed sending playback buffering area is full.Because the speech of transmission is an actual data stream, and a burst of data of the treatable fixed length always of program, thereby adopt multimedia timer that it is carried out time control preferably, formation manages to voice buffering to utilize the api function of Windows system.
304, start the recording playback main thread, receive, send voice.The serial ports transmitting speed is fast, reliability is high, does not have speech to lose generation under most of situations, and when speech is lost, can get the compensation that first three frame voice data is lost as speech.
305, the speech data that send of computer docking sending and receiving is decoded respectively, is encoded.
Because the computer headset can only handle common PCM speech data, be the speech data of u-law/a-law compression and the 3g wireless terminal is handled usually, so computer was wanted earlier the PCM speech data is compressed before wireless terminal is sent voice; And before the voice that computer reception wireless terminal is sent, become the PCM speech data to play again voice data decompression earlier.
When computer reads and writes data to buffering area, can realize exclusive reference with modes such as the incident under the windows, mutexs.For the positioning problems that will can occur in the voice transfer process, need here the form and the compression algorithm of transmission data are tested, it still is 3g wireless terminal side that problem identificatioin appears at computer side, conveniently deals with problems.
306, start the serial ports receiving or sending thread.
According to said method can between computer and 3g wireless terminal, realize simple and reliable voice transfer.
The above only is preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of being done within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.

Claims (5)

1, a kind of method of transferring voice is characterized in that, comprises that voice send and voice receive two processes;
Described voice process of transmitting may further comprise the steps:
A1, computer microphone records normal pulsed sign indicating number modulating data;
A2, computer are compressed into speech data with normal pulsed sign indicating number modulating data;
A3, computer expert cross the USB virtual serial port speech data are sent to wireless terminal;
Described voice receiving course may further comprise the steps:
B1, computer receive the speech data that wireless terminal comes from the transmission of USB virtual serial port;
B2, voice data decompression is become normal pulsed sign indicating number modulating data;
B3, computer earphone are play normal pulsed sign indicating number modulating data.
2, the method for transferring voice as claimed in claim 1 is characterized in that, the voice transfer between described computer and the wireless terminal can adopt synchronously or asynchronous system; When adopting the method for synchronization, the overtime boundary of read-write is set.
3, the method for transferring voice as claimed in claim 1 or 2, it is characterized in that, also comprise the initialization of program before described voice send and receive, recording playback format parameter, initialization recording play parameter promptly are set and for the buffering area allocation space, start multimedia timer thread and the full message of timed sending playback buffering area.
4, the method for transferring voice as claimed in claim 1 is characterized in that, described method also comprises, when finding loss of voice is arranged before voice data decompression is contracted, gets the compensation of first three frame speech data as loss of voice.
5, the method for transferring voice as claimed in claim 1 is characterized in that, described method also comprises: the form and the compression algorithm of test data after speech data is compressed.
CNA200710075127XA 2007-06-19 2007-06-19 Method for transmitting voice Pending CN101072177A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA200710075127XA CN101072177A (en) 2007-06-19 2007-06-19 Method for transmitting voice

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA200710075127XA CN101072177A (en) 2007-06-19 2007-06-19 Method for transmitting voice

Publications (1)

Publication Number Publication Date
CN101072177A true CN101072177A (en) 2007-11-14

Family

ID=38899172

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA200710075127XA Pending CN101072177A (en) 2007-06-19 2007-06-19 Method for transmitting voice

Country Status (1)

Country Link
CN (1) CN101072177A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101656796A (en) * 2009-09-11 2010-02-24 中兴通讯股份有限公司 Method and device for forwarding PCM data by USB interface
CN102033838A (en) * 2010-10-27 2011-04-27 东莞宇龙通信科技有限公司 Terminal control method, terminal and computer
WO2011063642A1 (en) * 2009-11-27 2011-06-03 北京中星微电子有限公司 Audio data processing method and audio data processing system
CN106027541A (en) * 2016-06-17 2016-10-12 北京世纪东方通讯设备有限公司 Voice coding and decoding device and method used for GSM-R communication system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101656796A (en) * 2009-09-11 2010-02-24 中兴通讯股份有限公司 Method and device for forwarding PCM data by USB interface
WO2011063642A1 (en) * 2009-11-27 2011-06-03 北京中星微电子有限公司 Audio data processing method and audio data processing system
CN102033838A (en) * 2010-10-27 2011-04-27 东莞宇龙通信科技有限公司 Terminal control method, terminal and computer
CN106027541A (en) * 2016-06-17 2016-10-12 北京世纪东方通讯设备有限公司 Voice coding and decoding device and method used for GSM-R communication system

Similar Documents

Publication Publication Date Title
CN112312369B (en) Low-delay wireless audio sending and receiving method and equipment
WO1998044761A2 (en) Standard-compatible, power efficient digital audio interface
JP2009089392A (en) Apparatus having mobile terminal as input/output device of computer, system thereof, and method
CN109661828B (en) Control bluetooth multimedia device
CN102271197B (en) User interface tone echo cancellation
CN105653237A (en) Audio playing control method and system and terminal
CN101072177A (en) Method for transmitting voice
CN112261633A (en) Audio recording and converting method for intelligent earphone
CN201323575Y (en) Bluetooth headset
CN103684970B (en) The transmission method of media data flow and thin terminal
CN104424949A (en) Method for transmitting and receiving voice packet and electronic device implementing the same
CN103428384A (en) System and method for realizing mobile VoIP (Voice over Internet Phone) service of smart handheld device
US20110235632A1 (en) Method And Apparatus For Performing High-Quality Speech Communication Across Voice Over Internet Protocol (VoIP) Communications Networks
CN102332949B (en) Compass external talker, compass voice communication system and method
CN106653034A (en) Voice communication system and method used for mobile terminal
WO2009082893A1 (en) Processing system, method and equipment for voice service
WO2007080517A2 (en) Headset with voip capability for a cellular phone without voip capability
CN102282886B (en) Method, mobile terminal, device and system for implementing voice services
CN214125328U (en) Narrow-band communication system equipment for interconnection and intercommunication of wireless cluster gateway and broadband communication system
CN103166837A (en) Media gateway and method for improving voice quality of conference telephone
US20070285496A1 (en) System and method for fast video call setup based upon earlier provided information
CN101848261B (en) Method and terminal for realizing call recording
CN102438087A (en) Wireless communication terminal and method for realizing CS voice
CN213342350U (en) Ethernet-analog telephone transmission equipment
CN202121654U (en) Telephone device capable of realizing wireless dialing via PC

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: 20071114