Code: Select all
init python:
if renpy.windows:
config.tts_voice = "Mark"
elif renpy.macintosh:
config.tts_voice = "Alex"
elif renpy.linux:
config.tts_voice = "english_rp"
And studying what kind of voices men and women have in general, I came across a site
https://translated.turbopages.org/proxy ... indows-10/
Code: Select all
Windows 10 versions:
Language, country, or region Male voice name Female voice name
Arabic Not applicable Hoda
Arabic (Saudi Arabia) Naayf Not applicable
Bulgarian Ivan Not applicable
Catalan Not applicable Herena
Chinese (Simplified) Kangkang Huihui, Yaoyao
Cantonese (Traditional, Hong Kong SAR) Danny Tracy
Chinese (Traditional, Taiwan) Zhiwei Yating, Hanhan
Croatian Matej Not applicable
Czech (Czech Republic) Jakub Not applicable
Danish Not applicable Helle
Dutch Frank Not applicable
English (Australia) James Catherine
English (Canada) Richard Linda
English (Great Britain) George Hazel, Susan
English (India) Ravi Heera
English (Ireland) Sean Not applicable
English (United States) David, Mark Zira
Finnish Not applicable Heidi
Flemish (Belgian Dutch) Bart Not applicable
French (Canada) Claude Caroline
French (France) Paul Hortence, Julie
German (Germany) Stefan Hedda, Katja
German (Switzerland) Karsten Not applicable
Greek Stefanos Not applicable
Hebrew Asaf Not applicable
Hindi (India) Hemant Kalpana
Hungarian (Hungary) Szabolcs Not applicable
Indonesian (Indonesia) Andika Not applicable
Italian Cosimo Elsa
Japanese Ichiro Ayumi, Haruka
Malay Rizwan Not applicable
Norwegian Jon Not applicable
Polish (Poland) Adam Paulina
Portuguese (Brazil) Daniel Maria
Portuguese (Portugal) Not applicable Helia
Romanian (Romania) Andrei Not applicable
Russian (Russia) Pavel Irina
Slovak (Slovakia) Filip Not applicable
Slovenian Lado Not applicable
Korean Not applicable Heami
Spanish (Spain) Pablo Helena, Laura
Spanish (Mexico) Raul Sabina
Swedish Bengt Not applicable
Tamil Valluvar Not applicable
Thai (Thailand) Pattara Not applicable
Turkish Tolga Not applicable
Vietnamese An Not applicable
And the idea came to me, is it possible to automate the code for the characters of the game
Code: Select all
Character(_("Anna"), color = "#ffffff, tts_voice ="Zira")
Character(_("Mark"), color = "#ffffff, tts_voice ="Mark")
Code: Select all
init python:
if renpy.windows:
config.tts_voice = "Mark"
Code: Select all
Character(_("Anna"), color = "#ffffff, tts_voice ="female")
Character(_("Mark"), color = "#ffffff, tts_voice ="male")
init python:
if renpy.windows:
If male:
config.language.tts_voice = "boy"
If female:
config.language.tts_voice = "girl"
Another question is related to history.
Code: Select all
screen history():
tag menu
## Avoid predicting this screen as it can be very
## massive.
predict False
use game_menu(_("History"), scroll=("vpgrid" if gui.history_height else "viewport"), yinitial=1.0):
style_prefix "history"
for h in _history_list:
windows:
## This will properly equalize if history_height is
## is set to None.
has fixed:
yfit True
if h.who:
############################################################################
if h.voice and h.voice.filename: ###Here, of course, it is better to put a graphic button, less hassle with setting its location
textbutton "Play" action Play("voice", h.voice.filename)
textbutton "TTS Voice" action Play("voice", tts.voice)
############################################################################
label h.who:
style "history_name"
substitute False
## Gets the color from the character's who parameter, if it
## installed.
if "color" in h.who_args:
text_color h.who_args["color"]
$ what = renpy.filter_text_tags(h.what, allow=gui.history_allow_tags)
text what:
substitute False
if not _history_list:
label _("History of dialogs is empty.")
As a student of foreign languages, such a feature in the project would be very useful to me.