blob: 55a1b7b3858773eef63cc76691df3056b5b637d1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/bin/sh -eu
audio=/tmp/picospeaker-jfgOUcZdWu.wav
text=${1:-Nothing to read.}
[ "${1-}" = "echo" ] && picospeaker "${2-}" "${1-}" && exit;
pico2wave -w "$audio" "$text";
[ "${2-}" = "echo" ] \
&& ffmpeg -y -i "$audio" -map 0 -c:v copy -af aecho=1:1:50:0.5,atempo=0.85 "$audio.mp3" \
&& mplayer -really-quiet "$audio.mp3" && exit;
mplayer -really-quiet "$audio";
|