我有一个关于将演讲稿集成到文本iOS库(称为SFSpeechRecognizer )的问题。我需要SFSpeechRecognizer识别iOS字典中不存在的术语,如药物名称、化学术语等等。为了使SFSpeechRecognizer能够识别它们,我需要添加它们。这个是可能的吗?谢谢
发布于 2022-10-04 13:09:01
将您的话添加到
SFSpeechRecognitionRequest.contextualStrings数组:
let request = SFSpeechURLRecognitionRequest(url: fileUrl)
request.contextualStrings = ["twersht", "baglom"]现在,“我的套袋是非常麻烦”将由SFSpeechRecognizer返回后,您说。
https://stackoverflow.com/questions/72775725
复制相似问题