I was trying to find text synthesizer that supports OSC but didn’t find any … so I made one. It’s called MaryOSC and it uses MaryTTS to do the hard parts. It got some nice effects and you can also save the created audio to files on the fly so you can use Sonic Pi effects also in that way.
Here are some examples:
Loop all voices:
use_osc "localhost", 9000
osc "/mary/effects", "Whisper(amount:50)+Robot(amount:100)"
live_loop :all_voices do
osc "/mary/voice", tick
osc "/mary/say", "binary dreams"
sleep 1
end
use_osc "localhost", 9000
osc "/mary/effects", "Volume(amount:0.5)+Stadium(amount:100)"
arr1 = ["dog","cat","cow","pig","fox","chicken","bunny","worm"]
arr = ["sheep","duck","bunny","chicken","wolf","deer","snail"]
live_loop :random do
osc "/mary/voice", "cmu-slt-hsmm"
osc "/mary/say", arr.choose+arr1.choose
sleep 2
end
live_loop :freaky do
tick
sample :bd_zome if (spread [4,8].choose,16).look
sample :bass_dnb_f if (spread [2,3].choose,16).look
play [40,42,46].choose if (spread [5,6].choose,16).look
sleep 0.25
end
Creating audio files on the fly:
use_osc "localhost", 9000
osc "/mary/save", "~/samples/mary/goodnight.wav", "Good night!"
sleep 1
sample "~/samples/mary/goodnight.wav"
I hope you all like it. Good night