【问题标题】:SFSpeechRecognizer not handling contextual strings properlySFSpeechRecognizer 没有正确处理上下文字符串
【发布时间】:2016-10-21 06:56:55
【问题描述】:

SFSpeechRecognizer 对于我的用例来说非常不准确。我尝试设置 contextual 字符串,因为我有一组要匹配的单词。但它仍然无法这样做。我还需要其他配置吗?

我正在使用 Apple 提供的示例项目,仅此更改:

recognitionRequest.contextualStrings = @[@"iron man", @"metal", @"stark", @"superhero", @"boyfriend", @"pepper", @"arrogant", @"stylish"];

【问题讨论】:

  • 你找到解决办法了吗
  • 没有。使用谷歌语音 api。
  • 其实我用 swift 添加了相同的上下文,它开始正常工作了。

标签: ios objective-c sirikit sfspeechrecognizer


【解决方案1】:

我的理解是contextualStrings 仅用于向字典添加可能不存在的单词。

例如: rare/strange "Expecto Patronum""Fuddle duddle" 之类的词

Apple Documentation中查看更多信息

【讨论】:

    猜你喜欢
    • 2019-09-06
    • 1970-01-01
    • 1970-01-01
    • 2021-03-23
    • 2011-12-24
    • 2011-06-19
    • 1970-01-01
    • 2014-06-14
    • 1970-01-01
    相关资源
    最近更新 更多