ugly-tan
ugly-tanโ€ข4mo ago

Is it possible to play an audio file in a workflow?

Since the AI voices can sometimes be a big unrealistic, I was wondering if I could upload audio to be triggered to play through the phone for the common voice lines. Is this possible?
5 Replies
automatic-azure
automatic-azureโ€ข4mo ago
Yes, Vapi supports playing pre-recorded audio during calls using the backgroundSound property with a hosted audio file URL, allowing you to use custom voice lines for a more natural experience.
Vapi Support Bot
Vapi Support Botโ€ข4mo ago
You can play a custom audio file as background sound during a Vapi call by setting the backgroundSound property to a hosted audio file URL.
Example:
{
"backgroundSound": "https://yourdomain.com/audio/your-voice-line.mp3"
}
{
"backgroundSound": "https://yourdomain.com/audio/your-voice-line.mp3"
}
Note: This sets the audio as background for the call, not as a targeted message at a specific workflow step. Direct playback of a specific audio file as a workflow action is not explicitly documented at this time.
See changelog for details Source: - Changelog: March 22, 2025 โ€“ Customizable Background Sound
โคต๏ธ Mention @Vapi Support Bot for follow-ups ๐Ÿฅ
Vapi Support Bot
Vapi Support Botโ€ข4mo ago
You can play a custom audio file as background sound during a Vapi call by setting the backgroundSound property to a hosted audio file URL.
Example:
{
"backgroundSound": "https://yourdomain.com/audio/your-voice-line.mp3"
}
{
"backgroundSound": "https://yourdomain.com/audio/your-voice-line.mp3"
}
Note: This sets the audio as background for the call, not as a targeted message at a specific workflow step. Direct playback of a specific audio file as a workflow action is not explicitly documented at this time.
See changelog for details Source: - Changelog: March 22, 2025 โ€“ Customizable Background Sound
โคต๏ธ Mention @Vapi Support Bot for follow-ups ๐Ÿฅ
Duckie
Duckieโ€ข4mo ago
Message marked as helpful by @! AetherMind! ๐ŸŽ‰
Sahil
Sahilโ€ข4mo ago
checking if this is resolved/solved for you?

Did you find this page helpful?