forked from axiom-team/astroport
13 lines
285 B
Bash
13 lines
285 B
Bash
|
#!/bin/bash
|
||
|
f=$(echo "$1" | sed 's/ //g' )
|
||
|
echo "parle.sh: $1 | $2 = $f" >> /tmp/youtube-dl.log 2>&1
|
||
|
if [[ "$2" == "" ]]; then
|
||
|
lang="fr-FR"
|
||
|
else
|
||
|
lang="en-US"
|
||
|
fi
|
||
|
if [[ ! -f "/tmp/$lang_${f}.wav" ]]; then
|
||
|
pico2wave -l $lang -w /tmp/$lang_${f}.wav "$1"
|
||
|
fi
|
||
|
aplay -q /tmp/$lang_${f}.wav
|