Speech services environment variables and ConfigModule integration #401

Closed
opened 2026-02-15 07:35:14 +00:00 by jason.woltje · 1 comment
Owner

Description

Define and document all environment variables for speech services, integrate with NestJS ConfigModule.

Environment Variables

STT

  • STT_ENABLED=true
  • STT_BASE_URL=http://speaches:8000/v1
  • STT_MODEL=Systran/faster-whisper-large-v3-turbo
  • STT_LANGUAGE=en

TTS - Default (Kokoro)

TTS - Premium (Chatterbox) - Optional

TTS - Fallback (Piper/OpenedAI) - Optional

Limits

  • SPEECH_MAX_UPLOAD_SIZE=25000000
  • SPEECH_MAX_DURATION_SECONDS=600
  • SPEECH_MAX_TEXT_LENGTH=4096

Acceptance Criteria

  • SpeechConfig class with validation
  • .env.example updated
  • ConfigModule integration in SpeechModule
  • Startup validation (fail fast if STT/TTS enabled but URL not reachable)
  • Documentation in AGENTS.md
## Description Define and document all environment variables for speech services, integrate with NestJS ConfigModule. ## Environment Variables ### STT - STT_ENABLED=true - STT_BASE_URL=http://speaches:8000/v1 - STT_MODEL=Systran/faster-whisper-large-v3-turbo - STT_LANGUAGE=en ### TTS - Default (Kokoro) - TTS_ENABLED=true - TTS_DEFAULT_URL=http://kokoro-tts:8880/v1 - TTS_DEFAULT_VOICE=af_heart - TTS_DEFAULT_FORMAT=mp3 ### TTS - Premium (Chatterbox) - Optional - TTS_PREMIUM_ENABLED=false - TTS_PREMIUM_URL=http://chatterbox-tts:8881/v1 ### TTS - Fallback (Piper/OpenedAI) - Optional - TTS_FALLBACK_ENABLED=false - TTS_FALLBACK_URL=http://openedai-speech:8000/v1 ### Limits - SPEECH_MAX_UPLOAD_SIZE=25000000 - SPEECH_MAX_DURATION_SECONDS=600 - SPEECH_MAX_TEXT_LENGTH=4096 ## Acceptance Criteria - [ ] SpeechConfig class with validation - [ ] .env.example updated - [ ] ConfigModule integration in SpeechModule - [ ] Startup validation (fail fast if STT/TTS enabled but URL not reachable) - [ ] Documentation in AGENTS.md
jason.woltje added this to the M13-SpeechServices (0.0.13) milestone 2026-02-15 07:35:14 +00:00
Author
Owner

Completed as part of M13-SpeechServices milestone on branch feature/m13-speech-services. SP-CFG-001: Speech services config and ConfigModule integration (commit 4cc43be, 51 tests). All quality gates passed (lint, typecheck, tests, security).

Completed as part of M13-SpeechServices milestone on branch feature/m13-speech-services. SP-CFG-001: Speech services config and ConfigModule integration (commit 4cc43be, 51 tests). All quality gates passed (lint, typecheck, tests, security).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mosaic/stack#401