CN103916548A - Embedded type VOIP voice communication system and voice playing method thereof - Google Patents

Embedded type VOIP voice communication system and voice playing method thereof Download PDF

Info

Publication number
CN103916548A
CN103916548A CN201410155038.6A CN201410155038A CN103916548A CN 103916548 A CN103916548 A CN 103916548A CN 201410155038 A CN201410155038 A CN 201410155038A CN 103916548 A CN103916548 A CN 103916548A
Authority
CN
China
Prior art keywords
voice
message sound
voice message
module
media resource
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
CN201410155038.6A
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.)
Shanghai Feixun Data Communication Technology Co Ltd
Original Assignee
Shanghai Feixun Data Communication 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 Shanghai Feixun Data Communication Technology Co Ltd filed Critical Shanghai Feixun Data Communication Technology Co Ltd
Priority to CN201410155038.6A priority Critical patent/CN103916548A/en
Publication of CN103916548A publication Critical patent/CN103916548A/en
Pending legal-status Critical Current

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention provides an embedded type VOIP voice communication system and a voice playing method thereof. The method comprises the steps that a media resource server is provided, a voice prompt is pre-stored in the media resource server, and network connection is built between the media resource server and embedded type VOIP voice equipment; the embedded type VOIP voice equipment negotiates a conversation between a calling terminal and a called terminal and obtains a playing instruction of the voice prompt, and meanwhile a voice prompt playing request is generated according to the playing instruction and sent to the media resource server; the media resource server executes the playing request and sends the voice prompt needing playing to the embedded type VOIP voice equipment after packaging the voice prompt needing playing; the voice prompt is sent to the calling terminal through the embedded type VOIP voice equipment and played by the calling terminal. The embedded type VOIP voice communication system and the voice playing method thereof are easy to implement and low in cost, no limitation of memory space of the embedded type VOIP voice equipment exists, and a user can customize the voice prompt according to preference of himself.

Description

A kind of embedded VOIP voice communication system and voice audio playback method thereof
Technical field
The present invention relates to a kind of embedded VOIP voice communication technical field, particularly relate to a kind of embedded VOIP voice communication system and voice audio playback method thereof.
Background technology
Before voice call, both call sides need to be consulted call-information, because a variety of causes there will be multiple negotiation result, the result of pointing out user to consult by voice in the time that speech ciphering equipment display capabilities is not enough, this voice message is exactly voice message sound, common voice message sound has dialing tone, ring-back tone, busy tone etc., the playback of embedded device voice message sound is generally achieved in that
First equipment is received the instruction of playing alert tones, searches corresponding prompt tone media resource according to prompt tone command identification.
Secondly speech chip, using the prompt tone media resource that finds as input, produces functional module by the TONE sound of speech chip and generates voice message sound PCM stream, then PCM stream is delivered in digital-to-analogue conversion processing module.
Finally convert voice message sound PCM streaming digital signal message to analog signal by digital to analog converter, by telephone wire, voice message sound is delivered in subscriber phone, realize the broadcasting of voice message sound.
Embedded device media prompt tone has lost flexibility because having solidified prompt tone media resource, and the prompt tone media resource that embedded device is play is stored in chip, generally solidifies the no longer variation of just getting off, and is a kind of very valuable resource; In the time of speech chip medium sound inadequate resource, can cause meeting some special application, such as call diversion, or the media of user-defined class prompting application, the common way of speech chip is the several conventional prompt tone media resources of storage at present, such as dialing tone, ring-back tone, busy tone, howler tone, number unobtainable tone, ringtone etc., adds several reserved sounds.
Although user-defined class media prompting application can consider to use reserved sound, also has following problem, the one, reserved sound lazy weight, the 2nd, reserved sound can not the demand of Expression and Application to prompt tone.
If the prompt tone media resource of storing excess in speech chip, the one, the carrying cost of increase speech chip, the 2nd, for great majority, application does not need again, is also waste.
But along with modern voice application individualized development increases severely day by day, speech ciphering equipment application form is more and more abundanter, and different speech ciphering equipments is also form various kinds to voice message sound demand, very strange, and user is partial to personalized customization to the application of voice message sound.
In order to solve, prompt tone media resource is curing brings the solving methods of the problems that user individual customized demand can not be met also to have a lot.
Having a kind of method is to use special speech chip, is personalized application custom chip specially, and such way cost is very high, and chip customization threshold is very high, has designed and has said and be not easy realization for great majority.
Also having a kind of way is to realize embedded OS, the embedded device with embedded OS is powerful, media resource storage and voice playing equipment be combination and independent expansion effectively, the smart mobile phone that picture configuration is now higher etc., there is the general configuration requirement of operating system embedded device higher, system complex, the technology difficulty of exploitation, for general voice application, there is no need the so large energy of flower, therefore neither good method.
Summary of the invention
The shortcoming of prior art in view of the above, the object of the present invention is to provide a kind of embedded VOIP voice communication system and voice audio playback method thereof, play when solving prior art voice call individual character voice message sound cost high, realize complicated problem.
For achieving the above object and other relevant objects, the present invention provides a kind of voice audio playback method of embedded VOIP voice communication system on the one hand, comprise: provide one to prestore the Media Resource Server of voice message sound, and described Media Resource Server is set up to network with embedded VOIP speech ciphering equipment be connected; Embedded VOIP speech ciphering equipment is consulted the call between calling terminal and terminal called and is obtained the play instruction of voice message sound; Embedded VOIP speech ciphering equipment builds voice message sound playing request and described voice message sound playing request is sent to Media Resource Server according to the play instruction of voice message sound; Media Resource Server is carried out described voice message sound playing request and will after the voice message sound packing encapsulation of needs broadcasting, be sent to embedded VOIP speech ciphering equipment; The voice message sound that embedded VOIP speech ciphering equipment is play needs is sent to calling terminal, plays this voice message sound by calling terminal.
Preferably, before embedded VOIP speech ciphering equipment builds voice message sound playing request according to the play instruction of voice message sound, embedded VOIP speech ciphering equipment is searched the title of corresponding voice message sound resource in mapping table according to the play instruction of voice message sound, store the corresponding relation of the title of play instruction and voice message sound resource in wherein said mapping table.
Preferably, the voice message sound playing request of structure at least comprises: the title of voice message sound resource, codec mark, voice packing interval, IP port address to and the hint instructions of this voice message sound of loop play whether.
Preferably, at embedded VOIP speech ciphering equipment, described voice message sound playing request is sent to after Media Resource Server, whether the form that described Media Resource Server detects described voice message sound playing request is correct and report described in this that to embedded VOIP speech ciphering equipment can voice message sound playing request be performed, respond unsuccessfully if can not be performed, if can carry out response success.
Preferably, Media Resource Server is carried out described voice message sound playing request and the detailed process that is sent to embedded VOIP speech ciphering equipment after the voice message sound resource packing encapsulation of needs broadcasting is comprised: Media Resource Server reads requested voice message sound resource file from the resource file catalogue that comprises voice message sound resource; Media Resource Server becomes the voice message sound resource file burst reading the voice flow of PCM form; The voice flow of described PCM form is compressed into speech frame by Media Resource Server; Described speech frame packing is packaged into the voice flow of RTP form by Media Resource Server, and the voice flow of described RTP form is sent to embedded VOIP speech ciphering equipment.
Preferably, embedded VOIP speech ciphering equipment is receiving after the voice flow of described RTP form, resolve the voice flow of described RTP form to obtain the speech frame of compression, then this speech frame of decompress(ion) is the voice flow of PCM form, after the voice flow of PCM form is converted to analog signal by digital signal, the voice flow of the described PCM form of analog signal form is sent to calling terminal.
The present invention is providing a kind of embedded VOIP voice communication system in addition on the one hand, and described embedded VOIP voice communication system comprises: Media Resource Server, prestores voice message sound; Embedded VOIP speech ciphering equipment, is connected with terminal called with calling terminal, and is connected with described Media Resource Server by network; Described embedded VOIP speech ciphering equipment at least comprises: consult to obtain play instruction module, for consulting the call between calling terminal and terminal called and obtaining the play instruction of voice message sound; Playing request builds module, obtains play instruction module be connected with described negotiation, builds voice message sound playing request according to the play instruction of voice message sound; The first sending module, builds module with described playing request and is connected with described Media Resource Server, for described voice message sound playing request is sent to Media Resource Server; The first receiver module, is connected with described Media Resource Server, receives by Media Resource Server and carries out the packaged voice message sound that needs broadcasting of the packing sending after described voice message sound playing request; The second sending module, is connected with described the first receiver module, for this voice message sound is sent to calling terminal, plays this voice message sound by calling terminal.
Preferably, described embedded VOIP speech ciphering equipment also comprises: mapping table memory module, stores the corresponding relation of the title of play instruction and voice message sound resource; Search module, building module with described mapping table memory module and described playing request is respectively connected, build before module builds voice message sound playing request according to the play instruction of voice message sound in described playing request, search module and search in mapping table memory module according to the play instruction of voice message sound the title of corresponding voice message sound resource.
Preferably, described Media Resource Server comprises: voice resource memory module, prestores voice message sound; The second receiver module, is connected with described the first sending module, for receiving voice message sound playing request; Read module, is connected with described the second receiver module with described voice resource memory module respectively, reads requested voice message sound resource file according to the voice message sound playing request receiving from described voice resource memory module; PCM voice flow generation module, is connected with described read module, the voice message sound resource file burst reading is become to the voice flow of PCM form; Speech frame generation module, is connected with the PCM voice flow generation module of described PCM form, and the voice flow of described PCM form is compressed into speech frame; RTP voice flow package module, is connected with described speech frame module, described speech frame packing is packaged into the voice flow of RTP form; The 3rd sending module, is connected with described RTP voice flow package module, and the voice flow of described RTP form is sent to embedded VOIP speech ciphering equipment.
Preferably, described embedded VOIP speech ciphering equipment also comprises: parsing module, be connected with described the first receiver module, after the voice flow of described RTP form that receives described the 3rd sending module transmission, resolve the voice flow of described RTP form to obtain the speech frame of compression; Decompression module, is connected with described parsing module, and the speech frame that parsing module obtains described in decompress(ion) is the voice flow of PCM form; D/A converter module, is connected with described decompression module, for the voice flow of decompression module PCM form is converted to analog signal by digital signal; By the second sending module, the voice flow of the PCM form of analog signal form is sent to calling terminal.
As mentioned above, the embedded VOIP voice communication system of one of the present invention and voice audio playback method thereof, have following beneficial effect:
In embedded VOIP voice communication system of the present invention and voice audio playback method thereof, by the resource deployment of voice message sound on network, the broadcasting of voice message sound and stop by one independently Media Resource Server control, when embedded VOIP speech ciphering equipment will be play voice message sound, by send playback request to Media Resource Server, Media Resource Server is received after request, send the voice flow of the RTP form having compressed to embedded VOIP speech ciphering equipment, embedded VOIP speech ciphering equipment receives the voice flow from the RTP form of Media Resource Server from network, unpack into speech frame, then decompressed speech frame becomes the voice flow of PCM form, send on telephone plant.The present invention does not have the restriction of memory space for embedded VOIP speech ciphering equipment, user can be according to the preference customized voice prompt tone of oneself, and the present invention realizes simply, and cost is low.
Brief description of the drawings
Fig. 1 is shown as the schematic flow sheet of the voice audio playback method of a kind of embedded VOIP voice communication system of the present invention.
Fig. 2 is shown as the structural representation of a kind of embedded VOIP voice communication system of the present invention.
Fig. 3 is shown as the structural representation of embedded VOIP speech ciphering equipment in a kind of embedded VOIP voice communication system of the present invention.
Fig. 4 is shown as the preferred structure schematic diagram of embedded VOIP speech ciphering equipment in a kind of embedded VOIP voice communication system of the present invention.
Fig. 5 is shown as the structural representation of Media Resource Server in a kind of embedded VOIP voice communication system of the present invention.
Element numbers explanation
1 embedded VOIP voice communication system
11 embedded VOIP speech ciphering equipments
111 consult to obtain play instruction module 112 playing request builds module
113 first sending module 114 mapping table memory modules
115 search module 116 first receiver modules
117 second sending module 118 parsing modules
119 decompression module 110 D/A converter modules
12 Media Resource Servers
121 voice resource memory module 122 read modules
123 second receiver module 124 PCM voice flow generation modules
125 speech frame generation module 126 RTP voice flow package modules
127 the 3rd sending modules
2 calling terminals
3 terminal calleds
S11~S15 step
Embodiment
Below, by specific instantiation explanation embodiments of the present invention, those skilled in the art can understand other advantages of the present invention and effect easily by the disclosed content of this specification.The present invention can also be implemented or be applied by other different embodiment, and the every details in this specification also can be based on different viewpoints and application, carries out various modifications or change not deviating under spirit of the present invention.
It should be noted that, the diagram that this part provides only illustrates basic conception of the present invention in a schematic way, satisfy and only show with assembly relevant in the present invention in graphic but not component count, shape and size drafting while implementing according to reality, when its actual enforcement, kenel, quantity and the ratio of each assembly can be a kind of random change, and its assembly layout kenel also may be more complicated.
The object of the present invention is to provide a kind of embedded VOIP voice communication system and voice audio playback method thereof, play when solving prior art voice call individual character voice message sound cost high, realize complicated problem.To elaborate principle and the execution mode of a kind of embedded VOIP voice communication system of the present invention and voice audio playback method thereof below, make those skilled in the art not need creative work can understand the embedded VOIP voice communication system of one of the present invention and voice audio playback method thereof.
the first embodiment
The present embodiment provides a kind of voice audio playback method of embedded VOIP voice communication system, before voice call, calling terminal and the terminal called both sides of call need to consult call-information, because a variety of causes there will be multiple negotiation result, the result of pointing out user to consult by voice in the time that speech ciphering equipment display capabilities is not enough, this voice message is exactly voice message sound, and the present embodiment is exactly to realize a kind of new voice message sound audio playback method.
Creativeness of the present invention is to provide voice message sound media resource by network for embedded VOIP speech ciphering equipment, realizes embedded VOIP speech ciphering equipment customized voice prompt tone media resource, and user can play any voice message sound as required.
The voice audio playback method of a kind of embedded VOIP voice communication system that as shown in Figure 1, the present embodiment provides specifically comprises the following steps.
Step S11, provides one to prestore the Media Resource Server of voice message sound, and described Media Resource Server is set up to network with embedded VOIP speech ciphering equipment is connected.
Wherein, wherein Media Resource Server can be deployed on same equipment with embedded VOIP speech ciphering equipment, also can separate configurations, as long as can network interworking between Media Resource Server and embedded VOIP speech ciphering equipment just passable.
Media Resource Server is used for providing media sound to play service, receiving media play instruction, obtains media resource from media resource file directory, by after media resource encoding and decoding, the voice flow of encapsulation RTP form, then the voice flow of RTP form is sent to embedded VOIP speech ciphering equipment.
In the present embodiment, set up a media resource file and carry out storaged voice prompt tone, voice message sound is with single channel 8000HZ sampling, the storage of WAV form, and filename is used for the voice message sound that identification medium resource file is stored.
In step S12, embedded VOIP speech ciphering equipment is consulted the call between calling terminal and terminal called and is obtained the play instruction of voice message sound.
Wherein, calling terminal can be mobile phone or landline telephone, and terminal called can be also mobile phone or landline telephone.
Step S13, embedded VOIP speech ciphering equipment builds voice message sound playing request and described voice message sound playing request is sent to Media Resource Server according to the play instruction of voice message sound.
Particularly, in the present embodiment, before embedded VOIP speech ciphering equipment builds voice message sound playing request according to the play instruction of voice message sound, embedded VOIP speech ciphering equipment is searched the title of corresponding voice message sound resource in mapping table according to the play instruction of voice message sound, store the corresponding relation of the title of play instruction and voice message sound resource in wherein said mapping table.
Wherein, the voice message sound playing request of structure at least comprises: the title of voice message sound resource, codec mark, voice packing interval, IP port address to and the hint instructions of this voice message sound of loop play whether.
Step S14, Media Resource Server is carried out described voice message sound playing request and will after the voice message sound packing encapsulation of needs broadcasting, be sent to embedded VOIP speech ciphering equipment.
At embedded VOIP speech ciphering equipment, described voice message sound playing request is sent to after Media Resource Server, whether the form that described Media Resource Server detects described voice message sound playing request is correct and report described in this that to embedded VOIP speech ciphering equipment can voice message sound playing request be performed, respond unsuccessfully if can not be performed, if can carry out response success.
Particularly, in the present embodiment, Media Resource Server is carried out described voice message sound playing request and the detailed process that is sent to embedded VOIP speech ciphering equipment after the voice message sound resource packing encapsulation of needs broadcasting is comprised: Media Resource Server reads requested voice message sound resource file from the resource file catalogue that comprises voice message sound resource; Media Resource Server becomes the voice message sound resource file burst reading the voice flow of PCM form; The voice flow of described PCM form is compressed into speech frame by Media Resource Server; Described speech frame packing is packaged into the voice flow of RTP form by Media Resource Server, and the voice flow of described RTP form is sent to embedded VOIP speech ciphering equipment.
Step S15, the voice message sound that embedded VOIP speech ciphering equipment is play needs is sent to calling terminal, plays this voice message sound by calling terminal.
Particularly, in the present embodiment, embedded VOIP speech ciphering equipment is receiving after the voice flow of described RTP form, resolve the voice flow of described RTP form to obtain the speech frame of compression, then this speech frame of decompress(ion) is the voice flow of PCM form, after the voice flow of PCM form is converted to analog signal by digital signal, the voice flow of the described PCM form of analog signal form is sent to calling terminal.
For making those skilled in the art further understand method of the present invention, the present embodiment is further elaborated as an example of playing RBT example, and other prompt tones can need self-defining according to user's application.
One, preparation before playing RBT
1, user records ring-back tone, and leaves under media resource file directory with the WAV form of single channel 8000HZ sampling, and called after ringback.wav.
2, embedded VOIP speech ciphering equipment sets ring-back tone instruction and leaves ringback tone file name corresponding relation in media resource file directory, MAP (RINGBACK_CMD, ringback.wav) in.
3, embedded VOIP speech ciphering equipment is set the IP port address pair of Media Resource Server instruction access, only need to specify the port of Media Resource Server when Media Resource Server and embedded VOIP speech ciphering equipment are deployed in same equipment; Not in the time of same equipment, need to provide Media Resource Server IP port address pair.
Two, playing RBT workflow
1, embedded VOIP speech ciphering equipment carries out after VOIP call negotiation, the instruction of receiving playing RBT, and embedded VOIP speech ciphering equipment is carried out the order RINGBACK_CMD of ring-back tone.
2, embedded VOIP speech ciphering equipment is searched corresponding media resource filename ringback.wav according to ring-back tone prompt command RINGBACK_CMD in order and filename mapping table.
3, structure media prompt tone playing request, prompt tone playing request packets of information contains:
1) title of voice message sound resource (ringback.wav);
21) codec mark (G722, G729, is defaulted as G711U for G711A, G711U);
3) voice packing intervals (30MS, is defaulted as 20MS for 10MS, 20MS);
4) the IP port address of the voice flow of embedded VOIP speech ciphering equipment receiving media Resource Server transmission RTP form is to (192.168.1.1:8000);
5) hint instructions (yes/no is defaulted as yes) of this voice message sound of loop play whether.
4, send voice message sound playing request to Media Resource Server, Media Resource Server responds reply to request after receiving request, whether correct to embedded VOIP speech ciphering equipment report request instruction form, can the request of constructing be performed, if can not carry out, respond unsuccessfully, can carry out response success.
5, Media Resource Server is received after the request instruction that can carry out, starts to carry out request, and the step of carrying out instruction is as follows:
First from media resource file directory, read requested ring-back tone resource file ringback.wav; Next reads ringback.wav top of file and obtains ring-back tone resource file data, and data are to be sampled by single channel 8000HZ, and when packing interval 20MS, the data length of each speech frame is 160 bytes; The compressed with codecs finally voice flow of PCM form being required according to request becomes speech frame, and the voice flow that the speech frame after compression is packaged into RTP form sends to embedded VOIP speech ciphering equipment for receiving the network port of voice flow of RTP form.
6, embedded VOIP speech ciphering equipment is received after the voice flow of RTP form, resolves RTP bag and obtains the speech frame of compression, then separates and extrudes speech frame.
7, the speech frame of embedded VOIP speech ciphering equipment decompress(ion) converts the voice flow of PCM form to, and the voice flow of PCM form is converted to analog signal by digital signal.
8, the voice flow of the described PCM form of analog signal form is sent on user's calling terminal, calling terminal playing RBT prompt tone, thus realize the broadcasting of ring-back tone.
Therefore, in the voice audio playback method of embedded VOIP voice communication system of the present invention, by the resource deployment of voice message sound on network, the broadcasting of voice message sound and stop by one independently Media Resource Server control, when embedded VOIP speech ciphering equipment will be play voice message sound, by send playback request to Media Resource Server, Media Resource Server is received after request, send the voice flow of the RTP form having compressed to embedded VOIP speech ciphering equipment, embedded VOIP speech ciphering equipment receives the voice flow from the RTP form of Media Resource Server from network, unpack into speech frame, then decompressed speech frame becomes the voice flow of PCM form, send on telephone plant.The present invention does not have the restriction of memory space for embedded VOIP speech ciphering equipment, user can be according to the preference customized voice prompt tone of oneself, and the present invention realizes simply, and cost is low.
the second embodiment
The present embodiment provides a kind of embedded VOIP voice communication system, refers to Fig. 2, is shown as the structural representation of a kind of embedded VOIP voice communication system of the present invention.As shown in Figure 2, embedded VOIP voice communication system 1 in the present embodiment comprises: embedded VOIP speech ciphering equipment 1 and Media Resource Server 12, wherein embedded VOIP speech ciphering equipment 1 is connected with terminal called 3 with calling terminal 2, and be connected with described Media Resource Server 12 by network, wherein, calling terminal 2 can be mobile phone or landline telephone, terminal called 3 can be also mobile phone or landline telephone, wherein, wherein Media Resource Server 12 can be deployed on same equipment with embedded VOIP speech ciphering equipment 1, also can separate configurations, as long as can network interworking between Media Resource Server 12 and embedded VOIP speech ciphering equipment 1 just passable.Below by embedded VOIP speech ciphering equipment 1 and the Media Resource Server 12 introduced in detail in the present embodiment.
Creativeness of the present invention is to provide voice message sound media resource by network for embedded VOIP speech ciphering equipment 1, realizes embedded VOIP speech ciphering equipment 1 customized voice prompt tone media resource, and user can play any voice message sound as required.
As shown in Figure 3 and Figure 4, in the present embodiment, described embedded VOIP speech ciphering equipment 1 specifically comprises: play instruction module 111 is obtained in D/A converter module 110, negotiation, playing request builds module 112, the first sending module 113, mapping table memory module 114, searches module 115, the first receiver module 116, the second sending module 117, parsing module 118 and decompression module 119.Described Media Resource Server 12 prestores voice message sound; Particularly, in the present embodiment, as shown in Figure 5, described Media Resource Server 12 comprises: voice resource memory module 121, read module 122, the second receiver module 123, PCM voice flow generation module 124, speech frame generation module 125, RTP voice flow package module 126 and the 3rd sending module 127.
Below describe each functional module in described embedded VOIP speech ciphering equipment 1 and described Media Resource Server 12 and the reciprocal process between each module in detail.
In the process of calling out to terminal called 3 at calling terminal 2, described negotiation is obtained play instruction module 111 for consulting the call between calling terminal 2 and terminal called 3 and obtaining the play instruction of voice message sound.Described play instruction is for example the instruction of playing RBT or the instruction of playing busy tone etc.
Described playing request structure module 112 is obtained play instruction module 111 with described negotiation and is connected, and builds voice message sound playing request according to the play instruction of voice message sound.
Particularly, in the present embodiment, described mapping table memory module 114 stores the corresponding relation of the title of play instruction and voice message sound resource; The described module 115 of searching is connected with described mapping table memory module 114 and described playing request structure module 112 respectively, build before module 112 builds voice message sound playing request according to the play instruction of voice message sound in described playing request, search module 115 and search in mapping table memory module 114 according to the play instruction of voice message sound the title of corresponding voice message sound resource.
Afterwards, described playing request builds module 112 and just starts to build playing request, particularly, in the present embodiment, described playing request builds the voice message sound playing request that module 112 builds and at least comprises: the title of voice message sound resource, codec mark, voice packing interval, IP port address to and the hint instructions of this voice message sound of loop play whether.
Embedded VOIP speech ciphering equipment 1 is set the IP port address pair of Media Resource Server 12 instruction access, only need to specify the port of Media Resource Server 12 when Media Resource Server 12 and embedded VOIP speech ciphering equipment 1 are deployed in same equipment; Not in the time of same equipment, need to provide Media Resource Server 12IP port address pair.
Taking ring-back tone as example, prompt tone playing request information is for example:
1) title of voice message sound resource (ringback.wav);
21) codec mark (G722, G729, is defaulted as G711U for G711A, G711U);
3) voice packing intervals (30MS, is defaulted as 20MS for 10MS, 20MS);
4) the IP port address of voice flow that embedded VOIP speech ciphering equipment 1 receiving media Resource Server 12 sends RTP form is to (192.168.1.1:8000);
5) hint instructions (yes/no is defaulted as yes) of this voice message sound of loop play whether.
Described the first sending module 113 builds module 112 with described playing request and is connected with the second receiver module 123 in described Media Resource Server 12, for described voice message sound playing request being sent to the second receiver module 123 of Media Resource Server 12.
At embedded VOIP speech ciphering equipment 1, described voice message sound playing request is sent to after Media Resource Server 12, in the present embodiment, described Media Resource Server 12 also comprises a detection module, described detection module for detection of the form of described voice message sound playing request whether correct and to embedded VOIP speech ciphering equipment 1 report described in this voice message sound playing request can be performed, respond unsuccessfully if can not be performed, if can carry out response success.
Then, after receiving voice message sound playing request, described the second receiver module 123 is transferred to read module 122.Described read module 122 is connected with described the second receiver module 123 with described voice resource memory module 121 respectively, reads requested voice message sound resource file according to the voice message sound playing request receiving from described voice resource memory module 121; Described voice resource memory module 121 prestores voice message sound; The voice message sound that this prestores is user-defined personal ring sound.
In described voice resource memory module 121, the detailed process of storaged voice prompt tone is for example: user records ring-back tone, and leaves under media resource file directory with the WAV form of single channel 8000HZ sampling, and called after ringback.wav.
Described PCM voice flow generation module 124 is connected with described read module 122, the voice message sound resource file burst reading is become to the voice flow of PCM form.Described speech frame generation module 125 is connected with the PCM voice flow generation module 124 of described PCM form, and the voice flow of described PCM form is compressed into speech frame; Described RTP voice flow package module 126 is connected with described speech frame module, described speech frame packing is packaged into the voice flow of RTP form.
Described the 3rd sending module 127 is connected with described RTP voice flow package module 126, and the voice flow of described RTP form is sent to the first receiver module 116 in embedded VOIP speech ciphering equipment 1.
Particularly, for example, first read module 122 reads requested ring-back tone resource file ringback.wav from media resource file directory; Next reads ringback.wav top of file and obtains ring-back tone resource file data, and data are to be sampled by single channel 8000HZ, and when packing interval 20MS, the data length of each speech frame is 160 bytes; Described PCM voice flow generation module 124 becomes the voice message sound resource file burst reading the voice flow of PCM form, described speech frame generation module 125 requires the voice flow of PCM form compressed with codecs according to request becomes speech frame, the speech frame after compression is packaged into the voice flow of RTP form by described RTP voice flow package module 126, and described the 3rd sending module 127 sends to embedded VOIP speech ciphering equipment 1 for receiving the network port of voice flow of RTP form.
Described the first receiver module 116 is connected with the 3rd sending module 127 in described Media Resource Server 12, receives by Media Resource Server 12 and carries out the packaged voice message sound play of needing of the 3rd sending module 127 sends after described voice message sound playing request packing.
Described parsing module 118 is connected with described the first receiver module 116, receiving after the voice flow of the described RTP form that described the 3rd sending module 127 sends, resolves the voice flow of described RTP form to obtain the speech frame of compression; Described decompression module 119 is connected with described parsing module 118, and the speech frame that parsing module 118 obtains described in decompress(ion) is the voice flow of PCM form; Described D/A converter module 110 is connected with described decompression module 119, for the voice flow of decompression module 119 PCM forms is converted to analog signal by digital signal; By the second sending module 117, the voice flow of the PCM form of analog signal form is sent to calling terminal 2, plays this voice message sound by calling terminal 2, thereby realized the broadcasting of ring-back tone.
In sum, in embedded VOIP voice communication system of the present invention and voice audio playback method thereof, by the resource deployment of voice message sound on network, the broadcasting of voice message sound and stop by one independently Media Resource Server control, when embedded VOIP speech ciphering equipment will be play voice message sound, by send playback request to Media Resource Server, Media Resource Server is received after request, send the voice flow of the RTP form having compressed to embedded VOIP speech ciphering equipment, embedded VOIP speech ciphering equipment receives the voice flow from the RTP form of Media Resource Server from network, unpack into speech frame, then decompressed speech frame becomes the voice flow of PCM form, send on telephone plant.The present invention does not have the restriction of memory space for embedded VOIP speech ciphering equipment, user can be according to the preference customized voice prompt tone of oneself, and the present invention realizes simply, and cost is low.So the present invention has effectively overcome various shortcoming of the prior art and tool high industrial utilization.
Above-described embodiment is illustrative principle of the present invention and effect thereof only, but not for limiting the present invention.Any person skilled in the art scholar all can, under spirit of the present invention and category, modify or change above-described embodiment.Therefore, such as in affiliated technical field, have and conventionally know that the knowledgeable, not departing from all equivalence modifications that complete under disclosed spirit and technological thought or changing, must be contained by claim of the present invention.

Claims (10)

1. a voice audio playback method for embedded VOIP voice communication system, is characterized in that, comprising:
Provide one to prestore the Media Resource Server of voice message sound, and described Media Resource Server is set up to network with embedded VOIP speech ciphering equipment be connected;
Embedded VOIP speech ciphering equipment is consulted the call between calling terminal and terminal called and is obtained the play instruction of voice message sound;
Embedded VOIP speech ciphering equipment builds voice message sound playing request and described voice message sound playing request is sent to Media Resource Server according to the play instruction of voice message sound;
Media Resource Server is carried out described voice message sound playing request and will after the voice message sound packing encapsulation of needs broadcasting, be sent to embedded VOIP speech ciphering equipment;
The voice message sound that embedded VOIP speech ciphering equipment is play needs is sent to calling terminal, plays this voice message sound by calling terminal.
2. the voice audio playback method of embedded VOIP voice communication system according to claim 1, it is characterized in that, before embedded VOIP speech ciphering equipment builds voice message sound playing request according to the play instruction of voice message sound, embedded VOIP speech ciphering equipment is searched the title of corresponding voice message sound resource in mapping table according to the play instruction of voice message sound, store the corresponding relation of the title of play instruction and voice message sound resource in wherein said mapping table.
3. the voice audio playback method of embedded VOIP voice communication system according to claim 1 and 2, it is characterized in that, the voice message sound playing request of structure at least comprises: the title of voice message sound resource, codec mark, voice packing interval, IP port address to and the hint instructions of this voice message sound of loop play whether.
4. the voice audio playback method of embedded VOIP voice communication system according to claim 1, it is characterized in that, at embedded VOIP speech ciphering equipment, described voice message sound playing request is sent to after Media Resource Server, whether the form that described Media Resource Server detects described voice message sound playing request is correct and report described in this that to embedded VOIP speech ciphering equipment can voice message sound playing request be performed, respond unsuccessfully if can not be performed, if can carry out response success.
5. the voice audio playback method of embedded VOIP voice communication system according to claim 1, it is characterized in that, Media Resource Server is carried out described voice message sound playing request and the detailed process that is sent to embedded VOIP speech ciphering equipment after the voice message sound resource packing encapsulation of needs broadcasting is comprised:
Media Resource Server reads requested voice message sound resource file from the resource file catalogue that comprises voice message sound resource;
Media Resource Server becomes the voice message sound resource file burst reading the voice flow of PCM form;
The voice flow of described PCM form is compressed into speech frame by Media Resource Server;
Described speech frame packing is packaged into the voice flow of RTP form by Media Resource Server, and the voice flow of described RTP form is sent to embedded VOIP speech ciphering equipment.
6. the voice audio playback method of embedded VOIP voice communication system according to claim 1, it is characterized in that, embedded VOIP speech ciphering equipment is receiving after the voice flow of described RTP form, resolve the voice flow of described RTP form to obtain the speech frame of compression, then this speech frame of decompress(ion) is the voice flow of PCM form, after the voice flow of PCM form is converted to analog signal by digital signal, the voice flow of the described PCM form of analog signal form is sent to calling terminal.
7. an embedded VOIP voice communication system, is characterized in that, described embedded VOIP voice communication system comprises:
Media Resource Server, prestores voice message sound;
Embedded VOIP speech ciphering equipment, is connected with terminal called with calling terminal, and is connected with described Media Resource Server by network; Described embedded VOIP speech ciphering equipment at least comprises:
Play instruction module is obtained in negotiation, for consulting the call between calling terminal and terminal called and obtaining the play instruction of voice message sound;
Playing request builds module, obtains play instruction module be connected with described negotiation, builds voice message sound playing request according to the play instruction of voice message sound;
The first sending module, builds module with described playing request and is connected with described Media Resource Server, for described voice message sound playing request is sent to Media Resource Server;
The first receiver module, is connected with described Media Resource Server, receives by Media Resource Server and carries out the packaged voice message sound that needs broadcasting of the packing sending after described voice message sound playing request;
The second sending module, is connected with described the first receiver module, for this voice message sound is sent to calling terminal, plays this voice message sound by calling terminal.
8. embedded VOIP voice communication system according to claim 7, is characterized in that, described embedded VOIP speech ciphering equipment also comprises:
Mapping table memory module, stores the corresponding relation of the title of play instruction and voice message sound resource;
Search module, building module with described mapping table memory module and described playing request is respectively connected, build before module builds voice message sound playing request according to the play instruction of voice message sound in described playing request, search module and search in mapping table memory module according to the play instruction of voice message sound the title of corresponding voice message sound resource.
9. embedded VOIP voice communication system according to claim 7, is characterized in that, described Media Resource Server comprises:
Voice resource memory module, prestores voice message sound;
The second receiver module, is connected with described the first sending module, for receiving voice message sound playing request;
Read module, is connected with described the second receiver module with described voice resource memory module respectively, reads requested voice message sound resource file according to the voice message sound playing request receiving from described voice resource memory module;
PCM voice flow generation module, is connected with described read module, the voice message sound resource file burst reading is become to the voice flow of PCM form;
Speech frame generation module, is connected with the PCM voice flow generation module of described PCM form, and the voice flow of described PCM form is compressed into speech frame;
RTP voice flow package module, is connected with described speech frame module, described speech frame packing is packaged into the voice flow of RTP form;
The 3rd sending module, is connected with described RTP voice flow package module, and the voice flow of described RTP form is sent to embedded VOIP speech ciphering equipment.
10. embedded VOIP voice communication system according to claim 9, is characterized in that, described embedded VOIP speech ciphering equipment also comprises:
Parsing module, is connected with described the first receiver module, after the voice flow of described RTP form that receives described the 3rd sending module transmission, resolves the voice flow of described RTP form to obtain the speech frame of compression;
Decompression module, is connected with described parsing module, and the speech frame that parsing module obtains described in decompress(ion) is the voice flow of PCM form;
D/A converter module, is connected with described decompression module, for the voice flow of decompression module PCM form is converted to analog signal by digital signal;
By the second sending module, the voice flow of the PCM form of analog signal form is sent to calling terminal.
CN201410155038.6A 2014-04-17 2014-04-17 Embedded type VOIP voice communication system and voice playing method thereof Pending CN103916548A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410155038.6A CN103916548A (en) 2014-04-17 2014-04-17 Embedded type VOIP voice communication system and voice playing method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410155038.6A CN103916548A (en) 2014-04-17 2014-04-17 Embedded type VOIP voice communication system and voice playing method thereof

Publications (1)

Publication Number Publication Date
CN103916548A true CN103916548A (en) 2014-07-09

Family

ID=51041934

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410155038.6A Pending CN103916548A (en) 2014-04-17 2014-04-17 Embedded type VOIP voice communication system and voice playing method thereof

Country Status (1)

Country Link
CN (1) CN103916548A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106657070A (en) * 2016-12-24 2017-05-10 华为技术有限公司 Signal transmission method and network system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1859480A (en) * 2005-12-22 2006-11-08 华为技术有限公司 Method and system for receiving and setting multiple color ringing tone
CN101159906A (en) * 2007-11-13 2008-04-09 中国电信股份有限公司 Call prompting message playing method and system
US20080232559A1 (en) * 2006-12-26 2008-09-25 Yuetao Meng Method for voice response and voice server
CN102158615A (en) * 2011-04-12 2011-08-17 迈普通信技术股份有限公司 LINUX-based media server in (Voice Over Internet Protocol) system and playback method of media server

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1859480A (en) * 2005-12-22 2006-11-08 华为技术有限公司 Method and system for receiving and setting multiple color ringing tone
US20080232559A1 (en) * 2006-12-26 2008-09-25 Yuetao Meng Method for voice response and voice server
CN101159906A (en) * 2007-11-13 2008-04-09 中国电信股份有限公司 Call prompting message playing method and system
CN102158615A (en) * 2011-04-12 2011-08-17 迈普通信技术股份有限公司 LINUX-based media server in (Voice Over Internet Protocol) system and playback method of media server

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106657070A (en) * 2016-12-24 2017-05-10 华为技术有限公司 Signal transmission method and network system

Similar Documents

Publication Publication Date Title
CN101159906B (en) Call prompting message playing method and system
CN101567948B (en) Codec converter, gateway device, and codec converting method
CN103401984A (en) Bluetooth headset and communication device
CN101918940A (en) The smart web pages provisioning system and the method that are used for mobile device
CN104754536A (en) Method and system for realizing communication between different languages
CN103024220A (en) Method, system and IAD (Integrated Access Device) for processing voice message
CN102833432A (en) Method, device and system for forwarding incoming calls
US20130303132A1 (en) Methods and systems for creating customized ringtones based on caller information
CN100426826C (en) Method for realizing message-leaving lamp and communication system
CN101035164A (en) System and method for realizing the video ring
CN105282716A (en) Polyphonic ringtone management method, mobile terminal and polyphonic ringtone system
CN1819604A (en) Belling method by dialing transmission
CN103916548A (en) Embedded type VOIP voice communication system and voice playing method thereof
CN101465911A (en) 3G visual fixed telephone
WO2007068197A1 (en) A method and system for content directional transmission and distributed access in the telecommunication transmission terminal
CN115604241A (en) Privacy number playing method, system, computer equipment and storage medium
CN101345927A (en) Information sending method and user terminal
CN1984353B (en) Method and device for mixing sound
WO2009076881A1 (en) Method for setting ring back service, method, system and device for implementing ring back service
CN100461878C (en) Method for realizing media gateway control protocol playback
KR20010099454A (en) Voice bell sound service for the sellular phone using the text letters (user defined),sender number and number list in the handset.
WO2016095527A1 (en) Voice call method, intelligent mobile terminal, fixed-line telephone and intelligent telephone system
US8260264B2 (en) Automated retrieval and handling of a second telecommunications terminal's voicemail by a first terminal
CN103200538A (en) Method, system and terminal of playing polyphonic ringtones and polyphonic ringtone service center
US7545738B2 (en) Network telephony system with enhanced interconversion of audio signals and IP packets

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20140709