corrstigs mineurs et mise a jour du README

This commit is contained in:
jhechavarria
2018-08-23 12:20:56 +02:00
parent c0d98a956c
commit e3e4eb19eb
3 changed files with 11 additions and 11 deletions

View File

@@ -120,12 +120,12 @@ saygui
You can choose to open a specific window by using an option You can choose to open a specific window by using an option
``` ```
saygui lng saygui tts
``` ```
Available options are: Available options are:
- say - tts
- lng - lng
- vol - vol
- spd - spd

7
say.sh
View File

@@ -38,7 +38,6 @@ saysupport()
# Get/Set program config: language, volume, speed # Get/Set program config: language, volume, speed
saycfg () saycfg ()
{ {
cfg="`cat $CFGPATH`";
if [ $# -ge 1 ]; then if [ $# -ge 1 ]; then
saylng $1 saylng $1
if [ $# -ge 2 ]; then if [ $# -ge 2 ]; then
@@ -48,7 +47,7 @@ saycfg ()
fi fi
fi fi
fi fi
echo $cfg; cat "$CFGPATH";
} }
# Get/Set synthesiser lamguage # Get/Set synthesiser lamguage
@@ -143,7 +142,7 @@ saydeflng()
# Starts GUI window # Starts GUI window
saygui() saygui()
{ {
. $GUIPATH $1 $GUIPATH $1
} }
# Stops audio playback # Stops audio playback
@@ -196,7 +195,7 @@ if [[ "$1" = "install" ]]; then
if [ ! -f "$CFGPATH" ]; then if [ ! -f "$CFGPATH" ]; then
touch $CFGPATH touch $CFGPATH
echo -n "Default config set to: " echo -n "Default config set to: "
saycfg "`saydeflng`" 1 1; saycfg "-d" 1 1;
fi fi
if [ ! "`grep -rnw $HOME/.bashrc -e \". $SRCPATH\"`" > /dev/null ]; then if [ ! "`grep -rnw $HOME/.bashrc -e \". $SRCPATH\"`" > /dev/null ]; then
echo ". $SRCPATH" >> "$HOME/.bashrc" echo ". $SRCPATH" >> "$HOME/.bashrc"

View File

@@ -31,8 +31,8 @@ sayguimenu()
case $? in case $? in
0) 0)
if [ "$WINDOW" = "say" ]; then if [ "$WINDOW" = "tts" ]; then
sayguisay sayguitts
elif [ "$WINDOW" = "lng" ]; then elif [ "$WINDOW" = "lng" ]; then
sayguilng sayguilng
elif [ "$WINDOW" = "vol" ]; then elif [ "$WINDOW" = "vol" ]; then
@@ -50,7 +50,7 @@ sayguimenu()
done done
} }
sayguisay() sayguitts()
{ {
while true while true
do do
@@ -63,6 +63,7 @@ sayguisay()
--entry-text "$TEXT"` --entry-text "$TEXT"`
case $? in case $? in
0) 0)
echo "$TEXT"
if ! [ "$TEXT" = "" ]; then if ! [ "$TEXT" = "" ]; then
say "$TEXT" say "$TEXT"
fi;; fi;;
@@ -178,8 +179,8 @@ sayguidial()
} }
if [ $# -eq 1 ]; then if [ $# -eq 1 ]; then
if [ $1 = "say" ]; then if [ $1 = "tts" ]; then
sayguisay sayguitts
elif [ $1 = "lng" ]; then elif [ $1 = "lng" ]; then
sayguilng sayguilng
elif [ $1 = "vol" ]; then elif [ $1 = "vol" ]; then