Making includes_inter_frame_spaces optional for word-timestamp.

This commit is contained in:
filipi87
2026-04-22 14:20:30 -03:00
parent b435ddfa44
commit 79250f1fe0
2 changed files with 9 additions and 7 deletions

View File

@@ -1,2 +1,2 @@
- added `includes_inter_frame_spaces` to `TTSService` and `WebsocketTTSService`, with default to `false` to preserve existing behaviors.
- `InworldTTSService` to set `includes_inter_frame_spaces` to `true` to stop inserting spaces between words from server, which already include spaces.
- Added `includes_inter_frame_spaces` parameter to `TTSService.add_word_timestamps` and `_add_word_timestamps` (default `None`). When `True`, downstream consumers will not inject additional spaces between tokens; `None` leaves each frame's own default unchanged.
- `InworldTTSService` now passes `includes_inter_frame_spaces=True` when reporting word timestamps, since Inworld tokens already include inter-word spacing.