Class WllamaRealtimeSession

A realtime audio session. Events follow the OAI realtime schema, same as the /v1/realtime route of llama-server. Inference runs while events() is being read, so keep reading it to get a response.

Constructors

Methods

  • Same as sending input_audio_buffer.append.

    Parameters

    • samples: Float32Array

      mono PCM at LoadedContextInfo.audio_input_rate

    Returns Promise<void>

  • End the session and free its slot.

    Returns Promise<void>