diff --git a/nodes/generator.py b/nodes/generator.py index 401a93a..d126646 100644 --- a/nodes/generator.py +++ b/nodes/generator.py @@ -150,9 +150,10 @@ class OmniVoiceGenerate: "AGE: child, teenager, young adult, middle-aged, elderly\n" "PITCH: very low pitch, low pitch, moderate pitch, high pitch, very high pitch, whisper\n" "\n" - "ACCENT EXAMPLES:\n" - " british accent, american southern accent, indian accent,\n" - " australian accent, french accent, japanese accent ...\n" + "ACCENTS (only these are supported by the model):\n" + " american accent, australian accent, british accent, canadian accent,\n" + " chinese accent, indian accent, japanese accent, korean accent,\n" + " portuguese accent, russian accent\n" "\n" "EXAMPLE: female, high pitch, british accent" ), diff --git a/nodes/voice_design.py b/nodes/voice_design.py index 188b706..fdcad86 100644 --- a/nodes/voice_design.py +++ b/nodes/voice_design.py @@ -11,36 +11,13 @@ class OmniVoiceVoiceDesign: "high pitch", "very high pitch", "whisper", ] + # Exactly the accents validated by the model's _resolve_instruct() ACCENTS = [ "none", - # English varieties - "american accent", "american southern accent", "american new york accent", - "american midwest accent", "american texas accent", - "british accent", "british rp accent", "british cockney accent", - "scottish accent", "welsh accent", "irish accent", - "australian accent", "new zealand accent", - "canadian accent", "south african accent", - # South / Southeast Asia - "indian accent", "pakistani accent", "bangladeshi accent", - "sri lankan accent", "singaporean accent", "malaysian accent", - "filipino accent", "vietnamese accent", "thai accent", - "indonesian accent", - # East Asia - "chinese accent", "japanese accent", "korean accent", - # Europe - "french accent", "german accent", "italian accent", - "spanish accent", "portuguese accent", "dutch accent", - "swedish accent", "norwegian accent", "danish accent", - "finnish accent", "polish accent", "czech accent", - "hungarian accent", "romanian accent", "greek accent", - "turkish accent", - # Eastern Europe / Central Asia - "russian accent", "ukrainian accent", "arabic accent", - "persian accent", "kazakh accent", - # Africa / Americas - "nigerian accent", "ghanaian accent", "kenyan accent", - "mexican accent", "brazilian accent", "caribbean accent", - "argentinian accent", + "american accent", "australian accent", "british accent", + "canadian accent", "chinese accent", "indian accent", + "japanese accent", "korean accent", "portuguese accent", + "russian accent", ] @classmethod @@ -54,7 +31,7 @@ class OmniVoiceVoiceDesign: "pitch": (cls.PITCHES, {"default": "none", "tooltip": "Pitch / register of the voice."}), "accent": (cls.ACCENTS, {"default": "none", - "tooltip": "Regional or language accent. Type to filter the list."}), + "tooltip": "Accent validated by the model. Only these 10 are supported."}), }, }