diff --git a/changelog/3593.added.md b/changelog/3593.added.md index 67b2394d2..432db3636 100644 --- a/changelog/3593.added.md +++ b/changelog/3593.added.md @@ -1,2 +1 @@ - Added support for Inworld TTS Websocket Auto Mode for improved latency -- Updated timestamps to be cumulative within an agent turn, using flushCompleted message as an indication of when timestamps from the server are reset to 0 \ No newline at end of file diff --git a/changelog/3593.change.md b/changelog/3593.change.md new file mode 100644 index 000000000..a21549f36 --- /dev/null +++ b/changelog/3593.change.md @@ -0,0 +1 @@ +- Updated timestamps to be cumulative within an agent turn, using flushCompleted message as an indication of when timestamps from the server are reset to 0 diff --git a/src/pipecat/services/inworld/tts.py b/src/pipecat/services/inworld/tts.py index 16898c67f..fee6c49ac 100644 --- a/src/pipecat/services/inworld/tts.py +++ b/src/pipecat/services/inworld/tts.py @@ -501,7 +501,7 @@ class InworldTTSService(AudioContextWordTTSService): # Track cumulative time across generations for monotonic timestamps within a turn. # When auto_mode is enabled, the server controls generations and timestamps reset - # to 0 after each generation, as indicated by a "flushCompleted" message. We + # to 0 after each generation, as indicated by a "flushCompleted" message. We # add _cumulative_time to maintain monotonically increasing timestamps. self._cumulative_time = 0.0 # Track the end time of the last word in the current generation