@@ -27,9 +27,12 @@ case "${MODEL_PROFILE}" in
|
||||
laptop-8gb|laptop-16gb|desktop-gpu) ;;
|
||||
*) echo "Unknown model profile: ${MODEL_PROFILE}" >&2; exit 2 ;;
|
||||
esac
|
||||
read -r -p "Enable TTS preview? [Y/n]: " TTS_CHOICE
|
||||
read -r -p "Play a TTS preview now? [Y/n]: " PREVIEW_CHOICE
|
||||
PLAY_PREVIEW=true
|
||||
[[ "${PREVIEW_CHOICE:-Y}" =~ ^[Nn]$ ]] && PLAY_PREVIEW=false
|
||||
# Spoken replies stay on. Answering n only skips the one-shot preview; it does
|
||||
# not write ttsEnabled=false into config.json.
|
||||
TTS_ENABLED=true
|
||||
[[ "${TTS_CHOICE:-Y}" =~ ^[Nn]$ ]] && TTS_ENABLED=false
|
||||
mkdir -p "${HOME}/.config/jarvis"
|
||||
"${BARE}" packaging/write-config.js "${HOME}/.config/jarvis/config.json" "${WAKE_PHRASE}" "${MODEL_PROFILE}" "${TTS_ENABLED}"
|
||||
echo "Saved wake phrase: ${WAKE_PHRASE}; model profile: ${MODEL_PROFILE}; TTS: ${TTS_ENABLED}"
|
||||
@@ -52,12 +55,12 @@ if command -v systemctl >/dev/null && command -v busctl >/dev/null && [[ -n "${D
|
||||
fi
|
||||
|
||||
echo "[4/5] TTS preview"
|
||||
if [[ "${TTS_ENABLED}" == true && "${DAEMON_BUS_READY}" == true ]]; then
|
||||
if [[ "${PLAY_PREVIEW}" == true && "${DAEMON_BUS_READY}" == true ]]; then
|
||||
busctl --user call io.qvac.Jarvis /io/qvac/Jarvis io.qvac.Jarvis.Session Say s "JARVIS local voice preview"
|
||||
elif [[ "${TTS_ENABLED}" == true ]]; then
|
||||
elif [[ "${PLAY_PREVIEW}" == true ]]; then
|
||||
echo "Daemon did not register io.qvac.Jarvis; preview skipped."
|
||||
else
|
||||
echo "TTS is disabled; preview skipped."
|
||||
echo "TTS preview skipped; spoken replies remain enabled."
|
||||
fi
|
||||
echo
|
||||
echo "[5/5] Typed smoke test"
|
||||
|
||||
Reference in New Issue
Block a user