Is there a way to reproduce microphone action of the microphone button in the iOS keyboard?

553 Views Asked by At

I want to add a microphone button next to a textFiled. This button should activate the dictation mode of the iOS keyboard, exactly as the microphone button in the keyboard does. It's easier to see a microphone button next to a textField than at the bottom of the keyboard.

keyboard

I know there is some similar post saying it's impossible, but they are 5 years old, maybe there is some new api since this time.

1

There are 1 best solutions below

0
Craig Siemens On BEST ANSWER

There is no way to pragmatically trigger the keyboard into dictation mode.

You'll need to build something yourself using SFSpeechRecognizer if you want to convert speech to text.