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

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

问题描述

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

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.

(我不介意保存音频为.WAV第一和阅读它作为反对做动态的变换)。

(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.

另外,我应该做的可可/碳/ Java或Objective-C的?

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

有人能提供一些线索?

感谢。

推荐答案

有一些例子,当你安装X code是那些获得在/开发/例子/语音/识别复制。

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

可可类语音识别<一个href=\"http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSSpeechRecognizer%5FClass/index.html\">NSSpeechRecognizer.
我没有用它,但据我所知语音识别需要你建立一个语法来帮助引擎从众多的选择,而不是让您通过自由格式输入选择。这在上面提到的例子中的所有解释。

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天全站免登陆