Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在 textFiled 旁边添加一个麦克风按钮。这个按钮应该激活 iOS 键盘的听写模式,就像键盘上的麦克风按钮一样。在文本字段旁边看到麦克风按钮比在键盘底部更容易看到。
我知道有一些类似的帖子说这是不可能的,但他们已经 5 岁了,也许从那时起有一些新的 api。
没有办法务实地触发键盘进入听写模式。
SFSpeechRecognizer如果要将语音转换为文本,则需要自己构建一些东西。
SFSpeechRecognizer