mirror of
https://github.com/jhechavarria/say.sh.git
synced 2025-12-10 06:06:59 +00:00
correction de bug de la fonction say: tout texte commencant par - etait interprete comme une option
This commit is contained in:
6
say.sh
6
say.sh
@@ -176,7 +176,7 @@ say ()
|
|||||||
echo "Give me something to say!"
|
echo "Give me something to say!"
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
pico2wave -l ${cfg[0]} -w $SNDPATH "${text[*]}";
|
pico2wave -l ${cfg[0]} -w $SNDPATH "\"${text[*]}\"";
|
||||||
play $SNDPATH vol ${cfg[1]} speed ${cfg[2]};
|
play $SNDPATH vol ${cfg[1]} speed ${cfg[2]};
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -245,8 +245,6 @@ elif [ "$1" = "say" ]; then
|
|||||||
if [ "`pgrep -x play`" > /dev/null ]; then
|
if [ "`pgrep -x play`" > /dev/null ]; then
|
||||||
shutup;
|
shutup;
|
||||||
else
|
else
|
||||||
TEXT=`xsel`;
|
say "`xsel`" ;
|
||||||
echo "$TEXT";
|
|
||||||
echo "$TEXT" | say;
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user