Skip to Main Content
AskAI
Documentation
Startups
Blog
Code Hub
API Dashboard
Vonage.com
Pricing
Support
English
日本語
Deutsch
My profile
My dashboard
Log out
API Dashboard
Vonage.com
Pricing
Support
Legal & Privacy
en
Documentation
SDKs & Tools
Community
Startups
Blog
Code Hub
AskAI
View All docs
Voice API
Overview
Technical Details
API Overview
Getting Started
Build Your Solution
How-to Guides
Voice Notifications
Simple IVR
Advanced IVR
Voice Bot with Google Dialogflow
Voice Bot with Amazon Lex
Call Tracking
Masked Calling
Voicemail
Voice Journey
Call Whisper
Code Snippets
Before You Begin
Making Calls
Make an outbound call
Make an outbound call with an NCCO
Connect an inbound call
Receiving Calls
Receive an inbound call
Recording Calls
Record a call
Record a named conversation
Record a message
Record a call with split audio
Download a recording
Retrieving Calls
Retrieve information for a call
Retrieve information for all calls
Retrieve Information for a Conversation
Retrieve Information for All Conversations
List a User's Conversations
Controlling Media
Earmuff a call
Mute a call
Play an audio stream into a call
Stop an audio stream in a call
Play DTMF into a call
Play text-to-speech into a call
Stop text-to-speech in a call
Subscribe to real-time DTMF events
Unsubscribe to real-time DTMF events
Controlling Conference Calls
Connect callers into a conference
Controlling Conversations
Transfer a call
Transfer a call with inline NCCO
Track NCCO progress
Rename a Conversation
Handle User Input
Handle user input with ASR
Handle user input with DTMF
Managing Users
Create a User
Delete a User
Get a User
Update a User
List Users
Handling RTC Events
Create an Event
Create a Custom Event
Delete an Event
Get an Event
List Events
Programmable SIP
Create a Domain
Create a Domain User
Delete a Domain User
Query a Domain User
Query Domain Users
Query Domains
Update a Domain User
Query a Domain
Update a Domain
Delete a Domain
References
API Reference
Voice API Reference
Media API Reference
PSIP API Reference
NCCO Reference
Webhook Reference
Conceptual Guides
Call Flow
Numbers
Endpoints
Text to Speech
Customizing Spoken Text
Speech to Text
DTMF
Call Recording and Transcription
WebSockets
Voicemail Detection
Regions
Fraud Prevention
Programmable SIP
Troubleshooting
Tutorials
Connect to a WebSocket
Build a Call Menu
Play Audio into a Call
Play Audio into a WebSocket
Making an App to App Voice Call
Making an In-app Voice Call
Other Helpful Resources
Voice Inspector
Try it out
Logs
Analytics
Pricing
Billing and payments
Get help with ideas & development
Related Blog Posts
Using Vonage APIs
Working with Vonage APIs
Concepts
Authentication
Glossary
OpenAPI
Signing Messages
Webhooks
Tools
CLI
JWT generator
Ngrok
Postman
Prism
Ruby

What's Next?

Find out more about the capabilities of the Vonage Voice API:

  • Read the Voice API documentation
  • View the API Reference
  • Play Text To Speech into a Call
  • Record a Call
  • Take Speech Input
  • Handle User Key Input
  • NCCO Reference

Play Audio into a Call with Ruby

A tutorial showing you how to build an app that will play audio into a PSTN call

Available on:
.NET Ruby
Steps
1
Introduction to this tutorial
2
Prerequisites
3
Create the Project Folder and Files
4
Install Vonage Ruby
5
Require Dependencies
6
Initialize Vonage Client
7
Add Environment Variables
8
Define Constant Variables
9
Create Routes
10
Run the Ruby App
11
What's Next?
Vonage Logo
DocumentationDocumentationVonage Business CloudVonage Contact Center
Technical ReferencesDocumentationSDK & Tools
CommunityCommunity HubTeamCareers
SupportKnowledgebaseChangelogs