Files
whisper.cpp/examples/talk.llama/speak.sh
Georgi Gerganov c353100bad minor
2023-03-26 19:30:56 +03:00

18 lines
376 B
Bash
Executable File

#!/bin/bash
# Usage:
# speak.sh <voice_id> <text-to-speak>
# espeak
# Mac OS: brew install espeak
# Linux: apt-get install espeak
#
#espeak -v en-us+m$1 -s 225 -p 50 -a 200 -g 5 -k 5 "$2"
# Eleven Labs
#
wd=$(dirname $0)
script=$wd/eleven-labs.py
python3 $script $1 "$2" >/dev/null 2>&1
ffplay -autoexit -nodisp -loglevel quiet -hide_banner -i ./audio.mp3 >/dev/null 2>&1