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.