PicoTTS
PicoTTS is a high quality text to speech library which has been adapted into the Adafruit_PicoTTS CircuitPython library. Due to resource consumption, the PicoTTS CircuitPython library only runs on an RP2350 with PSRAM at this time. The Adafruit boards which qualify are:
- Feather RP2350 with 8 MB PSRAM
- Fruit Jam
- Metro RP2350
For any other board, use the Moonshine Klatt library.
Feather RP2350 with PSRAM
Wire the amp as shown on the Feather + MAX98357A Wiring page.
Click the Download Project Bundle button below to download the necessary libraries and the code.py file in a zip file. Extract the contents of the zip file, open the folder that matches your CircuitPython version.
# SPDX-FileCopyrightText: 2026 Mikey Sklar for Adafruit Industries
#
# SPDX-License-Identifier: MIT
# An example using the Adafruit_PicoTTS library to generate speech using an Adafruit Feather
# RP2350 with a MAX 98357A I2S amplifier
import time
import audiobusio
import board
import adafruit_picotts as speech
# On the RP2350, bit clock and word select must be consecutive GPIOs: A0 and A1 are GPIO26
# and GPIO27.
audio = audiobusio.I2SOut(board.A0, board.A1, board.A2)
tts = speech.TTS(audio)
while True:
for text in (
"Hello from Circuit Python.",
"This is the S VOX Pico voice.",
"Dr. Smith read 1,234 pages on the 1st of May.",
):
start = time.monotonic()
tts.say(text)
print(f"{text} {time.monotonic() - start:.2f} s")
time.sleep(1)
time.sleep(3)
After downloading the Project Bundle, plug your Feather into your computer's USB port with a known good USB data+power cable. You should see a new flash drive appear in the computer's File Explorer or Finder (depending on your operating system) called CIRCUITPY. Unzip the folder and copy the following items to the Feather's CIRCUITPY drive.
- lib folder
- code.py
Your Feather CIRCUITPY drive should look like this after copying the files and folders:
And this is how it sounds:
Fruit Jam
The Fruit Jam is an all-in-one board with an RP2350 microcontroller and a TLV320DAC3100 DAC built-in. Headphones may be used in the audio jack, or a speaker on the Fruit Jam speaker port.
Connect the small speaker that comes with the Fruit Jam to the speaker port.
Click the Download Project Bundle button below to download the necessary libraries and the code.py file in a zip file. Extract the contents of the zip file, open the folder that matches your CircuitPython version.
# SPDX-FileCopyrightText: 2026 Mikey Sklar for Adafruit Industries
#
# SPDX-License-Identifier: MIT
# An example using the Adafruit_PicoTTS library to generate speech using an Adafruit Fruit Jam
# RP2350 with a onboard TLV320DAC3100 I2S amplifier
# PicoTTS talks at 16 kHz, but the TLV320 library has no 16 kHz setting.
# We set two DAC registers by hand below to get there, so pylint is told that is OK.
# pylint: disable=protected-access
import time
import adafruit_tlv320
import audiobusio
import board
import pwmio
import adafruit_picotts as speech
VOLUME = 0.75 # 0.0 to 1.0
mclk = pwmio.PWMOut(board.I2S_MCLK, frequency=15_000_000, duty_cycle=2**15)
dac = adafruit_tlv320.TLV320DAC3100(board.I2C())
# The driver has no 16 kHz clock setting. Set up 48 kHz, then raise the DAC oversampling
# (DOSR, page 0 registers 0x0D and 0x0E) from 128 to 384 on the same PLL, giving 16 kHz.
dac.configure_clocks(sample_rate=48000, bit_depth=16, mclk_freq=mclk.frequency)
dac._page0._write_register(0x0D, 384 >> 8)
dac._page0._write_register(0x0E, 384 & 0xFF)
dac.headphone_output = True
dac.speaker_output = True
dac.dac_volume = -63 + VOLUME * 86
audio = audiobusio.I2SOut(board.I2S_BCLK, board.I2S_WS, board.I2S_DIN)
tts = speech.TTS(audio)
while True:
for text in (
"Hello from Circuit Python on the Fruit Jam.",
"This is the S VOX Pico voice.",
"Dr. Smith read 1,234 pages on the 1st of May.",
):
start = time.monotonic()
tts.say(text)
print(f"{text} {time.monotonic() - start:.2f} s")
time.sleep(1)
time.sleep(3)
After downloading the Project Bundle, plug your Feather into your computer's USB port with a known good USB data+power cable. You should see a new flash drive appear in the computer's File Explorer or Finder (depending on your operating system) called CIRCUITPY. Unzip the folder and copy the following items to the Feather's CIRCUITPY drive.
- lib folder
- code.py
Your Feather CIRCUITPY drive should look like this after copying the files and folders:
And this is how it sounds:
Page last edited October 06, 2026