Implement real-time TTS Speech Synthesis through LAN Web

Source: Internet
Author: User

The company's business department puts forward the following requirements:
Play a notice on the computer in the Business Hall. It is best to read it out. I am Kao and my mind is short-circuited ,.
First, finish the text first, and find some information online. Google does not, and Baidu does not.
A few days later, I found two computer broadcasting clips in the D-drive store and brought them back for a look.
Installed a few, tested, the software is still available, basically sound, the effect will not be said.
I suddenly found that the program had an additional HTML link "Microsoft Speech SDK 4.0". Click here to see the example of a Web application. I'm so happy!
Finally, the Automatic Computer Voice broadcast is implemented in the announcement system. We will introduce it to you:

Install spchapi.exe (this is integrated into a software called listener network );
Here we can use the Web to call the ms tts engine for speech synthesis, but we have to use Chinese, so we have installed a software and attached a Chinese speech package.

Then copyCode:
<Object name = "activevoice" type = "application/X-oleobject"
Classid = "CLSID: EEE78591-FE22-11D0-8BEF-0060081841DE"
Height = 120
Width = 135 type = "codeph" text = "/codeph">
</Object>
This control is displayed on the webpage as a mouth. In addition, ie may also jump out of the prompt about whether to allow the Active Control to interact, you must disable it in the security settings of IE before it can be applied.
<SCRIPT>
Activevoice. initialized = 1
Activevoice. liptension = 0
Activevoice. tongueposn = 0
Activevoice. teethlowervisible = 0
Activevoice. teethuppervisible = 0
Activevoice. jawopen = 0
Activevoice. mouthupturn = 220
Activevoice. mouthwidth = 240
Activevoice. mouthheight = 0

Activevoice. Speak ("good morning .")
</SCRIPT>
After the above code is used for initialization, the mouth on the webpage will say good morning.
Of course, to use this application, you need to install TTS and APIs on the client as well as a Chinese voice package, so you can only implement some applications in the LAN.
I hope this article will help you. Please leave a message.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.