mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-14 01:24:21 +01:00
Randomize tts voice more appropriately (#95272)
## About The Pull Request Adds a helper `SStts.random_tts_voice(gender)` which attempts to pick an appropriate voice for the passed gender ## Why It's Good For The Game Randomization into a completely wrong voice kinda ruins it ## Changelog 🆑 Melbert qol: TTS voice is more appropriately randomized to gender qol: Getting randomized through means such as mulligan toxin randomizes TTS voices /🆑 --------- Co-authored-by: Watermelon914 <37270891+Watermelon914@users.noreply.github.com>
This commit is contained in:
@@ -42,7 +42,7 @@
|
||||
if(!SStts.tts_enabled)
|
||||
return
|
||||
|
||||
voice = pick(SStts.available_speakers)
|
||||
voice = SStts.random_tts_voice()
|
||||
if(SStts.pitch_enabled)
|
||||
if(findtext(voice, "Woman"))
|
||||
pitch = 12 // up-pitch by one octave
|
||||
|
||||
Reference in New Issue
Block a user