CN1553309A - Playback method and device - Google Patents
Playback method and device Download PDFInfo
- Publication number
- CN1553309A CN1553309A CNA031405614A CN03140561A CN1553309A CN 1553309 A CN1553309 A CN 1553309A CN A031405614 A CNA031405614 A CN A031405614A CN 03140561 A CN03140561 A CN 03140561A CN 1553309 A CN1553309 A CN 1553309A
- Authority
- CN
- China
- Prior art keywords
- playback
- file
- processing unit
- encoding
- rule
- 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.)
- Granted
Links
Landscapes
- Telephonic Communication Services (AREA)
- Signal Processing For Digital Recording And Reproducing (AREA)
Abstract
In the method, the playback requirement is analysed to be playback rule and to send it to CPU peripheral playback processing unit according to information of playback requirement when playback requirement is received by CPU, the stored playback file is obtained and outputted by playback processing unit according to playback rule and outputted playback file is transmitted after it is convertedby process of coding-decoding. The playback device comprises central processing control unit, playback processing unit and coding-decoding conversion unit.
Description
Technical field
The present invention relates to the network communications technology field, be specifically related to a kind of method and device of playback.
Background technology
The widespread use in present communication field of playback technology supports that the playback The Application of Technology is such as the indispensable function of equipment such as gateway or switch in the communication field.
In communication system, also there is a kind of transmission of playback in the practical application of playback as when making a phone call outside the normal transfer voice of both sides.
Playback in the communication system comprises the broadcast of basic announcement and the broadcast of intelligent sound.The broadcast of basic announcement comprises the broadcast of subscriber line signaling DTMF (dual-tone multifrequency); The broadcast of intelligence sound comprises IP phone series intelligent service etc.; As importing the respective digital button according to prompt tone to reach the user such as inquiry, program request, the purpose of switching etc.The broadcast of this intelligent sound has become an important component part of telephone type business.
The implementation method of playback at present, the difference of selecting for use according to processor in the practical application equipment is also different separately.But the whole bag of tricks is concluded, the playback implementation method adopts in internal memory basically with certain format storage playback file, when a certain user has the playback demand, then obtain corresponding playback file according to the playback demand, this playback file sent to distribute to this user's voice encoding and decoding conversion unit, carry out the encoding and decoding conversion of this playback file, will send to relevant user terminals, realize playback through the playback file after the encoding and decoding conversion.
Realize in the communication system that at present the equipment of player function such as gateway or switch etc. adopt separate type, the allomeric function that is equipment is distributed in a plurality of equipment, perhaps be distributed on a plurality of processors, realize the function of equipment by a plurality of processors in the function that realizes on the same equipment.Adopt separate type as gateway, the function of its realization is distributed in CPU and encoding and decoding conversion unit; Wherein CPU finishes the business processing part, sets up or the like as signaling; Encoding and decoding conversion function is finished in the encoding and decoding conversion unit.The encoding and decoding conversion unit can be that TCU (encoding and decoding control module), DSP (digital signal processor) or other encoding and decoding speechs are realized the unit.
Equipment majority in the communication system is realized player function by CPU and TCU combination; Realize that by CPU and TCU combination the concrete grammar of player function is as follows:
At first when device initialize, the playback file is imported and copied in the CPU internal memory.
When needs provided playback for a user, CPU then distinguished the type of playback business, called corresponding playback according to the corresponding service type then and realized function.
The playback function then arrives relevant playback file according to the information index of playback service bearer, and according to playback file for the time span copy respective length of active user packing, and send to TCU, preserve current playing file index state simultaneously, the playback file packing that is used to the active user to continue to copy respective length sends to TCU; The TCU unit carries out encoding and decoding conversion with the playback file that receives, and the playback file after will changing outputs to the relative users terminal, the realization playback.
The above-mentioned playback implementation method of communication apparatus needs CPU when managing business, copy and transmission playback file are to the encoding and decoding conversion unit, if adopt G.711 encoding and decoding technique, transmitting terminal is 20ms for user's time span of packing, then when CPU supports a user's playback demand, every 20ms just needs processing and transmission primaries data to the encoding and decoding conversion unit, therefore the CPU occupation rate of playback demand is very high, thereby increased the weight of the processing load of CPU, make CPU because the realization of player function causes communication apparatus support user's number limited, if still need to guarantee to support the user of equal number, then the communication apparatus cost will significantly rise.
Summary of the invention
The objective of the invention is to, a kind of method and device of playback is provided, handle load, thereby when the equal number of users of communication apparatus support, realized reducing the purpose of communication apparatus cost to alleviate CPU.
In order to achieve the above object, audio playback method provided by the invention comprises:
When CPU (central processing control unit) receives the playback demand, described playback demand is resolved to playback rule and send to the playback processing unit of described CPU periphery according to described playback demand loaded information; Described playback processing unit obtains and exports the playback file that it is deposited according to the playback rule; The playback file of described output sends through after the encoding and decoding conversion.
Described playback rule comprises obtains playback document convention and transmission playback document convention.
Described playback processing unit obtains and exports its playback file of depositing according to the playback rule and comprises: described playback processing unit obtains the playback file according to obtaining the playback document convention; Described playback processing unit is exported the described playback file that obtains that it is deposited according to transmission playback document convention.
The described playback document convention of obtaining comprises the address pointer of determining the playback document storage, searches the playback file address according to described address pointer.
Described transmission playback document convention comprises the byte number that playback file broadcast interval, playback file reproduction time, playback file need send at every turn.
Described playback processing unit is exported its described playback file that obtains of depositing according to transmission playback document convention and comprised: described playback processing unit regularly copies the playback file of respective byte and outputs to the encoding and decoding conversion unit according to the byte number that described playback file is play at interval and the each needs of described playback file send from the playback file, play according to described playback file reproduction time.
Described playback rule also comprises quiet reproduction time.
Deposited quiet data in the described playback processing unit internal memory; When needs are play when quiet, described playback processing unit regularly copies quiet data and outputs to the encoding and decoding conversion unit according to the byte number that described quiet reproduction time, playback file are play at interval and the each needs of playback file send.
Described playback rule comprises that also the playback file needs the number of times of loop play; Described playback file needs the number of times of loop play to be used to limit the number of times of described playback file repeat playing.
When described CPU required to interrupt playback, described playback processing unit interrupted the playback processing and will interrupt the playback processing notifying described CPU immediately.
The present invention also provides a kind of device of realizing audio playback method of the present invention, comprising:
Central processing control unit: when receiving the playback demand, described playback demand resolved to playback rule and send to the playback processing unit of described central processing control unit periphery;
Playback processing unit: obtain and export its playback file of depositing to the encoding and decoding conversion unit according to the described playback rule that receives;
Encoding and decoding conversion unit: will send after the described playback file encoding and decoding conversion that receives.
The present invention by design playback rule, with the playback document storage in the CPU periphery, promptly be independent of in the internal memory of the playback processing unit outside the CPU, can utilize memory headroom thereby CPU is had more, improved the processing power of CPU.When needs carry out the playback processing, CPU only carries out the processing in playback business initial stage, promptly it is resolved to the playback rule according to playback demand loaded information, and the playback rule of resolving is sent to the playback processing unit of CPU periphery, finish the process of playback jointly by playback processing unit and encoding and decoding conversion unit, thereby alleviated the processing load of CPU.Therefore, utilize the present invention when the equal number of users of communication apparatus support, realized reducing the purpose of communication apparatus cost.
Description of drawings
Fig. 1 is based on the playback set of the method that realizes a kind of playback of the present invention.
Embodiment
Below in conjunction with accompanying drawing the present invention is described in further detail.
The present invention realizes that the method for playback is: the CPU periphery is set, promptly is independent of the playback processing unit outside the CPU, no longer deposit the playback file in the CPU internal memory, but with the playback document storage in the internal memory of the playback processing unit of CPU periphery.Make CPU that how utilizable memory headroom be arranged, improved the processing power of CPU.When CPU receives the playback demand, in the time of need carrying out the playback processing, CPU only carries out the processing in playback business initial stage and promptly only the playback demand is resolved, CPU obtains the playback processing unit according to playback demand loaded information and carries out the required playback rule of playback, to the playback processing unit, CPU promptly finishes the playback task of this playback demand with the playback regular transmission.Transmission is finished by the playback processing unit to the copy of playback file, the playback processing unit obtain the playback file according to the playback rule and according to the playback rule with the playback file transfer, the playback file of transmission sends to user side through after the encoding and decoding conversion, realizes playback.Because CPU only carries out the processing in playback business initial stage, alleviated the processing load of CPU, when making the equal number of users of communication apparatus support, realized reducing the purpose of communication apparatus cost.
First kind of embodiment of the present invention is:
The CPU periphery is set, promptly is independent of playback processing unit outside the CPU, do not deposit the playback file in the internal memory of CPU, and with the playback document storage in the internal memory of playback processing unit.
When CPU receives the playback demand, according to playback demand loaded information, the playback demand is resolved to the playback rule, and promptly be independent of playback processing unit outside the CPU what the playback rule sent to described CPU periphery.
The playback rule comprises the rule of obtaining the playback file and the rule of transmitting the playback file.
The playback processing unit finds the playback file according to the rule of obtaining the playback file in the playback rule from its internal memory, and with the playback file that finds regular transmission according to the transmission playback file in the playback rule, the playback file of transmission sends to corresponding user side through after the encoding and decoding conversion, realizes playback.
Second kind of embodiment of the present invention is:
In first kind of embodiment of the present invention, the rule of obtaining the playback file can be any rule that can find the playback file, comprise the address pointer of determining the playback document storage, promptly determine corresponding playback file institute's address stored pointer in the playback processing unit.
CPU sends to the playback processing unit with the address pointer of definite playback document storage and the rule of transmission playback file, the address that the address pointer of the playback document storage that playback processing unit basis is determined obtains the playback file, the playback file of depositing in its internal memory according to the address search of obtaining, with the regular transmission of playback file according to transmission playback file, the playback file of transmission sends to corresponding user side through after the encoding and decoding conversion, realizes playback.
The third embodiment of the present invention is:
In first kind of embodiment of the present invention and second kind of embodiment, the rule of transmission playback file comprises that the playback file plays the byte number that interval, playback file reproduction time, playback file need send at every turn.
It is the encoding and decoding packaging time length that encoding and decoding technique is adopted in playback at interval that the playback file is play; Playback file reproduction time is the temporal information that the playback unit need be play, and plays interval determination by the length and the playback file of the playback file that requires to play; The byte number that the playback file need send at every turn is the encoding and decoding byte number that adopts.
CPU will obtain the rule of playback file and playback file and play the byte number that interval, playback file reproduction time, playback file need send at every turn and send to the playback processing unit; Or
CPU plays the byte number that interval, playback file reproduction time, playback file need send at every turn with the address pointer of the playback document storage determined and playback file and sends to the playback processing unit.
The playback processing unit finds playback file in depositing according to the address pointer of the playback document storage that obtains the regular of playback file or determine within it.
The playback processing unit is according at regular time and quantity the corresponding byte number transmission of copy from the playback file of playback file reproduction time, playback file are play at interval and the each needs of playback file send byte number.
The playback file of transmission sends to user side through after the encoding and decoding conversion, realizes playback.
For example: in adopting the communication system of encoding and decoding technique G.711, its encoding and decoding packaging time length is 20ms, and each encoding and decoding byte number then is 160 bytes accordingly.
If user's playback demand is to need to play " please import your card number ", CPU determines to obtain the rule of " card number that please import you " and the rule of transmission playback file, and sends it to the playback processing unit; Or CPU determines the rule of the words storage addresses pointer and transmission playback file in playback processing unit internal memory, and sends it to the playback processing unit, and CPU promptly finishes the processing of this playback demand.
The rule of determining transmission playback file comprises: definite " please import your card number " the words need play for 3 seconds, the playback file is play and is spaced apart encoding and decoding packaging time length 20ms, the byte number that the playback file need send at every turn is 160 bytes of each encoding and decoding byte number, and then playback file reproduction time is 150 times.
The playback processing unit is according to the rule or the definite the words storage addresses pointer in playback processing unit internal memory that obtain " card number that please import you " in the playback rule, the address that obtains " card number that please import you " according to the address pointer of determining, in the internal memory of playback processing unit, find corresponding playback file according to the address that obtains, the rule of the concrete transmission playback file that the playback processing unit sends according to CPU, promptly in playback file reproduction time 150 times, play 160 bytes of byte number of interval 20ms and the each needs transmission of described playback file according to described playback file, regularly 160 bytes of copy and packing transmission from the playback file of every 20ms, the playback file of described transmission sends to corresponding user side through after the encoding and decoding conversion, realizes playback.
The 4th kind of embodiment of the present invention is:
In above-mentioned first kind, second kind, the third embodiment, the playback rule that CPU resolves according to the playback demand also comprises quiet reproduction time.For example after having play " woulding you please import card number ", need to wait for that the user imports corresponding information, at this moment need to play quiet data, the playback processing unit regularly transmits quiet data according to quiet reproduction time, encoding and decoding packaging time length and each encoding and decoding byte number, the quiet data of transmission sends to corresponding user side through after the encoding and decoding conversion, realizes playback.Quiet data can generate when needs are play quiet data, also can leave in the equipment when device initialize.
The 5th kind of embodiment of the present invention is:
In above-mentioned the 4th kind of embodiment, in the internal memory of playback processing unit, deposit one section quiet data.When needs are play when quiet, the playback processing unit is according to the regularly corresponding quiet data transmission of copy from the internal memory of playback processing unit of quiet reproduction time, encoding and decoding packaging time length and each encoding and decoding byte number.The quiet data of transmission sends to corresponding user side through after the encoding and decoding conversion, realizes playback.
For example: in adopting the communication system of encoding and decoding technique G.711, its encoding and decoding packaging time length is 20ms, and the encoding and decoding byte number then is 160 bytes accordingly.Therefore, when needs are play when quiet, the playback processing unit is according to quiet reproduction time, and every 160 bytes of quiet data copy and the transmission of 20ms from its internal memory, the quiet data of transmission sends to corresponding user side through after the encoding and decoding conversion, realizes playback.
The 6th kind of embodiment of the present invention is:
Above-mentioned first kind, second kind, the third, in the 4th kind, the 5th kind embodiment, the playback rule comprises that also the playback file needs the number of times of loop play.It is 2 times that the playback file that comprises in the loaded information in for example playback demand needs the number of times of loop play, and the playback file at most can only loop play twice so.
The 7th kind of embodiment of the present invention is:
In above-mentioned the 6th kind of embodiment, when CPU required to interrupt immediately the playback processing, the playback processing unit should interrupt playback immediately to be handled, and will interrupt playback processing notice CPU.
It is a kind of based on the device of realizing above-mentioned audio playback method that the present invention also provides, and as shown in Figure 1, Fig. 1 is a playback set of the present invention.Comprise: CPU (central processing control unit) 100, playback processing unit 110, encoding and decoding conversion unit 120.
Playback processing unit 110 is realized the function of playback processing unit.
The function of encoding and decoding conversion unit is realized in encoding and decoding conversion unit 120.
Playback processing unit 110 is peripheral cells of CPU100, and promptly playback processing unit 110 is the unit that are independent of outside the CPU100.
Deposit the playback file in the internal memory of playback processing unit 110, no longer deposit the playback file in the internal memory of CPU100, increased the utilized memory headroom of CPU100, thereby improved the processing power of CPU100.
CPU100: when receiving the playback demand, according to playback demand loaded information described playback demand is resolved to the playback rule that the address pointer, the playback file that comprise the playback document storage are play the number of times of interval, playback file reproduction time, the byte number of the each needs transmission of playback file, quiet reproduction time, playback file needs loop play, and the playback rule is sent to the playback processing unit 110 of described CPU100 periphery; When needs stop playback, send the order that stops the playback processing to playback processing unit 110.CPU100 only carries out the parsing of starting stage to the playback demand, give playback processing unit 110 with the task of copy and transmission playback file and finish, thereby the processing that has alleviated CPU100 is loaded.
Playback processing unit 110: find playback file in depositing according to the address pointer of the playback document storage in the playback rule that receives within it, the number of times of playing byte number, quiet reproduction time and the playback file needs loop play of interval, playback file reproduction time, the each needs transmission of playback file according to the playback file in the playback rule is transferred to encoding and decoding conversion processing unit 120 with playback file and quiet data; When playback processing unit 110 receives the order that the termination playback of CPU100 handles, stop playback immediately and handle, and will stop the message that playback handles and be sent to CPU100.
Encoding and decoding conversion unit 120: will send to user side after the playback file encoding and decoding conversion that receive.
Though described the present invention by embodiment, those of ordinary skills know, the present invention has many distortion and variation and do not break away from spirit of the present invention, wishes that appended claim comprises these distortion and variation.
Claims (10)
1. the method for a playback is characterized in that comprising:
When CPU (central processing control unit) receives the playback demand, described playback demand is resolved to playback rule and send to the playback processing unit of described CPU periphery according to described playback demand loaded information;
Described playback processing unit obtains and exports the playback file that it is deposited according to the playback rule;
The playback file of described output sends through after the encoding and decoding conversion.
2. the method for a kind of playback as claimed in claim 1 is characterized in that described playback rule comprises to obtain playback document convention and transmission playback document convention;
Described playback processing unit obtains the playback file according to obtaining the playback document convention;
Described playback processing unit is exported the described playback file that obtains that it is deposited according to transmission playback document convention.
3. the method for a kind of playback as claimed in claim 2 is characterized in that the described playback document convention of obtaining comprises the address pointer of determining the playback document storage, searches the playback file address according to described address pointer.
4. as the method for claim 2 or 3 described a kind of playbacks, it is characterized in that described transmission playback document convention comprises the byte number that playback file broadcast interval, playback file reproduction time, playback file need send at every turn.
5. the method for a kind of playback as claimed in claim 4 is characterized in that described playback processing unit exports its described playback file that obtains of depositing according to transmission playback document convention and comprise:
Described playback processing unit regularly copies the playback file of respective byte and outputs to the encoding and decoding conversion unit according to the byte number that described playback file is play at interval and the each needs of described playback file send from the playback file, play according to described playback file reproduction time.
6. the method for a kind of playback as claimed in claim 1 is characterized in that described playback rule also comprises quiet reproduction time.
7. the method for a kind of playback as claimed in claim 6 is characterized in that having deposited quiet data in the described playback processing unit internal memory;
When needs are play when quiet, described playback processing unit regularly copies quiet data and outputs to the encoding and decoding conversion unit according to the byte number that described quiet reproduction time, playback file are play at interval and the each needs of playback file send.
8. a kind of audio playback method as claimed in claim 1 is characterized in that described playback rule comprises that also the playback file needs the number of times of loop play;
Described playback file needs the number of times of loop play to be used to limit the number of times of described playback file repeat playing.
9. the method for a kind of playback as claimed in claim 1 is characterized in that when described CPU requires to interrupt playback, and described playback processing unit interrupts the playback processing and will interrupt the playback processing notifying described CPU immediately.
10. one kind based on realizing the playback set of audio playback method according to claim 1, it is characterized in that comprising:
Central processing control unit: when receiving the playback demand, described playback demand resolved to playback rule and send to the playback processing unit of described central processing control unit periphery;
Playback processing unit: obtain and export its playback file of depositing to the encoding and decoding conversion unit according to the described playback rule that receives;
Encoding and decoding conversion unit: will send after the described playback file encoding and decoding conversion that receives.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 03140561 CN1269021C (en) | 2003-05-29 | 2003-05-29 | Playback method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 03140561 CN1269021C (en) | 2003-05-29 | 2003-05-29 | Playback method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1553309A true CN1553309A (en) | 2004-12-08 |
CN1269021C CN1269021C (en) | 2006-08-09 |
Family
ID=34323824
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 03140561 Expired - Fee Related CN1269021C (en) | 2003-05-29 | 2003-05-29 | Playback method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN1269021C (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105094978A (en) * | 2014-05-15 | 2015-11-25 | 研祥智能科技股份有限公司 | Speech processing device and method |
-
2003
- 2003-05-29 CN CN 03140561 patent/CN1269021C/en not_active Expired - Fee Related
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105094978A (en) * | 2014-05-15 | 2015-11-25 | 研祥智能科技股份有限公司 | Speech processing device and method |
Also Published As
Publication number | Publication date |
---|---|
CN1269021C (en) | 2006-08-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN1257468C (en) | On-line music data providing system VIA bluetooth headset | |
JP2004500744A (en) | Network telephone apparatus and system for internet telephone | |
CN1202074A (en) | Telephone system integrating public switched telephone network, packet-switched network and call answering system | |
CN1295752A (en) | Telephone system having callback capability and method for connecting recipient of message to caller | |
CN1758687A (en) | Method for broadcasting personal ringing on called terminal | |
CN103152316A (en) | Achieving method, device and system for interactive voice response (IVR) | |
CN1214604C (en) | VoDSL integrated connecting apparatus and control method thereof | |
CN1578362A (en) | System to provide sounds and additional information related to the sounds | |
CN1269021C (en) | Playback method and device | |
CN1615663A (en) | Method for setting up theme pictures and ringing tones of a mobile telecommunication terminal | |
CN1543229A (en) | Exchanger | |
WO2008067722A1 (en) | A method, telephone system and telephone terminal for calling session | |
CN1194517C (en) | Sound-bag communication system, network telephone terminal and specific sound-bag treatment method | |
CN1345168A (en) | Interactive silent answer of mobile telephone | |
CN1933515A (en) | Telephone exchange apparatus and incoming call control method for telephone exchange apparatus | |
CN1735110A (en) | Method for joining background voice in call and its system | |
CN1878205A (en) | Information transmission method and system and color ring server and terminal | |
WO2011032396A1 (en) | Method and device for realizing interruption-free service | |
CN1882113A (en) | Method for realizing media gateway control protocol playback | |
CN1233142C (en) | Short message inquiry method for remaining sum of intelligent network subscriber | |
CN1671165A (en) | Modem sharing device in a PDA phone and its method | |
KR100575636B1 (en) | Voice message service method | |
CN1523913A (en) | IP telephone set for mobile phone and mobile phone thereof, method for realizing mobile IP telephone | |
CN1905597A (en) | Method and system for providing ringring tone service to calling party | |
CN1181640C (en) | Encryption method and system for data transmission system of dual-tone signals |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20060809 Termination date: 20150529 |
|
EXPY | Termination of patent right or utility model |