Skip to content

How can I replace the native keyboard dictation button with an online speech-to-text service, e.g: Azure? #631

Closed Answered by kirillzyusko
jagandecapri asked this question in Q&A
Discussion options

You must be logged in to vote

@jagandecapri This is a system button and you (as a developer) don't have an access to customize its position/press handlers etc.

Potentially you may draw a view above the keyboard with your custom buttons using KeyboardStickyView and place your custom icons there and then use azure/react-native-voice/etc. (or alternatively draw custom mic icon that will follow carret position)

Did you see any apps that use custom voice recognition module (i. e. azure) if you press system mic button?

P. S. I searched more and I think the best what I can do is to emit an event inputMethodChanged with a payload (i. e. type=english/voice etc.) But I don't think you'll be able to start recording of audio, sin…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@jagandecapri
Comment options

@kirillzyusko
Comment options

@jagandecapri
Comment options

Answer selected by jagandecapri
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants