Self-voicing on windows 10. Changing the voice gender? (2025)

  • Quick links
    • Unanswered topics
    • Active topics
    • Search
    • Members
    • The team
  • FAQ
  • Login
  • Register
  • Board indexRen'Py Visual Novel EngineRen'Py Questions and Announcements
  • Search
  • Unanswered topics
  • Active topics

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

  • Print view

9 posts• Page 1 of 1

Message

Author

crackshot91
Newbie
Posts: 4
Joined: Sun Aug 07, 2011 1:31 am
Contact:

Contact crackshot91

Send private message

Self-voicing on windows 10. Changing the voice gender?

  • Quote

#1Postby crackshot91 »

Many games developed using Ren'Py have a self-voicing feature (Press V and you'll hear it), but I can't seem to be able to make the games use the female voice (Microsoft Zira). No matter what setting I choose in the voice settings control panel, the games use Microsoft David's voice. How do I get Ren'Py games to use a different voice?

Top

PyTom
Ren'Py Creator
Posts: 16127
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:

Contact PyTom

Send private messageTwitterWebsite

Re: Self-voicing on windows 10. Changing the voice gender?

  • Quote

#2Postby PyTom »

I don't know. To play voice on window, we use the wscript program to run lib/windows-i686/say.vbs . You can look at that to see what's going on, but I think it's supposed to use the default voice.

Supporting creators since 2004
(When was the last time you backed up your game?)

"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

Top

crackshot91
Newbie
Posts: 4
Joined: Sun Aug 07, 2011 1:31 am
Contact:

Contact crackshot91

Send private message

Re: Self-voicing on windows 10. Changing the voice gender?

  • Quote

#3Postby crackshot91 »

Unfortunately I am a strict novice, so I'm not sure how to go about investigating this. By "default voice", I'm assuming you mean Microsoft David? Is there a way to make Zira the default voice? Could I maybe uninstall Microsoft David's voice?

Top

PyTom
Ren'Py Creator
Posts: 16127
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:

Contact PyTom

Send private messageTwitterWebsite

Re: Self-voicing on windows 10. Changing the voice gender?

  • Quote

#4Postby PyTom »

I'm pretty much just a much a novice when it comes to Windows 10's SAPI support. I have no idea.

Supporting creators since 2004
(When was the last time you backed up your game?)

"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

Top

DragoonHP
Miko-Class Veteran
Posts: 759
Joined: Tue Jun 22, 2010 12:54 am
Completed: Christmas
IRC Nick: DragoonHP
Location: Zion Island, Solario
Contact:

Contact DragoonHP

Send private message

Re: Self-voicing on windows 10. Changing the voice gender?

  • Quote

#5Postby DragoonHP »

So I tried my hand at it.

Change say.vbs to

Code: Select all

Text = WScript.Arguments(0)Speaker = WScript.Arguments(1)Set s = CreateObject("SAPI.SpVoice")For Each Voice In s.GetVoices I = I + 1 If InStr(Voice.GetDescription, Speaker) > 0 Then Set s.Voice = s.GetVoices.Item(I-1) Exit For End IfNexts.Speak Text

Not the best way but it should work. This script basically checks if the required voice pack is installed on the system. If yes, it uses that voice, otherwise it uses the default voice.

And for this to work, change the last line in default_tts_function to

Code: Select all

process = subprocess.Popen([ "wscript", renpy.exports.fsencode(say_vbs), renpy.exports.fsencode(s), renpy.exports.fsencode("Zira") ])

Or maybe it would be better to create a config variable for sapi voice. I dunno.

If you want any help in Ren'Py programming, drop me a message!(I don't bite... at least not most of the time :3 )

Top

crackshot91
Newbie
Posts: 4
Joined: Sun Aug 07, 2011 1:31 am
Contact:

Contact crackshot91

Send private message

Re: Self-voicing on windows 10. Changing the voice gender?

  • Quote

#6Postby crackshot91 »

You guys are gonna think I'm stupid, but I'm not actually developing a game myself. I'm just trying to get a couple Ren'Py games to use a different voice. Particularly Starlight Vega. I posted this question in the Starlight Vega forum, but I've yet to receive a response.

So, I edited the say.vbs file to reflect what you suggested, DragoonHP, but I'm unclear about what you mean by "changing the last line in default_tts_function". Is this a user-configurable thing, or does the dev need to do this? Sorry for the embarrassingly nooby questions. I'm just a dumb end user looking for a solution. Self-voicing on windows 10. Changing the voice gender? (3)

Top

DragoonHP
Miko-Class Veteran
Posts: 759
Joined: Tue Jun 22, 2010 12:54 am
Completed: Christmas
IRC Nick: DragoonHP
Location: Zion Island, Solario
Contact:

Contact DragoonHP

Send private message

Re: Self-voicing on windows 10. Changing the voice gender?

  • Quote

#7Postby DragoonHP »

It will be a better if the devs change it. But in your case, you can just change the second line to

Speaker = "Zira"

directly. (Instead of Zira, you can use other names like Hazel, David, Sam etc)

If you want any help in Ren'Py programming, drop me a message!(I don't bite... at least not most of the time :3 )

Top

crackshot91
Newbie
Posts: 4
Joined: Sun Aug 07, 2011 1:31 am
Contact:

Contact crackshot91

Send private message

Re: Self-voicing on windows 10. Changing the voice gender?

  • Quote

#8Postby crackshot91 »

Ahh! It worked!!! You rock. Self-voicing on windows 10. Changing the voice gender? (4)

Top

maxlefou
Newbie
Posts: 4
Joined: Thu May 23, 2019 4:02 pm
Contact:

Contact maxlefou

Send private message

Re: Self-voicing on windows 10. Changing the voice gender?

  • Quote

#9Postby maxlefou »

Sorry to necropost but i'm having the same problem.

While the block code about say.vbs seems to be already set in renpy 7.3.5.606, the other line in the default_tts_function wasn't. So i did what it says, but it causes renpy to not start at all (not just the game, the whole renpy launcher as well) without logging anything. putting back the original line fixes it but well, back to start then.

Does anyone find an idea on how to fix it?

Top

Post Reply

  • Print view

9 posts• Page 1 of 1

Return to “Ren'Py Questions and Announcements”

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot]

  • Board index
  • All times are UTC-04:00
  • Delete cookies
  • Members
  • The team

Style developed by Zuma Portal and Turaiel.

Powered by phpBB® Forum Software © phpBB Limited

Privacy|Terms

Self-voicing on windows 10. Changing the voice gender? (2025)
Top Articles
Latest Posts
Recommended Articles
Article information

Author: Trent Wehner

Last Updated:

Views: 6151

Rating: 4.6 / 5 (56 voted)

Reviews: 95% of readers found this page helpful

Author information

Name: Trent Wehner

Birthday: 1993-03-14

Address: 872 Kevin Squares, New Codyville, AK 01785-0416

Phone: +18698800304764

Job: Senior Farming Developer

Hobby: Paintball, Calligraphy, Hunting, Flying disc, Lapidary, Rafting, Inline skating

Introduction: My name is Trent Wehner, I am a talented, brainy, zealous, light, funny, gleaming, attractive person who loves writing and wants to share my knowledge and understanding with you.