android SpeechRecognizer with pyjnius

84 views
Skip to first unread message

Sébastien de Menten

unread,
Dec 22, 2015, 2:28:08 AM12/22/15
to Kivy users support
Hello,

I am trying to use the SpeechRecognizer API from pyjnius but I can't find any pyjnius example on the web. I have found examples in java but am not familiar with android development (a.o intents). 
Has anyone some examples (or hints) to do this ?

sebastien

Arshpreet Singh

unread,
Dec 25, 2015, 6:25:49 AM12/25/15
to Kivy users support
Hello Sabastean, I just completed small implementation using Pyjanius, It's super Fun!

You just have to read or look the examples carefully.

Look for this example

https://github.com/kivy/plyer/blob/master/plyer/platforms/android/tts.py

TextToSpeech = autoclass('android.speech.tts.TextToSpeech')
 
is used to access 'android.speech.tts.TextToSpeech'-> android-java class.

Now for speech reorganization you just need to autoclass 
'android.speech.SpeechRecognizer'  using pyjnius
http://developer.android.com/reference/android/speech/SpeechRecognizer.html

Before implementation you also need to read Android documentation carefully.

Sébastien de Menten

unread,
Dec 25, 2015, 9:39:53 AM12/25/15
to kivy-...@googlegroups.com
Well, I have succesfully used the tts interface and I wanted to use the stt (speechrecognizer) interface. Any code that does that ?
> --
> You received this message because you are subscribed to a topic in the Google Groups "Kivy users support" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/kivy-users/KrUXD5BrUkk/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to kivy-users+...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>
Reply all
Reply to author
Forward
0 new messages