WinForm Voice broadcast data

Source: Internet
Author: User

TTS, Short for Text To Speech, is a technology that uses Speech To read texts. Currently, queuing systems are widely used in China.

Windows PlatformTTSGenerally, the Speech API provided by Microsoft is used.

Windows XP comes with Speech API 5.1, which only supports English by default. If you want to read Chinese, you need to install LangPack, which supports Simplified Chinese. However, it is a boy's pronunciation.

From Vista, the default Microsoft Speech API 5.3 is provided, and the effect is much better. Unfortunately, XP is not supported and it is depressing.

Next, let's talk aboutC # Use TTS to read textImplementation Method:

Starting from. NET 3.0, the. NET Framework provides the managed Speech API call method, which is very smooth. Instead of sticking to the tedious non-hosted COM call.

. Net 4.0 implementation method: 

1. Add reference →. Net → System. Speech ",

Then using System. Speech. Synthesis;

2,

Private void simplebutton#click (object sender, EventArgs e)
{
SpeechSynthesizer synth = new SpeechSynthesizer ();
Synth. Speak ("Hello, Brother Wu! Welcome to www.vkesoft.com! ");

Timer1.Start ();

}

Note: If the TTS 5.1 language pack is not installed on the Windows XP system, all Chinese characters are ignored.

Related Article

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.