A pipeline agent (VAD + STT + LLM + TTS) implementation.

Hierarchy

Constructors

Properties

MIN_TIME_PLAYED_FOR_COMMIT: 1.5 = 1.5

Minimum time played for the user speech to be committed to the chat context.

Accessors

Methods

  • Play a speech source through the voice assistant.

    Parameters

    • source: string | llm.LLMStream | AsyncIterable<string>
    • allowInterruptions: boolean = true
    • addToChatCtx: boolean = true

    Returns Promise<void>

  • Start the voice assistant.

    Parameters

    • room: Room

      The room to connect to.

    • participant: null | string | RemoteParticipant = null

      The participant to listen to.

      Remarks

      Can be a participant or an identity. If omitted, the first participant in the room will be selected.

    Returns void