neurolink
neurolink copied to clipboard
TTS-020: Integrate TTS into BaseProvider.generate()
Summary
Integrate TTS synthesis into the BaseProvider.generate() method.
Technical Details
- File(s): src/lib/core/baseProvider.ts
- Effort: 3h
Acceptance Criteria
- [ ] Check if options.tts?.enabled === true in generate() method
- [ ] Extract final text response from AI generation
- [ ] Call TTSProcessor.synthesize(text, options.tts, providerName)
- [ ] Add TTSResult to GenerateResult as audio field
- [ ] Error handling: log TTS errors but don't fail request
- [ ] Add TTS latency to response metadata
- [ ] Document behavior in JSDoc comments
- [ ] Integration test: generate() with TTS returns audio
Dependencies
- Depends on: TTS-001, TTS-003, TTS-008, TTS-012, TTS-016, TTS-019
- Blocks: none
Priority: high | Effort: 3h | Complexity: moderate