C # calls Iflytek Offline Speech SDK synthesized TTS

Source: Internet
Author: User

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

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.