Integration guide

Avaya AI Voice Agent: TTS Integration Guide (2026)

Connect Fish Audio to Avaya through the Infinity media-streaming WebSocket, AEP audio payloads or MRCP.

Nov 11, 2026 Updated Nov 11, 2026

Avaya has more than one voice-agent path, and the right one depends on the platform generation. Avaya Infinity exposes a real-time media-streaming WebSocket for an external AI service; Avaya Experience Platform supports virtual-agent integrations with pre-recorded audio and TTS settings; older stacks may use CPaaS or MRCP. Fish Audio can supply the speech in an external service or pre-rendered files. There is no native Fish Audio Avaya integration, and Avaya Infinity's custom-TTS-provider feature is listed as coming soon.

The safest statement is the narrow one: connect through the documented interface for your version and verify the audio contract.

A cream desk phone, sculpted media-stream wave and connector cable connected by a coral voice ribbon and mint connected-agent light

What does Avaya provide versus Fish Audio?

Avaya provides:

  • Telephony, contact-center routing and agent desktop.
  • Avaya Infinity media streaming for external AI.
  • AEP virtual-agent integrations and flow orchestration.
  • CPaaS APIs and MRCP support on older stacks.
  • Administration, recordings and reporting.

Fish Audio provides:

  • Speech to text and streaming text to speech inside your service.
  • A reusable or cloned voice, with authorization.
  • API access for synthesis.

Avaya owns the call and the orchestration; Fish Audio owns the voice in your service or files.

What are the integration paths?

PathWhat it doesCustom Fish Audio voice?
Infinity media streaming (WebSocket)Bidirectional audio and JSON with an external AI serviceYes, in your service
AEP virtual-agent payloadsPre-recorded WAV and TTS parametersYes, pre-rendered
CPaaS APIsProgrammatic calls with TTS or audioVerify the current API
MRCP speech serverLegacy IVR integration with a TTS engineDepends on the server

The Avaya Infinity media-streaming documentation is the source of truth for the WebSocket contract.

How does the Infinity media-streaming flow work?

  1. Avaya receives the call. The flow routes it to the external AI service.
  2. The WebSocket connects. The service authenticates with JWT and TLS.
  3. Audio and events arrive. The protocol carries caller audio and JSON events.
  4. Speech to text. Your service transcribes the caller.
  5. Agent turn. The dialogue manager selects the answer and tools.
  6. Text to speech. Fish Audio synthesizes the reply.
  7. Audio returns. Send it in the supported codec and flow.
  8. Escalate. Transfer to a human with transcript context when policy requires.

The documented codecs include PCMU, PCMA and G.722. Verify the current ingress and egress behavior for your release.

How does the AEP pre-recorded path work?

For an Avaya Experience Platform virtual agent, generate the prompt with Fish Audio, export a WAV file and reference it through the supported custom payload or audio field. TTS voice parameters can be set in the payload for the platform's own TTS; a custom Fish Audio voice is delivered as pre-rendered audio.

Use this for static prompts. A live conversation needs the streaming path.

What latency and quality should you test?

Measure p95 time to first audio on the real Avaya path. Include the WebSocket setup, codec conversion, barge-in and transfer to a human.

Test:

  • JWT and TLS authentication.
  • Codec and packetization.
  • Barge-in and turn boundaries.
  • Transfer with transcript context.
  • Reconnect behavior after a drop.
  • Prompt playback for pre-recorded files.

What are the common failure modes?

FailureSafe fallback
WebSocket authentication failsCheck JWT scope, clock and TLS
Codec mismatchRe-encode to the documented codec
Custom TTS provider is not availableUse pre-recorded audio or an external service
Audio chunks arrive latePlay a short hold line or transfer
Transfer loses contextPass a summary and the caller's request
Pre-recorded file is rejectedCheck the payload schema and format
Caller interruptsCancel the current audio and listen

Which metrics should you track?

MetricWhat it tells you
p95 time to first audioThe real conversational latency
WebSocket error rateWhether the stream is stable
Barge-in cancellation rateWhether the agent yields correctly
Transfer success rateWhether the handoff works
Call completion rateWhether the agent finishes the task
Prompt playback failuresWhether the pre-recorded path is reliable
Cost per callSpeech plus Avaya plus runtime

How much does the speech layer cost?

Natural speech is roughly 150 words per minute, close to 900 characters. One Fish Audio credit covers about 1,000 characters, so agent speech starts near one credit per minute before retries or longer answers.

PackPriceCreditsApproximate agent speech
Starter$91,000About 16 hours
Creator$294,000About 66 hours, plus commercial rights
Studio$9915,000About 250 hours, plus API access

Avaya licensing, telephony, media streaming and the agent runtime remain separate. The TTS API pricing guide converts characters into a full budget.

Key takeaways

  • Avaya has multiple voice-agent paths; choose by platform generation.
  • Infinity media streaming supports an external AI service over WebSocket.
  • AEP can use pre-recorded WAV and TTS payload settings.
  • Avaya Infinity's custom TTS provider is listed as coming soon; verify before relying on it.
  • Test auth, codec, barge-in and transfer on the real path.
  • There is no native Fish Audio Avaya integration.

Frequently asked questions

Does Avaya support a custom TTS voice?

There are several paths: Avaya Infinity real-time media streaming for an external AI service, Avaya Experience Platform virtual agents with pre-recorded audio and TTS payload settings, CPaaS APIs, and MRCP speech servers on older stacks. Avaya Infinity lists a custom TTS provider feature as coming soon, so verify the current release before depending on it.

Can Fish Audio be used with Avaya?

Yes. Run an external media service that uses Fish Audio and connect it through the supported streaming interface, or pre-render WAV audio and use it where the platform accepts custom prompts. There is no native Fish Audio Avaya integration.

What is Avaya Infinity real-time media streaming?

It is an open WebSocket protocol for bringing your own AI to Avaya Infinity. It carries bidirectional audio and JSON events, supports virtual-agent integration and escalation, and uses JWT authentication and TLS with telephony codecs such as PCMU, PCMA and G.722.

Can AEP play pre-recorded audio?

Avaya Experience Platform virtual-agent integrations can use pre-recorded WAV files and TTS voice parameters through custom payloads. Check the current payload schema for your Dialogflow or virtual-agent version.

How much does the speech layer cost?

At roughly 150 words per minute, one minute of agent speech is about one Fish Audio credit. Avaya licensing, telephony, media streaming and the agent runtime are separate costs.

Avaya AI Voice Agent: TTS Integration Guide (2026)