You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ADN-DMR-Peer-Server/adn-voice.example.yaml

89 lines
3.1 KiB

# ADN Voice configuration — hot-reloaded every 15 seconds
# Copy to adn-voice.yaml and edit freely.
#
# If adn-voice.yaml does not exist, voice features are disabled (no error).
# This file is re-checked every 15 s; changes take effect without restart.
#
# Each announcement/TTS has its own LANGUAGE. ENABLED: true activates that item.
VOICE:
# Optional: languages for voice ident (MASTER systems with VOICE_IDENT).
# If empty, ident uses per-system ANNOUNCEMENT_LANGUAGE. Not needed for announcements/TTS.
ANNOUNCEMENT_LANGUAGES: ""
# Base path for AMBE audio files (relative to project root).
AUDIO_PATH: Audio
# ---------------------------------------------------------------------------
# Scheduled AMBE announcements (array — add as many as needed)
# Pre-recorded .ambe files played on a talkgroup at intervals or hourly.
# FILE: filename without .ambe, looked up in Audio/<LANGUAGE>/ondemand/
# MODE: "hourly" (once per hour) or "interval" (every INTERVAL seconds)
# ENABLED: true to activate; false to keep configured but inactive
# ---------------------------------------------------------------------------
ANNOUNCEMENTS: []
# Example (all variables used):
# ANNOUNCEMENTS:
# - ENABLED: true
# FILE: announcement
# TG: 2
# MODE: hourly
# INTERVAL: 3600
# LANGUAGE: en_GB
# - ENABLED: true
# FILE: announcement2
# TG: 2
# MODE: interval
# INTERVAL: 60
# LANGUAGE: es_ES
# ---------------------------------------------------------------------------
# Recording
# Records voice traffic on a TG/TS and saves as .ambe in Audio/<LANGUAGE>/ondemand/
# Enable on the fly, record, then disable to prevent overwriting.
# Max duration: ~2 min 45 s.
# ---------------------------------------------------------------------------
RECORDING_ENABLED: false
RECORDING_TG: 2
RECORDING_TIMESLOT: 2
RECORDING_FILE: recording
RECORDING_LANGUAGE: en_GB
# ---------------------------------------------------------------------------
# TTS (Text-to-Speech) — array
# Converts .txt files to AMBE via: gTTS -> ffmpeg -> vocoder/AMBEServer
# FILE: filename without .txt, looked up in Audio/<LANGUAGE>/ondemand/
# ENABLED: true to activate; requires TTS_VOCODER_CMD or TTS_AMBESERVER_HOST
# ---------------------------------------------------------------------------
# External vocoder command ({wav} and {ambe} are replaced at runtime).
# Example: /usr/local/bin/md380-vocoder -e {wav} {ambe}
TTS_VOCODER_CMD: ""
# AMBEServer (DV3000 remote via UDP) — alternative to local vocoder.
# See https://github.com/marrold/AMBEServer
TTS_AMBESERVER_HOST: ""
TTS_AMBESERVER_PORT: 2460
# Volume in dB before AMBE encoding (-3 = slightly quieter).
TTS_VOLUME: -3
# Speech rate: 1.0 = normal, 1.2 = ~20% faster (recommended for some languages).
TTS_SPEED: 1.0
TTS_ANNOUNCEMENTS: []
# Example:
# TTS_ANNOUNCEMENTS:
# - ENABLED: true
# FILE: text1
# TG: 2
# MODE: hourly
# INTERVAL: 3600
# LANGUAGE: en_GB
# - ENABLED: true
# FILE: text2
# TG: 2
# MODE: interval
# INTERVAL: 60
# LANGUAGE: es_ES

Powered by TurnKey Linux.