spiel icon indicating copy to clipboard operation
spiel copied to clipboard

Change settings to offer default provider and voice/pitch/rate per language

Open eeejay opened this issue 1 year ago • 0 comments

A default voice does not make sense absent a language. There should be a default provider that is a fallback if there isn't a preset language/voice match.

The resolution order would be:

  • If utterance has a language property:
    • If a voice is mapped to the language (eg. es-MX) or its superset (eg. es) in the settings:
      • Use the defined voice
    • If there is no mapped language:
      • Search for a voice that supports the language in the defualt provider
      • If a voice was found:
        • Use it
      • If no voice was found move on to the next provider (in undeterminate order) and search again
  • If there is no language property in the utterance, use system locale and do search above.

In addition to a voice ID, each set language should also have a pitch and rate associated with it.

eeejay avatar Apr 05 '24 21:04 eeejay