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, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access