Hume AI
Updated
Integrate Hume AI TTS into Conversational AI Engine.
Hume AI provides emotion-aware text-to-speech technology that generates natural, expressive voices with emotional intelligence. The platform offers both curated voices from the Voice Library and support for custom voice creation, enabling personalized audio experiences.
Info
This integration is fully supported for use with Conversational AI Engine. While it has completed functional validation, it is newer to the platform, and additional provider-specific edge cases may be identified as usage scales across a broader range of applications and workloads.
Sample configuration
The following examples show how to configure Hume AI TTS when starting a conversational AI agent.
from agora_agent import Agent
from agora_agent.agentkit.vendors import HumeAITTS
# client is your configured Agora client
agent = (
Agent(client)
.with_stt(...) # configure your STT vendor
.with_llm(...) # configure your LLM vendor
.with_tts(HumeAITTS(
key='your-hume-key',
voice_id='your-voice-id',
provider='HUME_AI',
))
)import { Agent, HumeAITTS } from 'agora-agents';
// client is your configured Agora client
const agent = new Agent({ client })
.withStt(/* configure your STT vendor */)
.withLlm(/* configure your LLM vendor */)
.withTts(new HumeAITTS({
key: 'your-hume-key',
voiceId: 'your-voice-id',
provider: 'HUME_AI',
}));import "github.com/AgoraIO/agora-agents-go/v2/agentkit/vendors"
// client is your configured Agora client
agent := agentkit.NewAgent(client).WithStt(/* configure your STT vendor */).
WithLlm(/* configure your LLM vendor */).
WithTts(
vendors.NewHumeAITTS(vendors.HumeAITTSOptions{
Key: "your-hume-key",
VoiceID: "your-voice-id",
Provider: "HUME_AI",
}),
)Use the following tts configuration in your request:
"tts": {
"vendor": "humeai",
"params": {
"key": "<API_KEY>",
"voice_id": "<your_voice_id>",
"base_url": "https://api.hume.ai",
"provider": "HUME_AI",
"speed": 1,
"trailing_silence": 0.35
}
}Caution
The parameters listed on this page are validated for use with Conversational AI Engine. Required parameters must be provided as documented. Any additional parameters are passed through directly to the underlying vendor without validation. For a full list of supported options, refer to the Hume AI TTS documentation.
Key parameters
keystringThe API key used for authentication with Hume AI's services. Get your API key from the Hume AI console.
voice_idstringThe identifier of the voice to use for speech synthesis. Choose from available voices in your Hume AI dashboard.
base_urlstringThe base URL for the Hume AI API. For example, https://api.hume.ai.
providerstring- Default value
- CUSTOM_VOICE
- Possible values
HUME_AICUSTOM_VOICE
The voice provider type.
"HUME_AI": Use a pre-built voice from Hume's curated Voice Library."CUSTOM_VOICE": Use your own custom-trained voice.
speednumber- Default value
- 1
- Possible values
0.25 to 3.0
Controls the playback speed of the generated speech. Higher values increase speech rate.
trailing_silencenumber- Default value
- 0.35
- Possible values
0 to 5
Duration of silence (in seconds) to add at the end of each utterance. Useful for natural conversation pacing.
