Skip to content

Commit 2781f10

Browse files
committed
chore: update type docs about segments
1 parent c71ded0 commit 2781f10

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/ExpoSpeechRecognitionModule.types.ts

+7
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,15 @@ export type ExpoSpeechRecognitionNativeEventMap = {
5656
* Notes for Android:
5757
*
5858
* - This is only available for SDK 34+ (Android 14+)
59+
* - This is only verified to work with the `com.google.android.as` service (using on device speech recognition)
60+
* - Segments are only available during the final result
5961
* - The segment parts are split up by words.
6062
* - The segments are only available for the first transcript
63+
* - Segment confidences currently return as -1 (unavailable)
64+
*
65+
* Notes for iOS:
66+
*
67+
* - The confidence value will be 0 on partial results
6168
*/
6269
segments: {
6370
/** The start timestamp of the utterance, e.g. 1000 */

0 commit comments

Comments
 (0)