Hierarchy (view full)

Constructors

Accessors

Methods

Constructors

  • Parameters

    • options: {
          apiKey?: string;
          audioSpeed?: number;
          baseUrl?: string;
          boostedKeywords?: string[];
          connOptions?: APIConnectOptions;
          generateNoInputPokeText?: boolean;
          generateWelcomeMessage?: boolean;
          languages?: string[];
          model?: string;
          noInputEndConversationSec?: number;
          noInputPokeSec?: number;
          noInputPokeText?: string;
          phonicAgent?: string;
          phonicTools?: string[];
          project?: string;
          voice?: string;
          welcomeMessage?: string;
      } = {}
      • Optional apiKey?: string

        Phonic API key. If not provided, will attempt to read from PHONIC_API_KEY environment variable

      • Optional audioSpeed?: number

        Audio playback speed

      • Optional baseUrl?: string
      • Optional boostedKeywords?: string[]

        Keywords to boost in speech recognition

      • Optional connOptions?: APIConnectOptions

        Connection options for the API connection

      • Optional generateNoInputPokeText?: boolean

        Auto-generate poke text when user is silent

      • Optional generateWelcomeMessage?: boolean

        When true, the welcome message will be automatically generated and welcomeMessage will be ignored

      • Optional languages?: string[]

        ISO 639-1 language codes the agent should recognize and speak

      • Optional model?: string

        The name of the model to use. Defaults to 'merritt'

      • Optional noInputEndConversationSec?: number

        Seconds of silence before ending conversation

      • Optional noInputPokeSec?: number

        Seconds of silence before sending poke message

      • Optional noInputPokeText?: string

        Poke message text (ignored when generateNoInputPokeText is true)

      • Optional phonicAgent?: string

        Phonic agent to use for the conversation. Options explicitly set here will override the agent settings.

      • Optional phonicTools?: string[]

        Phonic tool names available to the assistant

      • Optional project?: string

        Project name to use for the conversation. Defaults to main

      • Optional voice?: string

        Voice ID for agent outputs

      • Optional welcomeMessage?: string

        Welcome message for the agent to say when the conversation starts. Ignored when generateWelcomeMessage is true

    Returns realtime.RealtimeModel

Accessors

Methods