fixup! feat(speech): the speech capability over Cap'n Web, behind a gate
check / check (push) Canceled after 0s
check / check (push) Canceled after 0s
This commit is contained in:
1 parent
372f6a2b96
commit
a97ba6c174
12 files changed
+245
-92
No files matched your search
+3
-2
@@ -1,6 +1,7 @@
|
||||
#!/bin/sh
|
||||
# smoke.sh BIN MODEL VOICE PORT PHRASE: a speech round trip, by way of a real server and clients.
|
||||
# Starts BIN/speech-server on localhost with a throwaway key, has it speak PHRASE,
|
||||
# Starts BIN/speech-server on localhost with a throwaway key, has it speak PHRASE
|
||||
# with piper's noise off, so the same words come out the same way every time,
|
||||
# then hear the WAV back, and compares the words, ignoring case and punctuation.
|
||||
set -eu
|
||||
bin=$1 model=$2 voice=$3 port=$4 phrase=$5
|
||||
@@ -12,7 +13,7 @@ umask 077
|
||||
head -c 20 /dev/urandom | base32 > "$tmp/speech-key"
|
||||
export CREDENTIALS_DIRECTORY="$tmp"
|
||||
|
||||
"$bin/speech-server" 127.0.0.1 "$port" "$model" "$voice" > "$tmp/server.log" 2>&1 &
|
||||
"$bin/speech-server" 127.0.0.1 "$port" "$model" "$voice" --noise-scale 0 --noise-w-scale 0 > "$tmp/server.log" 2>&1 &
|
||||
pid=$!
|
||||
tries=0
|
||||
until grep -q listening "$tmp/server.log"; do
|
||||
|
||||
Reference in new issue
Block a user