Skip to content

Standardized output for languages() #3

Open
@HadrienGardeur

Description

@HadrienGardeur

Following up on the implementation of voices(), we'll be in a position to also work on languages() where the standardized output should be:

  • language as a BCP-47 language tag
  • count as the number of available voices for that language

As pointed out in #2, we'll need to be extra careful with the format for language since some browsers do not return proper BCP-47 language tags.

For the output, we can leverage the list of voices returned by voices() to list all languages and calculate a count.

We can also implement the following filters for this method:

  • quality, which would be a minimum required
  • recommended voices (a boolean)
  • and offline availability (a boolean)

The default should be the same than voices() which means that quality is set to low as the minimum, we don't filter exclusively on recommended voices and we don't filter out voices that require the user to be online.

Metadata

Metadata

Assignees

Type

No type

Projects

Status

In review

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions