Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Opening keyboard in audio recording mode #41

Closed
rlopes opened this issue Jul 13, 2022 · 5 comments
Closed

Opening keyboard in audio recording mode #41

rlopes opened this issue Jul 13, 2022 · 5 comments
Assignees
Labels
question You wanted to clarify something about the usage of the library or have a question about something

Comments

@rlopes
Copy link

rlopes commented Jul 13, 2022

Could it be possible to have the ability to trigger the display of the keyboard in audio recording mode by default?
Ideally both Android and iPhone.

@kirillzyusko
Copy link
Owner

Hi @rlopes

Sorry for the stupid question, but what do you mean by "audio recording mode"? And what is the platform restrictions regarding keyboard?

Can't you create an invisible TextInput and put a focus on this field to trigger keyboard appearance?

@rlopes
Copy link
Author

rlopes commented Jul 13, 2022

Yes I might not be clear.
What I am referring to is the audio recording button on the Android keyboard or the iPhone keyboard when you want to need to fill up an input field.
By default the virtual keyboard display is set on the characters. One can click on the microphone icon and switch the voice to text. I am wondering if there is a way to pop up the virtual keyboard in that voice to text mode when it opens.

@kirillzyusko
Copy link
Owner

@rlopes got it. I think it's not possible (at least I haven't seen such behaviour in native applications) - once you set focus on a TextInput it will show a default keyboard. But if you know such apps, where you can tap on TextInput and they open keyboard in dictation mode - let me know, and I will check how they implemented it 👀

Though, I thunk, if you need to use voice recognition - you can use react-native-voice package - it allows to transform a voice to text using the same API that is used by the system (keyboard).

It will not show keyboard UI, but it's even better 😅 - you can implement your own UI using lottie, etc. and make it really beautiful 🙂

Let me know, if I helped you and I can close the issue.

@rlopes
Copy link
Author

rlopes commented Jul 14, 2022

I have to admit that I don't know any app from the top of my head that does open in dictation mode when a tap happens.
That being said you make good recommendations here. I will explore those.
Thanks a lot for taking the time to answer my question. Really appreciated.

@kirillzyusko
Copy link
Owner

@rlopes you are welcome :)

I'm going to close this issue, but if you find something - don't hesitate to report a new one issue or reopen this :)

@kirillzyusko kirillzyusko added the question You wanted to clarify something about the usage of the library or have a question about something label Mar 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question You wanted to clarify something about the usage of the library or have a question about something
Projects
None yet
Development

No branches or pull requests

2 participants