Use TTS in. net Article It is mentioned that the SAPI (speech Application Programming Interface) of Version 5.1 can support the Chinese, Japanese, and English languages. Then, we installed SAPI 5.1 and the Language Pack on the lab computer (which can be downloaded here ), it is found that Chinese Speech Recognition (TTS), speech recognition (SR), and Japanese speech recognition are supported. Although Chinese speech is not satisfactory, it is better than some well-known domestic speech engines.
But if you only use TTS, do you also need to install the language pack from the api sdk (more than 100 m in total )? If you want to publish software with speech reading, do you have to use Microsoft's re-release package (SDK redistributables file? After repeated comparisons and research, Mr. Smith found that Sr accounts for a large proportion of the software, and TTS only needs to have an engine. For example, the Chinese TTS is mainly a spttschs. dll file, and there are two lexicon files. Download the compressed file and decompress it to the C: \ Program Files \ common Files folder (for XP and 2003, Win2000 is not clear) based on the original path information ). Of course, you also need to register the engine in the registry. The following is the relevant part of the export: Windows Registry Editor Version 5.00
[ HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ speech \ voices \ tokens \ mssimplifiedchinesevoice ]
@ = " Microsoft Simplified Chinese "
" CLSID " = " {AE2CF4DB-3697-45F4-9787-0FC5A37BEB36} "
" 409 " = " Microsoft Simplified Chinese "
[ HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ speech \ voices \ tokens \ mssimplifiedchinesevoice \ attributes ]
" Language " = " 804 "
" Vendor " = " Microsoft "
" Name " = " Microsoft Simplified Chinese "
" Gender " = " Male "
" Age " = " Adult "
Save the preceding content as ttscn. reg. Double-click to import the file. In speech on the control panel, you can see that Microsoft Sam has an additional word "Microsoft Simplified Chinese" in voice selection ".
start playing Chinese TTS!