>> anyway, thansk for the add_protocol, havn't seen that before...
>> with that it's probably possible to add a custom say command, if
>> i'm not wrong again.
> You're right, add_protocol is how say: is defined.
this is really fun, thought to share it with other newbies...
i was not lucky with the flashy festival output for "say", i'd
prefer it mixed with another soundfile on the fly. it's easy if
you have soX installed.
add_protocol(temporary=true,"nice_say",
fun (arg,delay) -> get_process_lines("/path/say_nice.sh "^quote(arg))
)
/path/say_nice.sh:
#!/bin/sh
# quick hack
sox -m base.wav "|echo $1 | text2wave |sox - -p pad 2 channels 2 rate 44.1k"
temp.wav
echo temp.wav
exit 0
this takes the file base.wav and mixes the output of text2wave at
position 2 sec, converts it into stereo 44.1k and writes it to a tempfile.
liquidsoap will happily delete it after playing, because of temporary=true
udo
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users