festvox / festival

Festival Speech Synthesis System
Other
376 stars 58 forks source link

--script causes "SIOD ERROR: unbound variable : Parameter.set" #65

Open JonLevin25 opened 2 years ago

JonLevin25 commented 2 years ago

I'm trying to configure mutli-bluetooth-device setup for TTS (on RPi), using Festival.

setting an arbitrary device works via:

(Parameter.set 'Audio_Command "aplay -D bluealsa:DEV=<MAC_ADDRESS>,PROFILE=a2dp -c 1 -t raw -f s16 -r $SR $FILE")
(SayText "test") ; plays on device :)

Doing the same in a scheme script (festival -b play_on_device.scm) works fine.

However, when I try to use --script I get the error:

SIOD ERROR: unbound variable : Parameter.set

(NOTE: I need --script for command line args, to paramaterize both the device to be played + the text itself)

From the docs:

--script scriptfile Run scriptfile as a Festival script file. This is similar to to --batch but it encapsulates the command line arguments into the Scheme variables argv and argc, so that Festival scripts may process their command line arguments just like any other program. It also does not load the the basic initialisation files as sometimes you may not want to do this. If you wish them, you should copy the loading sequence from an example Festival script like `festival/examples/saytext'.

searching for that example file (ls -R / 2>null | grep saytext), as we;; as om this repo - yielded no results..

Thanks!