Speak ’n’ Tweet

Keeping with the theme of hands-free audio-delivered data exchange, our next project will post a speech-to-text translation to your Twitter timeline. Select a widget or a few clicks of your headset hardware button, wait for the audio cue to speak, say what you want posted, and Android will convert your speech to text, confirm what you said, post it to your Twitter account, and read back to you what was just posted. Just as we did with the Check Email project, we’re going to employ both SL4A and Tasker, with Tasker serving as a container to let us call the SL4A Python script from a widget or headset button press.

If you took the time to explore the contents of the Python libraries included in the Python for Android distribution, ...

Get Developing Android on Android now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.