# HamBridge Zello CLI Configuration
# ==================================
# Copy this file to hambridge.conf and configure your settings

[general]
# Reconnection interval in seconds (default: 10)
reconnect_interval_sec = 10

# Maximum reconnection attempts (0 = infinite)
max_reconnect_attempts = 0

# Path to API JSON output file
api_json_path = "api.json"

# API update interval in milliseconds
api_update_interval_ms = 500

# Log level: trace, debug, info, warn, error
log_level = "info"


[svxlink]
# Enable SVXLink connection
enabled = true

# SVXLink reflector server hostname or IP
hostname = "svxlink.example.com"

# SVXLink TCP/UDP port (default: 5300)
port = 5300

# Your callsign for authentication
callsign = "N0CALL"

# Authentication key (password)
auth_key = "your_auth_key_here"

# Talkgroup to join (default: "9")
talkgroup = "9"

# UDP receive timeout in milliseconds
udp_timeout_ms = 1000


[zello]
# Enable Zello connection
enabled = true

# Zello WebSocket endpoint
# Consumer: wss://zello.io/ws
# Zello Work: wss://zellowork.io/ws
endpoint = "wss://zello.io/ws"

# Zello channel name
channel = "your_channel_name"

# Zello JWT authentication token (from developer console)
auth_token = "your_jwt_token_here"

# Optional: Username for TX capability
# username = "your_username"

# Optional: Password for TX capability
# password = "your_password"

# Optional: Refresh token for faster reconnection
# refresh_token = ""


[audio]
# Opus encoder bitrate in bps
# 20000 = 20kbps (standard voice quality)
# 32000 = 32kbps (high quality)
opus_bitrate = 20000

# Total jitter buffer size in milliseconds
jitter_buffer_ms = 480

# Prebuffer threshold in milliseconds
prebuffer_ms = 120

# Sample rate (always 16000 for Opus voice)
sample_rate = 16000
