The Artima Developer Community
Sponsored Link

Python Buzz Forum
Updates to voices

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Terra Caines

Posts: 65
Nickname: terraff
Registered: Feb, 2008

Terra's blog on creating a 3d tactics game in python
Updates to voices Posted: Jan 4, 2009 4:41 PM
Reply to this message Reply

This post originated from an RSS feed registered with Python Buzz by Terra Caines.
Original Post: Updates to voices
Feed Title: Terra's blog
Feed URL: http://terracaines.blogspot.com/feeds/posts/default?alt=rss
Feed Description: I am developing a open source 3d tactical game in python. This is showing the steps.
Latest Python Buzz Posts
Latest Python Buzz Posts by Terra Caines
Latest Posts From Terra's blog

Advertisement
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.

Read: Updates to voices

Topic: Further adventures in sound Previous Topic   Next Topic Topic: Rebuilding or modifying

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use