public static abstract @interface **AudioSource.Mode** implements [Annotation](https://developer.android.com/reference/java/lang/annotation/Annotation.html) The mode of the audio source.

### Constant Summary

|---|---|---|
| int | [ONE_SHOT](https://developers.google.com/android/reference/com/google/mlkit/genai/common/audio/AudioSource.Mode#ONE_SHOT) | One-shot mode. |
| int | [STREAMING](https://developers.google.com/android/reference/com/google/mlkit/genai/common/audio/AudioSource.Mode#STREAMING) | Streaming mode. |

### Inherited Method Summary

From interface java.lang.annotation.Annotation

|---|---|
| abstract [Class](https://developer.android.com/reference/java/lang/Class.html)\<? extends [Annotation](https://developer.android.com/reference/java/lang/annotation/Annotation.html)\> | annotationType() |
| abstract boolean | equals([Object](https://developer.android.com/reference/java/lang/Object.html) arg0) |
| abstract int | hashCode() |
| abstract [String](https://developer.android.com/reference/java/lang/String.html) | toString() |

## Constants

#### public static final int
**ONE_SHOT**

One-shot mode.

The model waits to analyze the entire audio source before generating any output.
Constant Value: 1

#### public static final int
**STREAMING**

Streaming mode.

The model generates output (e.g., a transcribed sentence) continuously as the user
is speaking.
Constant Value: 0