Create SpeechModule with provider abstraction layer #389

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

Description

Create with a provider abstraction layer that supports multiple TTS and STT backends through a unified interface.

Design

Provider Interfaces

SpeechService

  • Wraps provider selection logic (default/premium/lightweight for TTS)
  • Uses OpenAI SDK internally ( npm package) with configurable base URLs
  • Environment-driven provider configuration
  • Graceful fallback: premium → default → lightweight

Module Structure

Acceptance Criteria

  • SpeechModule registered in AppModule
  • Provider interfaces defined
  • SpeechService with provider selection logic
  • ConfigModule integration for provider URLs
  • Unit tests for SpeechService (mock providers)
  • AGENTS.md updated with speech module patterns
## Description Create with a provider abstraction layer that supports multiple TTS and STT backends through a unified interface. ## Design ### Provider Interfaces ### SpeechService - Wraps provider selection logic (default/premium/lightweight for TTS) - Uses OpenAI SDK internally ( npm package) with configurable base URLs - Environment-driven provider configuration - Graceful fallback: premium → default → lightweight ### Module Structure ## Acceptance Criteria - [ ] SpeechModule registered in AppModule - [ ] Provider interfaces defined - [ ] SpeechService with provider selection logic - [ ] ConfigModule integration for provider URLs - [ ] Unit tests for SpeechService (mock providers) - [ ] AGENTS.md updated with speech module patterns
jason.woltje added this to the M13-SpeechServices (0.0.13) milestone 2026-02-15 07:33:10 +00:00
Author
Owner

Completed as part of M13-SpeechServices milestone on branch feature/m13-speech-services. SP-MOD-001: SpeechModule with provider abstraction layer (commit c40373f, 27 tests). All quality gates passed (lint, typecheck, tests, security).

Completed as part of M13-SpeechServices milestone on branch feature/m13-speech-services. SP-MOD-001: SpeechModule with provider abstraction layer (commit c40373f, 27 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#389