| set -euo pipefail | |
| echo "=== Inflect-Micro-v2 TTS Setup (AX650 / AX620E / AX637) ===" | |
| echo "Installing Python dependencies..." | |
| pip install -q numpy onnxruntime soundfile unidecode inflect num2words \ | |
| espeakng-loader phonemizer fastapi uvicorn | |
| echo "Installing axengine (pyaxengine)..." | |
| pip install -q axengine || pip install "pyaxengine @ git+https://github.com/AXERA-TECH/pyaxengine.git" | |
| echo "" | |
| echo "✅ Setup complete. 用法:" | |
| echo " bash run.sh 'Hello!' output.wav cli ax650 # AX650(老 SDK)" | |
| echo " bash run.sh 'Hello!' output.wav cli ax620e # AX620E(新 SDK,双 NPU)" | |
| echo " bash run.sh 'Hello!' output.wav cli ax637 # AX637(新 SDK,双 NPU)" | |