You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This method checks if on-device speech recognition is available for a specific language. Developers can use this to determine whether to enable on-device features or fall back to cloud-based recognition.
27
+
This method checks if on-device speech recognition is available for a specific language. Developers can use this to determine whether to enable features that require on-device speech recognition.
This method install the resources required for on-device speech recognition. The installation process may download and configure necessary language models.
This method install the resources required for on-device speech recognition for the given BCP-47 language codes. The installation process may download and configure necessary language models.
@@ -62,7 +62,6 @@ The `mode` attribute in the `SpeechRecognition` interface defines how speech rec
62
62
63
63
-**"on-device-preferred"**: Use on-device speech recognition if available. If not, fall back to cloud-based speech recognition.
64
64
-**"on-device-only"**: Only use on-device speech recognition. If it's unavailable, throw an error.
65
-
-**"cloud-only"**: Only use cloud-based speech recognition, bypassing on-device options entirely.
66
65
67
66
#### Example Usage
68
67
```javascript
@@ -72,8 +71,7 @@ recognition.start();
72
71
```
73
72
74
73
## Privacy considerations
75
-
To reduce the risk of fingerprinting, user agents must obtain explicit and informed user consent before installing on-device speech recognition languages that differ from the user's preferred language or when the user is not connected to an Ethernet or Wi-Fi network.
74
+
To reduce the risk of fingerprinting, user agents must implementing privacy-preserving countermeasures. The Web Speech API will employ the same masking techniques used by the [Web Translation API](https://github.com/webmachinelearning/writing-assistance-apis/pull/47).
76
75
77
76
## Conclusion
78
-
79
-
The addition of on-device speech recognition capabilities to the Web Speech API marks a significant step forward in creating more private, performant, and accessible web applications. By leveraging these new methods, developers can enhance user experiences while addressing key concerns around privacy and connectivity.
77
+
The addition of on-device speech recognition capabilities to the Web Speech API marks a significant step forward in creating more private, performant, and accessible web applications. By leveraging these new methods, developers can enhance user experiences while addressing key concerns around privacy and connectivity.
0 commit comments