Configurable paths (config.sh + generated env), vendored speech.h, merge docs
This commit is contained in:
@@ -7,18 +7,15 @@
|
||||
set -eu
|
||||
|
||||
HERE=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
|
||||
ROOT=$(CDPATH= cd -- "$HERE/.." && pwd)
|
||||
ASSETS=${1:-$ROOT/../Microsoft-Sam-Mary-Mike-TruVoice-WSAPI4}
|
||||
. "$HERE/config.sh"
|
||||
|
||||
ASSETS=${1:-$MICROSLOP_ASSETS}
|
||||
[ -d "$ASSETS/spchapi" ] || { echo "asset dir not found: $ASSETS" >&2; exit 1; }
|
||||
|
||||
export WINEPREFIX=${WINEPREFIX:-$HOME/.wine-microslopsam}
|
||||
export WINEARCH=win32
|
||||
|
||||
if [ -z "${DISPLAY:-}" ]; then
|
||||
WRUN="xvfb-run -a wine"
|
||||
WRUN="xvfb-run -a $MICROSLOP_WINE"
|
||||
else
|
||||
WRUN="wine"
|
||||
WRUN="$MICROSLOP_WINE"
|
||||
fi
|
||||
|
||||
echo "== prefix: $WINEPREFIX"
|
||||
@@ -48,4 +45,4 @@ $WRUN regedit /S "$HERE/out-spchapi.reg"
|
||||
$WRUN regedit /S "$HERE/out-mstts.reg"
|
||||
|
||||
echo "== done"
|
||||
echo "list voices: $WRUN $ROOT/host/sapi4host.exe -l"
|
||||
echo "list voices: $WRUN $MICROSLOP_BUILD/sapi4host.exe -l"
|
||||
|
||||
Reference in New Issue
Block a user