Skip to content

Commit 8a044ee

Browse files
committed
0.20190517: Return to RHVoice-test
1 parent 02c344a commit 8a044ee

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

CHANGELOG

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
0.20190517
2+
3+
Return to RHVoice-test
4+
15
0.20180706
26

37
Full depends

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.20180706
1+
0.20190517

rhvoiceplay.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#Depends: dash, sed, gzip | zutils, rhvoice, aplay | sox
44

55
sname="RHVoicePlay"
6-
sversion="0.20180706"
6+
sversion="0.20190517"
77

88
echo "$sname $sversion" >&2
99

@@ -13,7 +13,7 @@ tcomp="sed"
1313
tcomp="zcat"
1414
[ ! "$(command -v $tcomp)" ] && tnocomp="$tnocomp $tcomp"
1515
tcomp="RHVoice"
16-
tcompa="RHVoice-client"
16+
tcompa="RHVoice-test"
1717
[ ! "$(command -v $tcomp)" -a ! "$(command -v $tcompa)" ] && tnocomp="$tnocomp $tcomp|$tcompa"
1818
tcomp="aplay"
1919
tcompa="play"
@@ -57,7 +57,7 @@ then
5757
fi
5858

5959
trhvoice="RHVoice"
60-
[ ! "$(command -v $trhvoice)" ] && trhvoice="RHVoice-client -s $tspeaker"
60+
[ ! "$(command -v $trhvoice)" ] && trhvoice="RHVoice-test -p $tspeaker"
6161
tplay="aplay"
6262
[ ! "$(command -v $tplay)" ] && tplay="play -q"
6363

@@ -67,11 +67,11 @@ then
6767
echo "$text: $textsize" >&2
6868
tln=$(($tln*$textsize/100))
6969
i=$tln
70-
zcat "$text" | sed -e 's/[\.\?\!\…] /&\n/g' | sed -e '/^$/d' | sed -e "1,${tln}d" | while read tline; do p=$((10000*$i/$textsize)); p1=$(($p/100)); p2=$(($p-$p1*100)); printf "%02d.%02d: " $p1 $p2; echo "$tline"; echo "$tline" | $trhvoice | $tplay - 2>/dev/null; i=$(($i+1)); done
70+
zcat "$text" | sed -e 's/[\.\?\!\…] /&\n/g' | sed -e '/^$/d' | sed -e "1,${tln}d" | while read tline; do p=$((10000*$i/$textsize)); p1=$(($p/100)); p2=$(($p-$p1*100)); printf "%02d.%02d: " $p1 $p2; echo "$tline"; echo "$tline" | $trhvoice 2>/dev/null | $tplay - 2>/dev/null; i=$(($i+1)); done
7171
elif [ "x$text" = "x-" ]
7272
then
73-
while read tline; do printf ": "; echo "$tline"; echo "$tline" | $trhvoice | $tplay - 2>/dev/null; done
73+
while read tline; do printf ": "; echo "$tline"; echo "$tline" | $trhvoice 2>/dev/null | $tplay - 2>/dev/null; done
7474
else
7575
echo "$text"
76-
echo "$text" | $trhvoice | $tplay - 2>/dev/null
76+
echo "$text" | $trhvoice 2>/dev/null | $tplay - 2>/dev/null
7777
fi

0 commit comments

Comments
 (0)