AudioEncoding

Unified audio models for microphone capture and playback across different glasses.

Design notes:

  • Microphone: SDK exposes "audio as a stream of chunks" (plus format metadata). Whether the app writes WAV/AAC or streams to ASR is an application-level decision.

  • Playback: a single playAudio(source, options) method supports both TTS (text input) and raw audio bytes. Devices declare canPlayTts / canPlayAudioBytes independently.

Entries

Link copied to clipboard

Signed 16-bit little-endian PCM.

Link copied to clipboard

Signed 8-bit PCM.

Link copied to clipboard

Opus frames (container-less).

Link copied to clipboard

LC3 frames as streamed by the device; host-side decoding is the app's responsibility.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
expect val name: String
Link copied to clipboard
expect val ordinal: Int

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.