How can I replace the native keyboard dictation button with an online speech-to-text service, e.g: Azure? #631
-
Hi, Is it possible to the following logic with react-native-keyboard-controller?
The button that I'm referring to is as following: Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
@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 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 |
Beta Was this translation helpful? Give feedback.
@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…