diff --git a/README.md b/README.md index 4beeaca..6554782 100644 --- a/README.md +++ b/README.md @@ -10,11 +10,21 @@ GPL v3. Derived from FreeDMR / HBlink. - Python 3.10+ - Dependencies: `pip install -r requirements.txt` +- **ffmpeg** (system package) — required for voice/TTS. Install via your distro: + - Debian/Ubuntu: `apt install ffmpeg` + - openSUSE: `zypper install ffmpeg` + - Fedora/RHEL: `dnf install ffmpeg` or `yum install ffmpeg` ## Configuration Copy `adn-server.example.yaml` to `adn-server.yaml` and edit with your settings. Production config is not committed. +### Voice configuration + +Voice features (announcements, TTS, recording) use a separate config file. Copy `adn-voice.example.yaml` to `adn-voice.yaml` and edit. If the file does not exist, voice features are disabled (no error). Changes are hot-reloaded every 15 seconds. + +TTS (Text-to-Speech) requires **ffmpeg** installed on the system (see Requirements above). The pipeline is: `.txt` → gTTS → `.mp3` → ffmpeg → `.wav` → vocoder → `.ambe` + ## Run ```bash diff --git a/pyproject.toml b/pyproject.toml index aae7e7d..dcbfc7a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -16,9 +16,9 @@ dependencies = [ "Twisted>=22.0", "dmr_utils3>=0.1.19", "pyyaml>=6.0", - "setproctitle>=1.3", "bitarray>=2.0", "cryptography>=41.0", + "gTTS>=2.3.1", ] [project.optional-dependencies] diff --git a/requirements.txt b/requirements.txt index 4836e44..caa1be1 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,6 +4,6 @@ Twisted>=22.0.0 dmr_utils3>=0.1.19 pyyaml>=6.0 -setproctitle>=1.3.0 bitarray>=2.0.0 cryptography>=41.0.0 +gTTS>=2.3.1