Fix voice gender assignments - verified against LibriSpeech SPEAKERS.TXT
This commit is contained in:
parent
c56b8cb24e
commit
b77af6d603
1 changed files with 23 additions and 23 deletions
|
|
@ -24,62 +24,62 @@ except ImportError:
|
||||||
print("Install required libraries: pip install datasets soundfile")
|
print("Install required libraries: pip install datasets soundfile")
|
||||||
|
|
||||||
# LibriSpeech test-clean speaker metadata
|
# LibriSpeech test-clean speaker metadata
|
||||||
# Curated for voice diversity - different genders, tones, pacing
|
# Gender verified against official SPEAKERS.TXT from OpenSLR
|
||||||
# Format: speaker_id: (gender, description)
|
# Format: speaker_id: (gender, description)
|
||||||
SPEAKERS = {
|
SPEAKERS = {
|
||||||
# Female speakers (11)
|
# Female speakers (11) - verified from SPEAKERS.TXT
|
||||||
"1089": ("female", "neutral, balanced - clear professional delivery"),
|
|
||||||
"1188": ("female", "warm, friendly - approachable delivery"),
|
|
||||||
"1221": ("female", "expressive, storyteller - engaging narration"),
|
"1221": ("female", "expressive, storyteller - engaging narration"),
|
||||||
"1320": ("female", "soft, gentle - calm and soothing"),
|
"1284": ("female", "clear, measured - precise enunciation"),
|
||||||
|
"1580": ("female", "clear narrator - smooth reading style"),
|
||||||
|
"2094": ("female", "warm, rich - resonant tone"),
|
||||||
"3570": ("female", "bright, energetic - lively and upbeat"),
|
"3570": ("female", "bright, energetic - lively and upbeat"),
|
||||||
"3575": ("female", "calm, neutral - steady and even"),
|
"3575": ("female", "calm, neutral - steady and even"),
|
||||||
"4446": ("female", "mature, authoritative - confident tone"),
|
"4446": ("female", "mature, authoritative - confident tone"),
|
||||||
"4507": ("female", "young, clear - crisp enunciation"),
|
"4507": ("female", "young, clear - crisp enunciation"),
|
||||||
|
"4970": ("female", "smooth, polished - announcer style"),
|
||||||
"5142": ("female", "warm, conversational - natural flow"),
|
"5142": ("female", "warm, conversational - natural flow"),
|
||||||
"6829": ("female", "crisp, articulate - precise diction"),
|
"6829": ("female", "crisp, articulate - precise diction"),
|
||||||
"6930": ("female", "smooth, polished - radio-style delivery"),
|
|
||||||
|
|
||||||
# Male speakers (10)
|
# Male speakers (10) - verified from SPEAKERS.TXT
|
||||||
"1284": ("male", "clear, measured - precise enunciation"),
|
"1089": ("male", "neutral, balanced - clear professional delivery"),
|
||||||
"1580": ("male", "clear narrator - smooth reading style"),
|
"1188": ("male", "warm, friendly - approachable delivery"),
|
||||||
"2094": ("male", "warm baritone - rich and resonant"),
|
"1320": ("male", "soft, gentle - calm and soothing"),
|
||||||
"2830": ("male", "young, energetic - dynamic delivery"),
|
"2830": ("male", "young, energetic - dynamic delivery"),
|
||||||
"4077": ("male", "mature, professor - thoughtful pacing"),
|
"4077": ("male", "mature, professor - thoughtful pacing"),
|
||||||
"4970": ("male", "smooth announcer - polished delivery"),
|
|
||||||
"5105": ("male", "neutral, clear - straightforward style"),
|
"5105": ("male", "neutral, clear - straightforward style"),
|
||||||
"5639": ("male", "deep, dramatic - authoritative tone"),
|
"5639": ("male", "deep, dramatic - authoritative tone"),
|
||||||
|
"6930": ("male", "smooth, polished - radio-style delivery"),
|
||||||
"7021": ("male", "light, conversational - casual tone"),
|
"7021": ("male", "light, conversational - casual tone"),
|
||||||
"7176": ("male", "warm storyteller - engaging narrative"),
|
"7176": ("male", "warm storyteller - engaging narrative"),
|
||||||
}
|
}
|
||||||
|
|
||||||
# 21 voices: gendered names that match the speaker
|
# 21 voices: gendered names that match the speaker
|
||||||
# Female names for female speakers, male names for male speakers
|
# Gender verified against LibriSpeech SPEAKERS.TXT
|
||||||
VOICE_MAP = {
|
VOICE_MAP = {
|
||||||
# Female voices (11)
|
# Female voices (11) - all verified female speakers
|
||||||
"aria": "1089", # F - neutral, balanced
|
"aria": "1221", # F - expressive, storyteller
|
||||||
"clara": "1188", # F - warm, friendly
|
"clara": "1284", # F - clear, measured
|
||||||
"elena": "1221", # F - expressive, storyteller
|
"elena": "1580", # F - clear narrator
|
||||||
"grace": "1320", # F - soft, gentle
|
"grace": "2094", # F - warm, rich
|
||||||
"hazel": "3575", # F - calm, neutral
|
"hazel": "3575", # F - calm, neutral
|
||||||
"iris": "4507", # F - young, clear
|
"iris": "4507", # F - young, clear
|
||||||
"luna": "3570", # F - bright, energetic
|
"luna": "3570", # F - bright, energetic
|
||||||
"maya": "5142", # F - warm, conversational
|
"maya": "5142", # F - warm, conversational
|
||||||
"ruby": "4446", # F - mature, authoritative
|
"ruby": "4446", # F - mature, authoritative
|
||||||
"sage": "6829", # F - crisp, articulate
|
"sage": "6829", # F - crisp, articulate
|
||||||
"sofia": "6930", # F - smooth, polished
|
"sofia": "4970", # F - smooth, polished
|
||||||
|
|
||||||
# Male voices (10)
|
# Male voices (10) - all verified male speakers
|
||||||
"atlas": "5639", # M - deep, dramatic
|
"atlas": "5639", # M - deep, dramatic
|
||||||
"caleb": "1284", # M - clear, measured
|
"caleb": "1089", # M - neutral, balanced
|
||||||
"felix": "7021", # M - light, conversational
|
"felix": "7021", # M - light, conversational
|
||||||
"hugo": "7176", # M - warm storyteller
|
"hugo": "7176", # M - warm storyteller
|
||||||
"jasper": "4077", # M - mature, professor
|
"jasper": "4077", # M - mature, professor
|
||||||
"kai": "2830", # M - young, energetic
|
"kai": "2830", # M - young, energetic
|
||||||
"leo": "4970", # M - smooth announcer
|
"leo": "6930", # M - smooth, polished
|
||||||
"marcus": "2094", # M - warm baritone
|
"marcus": "1188", # M - warm, friendly
|
||||||
"owen": "5105", # M - neutral, clear
|
"owen": "5105", # M - neutral, clear
|
||||||
"theo": "1580", # M - clear narrator
|
"theo": "1320", # M - soft, gentle
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue