For the complete documentation index, see llms.txt. This page is also available as Markdown.

Voice Agent

Let Agents serve customers by listening and speaking, with realtime conversations, STT/LLM/TTS pipelines, and interruption control

What is it?

Voice Agents let Agents interact through voice: users speak, and AI speaks back. They integrate realtime voice models, STT (speech to text), TTS (text to speech), and interruption control for scenarios such as telephone customer service, IVR, and voice assistants.

Once enabled, a button for entering “Voice Interaction Mode” appears in the input bar in MaiGPT, the Agent Marketplace, and Web Chat. Click it to start speaking. See How users start a conversation.

Three interaction modes

Each mode suits different needs, depending on latency, voice customization, and tool support.

Mode
How it works
Suitable scenarios

Realtime

Uses a voice model directly for realtime voice conversations

Scenarios that require the lowest latency and can use preset voices

Realtime + TTS

Combines a realtime voice model with custom TTS output

Scenarios that need a custom brand voice while retaining realtime responsiveness

STT + LLM + TTS

A traditional pipeline: speech to text → LLM → text to speech

Scenarios that need full tool support and maximum flexibility and can accept slightly higher latency

Quick guide: For the fastest, most natural interaction → Realtime; for a brand voice → Realtime + TTS; for maximum flexibility and tool support → STT + LLM + TTS.

Configuring Voice Agent settings

Voice Agent Settings appears after the role instructions section on the Response Mode Settings tab of the Agent settings page (only when AI Voice Agent is activated for your organization). At the top is the “Enable Voice Agent” master switch. Turning it off collapses all settings and disables this Agent's voice service through the voice entry points in Web Chat, telephone calls, and the admin console. Once enabled, complete the following three sections in order. When collapsed, each section shows a summary of its current settings on the right.

1. Voice technology

First, click a mode card under “Voice Agent Mode” (click again to deselect), then choose providers and enter the configuration for that mode:

Mode
Providers to select
Configuration fields

Realtime

Realtime Voice Provider

Realtime Voice Configuration

Realtime + TTS

Realtime Voice Provider, Text to Speech (TTS) Provider

Realtime Voice Configuration, TTS Configuration

STT + LLM + TTS

Speech to Text (STT) Provider, Text to Speech (TTS) Provider

STT Configuration, TTS Configuration

Each provider field has two configuration fields side by side below it: the read-only “Configuration Example” on the left and the JSON configuration that actually takes effect on the right.

  • Currently supported providers: STT supports OpenAI, Azure, and Bronci (Taiwanese Hokkien/Mandarin/Hakka); TTS supports OpenAI, Azure, VoAI, and Bronci; realtime voice supports OpenAI Realtime and Google Gemini Live. The list shows only providers activated for your organization. If it is empty, “No providers available” appears. Contact MaiAgent to activate a provider.

  • Selecting a provider automatically fills the right-hand field with its example configuration. You can usually save it directly; edit the JSON to change the voice, language, transcription model, or other settings. The “Configuration Reference” table below the example lists each parameter's type, default, allowed values, and description. Refer to it when configuring settings such as User transcript settings.

  • The configuration must be valid JSON. Otherwise, the field displays “Invalid configuration format. Enter valid JSON,” and saving expands the corresponding section so you can correct it. If the configuration is empty, a reminder appears before saving: “Configuration is empty. The default configuration will be applied after saving.” Confirm to save with the default configuration.

Choosing a realtime voice model

Options in “Realtime Voice Provider” appear as “Model name (Provider),” such as gemini-3.8-live (Google Gemini Live) and gpt-realtime-2.1 (OpenAI Realtime). Google Gemini Live currently offers two models:

Model
Description

gemini-3.8-live

Listed first in the menu, this is the successor to gemini-live-2.5-flash-native-audio. Like 2.5, it supports only “Realtime” mode and requires “Enable Voice Responses” to be on. See the warning below

gemini-live-2.5-flash-native-audio

The existing model. Agents already using it can continue making calls as usual. Google has announced its retirement (scheduled for December 13, 2026 on Vertex AI). Agents using it currently do not switch to 3.8 automatically; switch manually before retirement

Realtime Voice Provider dropdown, with gemini-3.8-live (Google Gemini Live) first, followed by gemini-live-2.5-flash-native-audio and several OpenAI Realtime models
Realtime Voice Provider menu: gemini-3.8-live appears first; 2.5 remains available

For example, a customer service manager's telephone support Agent has been answering calls with gemini-live-2.5-flash-native-audio and needs to switch to 3.8 before 2.5 is retired:

  1. On the Agent settings page, go to Response Mode Settings → Voice Agent Settings and expand “Voice Technology.” Confirm that “Voice Agent Mode” is set to “Realtime.”

  2. Under “Realtime Voice Provider,” select gemini-3.8-live (Google Gemini Live). The “Realtime Voice Configuration” field on the right changes to the 3.8 example configuration. Re-enter any parameters you customized, such as voice.

  3. Click Save at the bottom right, then open Voice Interaction Mode and try speaking. Confirm that you can hear responses and that text appears for both sides in the conversation history.

Before switching, the manager can also compare the costs of the two models. Realtime voice calls consume Credits based on audio and text input and output usage for the selected model. Rates differ between 3.8 and 2.5. Go to Organization Settings → Credits → Billing Methods, expand “Speech Recognition and Synthesis Technology,” then expand items such as “Realtime Voice Output (Text)” to see each model's rates. See Credits billing system.

The expanded Realtime Voice Output (Text) billing item lists separate rates per thousand Tokens for gemini-3.8-live and gemini-live-2.5-flash-native-audio
Expand Realtime Voice Output (Text) to view the separate rates for 3.8 and 2.5

gemini-3.8-live thinks before answering. This thinking usage is included in “Realtime Voice Output (Text)” and consumes Credits at the 3.8 text output rate. gemini-live-2.5-flash-native-audio has no thinking usage, and its billing remains unchanged. Include this additional usage when estimating the cost of switching to 3.8.

2. Realtime voice prompt

The “Realtime Voice Prompt” is a prompt used only by the voice model. Leave it empty to use the role instructions. The message above the field explains what currently takes effect based on the combination of voice mode, response mode, and whether the field is filled in:

On-screen message
When it appears
Meaning

This mode does not support voice prompts

STT + LLM + TTS

This mode always uses the role instructions, and the field cannot be edited. Use Realtime or Realtime + TTS for a voice-specific prompt

Currently active: using role instructions

Realtime modes × RAG Q&A × empty

The voice model responds directly using the role instructions

Currently active: this prompt replaces the role instructions

Realtime modes × RAG Q&A × filled in

In RAG Q&A, the knowledge base returns only retrieved passages. The voice model generates answers based on this prompt; the role instructions have no effect at all

Currently active: the voice layer uses role instructions

Realtime modes × other response modes such as Agent × empty

Voice delegates questions to the text response workflow; the role instructions and tools still determine answers

Currently active: affects only the voice interaction layer

Realtime modes × other response modes such as Agent × filled in

Answer content stays the same. This prompt adjusts only how the voice model speaks (tone, style, pauses)

To make adjustments based on the role instructions in RAG Q&A mode, click “Use Role Instructions as a Starting Point” to copy them into the field, then edit. If the field already contains text, you will first be asked to confirm “Overwrite Voice Prompt.”

3. Conversation behavior

  • “Enable Voice Responses”: Turn this off for text-only responses without audio playback, suitable when you only want voice input.

  • “Interruption Control Settings”: Allows users to interrupt the Voice Agent while it is responding. Once enabled, you can adjust Minimum Speech Duration (Seconds) and Minimum Word Count. These two fields take effect only in STT + LLM + TTS mode; other modes display a reminder and disable the fields. See Interruption control.

The “Usage Notes” at the bottom of the section remind you that Voice Agents search all linked knowledge bases; you cannot select specific files to search. When finished, click Save at the bottom right.

Interruption control (Turn Handling)

A key part of the voice conversation experience is whether users can interrupt AI while it is speaking, and how to distinguish actual speech from noise or filler sounds.

Adjustable parameters:

Parameter
Description

Minimum Speech Duration (Seconds)

How many seconds the user must speak before it counts as an interruption attempt

Minimum Word Count

How many words the user must say to trigger an interruption

Note: min_duration and min_words take effect only in STT + LLM + TTS mode. In Realtime mode, the voice model handles interruption detection internally.

User transcript settings (Realtime mode)

In Realtime and Realtime + TTS modes, the voice model listens directly to the user's audio. A separate transcription model generates the text record of what the user said (the user transcript). When Realtime Voice Provider is set to OpenAI, use input_audio_transcription in the Realtime Voice Configuration JSON to specify transcription settings:

Field
Description

model

Transcription model: gpt-4o-transcribe, gpt-4o-mini-transcribe, gpt-transcribe, or gpt-live-transcribe. Defaults to gpt-4o-mini-transcribe when omitted

language

Language hint using an ISO-639-1 code (such as zh, en, or ja). Leave empty for automatic detection

prompt

A hint for the transcription model, such as expected terminology or instructions to output in Traditional Chinese

The settings page lists each field's type, default, and allowed values below the configuration field for reference.

  • Affects only the transcript: These settings determine the text on the user's side of the call record. They do not change what the voice model hears or how it responds.

  • Multilingual calls: If users mix languages, leave language empty for automatic detection. For a single language, enter its code for more stable recognition.

  • Billing: User transcripts consume Credits based on speech-to-text duration in seconds for the transcription model actually used. To see each model's rate, go to Organization Settings → Credits → Billing Methods. See Credits billing system.

Conversation states

During a voice conversation, the interface shows the current state:

  • Listening: AI is receiving the user's speech

  • Thinking: AI is processing (searching knowledge bases, using tools, generating a response)

  • Responding: AI is replying with audio

  • Initializing: The connection has just been established and is being prepared

How users start a conversation

Once Voice Agent is enabled for an Agent, users need no setup. They can switch to voice from the existing text conversation screen:

Where the user is
Entry point

Conversation page in MaiGPT or the Agent Marketplace in the admin console

A Voice Interaction Mode button appears on the right of the input bar. AI Voice Agent must be activated for the organization, and Voice Agent must be enabled for the current Agent

Web Chat on a website

The headphones icon next to the input box (different from the microphone icon for Voice input: the microphone converts one spoken utterance to text and sends it; headphones start a realtime call)

Standalone voice conversation page

A Voice Mode link appears next to the conversation platform's Public Access URL (see Basic settings). It opens a page dedicated to calls: click Start Conversation, and “Dialing” appears before the call connects

Voice Interaction Mode window

After you click the button, the browser asks for microphone permission (on first use). The button shows “Connecting...,” then opens the Voice Interaction Mode window:

Section
Description

Usage Notes

Reminds you that Realtime and Realtime + TTS support only MCP tools and that Voice Agents search all linked knowledge bases (see Limitations)

Connection Status

Not connected → Connecting... → Connected; displays “Connection failed” on failure

Current state

Initializing / Listening / Thinking / Responding. See Conversation states. Displays “Subagent responding…” when the Agent delegates to another Agent

Conversation History

A live text record of this call. Displays “Waiting for conversation to start...” before connection

Mute Microphone / Unmute Microphone

Temporarily mute or unmute the microphone. A “Recording” indicator appears while recording

End Call

Disconnects and closes the window. The call content remains as text in the original conversation, so you can continue by typing

Common messages

On-screen text
What to do

“Microphone permission denied” / “Please allow microphone access to use voice features”

Allow microphone access in the site permissions on the left of the browser address bar, then try again

“No microphone device found”

Check that a microphone or headset is connected and selected in your system's sound settings

“Assistant connection timed out. Please try again later”

The voice service did not connect. Wait a few seconds and try again. If this persists, ask your administrator to check the Agent's voice provider settings

“Unable to start Voice Interaction Mode”

The system temporarily cannot establish a voice connection. Try again later. If this persists, contact your administrator

How does it differ from regular text conversations?

Text Agent
Voice Agent

Input

Typing, attaching files

Microphone audio, possibly DTMF key presses

Output

Text, Markdown, images, files

Audio, followed by a text transcript

Latency requirements

Delays of seconds are acceptable

Millisecond-level latency is needed for a natural experience

Suitable scenarios

Detailed information and records to review later

Immediate responses, hands-free use, telephone customer service

Suitable scenarios

  • Telephone customer service: Replace traditional IVR with AI that answers calls, listens to questions, and provides answers

  • Voice inquiry systems: Customers call to check orders, balances, or insurance policies

  • Voice FAQ: Ask frequently asked questions directly by speaking

  • Driving / hands-free scenarios: Users cannot type but need AI assistance

  • Accessibility needs: More accessible for users who find typing difficult

Limitations

  • Tool support: Realtime and Realtime + TTS currently support only MCP tools. Use STT + LLM + TTS for API tools

  • Knowledge base search: Voice Agents search all linked knowledge bases; you cannot restrict searches to specific documents

  • Gemini Live models: gemini-3.8-live and gemini-live-2.5-flash-native-audio support only Realtime mode and require “Enable Voice Responses” to be on. Calls cannot respond normally with Realtime + TTS, voice responses turned off (text-only responses), or an AI Copilot conversation platform triggered by “Every Received Message.” See Choosing a realtime voice model

  • Microphone permission: Users must grant the browser microphone access before starting a conversation

What do I need to do?

  1. Open Agent settings — On the settings page of the Agent you want to enable voice for, switch to Response Mode Settings, find Voice Agent Settings, and turn on Enable Voice Agent. This section appears only when AI Voice Agent is activated for the organization

  2. Choose a Voice Agent mode — Select Realtime / Realtime + TTS / STT + LLM + TTS

  3. Select providers and configure them — Choose the STT / TTS / Realtime providers for the mode. Selecting a provider automatically fills in an example configuration. See Voice technology

  4. Set the voice prompt (optional) — Leave empty to use the role instructions, or fill it in according to the table under Realtime voice prompt

  5. Adjust conversation behavior (optional) — Choose whether to play voice responses and allow interruptions. STT + LLM + TTS also supports minimum duration and word count settings

  6. Test — Start a voice call in the interface and confirm that connection, listening, and responses all work smoothly

Further reading

Last updated

Was this helpful?