Share via


RecognizerIntent.ExtraSegmentedSession Field

Definition

Optional string to enable segmented session mode of the specified type, which can be #EXTRA_AUDIO_SOURCE, #EXTRA_SPEECH_INPUT_MINIMUM_LENGTH_MILLIS or #EXTRA_SPEECH_INPUT_COMPLETE_SILENCE_LENGTH_MILLIS.

[Android.Runtime.Register("EXTRA_SEGMENTED_SESSION", ApiSince=33)]
public const string ExtraSegmentedSession;
[<Android.Runtime.Register("EXTRA_SEGMENTED_SESSION", ApiSince=33)>]
val mutable ExtraSegmentedSession : string

Field Value

Attributes

Remarks

Optional string to enable segmented session mode of the specified type, which can be #EXTRA_AUDIO_SOURCE, #EXTRA_SPEECH_INPUT_MINIMUM_LENGTH_MILLIS or #EXTRA_SPEECH_INPUT_COMPLETE_SILENCE_LENGTH_MILLIS. When segmented session mode is supported by the recognizer implementation and this extra is set, it will return the recognition results in segments via RecognitionListener#onSegmentResults(Bundle) and terminate the session with RecognitionListener#onEndOfSegmentedSession().

When setting this extra, make sure the extra used as the string value here is also set in the same intent with proper value.

Depending on the recognizer implementation, this value may have no effect.

Java documentation for android.speech.RecognizerIntent.EXTRA_SEGMENTED_SESSION.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to