Home / Companies / Vonage / Blog / Post Details
Content Deep Dive

Build a Text-to-Speech Application With Hanami

Blog post from Vonage

Post Details
Company
Date Published
Author
Ben Greenberg
Word Count
2,365
Language
English
Hacker News Points
-
Summary

This tutorial demonstrates how to build a text-to-speech voice application using Hanami, the Vonage Ruby SDK, and the Voice API. To start, users need to create a Vonage Voice Application with voice capabilities and provision a virtual phone number. They then install the Vonage Ruby SDK as a gem dependency in their Hanami app and provide their Vonage API credentials. Next, they generate a database for languages using the Hanami generator and define an index controller to expose language data. The application also includes views for the root index page and success view after form submission. In the create controller, users can instantiate a credentialed instance of the SDK and use it to send phone calls with text-to-speech functionality. With this setup, users can build fully functional voice applications using the Vonage Voice API with Hanami.