Skip to main content

How to integrate Voice Technologies (Speech-to-Text, Text-to-Speech)

The AI agent can also understand voice queries (Speech-to-Text or STT) and respond with voice (Text-to-Speech or TTS), for example, during phone calls or via a voice interface.

Flametree supports integration with any external voice models compatible with OpenAI-like APIs (e.g., Azure Speech, Eleven Labs).

Speech-to-Text (STT) Integration

This integration allows the AI agent to transcribe user speech into text. It is used in voice channels (e.g., SIP, Twilio) and in the Playground interface when the microphone is enabled.

Steps:

  1. Go to the Integrations section
  2. Find the Speech-to-text (STT) integration type and click Add +
  3. Fill in the following fields:
FieldDescription
Name, DescriptionCustom name and description of the integration
OpenAI-compatible API URLSpeech recognition server URL
Access TokenAPI access token from the provider
TypeType of the integration e.g. whisper, local_whisper, 3i-vox
STT Model NameSTT model name. For local_whisper e.g. whisper-large, whisper-medium, whisper-small
  1. Click Save

Text-to-Speech (TTS) Integration

This integration allows the AI agent to speak responses out loud. It is used during phone calls or when voice playback is enabled in the Playground.

Steps:

  1. Go to the Integrations section
  2. Find the Text-to-speech (TTS) integration type and click Add +
  3. Fill in the following fields:
FieldDescription
Name, DescriptionCustom name and description of the integration
OpenAI-compatible API URLURL of the speech synthesis server
Access TokenAPI access token from the provider
TTS Model NameVoice model name (e.g., Polly.Salli, en-US-JennyNeural)
Voice Providere.g., azure, elevenlabs depending on the platform
Region (optional)For Azure: eastus, westeurope, etc.
  1. Click Save

Supported Platforms

Currently tested and supported:

  • OpenAI Whisper
  • Google Speech-to-Text (v2)
  • Azure Cognitive Services (Speech)
  • Eleven Labs (TTS)

Important Notes

  • A single AI agent can use different voice models for STT and TTS.
  • If you are using Twilio, there is no need to configure TTS/STT separately — Twilio uses its own built-in voice engines.
  • For SIP integration, you must configure STT and TTS manually.