Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/inworld-remove-trailing-space.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@livekit/agents-plugin-inworld': patch
---

Remove additional trailing space to each word from timestamp for proper transcript rendering
3 changes: 1 addition & 2 deletions plugins/inworld/src/tts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -585,12 +585,11 @@ class SynthesizeStream extends tts.SynthesizeStream {
}

// Create TimedString objects for the framework pipeline
// Add trailing space to each word for proper transcript rendering
for (let i = 0; i < words.length; i++) {
if (words[i] !== undefined && starts[i] !== undefined && ends[i] !== undefined) {
pendingTimedTranscripts.push(
createTimedString({
text: words[i] + ' ',
text: words[i]!,
Comment thread
ianbbqzy marked this conversation as resolved.
startTime: starts[i],
endTime: ends[i],
}),
Expand Down
Loading