Content Deep Dive
Auto-Tweet Your Words Using Speech Recognition in Python
Blog post from AssemblyAI
Post Details
Company
Date Published
Author
Mısra Turp
Word Count
1,004
Language
English
Hacker News Points
-
Summary
This article provides a guide to creating an application that listens to your speech, transcribes it and tweets the most interesting or relatable sentences you say out loud. The app will be built using Python with PyAudio for listening to the input source, Twython for easy use of the Twitter API, and AssemblyAI for Speech-to-Text transcription. Before coding, you need to obtain AssemblyAI and Twitter credentials. The application works by capturing audio and encoding it into a suitable format before sending it to AssemblyAI for transcription. It then filters out partial transcripts and only posts complete sentences to Twitter. Finally, the transcribed sentences are tweeted using Python's Twython module.