The bin directory has a msc.dll dynamic library. C # calls the speech synthesis of iflytek, which needs to be referenced by this file.
The file is a C language-generated dll,c# that cannot be directly referenced. All you need to reseal a TTS.dll in C #, and then reference the encapsulated TTS.dll in a C # project.
Steps:
1. Create a new Class library project in VS/class library (TTS), create a new class file (TTS.cs)
The contents of the 2.tts.cs are as follows (see REF2 below for a bit of code)
3. Generate a TTS.dll for this class library (see ref 3)
4. Reference the class library in a C # project TTS.dll
5. Also need to put the downloaded SDK Msc.dll in the speech synthesis project in the Debug directory (you can Baidu C # to call C/C + + DLL)
6. The Code of the Speech synthesis project is as follows: (the code is slightly, please see below REF2)
Consolidated Source/ref:
C # calls Iflytek off-line voice synthesis TTS:
Ref 1:http://www.cnblogs.com/xuguanghui/p/4505555.html;
Ref 2:http://blog.csdn.net/m_zhangjingdong/article/details/52180638
C # creates and references a class library project DLL:
Ref 3:http://blog.csdn.net/woshisangsang/article/details/78194315
=======
The class library generates a new TTS.dll supplement: typically bin/debug in the full path path can find the generated. dll file.
C # calls Iflytek Offline Speech SDK synthesized TTS