语音到文本转换器 [英] speech to text convertor

查看:108
本文介绍了语音到文本转换器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好
我已经在Winform中制作了文本到语音转换器应用程序,现在w
我不想做一个与之相反的应用程序
表示
语音到文本转换器..
你们可以帮我怎样做这个任务吗?

我使用以下代码完成了文本到语音的任务.

hi all
i have made a text to speech convertor application in winform, and noww
i wnt to make an application just opposite of it
means
speech to text convertor..
can u guyz please help that how can i do this task..

i did text to speech task with the code below..

using System;
using System.IO;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Speech.Synthesis;
using System.Windows.Forms;

namespace tts
{
    public partial class Form1 : Form
    {
        SpeechSynthesizer speak = new SpeechSynthesizer();
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            if (textBox1.Text == null)
            {
                MessageBox.Show("please! enter some text in box");
            }
            speak.Volume = trackBar2.Value * 10;
            speak.SelectVoiceByHints(VoiceGender.Male);
            speak.Rate= trackBar1.Value;
         
          
                     speak.Speak(textBox1.Text);
            
        }

        private void button2_Click(object sender, EventArgs e)
        {
          
            speak.Rate = trackBar1.Value;
            speak.Volume = trackBar2.Value * 10;

           speak.SelectVoiceByHints(VoiceGender.Female);
            speak.Speak(textBox1.Text);
           
        }

        private void button3_Click(object sender, EventArgs e)
        {
            OpenFileDialog op = new OpenFileDialog();
            op.Title = "open a text file";
            op.Filter = "text files|*.txt";
            op.ShowDialog();
            textBox1.Text = File.ReadAllText(op.FileName);
            
        }

       
                     private void button6_Click(object sender, EventArgs e)
        {
            SaveFileDialog sv = new SaveFileDialog();
            
                sv.Filter = "wav files|*.wav";
                sv.Title = ("save file as .wav");
                sv.ShowDialog();
                if (sv.ShowDialog() == DialogResult.OK)
                {
                    speak.SetOutputToWaveFile(sv.FileName);
                    speak.SpeakAsync(textBox1.Text);


                }
            
        }

        
    }
}

推荐答案

实际上,您希望集成语音识别引擎,而不是自己编写.除了Microsoft的引擎外,还有Dragon Naturally Speaking,SpeechMagic和Speech Anywhere,以及一些其他产品,具体取决于要支持的语言.
还要确定工作流程:引擎是抄录录制的文件,还是在您仍在听写的同时进行抄录?校正功能如何?让别人更正文本怎么办?等等
Actually you want to integrate a speech recognition engine, instead of writing one yourself. Apart from Microsoft''s engine, there are Dragon Naturally Speaking, SpeechMagic and Speech Anywhere, and some other products depending on the language(s) to be supported.
Also decide on the work flow: have the engine transcribing a recorded file, or transcribing while you are still dictating? What about correction features? What about having someone else correcting the text? Etc.


http://msdn.microsoft.com/en -us/magazine/cc163663.aspx [ ^ ]

http://cmusphinx.sourceforge.net/ [ ^ ]


http://msdn.microsoft.com/en-us/library/system.speech. Identification.aspx [ ^ ]
http://msdn.microsoft.com/en-us/magazine/cc163663.aspx[^]

http://cmusphinx.sourceforge.net/[^]


http://msdn.microsoft.com/en-us/library/system.speech.recognition.aspx[^]


这篇关于语音到文本转换器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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