Skip to content

Commit c45e512

Browse files
committed
docs: update readme
1 parent 4d6d765 commit c45e512

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -585,11 +585,11 @@ To maintain the same behavior as non-continuous mode, you should listen for a re
585585

586586
## Improving accuracy of single-word prompts
587587

588-
You may notice that after saying single words, letters, or numbers (e.g. "a", "b", 1, 5, etc.) that the speech recognition service may not return any results until you speak further. In order to improve the accuracy of single-word prompts for Android and iOS, you have the following options:
588+
You may notice that after saying short syllables, words, letters, or numbers (e.g. "a", "b", 1, 5, etc.) that the speech recognition service may not return any results until you speak further. In order to improve the accuracy of single-word prompts for Android and iOS, you have the following options:
589589

590590
- For iOS, you can use the `iosTaskHint` option and set it to `confirmation`.
591-
- For Android, you can change the language model to web_search by adding `androidIntentOptions: { EXTRA_LANGUAGE_MODEL: "web_search" }` to `ExpoSpeechRecognitionModule.start(...)`. This seems to be superior over the default `free_form` model for single-word prompts.
592-
- For both platforms, you may want to consider using on-device recognition. On-device recognition tends to process smaller chunks of audio and is more responsive.
591+
- For Android, the Google Development team [recommends to use the `web_search` language model for this specific issue](https://issuetracker.google.com/issues/280288200#comment28). You can change to that model (from the default `free_form`) by adding `androidIntentOptions: { EXTRA_LANGUAGE_MODEL: "web_search" }` to `ExpoSpeechRecognitionModule.start(...)`.
592+
- For both platforms, you also may want to consider using on-device recognition. On Android this seems to work well for single-word prompts.
593593
- Alternatively, you may want to consider recording the recognized audio and sending it to an external service for further processing. See [Persisting Audio Recordings](#persisting-audio-recordings) for more information. Note that some services (such as the Google Speech API) may require an audio file with a duration of at least 3 seconds.
594594

595595
## Platform Compatibility Table
@@ -783,7 +783,7 @@ console.log("Default assistant service:", service.packageName);
783783
// or "com.samsung.android.bixby.agent" for Samsung
784784
```
785785

786-
### `supportsOnDeviceRecognition(): boolean` (Android only)
786+
### `supportsOnDeviceRecognition(): boolean`
787787

788788
Whether on-device speech recognition is available on the device.
789789

0 commit comments

Comments
 (0)