Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sorting voices #6

Open
HadrienGardeur opened this issue Aug 9, 2024 · 0 comments
Open

Sorting voices #6

HadrienGardeur opened this issue Aug 9, 2024 · 0 comments
Assignees

Comments

@HadrienGardeur
Copy link
Member

While voices uses a fairly elaborate sort by default, we'd still like to make sure that implementers have full control over that by exposing the following means of sorting voices:

  • quality
  • name
  • language
  • region
  • gender

On language and region, an optional parameter should also allow implementers to support some languages/regions at the top by passing the equivalent of navigator.languages.

The typical use case for that would be that if my device returns en-us and fr-fr, then sorting all voices by language with this optional parameter should return English and French at the top, before every other language ordered by alphabetical order.
While sorting by regions on a list of voices filtered by English should put the US at the top, before every other region ordered by alphabetical order.

Ideally we would also support the ability to sort languages/region either based on:

Switzerland is a good example of that since its code is "CH".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: In review
Development

No branches or pull requests

2 participants