Build a Text-to-Speech Application With Hanami
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.
Company
Vonage
Date published
Feb. 2, 2021
Author(s)
Ben Greenberg
Word count
2365
Language
English
Hacker News points
None found.