command
module
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: Aug 5, 2024
License: GPL-3.0
Opens a new window with license information.
Imports: 12
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Bulk TTS Generator
This project uses Deepgram's TTS service to generate audio files in bulk from a CSV.
The project is written in Go and executables are provided for Windows, MacOS, and Linux.
Usage
- Get an API key from Deepgram and add it to your environment variables as
DEEPGRAM_API_KEY
.
- Create a CSV file with the following columns (use the provided
sample-scripts.csv
as a template)
label
: The label for the script. This will be used as the file name.
script
: The text to be converted to speech.
- Download the executable for your OS from the releases page.
- The tool will try and read the csv locally from
scripts.csv
. If it doesn't exist, it will ask for the path to the CSV file.
Commandline flags
The following flags are supported at the moment.
-format
: The format of the audio file. Supported formats are wav
and mp3
. Default is mp3
.
-output
: The output directory where the audio files will be saved. Default is audio/
.
-csv
: The path to the CSV file. Default is scripts.csv
.
-output
: The output directory where the audio files will be saved. Default is audio/
.
Example
-
Generate mp3 files in the default location.
./tts-bulk
-
Generate wav files in a custom location.
./tts-bulk -format=wav -output=/path/to/output
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.