cmirnow / Google-Cloud-Text-To-Speech-Ruby-CLI-App

How to convert text to speech using Google Cloud Text-to-Speech API and Ruby CLI.

Home Page:https://masterpro.ws/google-cloud-text-to-speech-ruby-cli-app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Google Cloud TTS Ruby CLI App

How to convert text to speech using Google Cloud Text-to-Speech API and Ruby CLI.

Google Cloud Text-to-Speech Ruby CLI App

🔉 This application supports select TEXT or SSML, and three conversion formats: MP3 (MPEG Audio Layer III), WAV (LINEAR16) and OGG (OGG_OPUS).

Using the power of Google Cloud Text-to-Speech API and Ruby here is a simple interface to convert text to speech. You only need key.json (API access key), put it in the root of this application. That's all.

‼️ Warning: This app has only been tested on Linux (openSUSE Leap / Tumbleweed, Fedora). I have not tested this application on Windows.

How to start:

gem install google-cloud-text_to_speech tty-prompt
git clone https://github.com/cmirnow/Google-Cloud-Text-To-Speech-Ruby-CLI-App.git
cd Google-Cloud-Text-To-Speech-Ruby-CLI-App

Copy and paste text or ssml into the file "text_or_ssml.txt".

Place your access key in the root of the application directory.

ruby bin/tts.rb

Google Cloud Text-to-Speech Ruby CLI App

About

How to convert text to speech using Google Cloud Text-to-Speech API and Ruby CLI.

https://masterpro.ws/google-cloud-text-to-speech-ruby-cli-app


Languages

Language:Ruby 100.0%