iPhone:语音识别在 IOS SDK 中可用吗?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/7823693/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-30 21:56:40  来源:igfitidea点击:

iPhone: Speech Recognition is in IOS SDK available?

iphoneiosspeech-recognitionsiri

提问by Spring

Does anyone knows that if "speech to text" and "text to speech" api's used in Siri are accessible in IOS 5 or IOS 6 SDK?

有谁知道在 Siri 中使用的“语音到文本”和“文本到语音”api 是否可以在 IOS 5 或 IOS 6 SDK 中访问?

I researched but couldn't find anything about it in documentation, so if thats not included in SDK are there any "Siri" quality libraries in market?

我研究过但在文档中找不到任何关于它的信息,所以如果 SDK 中没有包含这些内容,市场上是否有任何“Siri”质量库?

采纳答案by Tim

Siri is not available in API form yet, however, any UITextField or UITextArea can be dictated to using the built-in option for speech-to-text.

Siri 还没有以 API 形式提供,但是,可以指定任何 UITextField 或 UITextArea 使用内置的语音转文本选项。

回答by neils4fun

Check out Openears at: http://www.politepix.com/openearsI've used it experimentally and it worked great. It will recognize preset vocabularies very well. There is a slight pause of 1/2 second or so before it recognizes the word and it gets confused in an environment with a lot of voices (a crowded restaurant), but in a reasonably quiet setting I found it works great.

在以下网址查看 Openears:http: //www.politepix.com/openears我已经实验性地使用过它并且效果很好。它将很好地识别预设词汇。它在识别单词之前有 1/2 秒左右的轻微停顿,并且在有很多声音的环境(拥挤的餐厅)中会感到困惑,但在相当安静的环境中,我发现它非常有效。

回答by Steve Moser

iOS 10 introduces a new speech recognition API - SFSpeechRecognizer.

iOS 10 引入了新的语音识别 API - SFSpeechRecognizer.

https://developer.apple.com/videos/play/wwdc2016/509/

https://developer.apple.com/videos/play/wwdc2016/509/

回答by flatux

You might also want to check out ispeech's text to speechand speech recognitionAPIs. They already allow you to include it in your apps without much trouble and actually are a bit better than what Siri has. Siri's big strength is the NLP, not so much the underlying speech tech.

您可能还想查看 ispeech 的文本转语音语音识别API。它们已经允许您轻松地将其包含在您的应用程序中,并且实际上比 Siri 的要好一些。Siri 的强大之处在于 NLP,而不是底层的语音技术。

回答by jbat100

Siri is only available as a beta on iPhone 4S, not sure if the plan is to spread it to all iOS 5 capable devices. Open source libraries for voice recognition are hard to come by. You could look into Nuance (dragon)developer gateway here.

Siri 仅在 iPhone 4S 上作为测试版提供,不确定是否计划将其推广到所有支持 iOS 5 的设备。语音识别的开源库很难获得。您可以在此处查看Nuance(龙)开发者网关。

回答by rsebbe

We've made an SDK for isolated words (or small phrases) recognition, CeedVocal SDK. We use it in our own app Vocalia. It's not free though (but there's free trial), more information at: http://www.creaceed.com/ceedvocal

我们制作了一个用于孤立词(或小词组)识别的 SDK,CeedVocal SDK。我们在自己的应用程序 Vocalia 中使用它。虽然它不是免费的(但有免费试用),更多信息请访问:http: //www.creaceed.com/ceedvocal

回答by pooja_chaudhary

For speech recognition you can use OpenEars (http://www.politepix.com/openears/) which works offline and provide good accuracy.OpenEars is free to use in an iPhone or iPad app. Yes OpenEars handles Speech to Text function.

对于语音识别,您可以使用 OpenEars ( http://www.politepix.com/openears/),它可以离线工作并提供良好的准确性。OpenEars 可在 iPhone 或 iPad 应用程序中免费使用。是的 OpenEars 处理 Speech to Text 功能。

回答by Donal

After iOS 10 you can use

在 iOS 10 之后,您可以使用

Speech.framework

语音框架

It is very simple to use.Just import Speech into your class

使用起来非常简单。只需将 Speech 导入您的类

import Speech

let speechRecogizer = SFSpeechRecognizer(locale: Locale.init(identifier: "en-US"))!  //locale whatever you want to use
let recognitionRequest = SFSpeechAudioBufferRecognitionRequest()
let recognitionTask:SFSpeechRecognitionTask = speechRecogizer.recognitionTask(with: recognitionRequest, resultHandler: { (result, error) in 
    print(result?.bestTranscription.formattedString) //here you can get your text 
})

You can also check https://github.com/PKrupa94/SpeechManagerfor it.

您还可以查看https://github.com/PKrupa94/SpeechManager

回答by Dancreek

Siri is not available to Developers yet.

Siri 尚不可供开发人员使用。