Is it possible to implement Voice Interactions on Android 4.4? - android

Is it possible to implement Voice Interactions for Android 4.4?
If it possible so how to implement it?
https://io2015codelabs.appspot.com/codelabs/voice-interaction#1

You can interact with your phone using Speech to text .while you speak.you can convert your speech to Text(String) and check it with a condition.the you can use Text to speech for getting audio output like google now.
refer this for speech to text and Text to Speech

We can see on Android reference that API added since API level 23 (M) check here. So you can't use it in 4.4.
The only way to to do Voice interactions with previews API version is to use TextToSpeech API, use SpeechRecognition service or implement SpeechListener interface (use SpeechRecognizer to do that) in order to do ASR.
I hope this help you.
See you ;).

Related

Google speech API - only transcribe from a given set of words or ban certain words?

Is it possible to restrict the Google Speech API to only recognize from a given set of words? Alternatively, is it possible to "ban" certain words? If not, is it possible with any other speech API that supports German?
I do know that I can set hint phrases via a speech context. Still it rather recognizes a different word.
As an example, I use the API mostly for the German language. I want to recognize the word "stärker" (which is also listed as a speech context hint), though, the API mostly transcribes it to "Stärke" unless I pronounce the "r" at the end unnaturally strong. So, is it possible to prevent the speech API from transcribing that word, for instance?
Thanks in advance!
No, that's not possible with Google Speech API. I don't know if it's possible with other speech recognition services.
Google speech API supports set of parameters in RecognitionConfig.
There is an optional boolean parameter called "profanityFilter", which filters out profanities.
https://cloud.google.com/speech-to-text/docs/reference/rest/v1beta1/RecognitionConfig

Pandorabot Speech Interfaces

I want to create a application android that use pandorabot with Speech Interfaces like CallMOM
https://play.google.com/store/apps/details?id=com.pandorabots.callmom
Is there any example ?
Thanks
The algorithm is pretty simple:
recognize user input
send it to pandorabots
get result back
synthesize it with TTS engine
go to step 1
You can learn more about speech recognition on Android from answer on Is there a way to use the SpeechRecognizer API directly for speech input?
You can learn more about TTS on Android from answer on Android TTS speech synthesizer
Here is an example project that should give you the basics idea of building an Android app that talks to the Pandorabots API.

Android Speech Recognition API on pre-recorded audio?

I know I can use the Android SpeechRecognizer API for speech recognition, but that API is meant for pressing a button, saying something, and then having it spit the text out. I'm wondering if there's a way to use a pre-recorded file (3gp) on the device and run that through some built-in library. All of my searches have only brought up the SpeechRecognizer, which can't use audio files.
As I have found, it isn't possible with android's API, but there may be a way around it.
Try this url.
EDIT:
I haven't tested it myself, it doesn't really look like it's supported, but check the link I guess.
I hope this helps!

Is there Speech to Text function in Android?

or is there any library that I can use?
What I want is to record a audio, and then display the text recognized. Thanks a lot.
Yes, please do a google search next time, http://code4reference.com/2012/07/tutorial-android-voice-recognition/
Alternately, if you want more control you can use SpeechRecognizer, Is there a way to use the SpeechRecognizer API directly for speech input?

speech to text conversion in android

i want to develop apps based on speech to text conversion.can you please share your suggestions and how to develop this app
This is probably a good start:
http://developer.android.com/resources/articles/speech-input.html
Yes it should be possible Android has a Speech to Text APi in it. Get the user input as speech and convert it into String(The API Does it for you automatically). Based on your string output you can do operations on your application.
Check this post for getting more info on speech to text API
http://android-developers.blogspot.com/2009/09/introduction-to-text-to-speech-in.html

Categories

Resources