With the development of computer multimedia technology, it is no new thing to make computer singing. But can you let the computer read text information in the software we have written in our own? A text-to-speech engine, referred to as Text-to-Speech Engine, referred to as Microsoft Company has made our functionality of this feature. As long as you have installed "Jinshan Words 2000" (or "Minshan Words .NET"), you will generate a SPEECH folder under the Windows folder, and the vtxtauto.tlb file contains the related type library and functions, we are completely You can call them in our program to speak the computer. TTS is included on the mounting disk of "Jinshan Word", the file name is MSTTS.EXE and SPCHAPI.exe. To call TTS in the VB program, you must first reference the "VoiceText 1.0 Type Library" type library in the vtxtauto.tlb file, the method is to perform "Engineering / Reference", then click the "Browse" button, find the file / windows / speech / vtxtAuto .Tlb, add it to the application list, then select it, press the "OK" button. At this point, you can press the F2 key to open the "Object Browser" to view the relevant parameters of the VTXTAUTO object. Then type the following code, execute it, the computer can speak: option expegit private sub form_load () call vtxtauto.vtxtauto.register (space (1), space (1)) 'Register vtxtauto.vtxtauto.speed = 170' Setting language Speed (170 is normal, the smaller speed is slow) DIM straTTrtxt = "I'm a Chinese. I love my motherland Very Much." On Error Goto Errorhand Call vtxtauto.vtxtauto.speak (StrtXT, VTXTSP_VERYHIGH vtxtst_reading) MsgBox "OK!" end errorhand: 'Error handling statement END END SUB is not enough, Microsoft's text reading engine can only let the computer read English. I believe everyone is like me, looking forward to the emergence of domestic, technically mature Chinese reading software.
Zhang Qingzhangking@263.net http://www.why100000.com 2003.1.24