CN102194453A - Method for realizing voice broadcast based on soft core of TD (time division) platform - Google Patents

Method for realizing voice broadcast based on soft core of TD (time division) platform Download PDF

Info

Publication number
CN102194453A
CN102194453A CN2010101175433A CN201010117543A CN102194453A CN 102194453 A CN102194453 A CN 102194453A CN 2010101175433 A CN2010101175433 A CN 2010101175433A CN 201010117543 A CN201010117543 A CN 201010117543A CN 102194453 A CN102194453 A CN 102194453A
Authority
CN
China
Prior art keywords
voice
execution
platform
broadcast
time
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN2010101175433A
Other languages
Chinese (zh)
Inventor
刘敬毅
郑添来
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xiamen Stelcom Information & Technology Co Ltd
Original Assignee
Xiamen Stelcom Information & Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xiamen Stelcom Information & Technology Co Ltd filed Critical Xiamen Stelcom Information & Technology Co Ltd
Priority to CN2010101175433A priority Critical patent/CN102194453A/en
Publication of CN102194453A publication Critical patent/CN102194453A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Telephonic Communication Services (AREA)

Abstract

The invention discloses a method for realizing voice broadcast based on a soft core of a TD (time division) platform, which comprises the following steps: step 10) introducing original voice data to be broadcasted; step 20) sending a voice synthetic signal, starting a voice synthesis thread, and starting voice data synthesis; step 30) inserting the synthesized voice data into a broadcast queue; step 31) synthesizing the voice data; step 32) sending a blockage signal when the amount of the synthesized voice data achieves a certain cache upper limit, and activating a blockage thread; step 40) starting the voice broadcast soft core of the TD platform, and starting to play voice; step 41) judging the residual amount of the voice data in the broadcast queue, implementing the step 42) when the residual amount of the voice data in the broadcast queue achieves a certain cache lower limit, otherwise, continuing implementing the step 40); step 42) sending a blockage stop signal, stopping the blockage thread, starting the voice synthesis thread, continuing performing the voice data synthesis, and jumping to the step 20) for implementation; and step 50) terminating the voice broadcast.

Description

A kind of method that realizes voice broadcast based on the soft kernel of TD platform
Technical field
The present invention relates to a kind of method that realizes voice broadcast based on the soft kernel of TD platform.
Background technology
Since the communicating terminal voice broadcast function is realized, bring great convenience to people's life, as: voice broadcasting of short messages, calling voice report etc.But because the method that the existing techniques in realizing voice broadcast is handled, the general employing " hard kernel " encoding and decoding technique, soon speech data will be synthetic directly is embedded in the hardware with the voice broadcast program, this method not only takies a large amount of internal memories, and increased the cost of end product, changed the circuit of end product, also be difficult for later maintenance, in addition, if foundries changes its technological parameter or built-in function, may operate as normal along with the hard kernel of the change of technology, this has just produced certain risk.
Summary of the invention
The invention provides and a kind ofly realize the method for voice broadcast based on the soft kernel of TD platform, having overcome the existing voice broadcast implementation method of background technology increases the hardware cost and the deficiency of easy care not.
A kind ofly realize the method for voice broadcast based on the soft kernel of TD platform, it is characterized in that: it comprises:
Step 10 is imported the primary voice data that will report into;
Step 20 sends synthesized voice signal, starts the phonetic synthesis thread, and the beginning speech data is synthetic;
Step 30 is inserted the broadcast formation with synthetic data;
Step 40, the soft kernel of speech play of startup TD platform begins to play voice;
Step 50 finishes speech play;
In one preferred embodiment, this step 30 also comprises:
Step 31, the synthetic speech data;
Step 32 is prescribed a time limit when synthetic amount of voice data reaches on certain buffer memory, sends block signal, activates and blocks thread;
In one preferred embodiment, this step 40 also comprises:
Step 41 is judged the speech data surplus of playing in the formation, when reaching under certain buffer memory, the speech data surplus of playing formation prescribes a time limit, and execution in step 42, otherwise continue execution in step 40;
Step 42, transmission stops block signal, stops to block thread, starts the phonetic synthesis thread, and it is synthetic to proceed speech data, changes and jumps execution in step 20;
In one preferred embodiment, described voice broadcast can carry out repeatedly broadcasting by the parameter setting, time-delay is reported and the setting of men and women's sound.
In one preferred embodiment, the method that its repeatedly broadcasting and time-delay are reported comprises:
Step 100, the beginning speech play;
Step 200, broadcasting time adds one;
Whether step 300 judges broadcasting time greater than the broadcast total degree that is provided with, and execution in step 400 if not, otherwise execution in step 700;
Step 400 judges whether to be provided with time-delay and reports, if execution in step 500, otherwise execution in step 100;
Step 500, trigger;
Step 600 judges whether the time of time-delay arrives, if execution in step 100, otherwise execution in step 500;
Step 700 finishes speech play;
The technical program is compared with background technology: owing to the present invention is based on the soft kernel of TD platform, adopt thread block method realization voice to report continuously, therefore it to have overcome background technology not enoughly and have following advantage existing: 1, can realize voice broadcast owing to only need to revise software, need not to carry out the modification of terminating circuit design, can reduce the end product cost; 2, because phonetic synthesis and voice broadcast have made full use of buffer memory, can improve running efficiency of system, reduce the relevant issues that cause because of the buffer memory deficiency; 3, the present invention to system require lowly, adaptability is strong.
Description of drawings
The present invention is further described below in conjunction with drawings and Examples.
Fig. 1 is the realization voice broadcast of a preferred embodiment of the present invention and the graph of a relation of phonetic synthesis.
Fig. 2 is the voice broadcast treatment step process flow diagram of a preferred embodiment of the present invention.
Fig. 3 is the repetition voice broadcast and the time-delay voice broadcast process flow diagram of a preferred embodiment of the present invention.
Embodiment
A kind ofly realize the method for voice broadcast, please refer to Fig. 1 and Fig. 2 based on the soft kernel of TD platform, the realization voice broadcast of a preferred embodiment and the graph of a relation of phonetic synthesis and voice broadcast process flow diagram, it comprises this method:
Step 10 is imported the primary voice data that will report into;
Step 20 sends synthesized voice signal, starts the phonetic synthesis thread, and the beginning speech data is synthetic;
Step 30 is inserted synthetic speech data in the broadcast formation;
Step 31, the synthetic speech data;
Step 32 is prescribed a time limit when synthetic amount of voice data reaches on certain buffer memory, sends block signal, activates and blocks thread; For example, in the preferred embodiment, be limited to 10K on this synthetic speech data volume buffer memory,, activate and block thread when synthetic amount of voice data during greater than 10K.
Step 40, the soft kernel of speech play of startup TD platform begins to play voice;
Step 41 is judged the speech data surplus of playing in the formation, when reaching under certain buffer memory, the speech data surplus of playing formation prescribes a time limit, and execution in step 42, otherwise continue execution in step 40;
Step 42, transmission stops block signal, stops to block thread, starts the phonetic synthesis thread, and it is synthetic to proceed speech data, changes and jumps execution in step 20; For example, in the preferred embodiment, be limited to 1K under this broadcast formation amount of voice data buffer memory, when amount of voice data only is left 1K in playing formation, stop to block thread, start the phonetic synthesis thread, it is synthetic to proceed speech data.Step 50 finishes speech play;
In this step 20, when the generated data total length equates with the played data total length, will jump to step 50, finish speech play.In the embodiment of the invention, the cache size of generated data adds this time generated data length for the generated data total length, plays cache size and plays data cached length for the played data total length adds this time.
The present invention passes through the method synthetic speech data of thread block, and by controlling synthetic and reporting required buffer memory and use, has realized the continuous report of voice, has improved running efficiency of system.
Implementation method of the present invention, the user can also realize repeatedly repeatedly broadcasting by being provided with, and also can realize the time-delay report between twice report by parameter is set, also can enable male sound or women sound by setting, please refer to Fig. 3, the repetition voice broadcast of one preferred embodiment and time-delay voice broadcast process flow diagram, its method comprises as follows:
Step 100, the beginning speech play;
Step 200 is provided with broadcasting time and adds one;
Whether step 300 judges broadcasting time greater than the broadcast total degree that is provided with, and execution in step 400 if not, otherwise execution in step 700;
Step 400 judges whether to be provided with time-delay and reports, if execution in step 500, otherwise execution in step 100;
Step 500, trigger;
Step 600 judges whether the time of time-delay arrives, if execution in step 100, otherwise execution in step 500;
Step 700 finishes speech play;
The above, only for preferred embodiment of the present invention, so can not limit scope of the invention process with this, i.e. the equivalence of doing according to the present patent application claim and description changes and modification, all should still belong in the scope that patent of the present invention contains.

Claims (5)

1. realize the method for voice broadcast based on the soft kernel of TD platform for one kind, it is characterized in that: it comprises:
Step 10 is imported the primary voice data that will report into;
Step 20 sends synthesized voice signal, starts the phonetic synthesis thread, and the beginning speech data is synthetic;
Step 30 is inserted the broadcast formation with synthetic speech data;
Step 40, the soft kernel of speech play of startup TD platform begins to play voice;
Step 50 finishes speech play.
2. according to claim 1ly a kind ofly realize the method for voice broadcast it is characterized in that this step 30 also comprises based on the soft kernel of TD platform:
Step 31, the synthetic speech data;
Step 32 is prescribed a time limit when synthetic amount of voice data reaches on certain buffer memory, sends block signal, activates and blocks thread.
3. according to claim 1ly a kind ofly realize the method for voice broadcast based on the soft kernel of TD platform, this step 40 also comprises:
Step 41 is judged the speech data surplus of playing in the formation, when reaching under certain buffer memory, the speech data surplus of playing formation prescribes a time limit, and execution in step 42, otherwise continue execution in step 40;
Step 42, transmission stops block signal, stops to block thread, starts the phonetic synthesis thread, and it is synthetic to proceed speech data, changes and jumps execution in step 20.
4. according to claim 1ly a kind ofly realize the method for voice broadcast it is characterized in that described voice broadcast can carry out repeatedly broadcasting by the parameter setting, time-delay is reported and the setting of men and women's sound based on the soft kernel of TD platform.
5. according to claim 4ly a kind ofly realize the method for voice broadcast based on the soft kernel of TD platform, the method that its repeatedly broadcasting and time-delay are reported comprises:
Step 100, the beginning speech play;
Step 200, broadcasting time adds one;
Whether step 300 judges broadcasting time greater than the broadcast total degree that is provided with, and execution in step 400 if not, otherwise execution in step 700;
Step 400 judges whether to be provided with time-delay and reports, if execution in step 500, otherwise execution in step 100;
Step 500, trigger;
Step 600 judges whether the time of time-delay arrives, if execution in step 100, otherwise execution in step 500;
Step 700 finishes speech play;
CN2010101175433A 2010-03-03 2010-03-03 Method for realizing voice broadcast based on soft core of TD (time division) platform Pending CN102194453A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010101175433A CN102194453A (en) 2010-03-03 2010-03-03 Method for realizing voice broadcast based on soft core of TD (time division) platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010101175433A CN102194453A (en) 2010-03-03 2010-03-03 Method for realizing voice broadcast based on soft core of TD (time division) platform

Publications (1)

Publication Number Publication Date
CN102194453A true CN102194453A (en) 2011-09-21

Family

ID=44602408

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010101175433A Pending CN102194453A (en) 2010-03-03 2010-03-03 Method for realizing voice broadcast based on soft core of TD (time division) platform

Country Status (1)

Country Link
CN (1) CN102194453A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103137124A (en) * 2013-02-04 2013-06-05 武汉今视道电子信息科技有限公司 Voice synthesis method
CN107370814A (en) * 2017-07-21 2017-11-21 掌阅科技股份有限公司 E-book reads aloud processing method, terminal device and computer-readable storage medium
CN112350958A (en) * 2020-10-30 2021-02-09 深圳Tcl新技术有限公司 Voice data dynamic uploading method, Internet of things equipment and storage medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103137124A (en) * 2013-02-04 2013-06-05 武汉今视道电子信息科技有限公司 Voice synthesis method
CN107370814A (en) * 2017-07-21 2017-11-21 掌阅科技股份有限公司 E-book reads aloud processing method, terminal device and computer-readable storage medium
CN107370814B (en) * 2017-07-21 2018-09-04 掌阅科技股份有限公司 E-book reads aloud processing method, terminal device and computer storage media
CN112350958A (en) * 2020-10-30 2021-02-09 深圳Tcl新技术有限公司 Voice data dynamic uploading method, Internet of things equipment and storage medium
CN112350958B (en) * 2020-10-30 2024-01-23 深圳Tcl新技术有限公司 Voice data dynamic uploading method, internet of things equipment and storage medium

Similar Documents

Publication Publication Date Title
US10152124B2 (en) Systems and methods for enhanced haptic effects
CN107301035B (en) Audio synchronous recording and playing system and method based on Android system
CN101631159B (en) Device and method utilizing subsonic wave for controlling mobile phone operation
EP2309708A3 (en) Mobile terminal capable of being connected to audio output device using short-range communication and method of controlling the operation of the mobile terminal
CN107005800B (en) Audio file transmission and receiving method, device, equipment and system
EP2752023A1 (en) Method to match input and output timestamps in a video encoder and advertisement inserter
CN109360567A (en) The customizable method and apparatus waken up
US8498667B2 (en) System and method for mixing audio with ringtone data
CN102194453A (en) Method for realizing voice broadcast based on soft core of TD (time division) platform
CN105407225A (en) Data transmission method and Bluetooth equipment
CN102395048B (en) Information communication terminal device and control method thereof
CN102723087B (en) Multimedia play method and device
CN101834923A (en) Method for controlling sound playing of mobile terminal and mobile terminal
CN109725869A (en) Continuous interactive control method and device
CN104506991A (en) Method and device for reminding information
TW200738310A (en) Communication game system, communication game control method, and information recording medium
TW200714325A (en) Game program, game device and game control method
CN103327173B (en) A kind of audio control method of mobile terminal and device
CN109117110B (en) Data processing method and device for dynamic voice fusion
US20080160979A1 (en) Apparatus, Method, And Computer Program Product For Controlling Output Volume
CN110797004A (en) Data transmission method and device
CN105162427A (en) Playing handling method and device for audio switching
CN101207871A (en) Mobile terminal and method for playing music ring
CN104980583A (en) Event reminding method and terminal
CN104538047A (en) Audio control method of portable electronic device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20110921