feat: implement script generation API client function

- Add ScriptSegment, ScriptRequest, and ScriptResponse TypeScript interfaces
- Implement generateScript() function to call /api/tts/script endpoint
- Update GenerateRequest interface to support optional segments array
- Add comprehensive error handling for script generation
- Validates Requirements 15.1, 15.2
This commit is contained in:
2025-12-09 11:47:30 +00:00
parent cea97d3cd4
commit d737b1f7ea
2 changed files with 48 additions and 2 deletions

View File

@@ -389,7 +389,7 @@
- Test segment speaker assignments are respected
- _Requirements: 15.7_
- [ ] 20. Implement script generation API client function
- [x] 20. Implement script generation API client function
- Add generateScript() function to src/api/tts.ts
- Define ScriptSegment, ScriptRequest, and ScriptResponse TypeScript interfaces
- Implement error handling for script generation