Before the first step
The guide assumes Homebrew, a zsh shell, and an Apple Silicon machine. That last part decides the shape of both routes below: the host route builds its environment locally, and the Docker route builds an arm64 image instead of pulling a ready made one. The upstream project is daswer123/xtts-api-server, and the SillyTavern side is documented at docs.sillytavern.app/extensions/xtts.
Browser note from the guide: use a Chromium based browser, as other browsers seem to have issues with this.
The host route, in step order
The folders come first, and they are not decoration: speakers and output are where the server expects its speaker files and its generated audio to live. Then miniconda provides the environment, Python 3.10 goes into it, and the server package follows. The last line is the point the whole setup builds toward: starting the server with the improved streaming mode on.
mkdir xtts cd xtts mkdir speakers mkdir output brew install miniconda conda init zsh source ~/.zshrc conda create -n xtts conda activate xtts conda install python=3.10 pip install xtts-api-server pydub python -m xtts_api_server --streaming-mode-improve
Platform note, as the guide itself flags it: the full block in the repo also carries a torch line pinned to the cu118 CUDA wheel index, which does not match the macOS and Apple Silicon setup this guide describes. On a Mac that line needs the default torch install instead. The guide leaves the cu118 line as written for CUDA machines, flagged rather than rewritten.
The Docker route: build for arm64
The second route builds the upstream server as an arm64 image from its own docker folder:
git clone https://github.com/daswer123/xtts-api-server.git cd docker docker build --platform linux/arm64 -t xtts-api-server-arm .
Route note, again as the guide itself states it: the block in the repo builds the arm64 image but its last line starts the host install, not the container, so the Docker route and the host route are mixed there. No container start command is given in the guide, and none is added here.