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

Consider changing return type of availableOnDevice() #141

Open
evanbliu opened this issue Feb 19, 2025 · 1 comment · May be fixed by #143
Open

Consider changing return type of availableOnDevice() #141

evanbliu opened this issue Feb 19, 2025 · 1 comment · May be fixed by #143

Comments

@evanbliu
Copy link
Collaborator

In the current spec, availableOnDevice(lang) returns a Promise that resolves to a boolean indicating whether on-device speech recognition is supported.

The Web Translation API, which uses on-device language packs to perform translations, has an analogous API that uses a enum to indicate the language pack availability status rather than a boolean. The enum consists of the values: "unavailable", "downloadable", "downloading", and "available".

@padenot
Copy link
Member

padenot commented Feb 20, 2025

It sounds worthwhile to follow whant they do.

@evanbliu evanbliu linked a pull request Feb 20, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants