espeak-ng (TTS) library ported to teensy 4.

vindar

Well-known member
Hi everyone,

I’ve just ported the eSpeak-NG library to the T4/4.1. It’s a very capable text-to-speech synthesizer that supports many languages.

I expected it would be pretty easy to do, since there’s already a port for the ESP32 by Phil Schatzmann… Well, I was wrong ! I had to delve into the inner workings of the library (I hate pure C code), reimplement a minimal virtual file system, a memory allocator, and more... Anyway, the library is now up and running on the T4/4.1 !

The library comes with support for about 100 languages and a similar number of voice variants. It also supports SSML tags, allowing fine adjustment of the voice. Even with the T4’s (meager) 2MB of FLASH, you can already fit (and use) many languages simultaneously.

The quality is really impressive for a standalone TTS engine running on a microcontroller.

The library is available here: https://github.com/vindar/espeak-ng_T4/

I made a C/C++ "Arduino" wrapper compatible with PRJC's Audio library. Text can be spoken directly through the audio library or synthesized to a RAM buffer. I’ve included several examples to show how to use the library.

Have fun with it! At least I do :)
 
Back
Top