CN1269021C - Playback method and device - Google Patents

Playback method and device Download PDF

Info

Publication number
CN1269021C
CN1269021C CN 03140561 CN03140561A CN1269021C CN 1269021 C CN1269021 C CN 1269021C CN 03140561 CN03140561 CN 03140561 CN 03140561 A CN03140561 A CN 03140561A CN 1269021 C CN1269021 C CN 1269021C
Authority
CN
China
Prior art keywords
playback
file
processing unit
cpu
encoding
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
CN 03140561
Other languages
Chinese (zh)
Other versions
CN1553309A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN 03140561 priority Critical patent/CN1269021C/en
Publication of CN1553309A publication Critical patent/CN1553309A/en
Application granted granted Critical
Publication of CN1269021C publication Critical patent/CN1269021C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Abstract

The present invention provides a playback method which comprises the steps that the playback requirement is analyzed into a playback rule which is sent to a playback processing unit at the periphery of a CPU according to the load bearing information of the playback requirement when the CPU (central processing control unit) receives a playback requirement; the playback processing unit acquires and outputs a playback document stored by the playback processing unit according to the playback rule; the output playback document is sent after encoded, decoded and converted. The present invention also provides a playback device used for realizing the playback method of the present invention; the playback device comprises the central processing control unit, the playback processing unit and an encoding and decoding conversion unit. Owing to the playback processing unit of the present invention, which is arranged at the periphery of the CPU, namely the playback processing unit independent of the CPU, the playback rule is designed, and the playback document is stored in a memory of the playback processing unit; therefore, the CPU only proceeds with the initial-stage treatment of a playback service, namely the analysis work of the playback requirement. Consequently, when communication equipment supports the equal number of users, the purpose of reducing the cost of the communication equipment is realized.

Description

A kind of method of playback and device
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, according to described playback demand loaded information described playback demand is resolved to playback modes information, and send to the playback processing unit of described CPU periphery;
The playback modes information that described playback processing unit comes according to CPU transmission is obtained the playback file from himself canned data, and output;
The playback file of described output sends through after the encoding and decoding conversion.
Described playback modes information comprises obtains playback file mode and transmission playback file mode;
The playback file mode information of obtaining that described playback processing unit comes according to CPU transmission is obtained the playback file from himself canned data;
Described playback processing unit is exported the described playback file that obtains that it is deposited according to transmission playback file mode.
The described playback file mode that obtains comprises the address pointer of determining the playback document storage, searches the playback file address according to described address pointer.
Described transmission playback file mode 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 file mode and is 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 modes information 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 modes information 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.
It is a kind of based on realizing the playback set of audio playback method according to claim 1 that the present invention also provides, comprise: central processing control unit and encoding and decoding conversion unit, described playback set also comprises: be independent of the playback processing unit of central processing control unit, central processing control unit is connected by the playback processing unit with the encoding and decoding conversion unit;
Central processing control unit: when receiving the playback demand, described playback demand resolved to playback modes information and send to the playback processing unit of described central processing control unit periphery;
The playback processing unit: the playback modes information of coming according to central processing control unit transmission is obtained the playback file from himself canned data, and with the playback file transfer to the encoding and decoding conversion unit;
Encoding and decoding conversion unit: will send after the described playback file encoding and decoding conversion that receives.
The present invention by design playback modes information, 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 playback modes information according to playback demand loaded information, and the playback modes information 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 modes information of playback, to the playback processing unit, CPU promptly finishes the playback task of this playback demand with the playback modes information transmission.Copy transmission to the playback file is finished by the playback processing unit, the playback processing unit obtain the playback file according to playback modes information and according to playback modes information 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 playback modes information, and promptly be independent of playback processing unit outside the CPU what playback modes information sent to described CPU periphery.
Playback modes information comprises the mode of obtaining playback file mode and transmission playback file.
The playback processing unit finds the playback file according to the mode of obtaining the playback file in the playback modes information from its internal memory, and the playback file that finds transmitted according to the mode of the transmission playback file in the playback modes information, 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 mode of obtaining the playback file can be any mode 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 mode 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, the playback file is transmitted according to the mode of 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 mode 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 mode 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 mode of obtaining the playback file or definite playback document storage 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 mode of " card number that please import you " and the mode of transmission playback file, and sends it to the playback processing unit; Or CPU determines the mode 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 mode 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 storage addresses pointer in playback processing unit internal memory according to the mode of obtaining " card number that please import you " in the playback modes information or definite the words, 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 mode 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 modes information 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, playback modes information 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 modes information 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 playback modes information 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 modes information 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 modes information 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, according to described playback demand loaded information described playback demand is resolved to playback modes information, and send to the playback processing unit of described CPU periphery;
The playback modes information that described playback processing unit comes according to CPU transmission is obtained the playback file from himself canned data, and output;
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 modes information comprises to obtain playback file mode and transmission playback file mode;
The playback file mode information of obtaining that described playback processing unit comes according to CPU transmission is obtained the playback file from himself canned data;
Described playback processing unit is exported the described playback file that obtains that it is deposited according to transmission playback file mode.
3. the method for a kind of playback as claimed in claim 2 is characterized in that the described playback file mode that obtains 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 file mode 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 file mode 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 4 is characterized in that described playback modes information 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 modes information 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, comprise: central processing control unit and encoding and decoding conversion unit, it is characterized in that, described playback set also comprises: be independent of the playback processing unit of central processing control unit, central processing control unit is connected by the playback processing unit with the encoding and decoding conversion unit;
Central processing control unit: when receiving the playback demand, described playback demand resolved to playback modes information and send to the playback processing unit of described central processing control unit periphery;
The playback processing unit: the playback modes information of coming according to central processing control unit transmission is obtained the playback file from himself canned data, and with the playback file transfer to the encoding and decoding conversion unit;
Encoding and decoding conversion unit: will send after the described playback file encoding and decoding conversion that receives.
CN 03140561 2003-05-29 2003-05-29 Playback method and device Expired - Fee Related CN1269021C (en)

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 CN1553309A (en) 2004-12-08
CN1269021C true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105094978B (en) * 2014-05-15 2020-02-28 研祥智能科技股份有限公司 Voice processing device and method

Also Published As

Publication number Publication date
CN1553309A (en) 2004-12-08

Similar Documents

Publication Publication Date Title
CN1104825C (en) Method and apparatus of providing audio feedback over a digital channel
CN1832518A (en) System and method for providing multi-media opera browser
CN1578503A (en) Apparatus and method for processing a multimedia audio signal during a voice call
CN1652561A (en) Call processing system and method in a voice and data integrated switching 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
WO2011137786A1 (en) Method, system and media resource server for playing video file
CN1859480A (en) Method and system for receiving and setting multiple color ringing tone
CN1649408A (en) IP video terminal and control method thereof
CN1617618A (en) System and method for providing background music
CN1214604C (en) VoDSL integrated connecting apparatus and control method thereof
CN1581997A (en) Method for realizing circuit domain multimedia business backspace to voice business
CN1269021C (en) Playback method and device
CN1292612C (en) Method for setting up theme pictures and ringing tones of a mobile telecommunication terminal
CN1787569A (en) Method for auto recording incoming telephone signal at user turminal
JP2004312559A (en) Communication system, call control apparatus, presence information detection apparatus, incoming destination change method, incoming destination change program and program recording medium
CN1859621A (en) System and method for transmitting service short message
CN1805342A (en) Method for obtaining IP address of multimedia device and multimedia device
CN1345168A (en) Interactive silent answer of mobile telephone
CN1612620A (en) System and method for changing character message into language message
CN1194517C (en) Sound-bag communication system, network telephone terminal and specific sound-bag treatment method
CN1233142C (en) Short message inquiry method for remaining sum of intelligent network subscriber
CN1523913A (en) IP telephone set for mobile phone and mobile phone thereof, method for realizing mobile IP telephone
CN1882113A (en) Method for realizing media gateway control protocol playback
CN1809180A (en) Content adaptation data service information processing method

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