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.
- Host: GitHub
- URL: https://github.com/cmirnow/google-cloud-text-to-speech-ruby-cli-app
- Owner: cmirnow
- Created: 2020-08-31T22:47:48.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-04-21T05:32:41.000Z (almost 3 years ago)
- Last Synced: 2025-01-25T16:51:18.264Z (about 1 year ago)
- Topics: google-cloud-text-to-speech, ruby-cli, text-to-speech, tts
- Language: Ruby
- Homepage: https://masterpro.ws/google-cloud-text-to-speech-ruby-cli-app
- Size: 571 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.**

: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
```