Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to activate speech to text with a button?

I would like to implement a button that when clicked would activate android's speech to text translator like the one provided by android's keyboard. Specifically, I would like a button that would have the app transcribe what the user is saying in real time, and record it word by word (real time) in an editText box. What would be the best way to go about doing this?

Thanks

like image 233
Matt Fritze Avatar asked Jun 24 '13 03:06

Matt Fritze


People also ask

How do I use speech to text on my phone?

You can start using your phone’s speech to text feature right away, but you can also customize its behavior. Go to Settings > General Management > Language and input. Tap On-screen keyboard. Tap Google voice typing.

How to enable text to speech in Windows 10?

The Windows 10 Text to Speech option is called Narrator. You have to turn this Ease of Access feature on from Settings or the Control Panel. Narrator is a screen reader designed for the visually impaired, but anyone can use it to give their eyes a rest. With the Text-to-Speech features, you can navigate Windows screens, apps, and web pages.

How do I use Windows Speech recognition for dictation?

If you want to dictate text instead of typing, turn on Windows Speech Recognition; go to Settings > Time & Language > Speech > Microphone > Get Started. Say, "Start listening," or press Win+H to bring up the dictation toolbar. For help using voice recognition for dictation, browse this list of standard Windows Speech Recognition commands.

How do I control the way the speech to text engine responds?

You can also control the way the speech to text engine responds to obscene language. If a potentially offensive word is dictated, by default that word will appear with asterisks. You can control this by toggling Hide offensive words on or off.


1 Answers

If you have not already checked the Voice Recognition sample in your Api demos, you should go ahead and check it. It should give you a head start. The demos are available in /android-sdk/samples/... folder. If you haven't installed them, here is how you may how to install android api demo app into my phone .

There are following( any many others) tutorial as well which will help you begin:

1) Android Voice Recognition Tutorial

2) Android: Speech To Text using API

Following might be a good read as well:

Add Text-To-Speech and Speech Recognition to Your Android Applications and Using the Android Speech Recognition APIs.

Hope this helps.

like image 199
Shobhit Puri Avatar answered Sep 28 '22 18:09

Shobhit Puri