An open API service indexing awesome lists of open source software.

https://github.com/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.
https://github.com/cmirnow/google-cloud-text-to-speech-ruby-cli-app

google-cloud-text-to-speech ruby-cli text-to-speech tts

Last synced: 3 months ago
JSON representation

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

Awesome Lists containing this project

README

          

## 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

:sound: | 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.

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

How to start:

```bash
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.

```bash
ruby bin/tts.rb
```

Google Cloud Text-to-Speech Ruby CLI App