CN1173526C - Method of realizing real time communication between digital communication network and public telephone network using speech sound card - Google Patents

Method of realizing real time communication between digital communication network and public telephone network using speech sound card Download PDF

Info

Publication number
CN1173526C
CN1173526C CNB011320338A CN01132033A CN1173526C CN 1173526 C CN1173526 C CN 1173526C CN B011320338 A CNB011320338 A CN B011320338A CN 01132033 A CN01132033 A CN 01132033A CN 1173526 C CN1173526 C CN 1173526C
Authority
CN
China
Prior art keywords
buffer memory
data
sound card
bytes
byte number
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.)
Expired - Fee Related
Application number
CNB011320338A
Other languages
Chinese (zh)
Other versions
CN1414743A (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.)
Ningbo Daning Communication Technology Development Co Ltd
Ningbo University
Original Assignee
Ningbo Daning Communication Technology Development Co Ltd
Ningbo University
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 Ningbo Daning Communication Technology Development Co Ltd, Ningbo University filed Critical Ningbo Daning Communication Technology Development Co Ltd
Priority to CNB011320338A priority Critical patent/CN1173526C/en
Publication of CN1414743A publication Critical patent/CN1414743A/en
Application granted granted Critical
Publication of CN1173526C publication Critical patent/CN1173526C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Telephonic Communication Services (AREA)
  • Telephone Function (AREA)

Abstract

The present invention relates to a method of realizing real time communication between a digital communication network and a public telephone network by using a voice card, which comprises the following steps: setting a recording cache of which the capacity is P byte which is the common multiple of the single time treating byte number M and a single frame voice data byte number N of a voice card for storing voice data which is transferred from a public telephone network and subjected to A/D conversion by the voice card; simultaneously, setting a first stage voice playing cache of which the capacity is O bytes, and setting a second stage voice playing cache of which the capacity is the integral multiple of the P bytes; circularly writing the data combing from the digital communication network in the first stage voice playing cache after carrying out voice and code conversion; circularly writing the data with the capacity of Q bytes in the second stage voice playing cache in one time when the data in the first stage voice playing cache is accumulated to Q bytes. The present invention skillfully utilizes the technology of 'multiple caches and timing recording and playing inquiry', uses the simple voice card to realize the real time communication between the digital communication network and the public telephone network and greatly simplifies access process; the present invention has low cost and simple control, but the effect of the present invention is not worse than professional equipment.

Description

A kind of method of utilizing sound card to realize real time communication between digital communication network and the public telephone network
Technical field
The present invention relates to wireless communication technology field, particularly relate to a kind of method of utilizing sound card to realize real time communication between digital communication network and the public telephone network.
Background technology
Transmission is analog voice signal in existing public telephone network (PSTN), and what transmit in such as digit wireless communication systems such as CDMA, GSM and other digital communication systems is digital signal, when the terminal equipment in adhering to these two kinds of heterogeneous networks separately need carry out real time communication, must between these two kinds of networks, interface system be set, must link to each other with the switching equipment of end office (EO) by MSC with real-time conversation between the landline telephone as the CDMA mobile phone, and such equipment is quite expensive usually.And on the other hand, sound card has been widely used in the audio communication voice inquiry system automatically/manually or automatic speech register system and recording monitoring system of call center, information service etc., this type systematic all is to allow the user select required service by telephone key-press under voice suggestion, in the recording playback sound, generally all be based on operation to voice document, just the voice that outside line can be come are as required preserved with the form of file, maybe will play voice document and give outside line, but these all are the communication of non real-time.Application number is to disclose a kind of like this technical scheme in 99100139.7 the Chinese invention patent application " local area network digital telephone exchange system ", promptly use the interface of sound card as Digital Telephone Network and public phone network, transfer to Digital Telephone Network after utilizing A/D converter in the sound card to convert audio digital signals to from the analog voice signal of public telephone network, transfer to public telephone network after utilizing D/A converter in the sound card to convert analog voice signal to, thereby realize conversation in real time from the audio digital signals of digital telephone network.Yet, sound card itself there is no so real-time transfer capability, and in this patent, also unexposed again real-time duplex how to utilize sound card to carry out between audio digital signals and the analog voice signal is changed, and limited by the technical specification of sound card itself, this also is not easy to realize.
Summary of the invention
Technical problem to be solved by this invention provide a kind of practicable, carry out the interface system that real-time duplex conversion between audio digital signals and the analog voice signal realizes the real time communication between digital communication network and the public telephone network by utilizing sound card.
The present invention solves the problems of the technologies described above the technical scheme that is adopted: utilize sound card to realize that the method for real time communication between digital communication network and the public telephone network is:
A, be provided with one the recording buffer memory, its byte number (P) equals the common multiple of sound card single treatment byte number (M) and single frames speech data byte number (N), be used for depositing from public telephone network and transmit and speech data after sound card A/D conversion, from this recording buffer memory, get single frames speech data byte number (N) in turn and circularly by the fixed time interval of setting then at every turn, deliver sound card and carry out code conversion, and give digital communication network the transfer of data after the conversion;
B, one-level playback buffer memory is set, the concrete value of its byte number (Q) is relevant with the time-delay of the Network Transmission of digital communication network, the audio digital signals of corresponding certain frame number (R), and the value of this frame number (R) is as the criterion not damage speech quality; And secondary playback buffer memory is set, its byte number is the integral multiple of one-level playback buffer memory byte number (Q); Be written in circularly in this one-level playback buffer memory after the code conversion carrying out from the data in the digital communication network, when the data in this one-level playback buffer memory are write when full, recirculation ground is automatically taken out data in turn circularly and will be transferred to public telephone network after its D/A conversion from this secondary playback buffer memory by sound card in the total data one-time write secondary playback buffer memory in the one-level playback buffer memory.
The present invention utilizes the technology of " recorded broadcast is inquired about in many buffer memorys, timing " dexterously, utilize simple sound card just to realize real time communication between digital communication network and the public telephone network, simplified access procedure greatly, its cost is very cheap, control comparatively simple, and its effect and not second to professional equipment.
Description of drawings
Fig. 1 is provided with schematic diagram for the recording buffer memory of the embodiment of the invention.
Fig. 2 is provided with schematic diagram for the playback buffer memory of the embodiment of the invention.
Fig. 3 is the schematic block circuit diagram of existing a kind of sound card.
Fig. 4 is an application examples schematic diagram of the present invention.
Embodiment
Below in conjunction with embodiment the present invention is described in further detail.
In the present embodiment, but we select the sound card of single treatment 128 bytes, its schematic block circuit diagram as shown in Figure 3, wherein control partly is a control module, shared partly is a sharing storage module, and DSP is a digital signal processing chip, and CODEC is a coding/decoding module, its effect be to simulated audio signal filter, sampling and D/A conversion, Line is a data recording playback buffer memory; Voice in the existing public telephone network are the 64kbps coding, and the one frame is 20ms, and corresponding size of data is 160 bytes;
For this reason, we are provided with the recording buffer memory of 640 bytes and the one-level playback buffer memory of 640 bytes.In the recording buffer memory, can deposit the sound card process data block of 5 128 byte-sized like this, be equivalent to 4 frame speech datas, as shown in Figure 1; Equally, in one-level playback buffer memory, can deposit 4 frame speech datas, and in sound card self the playback buffer memory as secondary playback buffer memory, can deposit 4 one-level playback data in buffer, as shown in Figure 2;
Recording module at sound card, to record automatically down and after its A/D conversion (each 128 bytes), circulate from the voice of public telephone network and write in 5 data blocks of recording buffer memory, because the recording position enquiring that existing sound card provided can only be accurate to data block, therefore, in order in time data to be taken away, we inquire about current which data block of having recorded by the timer cycle ground of 8ms to sound card, and in time take the earliest a frame (160 byte) speech data away, again this voice speech frame is carried out transferring to digital communication network after code conversion is handled;
Playback module at sound card, after will carrying out the processing of sound sign indicating number from the data of digital communication network, write in turn in the one-level playback buffer memory of 640 bytes, when writing full 640 bytes (i.e. 4 frames), write circularly in the secondary playback buffer memory of 2560 bytes, why like this, be because the speed of sound source recording and sound card playback all is constant 64kbps, but the speed of the data that transmit by network is not constant, can not guarantee that 20ms has a frame, but be 20ms one frame on an average substantially.Adopt so two caching technologys can guarantee the voice quality of in phone, playing to greatest extent.
The present invention is fit to be applied to the interface between CDMA, GSM digit wireless communication system and the public telephone network, also can be applied to the interface between network digital phone and the public telephone network, perhaps other application, as shown in Figure 4, be a such application examples, wherein " insert the agency " and be the hardware components of using the inventive method.

Claims (2)

1, a kind of method of utilizing sound card to realize real time communication between digital communication network and the public telephone network is characterized in that may further comprise the steps:
A, be provided with one the recording buffer memory, its byte number (P) equals the common multiple of sound card single treatment byte number (M) and single frames speech data byte number (N), be used for depositing from public telephone network and transmit and speech data after sound card A/D conversion, from this recording buffer memory, get single frames speech data byte number (N) in turn and circularly by the fixed time interval of setting then at every turn, deliver sound card and carry out code conversion, and give digital communication network the transfer of data after the conversion;
B, one-level playback buffer memory is set, the concrete value of its byte number (Q) is relevant with the time-delay of the Network Transmission of digital communication network, the audio digital signals of corresponding certain frame number (R), and the value of this frame number (R) is as the criterion not damage speech quality; And secondary playback buffer memory is set, its byte number is the integral multiple of one-level playback buffer memory byte number (Q); Be written in circularly in this one-level playback buffer memory after the code conversion carrying out from the data in the digital communication network, when the data in this one-level playback buffer memory are write when full, recirculation ground is automatically taken out data in turn circularly and will be transferred to public telephone network after its D/A conversion from this secondary playback buffer memory by sound card in the total data one-time write secondary playback buffer memory in the one-level playback buffer memory.
2, the method for utilizing sound card to realize real time communication between digital communication network and the public telephone network according to claim 1 is characterized in that:
Selecting for use single treatment to handle byte number M is the sound card of 128 bytes;
Described single frames speech data byte number N is 160 bytes, and its time corresponding is 20ms;
The fixed time interval of described setting is 8ms;
Described recording buffer memory is 640 bytes;
Described one-level playback buffer memory is 640 bytes;
Described secondary playback buffer memory is 2560 bytes.
CNB011320338A 2001-10-26 2001-10-26 Method of realizing real time communication between digital communication network and public telephone network using speech sound card Expired - Fee Related CN1173526C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB011320338A CN1173526C (en) 2001-10-26 2001-10-26 Method of realizing real time communication between digital communication network and public telephone network using speech sound card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB011320338A CN1173526C (en) 2001-10-26 2001-10-26 Method of realizing real time communication between digital communication network and public telephone network using speech sound card

Publications (2)

Publication Number Publication Date
CN1414743A CN1414743A (en) 2003-04-30
CN1173526C true CN1173526C (en) 2004-10-27

Family

ID=4671081

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB011320338A Expired - Fee Related CN1173526C (en) 2001-10-26 2001-10-26 Method of realizing real time communication between digital communication network and public telephone network using speech sound card

Country Status (1)

Country Link
CN (1) CN1173526C (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1297099C (en) * 2003-06-25 2007-01-24 华为技术有限公司 A real time flow buffering and jitter eliminating method for decreasing additive time delay

Also Published As

Publication number Publication date
CN1414743A (en) 2003-04-30

Similar Documents

Publication Publication Date Title
CA2244007C (en) Method and apparatus for storing and forwarding voice signals
CN1136715C (en) Mobile radio telephone capable of recording/reproducing voice signal and method for controlling the same
CN100370752C (en) Log information storage method
CN1489850A (en) Data transmission system
CN111431868A (en) Method for positioning frame header in TDM interface transmission data and electronic equipment
CN101686358B (en) Video recording method, device and system
CN1173526C (en) Method of realizing real time communication between digital communication network and public telephone network using speech sound card
CN101060430A (en) Information tracking method and system
CN1933506A (en) Method for recording the other party transmission information during talking and telephone
CN107122320B (en) Device, system and method for realizing PCM audio playing based on FPGA
CN102752431B (en) A kind of method realizing voice intercom of Android mobile phone
CN1275224C (en) Voice letter box system and recording-playing method
CN1194525C (en) Digital recording system
CN100428766C (en) A seat telephone traffic recording system and method for telephone traffic recording using same system
CN100417089C (en) Method and apparatus for implementing call diary
KR100475379B1 (en) Device Of Music On Holding Service In Private Branch Exchange
CN200980111Y (en) A novel simulated voice card with accessing function of wireless communication
CN102446084B (en) A kind of timing information write-read control method and device
CN1167292C (en) Method for implementing base station speech compression in mobile communication system
CN213990910U (en) Multichannel optical fiber data recording device
CN208970165U (en) A kind of MCVF multichannel voice frequency play system and player
CN114205555B (en) Intelligent video customer service information processing method, system, equipment and medium
CN201156768Y (en) Apparatus controlling calling process by voice
US6901077B1 (en) Timeslot interchange circuit supporting PCM, ADPCM, and multiple data channel connectivity to T1 and E1 circuits
KR20010084515A (en) Method for sending charging data in mobile switching center

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C19 Lapse of patent right due to non-payment of the annual fee
CF01 Termination of patent right due to non-payment of annual fee