Text to Speech in Python

While CircuitPython does not have native or library text to speech (as of yet), there are services for Python 3 if you are running on a single board computer (SBC) like Raspberry Pi.

Google Text to Speech

gTTS, Google Text-To-Speech is a Python library from Pierre-Nick Durette that converts a string into an audio file. It does not automatically speak, rather it creates an mp3 file that we can then play.

See this post by Les on how to set up gTTS.

Amazon Polly

Polly is Amazon's text to speech engine. You will need to sign up for a AWS account to use.

Featuring Your Projects

If you build voice-enabled projects, post video or links to them on Twitter tagging @Adafruit, we'd love to see what you are making.

This guide was first published on Dec 19, 2018. It was last updated on Nov 16, 2018.

This page (Going Further) was last updated on Dec 06, 2018.

Text editor powered by tinymce.