Skip to content

KonstantinSolutions/Text-to-Speech---Shell-Scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Text to Speech Shell Script

This script will convert a .txt file into an .mp3 file read by Google's Text-to-Speech API

Installation

For this script to work, you must have the following tools installed:

Connecting to your Google Cloud Account

You will need to have an active Google Cloud Account with the Text-to-Speech API enabled and an appropriate Service Account Key. You can set this up per these instructions.

Save the .json file of your credentials to the root of this directory with the name credentials.json.

Once you have added your credentials file, you can connect to your Google Cloud account by running:

$ sh connect.sh

The script will kick you to your default browser. Choose the Google Account affiliated with your Google Cloud. The script will then connect to your account.

Creating an MP3

Running the following command will allow you to convert a text file into an mp3 file in the ./output folder:

$ sh mp3.sh [Path to .txt file] [Desired .mp3 filename]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages