A (partial) implementation of the Speech Synthesis Interface Protocol for macOS.
The macOS say
command is used for speech synthesis.
Command |
---|
LIST VOICES |
SET (all | self | id) VOICE_TYPE type |
GET VOICE_TYPE |
SPEAK |
This requires node v8+.
You can install globally:
npm install --global https://github.com/andrewn/simon-say/archive/master.tar.gz
Or you can install locally:
npm install --save https://github.com/andrewn/simon-say/archive/master.tar.gz
Start the server listening on port 12345
using the command:
PORT=12345 simon-say
Start the server listening on host 0.0.0.0
and port 12345
using the command:
HOST=0.0.0.0 PORT=12345 simon-say
Start the server listening on the socket path /tmp/speechd.sock
use the command:
SOCKET_PATH=/tmp/speechd.sock simon-say
You can then use a client that speaks SSIP to connect to that socket and send commands.