1.5 KiB
1.5 KiB
Installing Authentic DECTalk Server
This guide shows how to install and run the authentic DECTalk server with the Moonbase Alpha voice.
Quick Install
cd ~/devcogs/ttstoy/dectalk-server
npm install
This installs the dectalk npm package which includes the authentic DECTalk binaries.
What You Get
The dectalk package provides:
- Perfect Paul voice (the Moonbase Alpha voice)
- Authentic DECTalk synthesis engine
- Support for DECTalk phoneme commands
- Same voice used by Stephen Hawking
Start the Server
PORT=3001 npm start
Or use the start script:
./start.sh
Test It
# Test health
curl http://127.0.0.1:3001/health
# Generate audio
curl "http://127.0.0.1:3001/say?text=aeiou" -o aeiou.mp3
ffplay aeiou.mp3
Configure TTSTOY
In Discord:
[p]ttstoy mode dectalk
[p]ttstoy dectalkurl http://127.0.0.1:3001
[p]tts aeiou john madden
Troubleshooting
"Cannot find module 'dectalk'"
Run npm install in the dectalk-server directory.
Port already in use
Use a different port:
PORT=3002 npm start
Linux dependency issues
The dectalk package may need additional libraries:
sudo apt install libasound2
DECTalk Commands
You can use DECTalk phoneme commands in your text:
[p]tts [:phoneme on] hehlow werld
[p]tts [:rate 200] speaking very fast
[p]tts [:dv ap 100] aeiou
These commands control pitch, rate, and other voice parameters just like in Moonbase Alpha.