Speech Synthesis Wrapper processes text-to-speech requests by providing a preview of the generated audio and allowing the user to download the corresponding audio file.
Check out the video demonstration on YouTube to see it in action.
An API key for the Google Cloud Text-to-Speech API is required to use this application. The API key should be stored in the GOOGLE_APPLICATION_CREDENTIALS
environment variable.
Visual Studio Code Live Server extension is recommended for development, or any other web server of your choice.
Clone the repository and install the dependencies for the client.
git clone https://github.com/cyn1x/speech-synthesis-wrapper
cd speech-synthesis-wrapper
cd client && npm install
Start the server and client.
cd server
export GOOGLE_APPLICATION_CREDENTIALS=/path/to/credentials.json
set GOOS = "linux"
go run ./cmd/srv/ .
cd client
npx tsc --project tsconfig.json # Compile TypeScript to JavaScript
# Start a web server of your choice
Use npx tsc --watch
for automatic compilation in development mode instead of using the once-off compile above.