neurolink
neurolink copied to clipboard
TTS-028: Create Integration Tests for TTS Providers
Summary
Create integration tests for all TTS provider handlers (OpenAI, Google, Azure) that test real API calls, audio generation, streaming, voice listing, and error handling.
Technical Details
- File(s): test/integration/tts-providers.test.ts (create new)
- Effort: 4h
Acceptance Criteria
- [ ] Created test/integration/tts-providers.test.ts
- [ ] Test suite for OpenAITTSHandler
- [ ] Test: synthesize() generates valid audio
- [ ] Test: All 6 voices work
- [ ] Test: Speed control works
- [ ] Test: synthesizeStream() yields audio chunks
- [ ] Test: getVoices() returns 6 voices
- [ ] Test suite for GoogleTTSHandler
- [ ] Test: synthesize() generates valid audio
- [ ] Test: SSML input works
- [ ] Test: synthesizeStream() yields audio chunks
- [ ] Test: getVoices() returns 220+ voices
- [ ] Test suite for AzureTTSHandler
- [ ] Test: synthesize() generates valid audio
- [ ] Test: Emotional styles work
- [ ] Test: synthesizeStream() yields audio chunks
- [ ] Tests use real API keys from environment
- [ ] Tests can be skipped if API keys missing
- [ ] Validate audio buffer is non-empty
- [ ] Validate audio metadata is correct
- [ ] All tests pass
Dependencies
- Depends on: TTS-008, TTS-009, TTS-010, TTS-012, TTS-013, TTS-014, TTS-016, TTS-017
- Blocks: none
Priority: high | Effort: 4h | Complexity: moderate