gpt4 book ai didi

ios - 从 SFSpeechRecognizer 停止语音输入后处理文本

转载 作者:行者123 更新时间:2023-11-28 05:51:22 30 4
gpt4 key购买 nike

我正在使用 iOS SFSpeechRecognizer API 开发语音转文本应用程序。

找到一个很棒的tutorial here:并且效果很好。

我想在语音输入停止后立即处理文本并执行一些操作。所以,我很好奇是否有一个可用于 SFSpeechRecognizer 的委托(delegate)方法,它可以识别语音输入何时停止,以便我可以捕获输入并进一步处理?

最佳答案

So, was curious whether there is a delegate method available for SFSpeechRecognizer which can recognise when the voice input is stopped so that I can capture the input and process further?

没有内置到 SFSpeechRecognizer API 中,不。相反,这正是您必须提供允许用户告诉识别器输入已完成的界面(例如某种完成按钮)的原因。如果您省略该接口(interface),您的应用将被拒绝。

关于ios - 从 SFSpeechRecognizer 停止语音输入后处理文本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52841433/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com