Saturday, January 3, 2009

Updates to voices

I went back and forth for a long time on how to best do conversations.

I tried just a long mp3, but the timing was too variable.

I wanted something that was simple to where a whole bunch of text doesn't have to be put in to start a conversation.

I ended up with adding a name to the scripting event and have the conversation be that in order. So the first one is convo1, second is convo2, etc.

And then to top it off I wrote

unitmap = {fighter1:"en\\en-sc+m3",fighter2:"en\\en-sc+m2",alluvia:"en\\en-sc+f3",oath:"en\\en-wm+f3",balla:"en\\en-n+f3"}
name = "convo"
y = 1
for x in convo1:
if isinstance(x, tuple):
toex = 'C:\\eclipse\\eSpeak\\espeak.exe -w C:\\eclipse\\eSpeak\\'+name+str(y)+'.wav -a 50 -v '+unitmap[x[0]]+' "'+x[1]+'"'
os.system(toex)
print toex
y +=1


To automatically generate some espeak voices. Then you can import the list in audacity. and batch convert them to ogg files and you are good to go.

No comments:

Post a Comment