Content Deep Dive
How to Use Voice to Control Music with Python and Deepgram
Blog post from Deepgram
Post Details
Company
Date Published
Author
Tonya Sims
Word Count
2,501
Language
English
Hacker News Points
-
Summary
This tutorial demonstrates how to use Python and the Deepgram API speech-to-text audio transcription to play a piano with your voice. The project requires macOS, but it is also possible with Windows or Linux machines. We'll use Python 3.10 and other tools like FluidSynth and Deepgram Python SDK speech-to-text audio transcription. The code allows users to record their voice and transcribe the spoken numbers into notes on a virtual piano, playing the first few phrases of Lady Gaga’s Bad Romance as an example.