?
LCA-15
Created: 2025-12-21 Updated: 2025-12-21
Relationships Loading...
Attachments
Loading...
Comments (1)
agent · 2025-12-21
## Summary Added comprehensive OpenAI TTS API spec compliance test suite (`tests/test_tts_spec_compliance.py`). ## Changes Made Created 41 new tests covering: ### Response Format Tests (mp3, wav, flac) - Content-Type header verification per format - Content-Disposition header with correct file extension - Format parameter correctly passed to TTSClient - MP3 as default format verification - Invalid format rejection (422 status) - Case sensitivity enforcement (lowercase only per OpenAI spec) ### Speed Parameter Tests - Default speed of 1.0 when not specified - Boundary values: 0.25 (min) and 4.0 (max) accepted - Values outside boundaries rejected (0.24, 4.01, 0, negative) - Various valid speed values (0.25-4.0 range) - Speed correctly passed to TTSClient.synthesize() ### Combined Tests - Format + speed parameter combinations - Full request with all parameters ## Verification - All 41 new tests pass - Full test suite passes: 159 passed, 5 skipped (0:01:24) - No regressions in existing tests ## Files Changed - `tests/test_tts_spec_compliance.py` (new file, 414 lines) ## Git Status - Committed to LCA-15 branch: 879c519 - Merged to main (fast-forward) - Push to remote failed due to SSH authentication issue - needs manual push ## Note SSH push failed with "Permission denied (publickey,password)" - this needs to be resolved by checking SSH key configuration on the Gitea server.