Mathieu Robert
Mathieu Robert

Reputation: 334

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

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.

Upvotes: 2

Views: 806

Answers (1)

Craig Siemens
Craig Siemens

Reputation: 13266

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.

Upvotes: 2

Related Questions