Voice support

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
zen
Newbie
Posts: 16
Joined: Thu Dec 01, 2005 5:00 pm
Contact:

Voice support

#1 Post by zen » Mon Dec 18, 2006 4:51 pm

Back after a long absence, testing out version 5.3 on an old script that was unfinished. Voice seems not to work. As a test, I started a new game using the default template. To the option.rpy file I appended the contents of the voice.rpy file (version 5.3). To the script.rpy file i added the line: voice "welcome.wav" between the two lines of script. Set config.has_voice = True In the game directory I added a file named welcome.wav, trying a standard .wav, a speex .wav version, and a .ogg version. No voice is heard.

As a test, I enabled the option: config.sample_voice = "welcome.wav" , and voice is heard upon pressing test, in all three formats.

Any suggestions?

Also, documentation is unclear in voice.rpy on how to use the "new?" of specifying a voice per character. Could not find anything about it in the reference guide. I would be glad to contribute the missing voice section to the demo once I sort this out.

Thanks.

User avatar
PyTom
Ren'Py Creator
Posts: 15437
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

#2 Post by PyTom » Mon Dec 18, 2006 5:03 pm

I'm confused as to what you did. You should be using 5.6.4 (or .5, which I actually have to release), and then to play voice you would write:

Code: Select all

voice "hello.ogg"
e "Hello, world!"
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

BCS
Eileen-Class Veteran
Posts: 1305
Joined: Mon Sep 19, 2005 2:15 am
Location: Florida
Contact:

#3 Post by BCS » Mon Dec 18, 2006 5:15 pm

^^That's what I use for the massive amount of voice-acting in my game. Works fine.
I'm not even the same person anymore

zen
Newbie
Posts: 16
Joined: Thu Dec 01, 2005 5:00 pm
Contact:

#4 Post by zen » Mon Dec 18, 2006 6:36 pm

Ok, upgraded to version 5.6.5 I was testing on version 5.6.3, sorry for the typo.

In version 4.x, you had to copy in the voice code from the file voice.rpy found in the common folder. It appears that the voice function is now already included in version 5.x , and duplicating this code was causing it to fail. Everything worked fine once I removed the voice.rpy code I added in. Thanks.

BCS
Eileen-Class Veteran
Posts: 1305
Joined: Mon Sep 19, 2005 2:15 am
Location: Florida
Contact:

#5 Post by BCS » Mon Dec 18, 2006 10:50 pm

It's always good to hear a problem successfully solved :D.
I'm not even the same person anymore

Post Reply

Who is online

Users browsing this forum: Rydetox