ios - 是否可以限制 SFSpeechRecognizer 词汇量?

标签 ios speech-recognition speech-to-text sfspeechrecognizer

我想使用 ios SFSpeechRecognizer 来识别一组封闭的单词和短语。有没有办法指定这些并消除所有其他可能性?我似乎找不到办法做到这一点。

最佳答案

您可以尝试使用SFSpeechAudioBufferRecognitionRequestcontextualStrings属性来设置高优先级或设置一些不在词汇表中的单词。 欲了解更多信息,请看这里:https://developer.apple.com/documentation/speech/sfspeechrecognitionrequest/1649391-contextualstrings?language=objc

  SFSpeechAudioBufferRecognitionRequest *recognitionRequest = [[SFSpeechAudioBufferRecognitionRequest alloc] init];
    recognitionRequest.contextualStrings = @[@"Your specific word", @"short custom phrases that are unique to your app"];

关于ios - 是否可以限制 SFSpeechRecognizer 词汇量?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61035943/

相关文章:

ios - 从 Firebase 检索数据后对其进行操作

java - 语音到文本识别

speech-recognition - 使用 Twilio 之类的语音 + 电话 API(文本到语音和语音到文本)以编程方式通过电话接受信用卡?

java - 识别使用 Java 的人所说的字母

javascript - 如何在我的页面上自动启动谷歌语音识别?

iphone - 图像正好在 iPad 的中间

android - Xamarin Android 和 iOS 错误记录

ios - 如何动态设置强制触摸标题

c# - Windows Phone 8 中的语音识别

ffmpeg - 如何使用 Google 的 Cloud Speech-to-Text REST API 转录视频