Mac OS X语音到文本API。如何? [英] Mac OS X speech to text API. Howto?

查看:581
本文介绍了Mac OS X语音到文本API。如何?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个程序从TCP / IP接收音频(单声道)比特流。我想知道在Mac OS X中的语音(语音识别)API是否能够为我做一个语音到文本的转换。



我把音频保存到.wav首先读它作为反对做转换在飞行)。



我已经在线阅读官方文档,它是一个混乱。



此外,我应该在Cocoa / Carbon / Java还是Objective-C中执行?

$



感谢。

解决方案

安装XCode时,有许多示例可以在/ Developer / Examples / Speech / Recognition下复制。



识别是 NSSpeechRecognizer
我没有使用它,但就我所知,语音识别需要你建立一个语法,以帮助引擎从多个选择,而不是让你传递自由形式的输入选择。这在上面提到的例子中都有解释。


I have a program that receives an audio (mono) stream of bits from TCP/IP. I am wondering whether the speech (speech-recognition) API in Mac OS X would be able to do a speech-to-text transform for me.

(I don't mind saving the audio into .wav first and read it as oppose to do the transform on the fly).

I have read the official docs online, it is a bit confusing. And I couldn't find any good example about this topic.

Also, should I do it in Cocoa/Carbon/Java or Objective-C?

Can someone please shed some light?

Thanks.

解决方案

There's a number of examples that get copied under /Developer/Examples/Speech/Recognition when you install XCode.

Cocoa class for speech recognition is NSSpeechRecognizer. I've not used it but as far as I know speech recognition requires you to build a grammar to help the engine choose from a number of choices rather then allowing you to pass free-form input. This is all explained in the examples referred above.

这篇关于Mac OS X语音到文本API。如何?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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