Recognize user's speech

Learn:

  • Speech Recognition

Requirements

  • Android smartphone - example does not run on the emulator

Recognizes user's speech and returns the most likely result.

listen.py

import android droid = android.Android() (id, result, error) = droid.recognizeSpeech("Say something") print result, error

Code Explained

The user's speech text is returned in result

Python for Android
| TOC | 1 | 2 | 3 | 4 | 5 |