CN102487422A - Voice prompted file processing method and device - Google Patents

Voice prompted file processing method and device Download PDF

Info

Publication number
CN102487422A
CN102487422A CN2010105701086A CN201010570108A CN102487422A CN 102487422 A CN102487422 A CN 102487422A CN 2010105701086 A CN2010105701086 A CN 2010105701086A CN 201010570108 A CN201010570108 A CN 201010570108A CN 102487422 A CN102487422 A CN 102487422A
Authority
CN
China
Prior art keywords
file
voice suggestion
voice
files
dynamic load
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
Application number
CN2010105701086A
Other languages
Chinese (zh)
Other versions
CN102487422B (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.)
Beijing Sanxi Electronic Technology Co ltd
Original Assignee
BEIJING SANXI ELECTRONIC TECHNOLOGY DEVELOPMENT 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 BEIJING SANXI ELECTRONIC TECHNOLOGY DEVELOPMENT CO LTD filed Critical BEIJING SANXI ELECTRONIC TECHNOLOGY DEVELOPMENT CO LTD
Priority to CN201010570108.6A priority Critical patent/CN102487422B/en
Publication of CN102487422A publication Critical patent/CN102487422A/en
Application granted granted Critical
Publication of CN102487422B publication Critical patent/CN102487422B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Telephonic Communication Services (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a voice prompted file processing method and a voice prompted file processing device. The method comprises the following steps of: dividing a plurality of voice prompted files into dynamic load files and static load files; storing the static load files in an internal memory and storing the dynamic load files in an appointed storage except the internal memory; and when the voice prompted files are required to be played, searching and playing the voice prompted files required to be called in the internal memory, if the voice prompted files required to be called do not exist in the internal memory, searching and playing the voice prompted files required to be called from the appointed storage. By the method and the device, when the number of the voice prompted files is increased, the memory is not required to be upgraded and the voice prompted files with low quality are not required to be stored, so hardware resources are saved, the hardware cost is reduced, and the experience of a user is improved.

Description

The processing method of voice suggestion file and device
Technical field
The present invention relates to the communications field, relate in particular to a kind of processing method and device of voice suggestion file.
Background technology
Embedded system is application-centered, is computer system based with the computer technology, as the part of device or equipment.Embedded system adapts to the requirement of application system to function, reliability, cost, volume, power consumption.Usually, embedded system is that a control program is stored in the flush bonding processor control board among the ROM.In fact, all have the equipment of digital interface, like communication system, wrist-watch, microwave oven, video tape recorder, automobile etc., all use embedded system.
Because embedded system has strict demand to function, reliability, cost, volume, power consumption etc., so its hardware resource many times only is just enough.Because user's the needs or the increase of value-added service often need increase new voice suggestion file, and memory source is valuable and very limited often in embedded telephone system, so in this case; Can only be through upgrading hardware (internal memory) or selecting for use the voice suggestion file of low tonequality to preserve; Thereby make system hold the voice document of greater number, upgrade hardware mode, will increase the hardware cost of system if adopt; And if the voice suggestion file of tonequality is hanged down in preservation; The prompt tone quality of broadcast is descended, even the user can't not heard, influence user experience.
Can't take into account the problem of hardware cost and user experience to the preservation of voice suggestion file in the correlation technique, not propose effective solution at present as yet.
Summary of the invention
Can't take into account the problem of hardware cost and user experience to the preservation of voice suggestion file in the correlation technique, the present invention proposes a kind of processing method and device of voice suggestion file, can the economize on hardware resource, reduce hardware cost, improve user experience.
Technical scheme of the present invention is achieved in that
A kind of processing method of voice suggestion file comprises:
A plurality of voice suggestion files are divided into dynamic load file and static load document;
Said static load document is stored in the internal memory, and with in the designated memory of said dynamic load file storage outside said internal memory;
Under the situation that needs the playing voice prompting file; In said internal memory, search and play the voice suggestion file that to transfer; If the voice suggestion file that said needs are transferred is not present in the said internal memory, then from said designated memory, search and play the voice suggestion file that said needs are transferred.
Wherein, a plurality of voice suggestion files are divided into the dynamic load file and static load document comprises:
Broadcast frequency according to the voice suggestion file is divided said a plurality of voice suggestion files with broadcast priority.
Preferably, with comprising in the designated memory of said dynamic load file storage outside said internal memory:
The same section that two or more dynamic load files are had jointly extracts; And the said same section of preservation extraction and the special part of said dynamic load file; Wherein, said special part is meant the part that exists only in a dynamic load file.
Wherein, from said designated memory, searching and play the voice suggestion file that said needs transfer comprises:
The voice suggestion file of playing according to said needs extracts corresponding same section and special part and splices from said designated memory, and plays the voice suggestion file that obtains after splicing.
Preferably, said designated memory be following one of at least: hard disk, flash memories.
A kind of processing unit of voice suggestion file comprises:
Divide processing module; Be used for a plurality of voice suggestion files are divided into dynamic load file and static load document; And be used for said static load document is stored in internal memory, and with in the designated memory of said dynamic load file storage outside said internal memory;
Playing module; Be used under the situation that needs the playing voice prompting file; In said internal memory, search and play the voice suggestion file that said needs are transferred; If the voice suggestion file that said needs are transferred is not present in the said internal memory, then from said designated memory, search and play the voice suggestion file that said needs are transferred.
Wherein, said division processing module specifically is used for said a plurality of voice suggestion files being divided with broadcast priority according to the broadcast frequency of voice suggestion file.
Wherein, Said division processing module specifically is used for the same section that said dynamic load file has is jointly extracted; And the said same section of preservation extraction and the special part of said dynamic load file; Wherein, said same section is meant the part that two or more dynamic load files have jointly, and said special part is meant the part that exists only in a dynamic load file.
In addition, the voice suggestion file that said playing module specifically is used for playing according to said needs extracts corresponding same section and special part and splices from said designated memory, and plays the voice suggestion file that obtains after the splicing.
Preferably, said designated memory be following one of at least: hard disk, flash memories.
By means of technique scheme of the present invention, can utilize other designated memory outside internal memory and the internal memory to preserve the voice suggestion file together,, needs then from internal memory or designated memory, transfer relevant voice prompting file when playing; Because the dilatation of designated memory is comparatively convenient, cost is also lower, therefore can store more substantial file; Like this, when the voice suggestion quantity of documents is exempted from increase, the internal memory of neither need upgrading; Need not preserve low-quality voice suggestion file yet; Reach the economize on hardware resource, reduced hardware cost, improved the purpose of user experience.
Description of drawings
Fig. 1 is the flow chart according to the processing method of the voice suggestion file of the embodiment of the invention;
Fig. 2 is the structured flowchart according to the processing unit of the voice suggestion file of the embodiment of the invention.
Embodiment
To combine accompanying drawing below, describe embodiments of the invention in detail.
Fig. 1 is the flow chart according to the meeting method for building up of the embodiment of the invention, and is as shown in Figure 1, and this method comprises:
Step S101 is divided into dynamic load file and static load document with a plurality of voice suggestion files;
Step S 103, static load document is stored in the internal memory, and with in the designated memory of dynamic load file storage outside internal memory;
Step S105; Under the situation that needs the playing voice prompting file; In internal memory, search and play the voice suggestion file that need transfer, the voice suggestion file of transferring if desired is not present in the internal memory, then from designated memory, searches and play the voice suggestion file that need transfer.
By means of above-mentioned processing, can utilize other designated memory outside internal memory and the internal memory to preserve the voice suggestion file together,, needs then from internal memory or designated memory, transfer relevant voice prompting file when playing; Because the dilatation of designated memory is comparatively convenient; Cost is also lower, therefore can store more substantial file, like this; When the voice suggestion quantity of documents is exempted from increase; The internal memory of neither need upgrading need not preserved low-quality voice suggestion file yet, has reached the economize on hardware resource, reduces hardware cost, has improved the purpose of user experience.
In step S101, the operation that a plurality of voice suggestion files are divided into dynamic load file and static load document specifically comprises: broadcast frequency and broadcast priority according to the voice suggestion file are divided a plurality of voice suggestion files.For example, when the playing voice prompting sound, example assumes can be play according to a graded; At first need play article one voice: " like need A service, please by 1 ", play the second voice afterwards: " serving like need B; " please by 2, play the 3rd voice afterwards: " like need C service, please by 3 "; Play the 4th voice " like the need manual service, please by 0 " then, play the 5th voice at last and " serve like need D; ",, need the number of users of consulting or order D service less because D serves normally the comparatively business of unexpected winner please by 8; Therefore, can the 5th pairing voice suggestion file of voice be kept in the designated memory, the pairing voice suggestion file of preceding four voice then is kept in the internal memory.
In step S103; Operation in the designated memory of dynamic load file storage outside internal memory is comprised: the same section that the dynamic load file is had jointly extracts; And the same section of preservation extraction and the special part of dynamic load file; Wherein, Same section is meant the part that two or more dynamic load files have jointly, and special part is meant the part that exists only in a dynamic load file, designated memory can for following one of at least: hard disk, flash memories.
For example, suppose that the voice that need be kept in the designated memory are following:
(voice 1) are like need D service, please by 8;
(voice 2) are seeked advice from other business please by 9 like need.
When preserving the pairing voice suggestion file of above-mentioned two voice; Can confirm that two voice all comprise " like need " and " please by ", at this moment, can extract and preserve " like need " and " please by " pairing voice suggestion file; That is, preserve the same section of voice suggestion file; And " D service " in above-mentioned (voice 1) and " 8 " do not appear in (voice 2), are the special parts of (voice 1) therefore, in like manner; " seek advice from other business " and " 9 " are the special parts of (voice 2); Like this, when preserving, the actual voice suggestion file of preserving is " like need ", " please by ", " D service ", " 8 ", " seeking advice from other business " and " 9 "; Only preserved once for " like need " and " please by "; Therefore, can further reduce to be kept at the size of designated memory file, improve utilance the designated memory resource through this preserving type.
In step S105; The operation of from designated memory, searching and playing the voice suggestion file that need transfer comprises: the voice suggestion file of playing as required extracts corresponding same section and special part and splices from designated memory, and plays the voice suggestion file that obtains after the splicing.
Based on the above scene of enumerating; When playing; Play if desired (voice 1), then need from designated memory, search " like need ", " please by ", " D service " and " 8 " and make up as follows: " like need "+" D service "+" please by "+" 8 " according to its order in (voice 1); Afterwards, can play voice suggestion file after the combination.
When embedded telephone system realizes the dynamic load of voice suggestion file, voice suggestion file that has loaded and the voice suggestion file that needs to play are scanned to carry out the dynamic load of voice suggestion file at any time according to demand by speech ciphering equipment.
Write fashionablely carrying out the voice suggestion file, can the suggestion voice that need dynamic load be compiled the voice suggestion file, and with voice suggestion file writing system flash memory (flash memories, that is, above-mentioned designated memory).
Write fashionable internally depositing into lang sound prompting file; If the big or small summation of all voice suggestion files surpasses the size of the internal memory that can be used for storaged voice prompting file; Then by the descending write memory of file size, purpose is to calculate minimum ability to load several files to internal memory; And if the number n of the voice suggestion file of maximum write memories is less than the quantity m of the simultaneously treated speech channel of embedded telephone system ability; Then need further each voice document to be divided into equal suitable segment; And write down the incidence relation between each segment; Get x segment write memory, x must be not less than m.
After writing the voice suggestion file, can set up two tabulations, i.e. L1 and L2, tabulation L1 is used to store the reference number of a document of write memory, and tabulation L2 then is used for storing the current reference number of a document that is stored in designated memory.
, needs at first travel through L1 when playing voice document; If exist then number of notifications word signal processor (Digital Signal Processing; Abbreviate DSP as) read corresponding file and play; If be not present in L1, then need travel through L2 and obtain the current voice suggestion reference number of a document that does not have use, delete the unused file of write memory according to the big or small sizes of voice document that current needs are play with those unused files.The voice suggestion file write memory that then will play also upgrades tabulation L1 and L2, notifies DSP to read corresponding file and broadcast at last.
Fig. 2 is the structured flowchart according to the processing unit of the voice suggestion file of the embodiment of the invention, and this device can be applied in the embedded system, and is as shown in Figure 2, and the processing unit of this voice suggestion file comprises:
Divide processing module 1; Be used for a plurality of voice suggestion files are divided into dynamic load file and static load document; And be used for static load document is stored in internal memory; And with in the designated memory of dynamic load file storage outside internal memory, wherein, designated memory can for following one of at least: hard disk, flash memories;
Playing module 2; Be used under the situation that needs the playing voice prompting file; In internal memory, search and play the voice suggestion file that need transfer, the voice suggestion file of transferring if desired is not present in the internal memory, then from designated memory, searches and play the voice suggestion file that need transfer.
In addition, dividing processing module 1 specifically is used for a plurality of voice suggestion files being divided with broadcast priority according to the broadcast frequency of voice suggestion file; Dividing processing module 1 also specifically is used for the same section that the dynamic load file has is jointly extracted; And the same section of preservation extraction and the special part of dynamic load file; Wherein, Same section is meant the part that two or more dynamic load files have jointly, and special part is meant the part that exists only in a dynamic load file.
The voice suggestion file that playing module 2 specifically is used for playing as required extracts corresponding same section and special part and splices from designated memory, and plays the voice suggestion file that obtains after the splicing.
Fig. 2 is the device corresponding with previous methods, and the course of work of device and operation principle are described in detail in the method part, repeat no more at this, and the description of appropriate section gets final product in the reference method.
In sum, by means of technique scheme of the present invention, can utilize other designated memory outside internal memory and the internal memory to preserve the voice suggestion file together; When needs are play, then from internal memory or designated memory, transfer relevant voice prompting file, because the dilatation of designated memory is comparatively convenient, cost is also lower; Therefore can store more substantial file; Like this, when the voice suggestion quantity of documents is exempted from increase, the internal memory of neither need upgrading; Need not preserve low-quality voice suggestion file yet, reach the economize on hardware resource, reduce hardware cost, improved the purpose of user experience; Through file is carried out fragmented storage, can further save the storage resources of designated memory.
The above is merely preferred embodiment of the present invention, and is in order to restriction the present invention, not all within spirit of the present invention and principle, any modification of being done, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. the processing method of a voice suggestion file is characterized in that, comprising:
A plurality of voice suggestion files are divided into dynamic load file and static load document;
Said static load document is stored in the internal memory, and with in the designated memory of said dynamic load file storage outside said internal memory;
Under the situation that needs the playing voice prompting file; In said internal memory, search and play the voice suggestion file that to transfer; If the voice suggestion file that said needs are transferred is not present in the said internal memory, then from said designated memory, search and play the voice suggestion file that said needs are transferred.
2. processing method according to claim 1 is characterized in that, a plurality of voice suggestion files are divided into the dynamic load file and static load document comprises:
Broadcast frequency according to the voice suggestion file is divided said a plurality of voice suggestion files with broadcast priority.
3. processing method according to claim 1 is characterized in that, with comprising in the designated memory of said dynamic load file storage outside said internal memory:
The same section that two or more dynamic load files are had jointly extracts; And the said same section of preservation extraction and the special part of said dynamic load file; Wherein, said special part is meant the part that exists only in a dynamic load file.
4. processing method according to claim 3 is characterized in that, from said designated memory, searches and plays the voice suggestion file that said needs transfer and comprise:
The voice suggestion file of playing according to said needs extracts corresponding same section and special part and splices from said designated memory, and plays the voice suggestion file that obtains after splicing.
5. according to each described processing method in the claim 1 to 4, it is characterized in that, said designated memory be following one of at least: hard disk, flash memories.
6. the processing unit of a voice suggestion file is characterized in that, comprising:
Divide processing module; Be used for a plurality of voice suggestion files are divided into dynamic load file and static load document; And be used for said static load document is stored in internal memory, and with in the designated memory of said dynamic load file storage outside said internal memory;
Playing module; Be used under the situation that needs the playing voice prompting file; In said internal memory, search and play the voice suggestion file that said needs are transferred; If the voice suggestion file that said needs are transferred is not present in the said internal memory, then from said designated memory, search and play the voice suggestion file that said needs are transferred.
7. processing unit according to claim 6 is characterized in that, said division processing module specifically is used for said a plurality of voice suggestion files being divided with broadcast priority according to the broadcast frequency of voice suggestion file.
8. processing unit according to claim 6; It is characterized in that; Said division processing module specifically is used for the same section that said dynamic load file has is jointly extracted, and preserves the said same section of extraction and the special part of said dynamic load file, wherein; Said same section is meant the part that two or more dynamic load files have jointly, and said special part is meant the part that exists only in a dynamic load file.
9. processing unit according to claim 8; It is characterized in that; The voice suggestion file that said playing module specifically is used for playing according to said needs extracts corresponding same section and special part and splices from said designated memory, and plays the voice suggestion file that obtains after the splicing.
10. according to each described processing unit in the claim 6 to 9, it is characterized in that, said designated memory be following one of at least: hard disk, flash memories.
CN201010570108.6A 2010-12-02 2010-12-02 Voice prompted file processing method and device Expired - Fee Related CN102487422B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010570108.6A CN102487422B (en) 2010-12-02 2010-12-02 Voice prompted file processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010570108.6A CN102487422B (en) 2010-12-02 2010-12-02 Voice prompted file processing method and device

Publications (2)

Publication Number Publication Date
CN102487422A true CN102487422A (en) 2012-06-06
CN102487422B CN102487422B (en) 2015-04-29

Family

ID=46152875

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010570108.6A Expired - Fee Related CN102487422B (en) 2010-12-02 2010-12-02 Voice prompted file processing method and device

Country Status (1)

Country Link
CN (1) CN102487422B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102984584A (en) * 2012-12-13 2013-03-20 青岛海信宽带多媒体技术有限公司 Television signal receiving equipment and software upgrading method with voice prompt function
CN104346189A (en) * 2013-08-08 2015-02-11 腾讯科技(深圳)有限公司 Voice playing method and equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005266010A (en) * 2004-03-16 2005-09-29 Advanced Telecommunication Research Institute International Piece connecting type voice synthesizer and its method
CN101131671A (en) * 2006-08-23 2008-02-27 Lg电子株式会社 Controlling access to non-volatile memory
CN101281542A (en) * 2008-05-09 2008-10-08 华为技术有限公司 Method and device for storing file
US20090150593A1 (en) * 2007-12-11 2009-06-11 Microsoft Corporation Dynamtic storage hierarachy management
CN101777028A (en) * 2010-01-21 2010-07-14 北京北大众志微系统科技有限责任公司 Realization method and device of mixed secondary storage system
CN101808035A (en) * 2010-03-24 2010-08-18 成都市华为赛门铁克科技有限公司 Session record optimization method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005266010A (en) * 2004-03-16 2005-09-29 Advanced Telecommunication Research Institute International Piece connecting type voice synthesizer and its method
CN101131671A (en) * 2006-08-23 2008-02-27 Lg电子株式会社 Controlling access to non-volatile memory
US20090150593A1 (en) * 2007-12-11 2009-06-11 Microsoft Corporation Dynamtic storage hierarachy management
CN101281542A (en) * 2008-05-09 2008-10-08 华为技术有限公司 Method and device for storing file
CN101777028A (en) * 2010-01-21 2010-07-14 北京北大众志微系统科技有限责任公司 Realization method and device of mixed secondary storage system
CN101808035A (en) * 2010-03-24 2010-08-18 成都市华为赛门铁克科技有限公司 Session record optimization method and device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102984584A (en) * 2012-12-13 2013-03-20 青岛海信宽带多媒体技术有限公司 Television signal receiving equipment and software upgrading method with voice prompt function
CN104346189A (en) * 2013-08-08 2015-02-11 腾讯科技(深圳)有限公司 Voice playing method and equipment
WO2015018227A1 (en) * 2013-08-08 2015-02-12 Tencent Technology (Shenzhen) Company Limited Sound playing method and device thereof

Also Published As

Publication number Publication date
CN102487422B (en) 2015-04-29

Similar Documents

Publication Publication Date Title
CN102981873B (en) A kind of display packing waiting interface and device
US8131548B2 (en) Dynamically adjusting speech grammar weights based on usage
US10334118B2 (en) Method and system for providing video multimedia ringtone
EP1969598A1 (en) Low storage portable media player
CN107798143A (en) A kind of information search method, device, terminal and readable storage medium storing program for executing
KR100797043B1 (en) Method and system for providing ring back tone played at a point selected by user
CN107801095A (en) A kind of video/audio decoding method and terminal device
CN105068798A (en) System and method for controlling volume and sound effect of game on the basis of Fmod
CN107145327A (en) A kind of audio frequency playing method, device and smart machine
CN102027451B (en) Wireless communication device having dynamically escalated media transmission handling
CN104376859B (en) The method and online music player of a kind of playlist adjust automatically
CN105607901A (en) System memory optimization method and apparatus as well as terminal device
CN101465146B (en) Method and equipment for playing media file
CN100469081C (en) Method for controlling play of mobile phone bell
MX2007015344A (en) Processor controlled device with different operation modes.
CN107832034A (en) Audio play control method and device
CN102487422A (en) Voice prompted file processing method and device
US9066135B2 (en) System and method for generating a second screen experience using video subtitle data
CN107741840A (en) Music processing method, equipment and computer-readable recording medium
US9967223B2 (en) System for push service notification based on user history
CN105007522A (en) Method and system for managing playing scene, playing terminal and control terminal
EP1864232A2 (en) Method of synchronization in a mobile system
CN107233734A (en) A kind of method and apparatus for controlling game application to be played with other application sound
CN105957542A (en) Audio file editing method and audio file editing device
KR102049838B1 (en) Apparatus and method for transferring emotion based on vibrotactile

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
C56 Change in the name or address of the patentee
CP01 Change in the name or title of a patent holder

Address after: 100015 Jiuxianqiao North Road, Beijing, No. B, No., No. 7

Patentee after: Beijing Sanxi Electronic Technology Co.,Ltd.

Address before: 100015 Jiuxianqiao North Road, Beijing, No. B, No., No. 7

Patentee before: Beijing Sanxi Electronic Technology Development Co.,Ltd.

CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20150429

CF01 Termination of patent right due to non-payment of annual fee