[英]Speech recognition help for non-english language
I am trying to create a web app using asp.net to support Speech recognition. 我正在尝试使用asp.net创建一个Web应用程序以支持语音识别。 The catch is that I want to convert Swedish audio to text. 问题是我想将瑞典语音频转换为文本。 I have tried several APIs and frameworks but no luck. 我尝试了几种API和框架,但是没有运气。 I only could get AT&T to work, sort of. 我只能让AT&T上班。 It only recognizes one word in a six word sentence. 它只能识别六个单词中的一个单词。 I also tried Micosoft.Speech library but couldn't get it to work. 我还尝试了Micosoft.Speech库,但无法正常工作。 can anyone see what is wrong with my code? 谁能看到我的代码出了什么问题?
var engine = null as SpeechRecognitionEngine;
engine = new SpeechRecognitionEngine(new CultureInfo("sv-SE"));
using (engine)
{
engine.SetInputToWaveFile("C:\\temp\\samplecall.wav");
var result = engine.Recognize();
Console.WriteLine(((result != null) ? new SpeechRecognitionResult(result.Text, result.Alternates.Select(x => x.Text).ToArray()).toString : null));
Console.ReadLine();
}
any other help regarding the speech recognition would be appreciated very much. 关于语音识别的任何其他帮助将不胜感激。
If you want to transcribe 8khz audio from calls, desktop speech recognition APIs will not help you, so Microsoft is not your choice. 如果您想从通话中转录8khz音频,则桌面语音识别API不会为您提供帮助,因此Microsoft不是您的选择。
AT&T should work if you configure it properly. 如果正确配置,AT&T应该可以工作。 Another alternative would be to build an callcenter acoustic model for CMUSphinx , the Swedish database for that is available. 另一个选择是为CMUSphinx建立一个呼叫中心声学模型,该模型可在瑞典获得。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.