我想在印地语的c#windows应用程序中将文本转换为语音 [英] i want to convert text to speech in c# windows application in Hindi

查看:60
本文介绍了我想在印地语的c#windows应用程序中将文本转换为语音的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

using System;
using System.Windows.Forms;
using System.Speech.Synthesis;

namespace Work_report
{
    public partial class texttospeech : Form
    {
        public texttospeech()
        {
            InitializeComponent();
        }

        private void btnconvert_Click(object sender, EventArgs e)
        {
            SpeechSynthesizer sp = new SpeechSynthesizer();
            sp.Volume = 100;
            sp.Rate = 1;
            sp.Speak(txttext.Text);
        }
    }
}

推荐答案

您需要在https://msdn.microsoft.com/en-us/ library / system.speech.synthesis.speechsynthesizer%28v = vs.110%29.aspx [ ^ ],并获得适合您语言的有效合成器引擎。
You need to study the comments at https://msdn.microsoft.com/en-us/library/system.speech.synthesis.speechsynthesizer%28v=vs.110%29.aspx[^], and get a valid synthesiser engine for your language.


这篇关于我想在印地语的c#windows应用程序中将文本转换为语音的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆