The picospeaker wrapper is installed and working but FreePBX 15 doesn’t seem to be able to use it. Troubleshooting hints greatly appreciated, here’s what I’ve done so fat:
Copy picospeaker script into root’s home directory.
$ cd ~
$ chmod +x picospeaker
$ install -m 755 picospeaker /usr/bin
$ rm picospeaker
$ /usr/bin/picospeaker -o test.wav hello
Check the wave file contains audio: hello
$ rm test.wav
Settings / Text to Speech Engines / + Add TTS Engine:
Engine Name: pico
Engine Path: /usr/bin/picospeaker