Skip to content

Comments

flush transcriptions when segment is received#1659

Closed
davidzhao wants to merge 2 commits intomainfrom
fix-transcriptions
Closed

flush transcriptions when segment is received#1659
davidzhao wants to merge 2 commits intomainfrom
fix-transcriptions

Conversation

@davidzhao
Copy link
Member

we should flush transcriptions in sync even if it's not at sentence boundary

we should flush transcriptions in sync even if it's not at sentence boundary
@changeset-bot
Copy link

changeset-bot bot commented Mar 15, 2025

⚠️ No Changeset found

Latest commit: 20af495

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@davidzhao davidzhao requested review from longcw and theomonnom March 15, 2025 08:48
SessionUpdateEvent(
type="session.update",
session=session_update_event.Session(
# restore previous instructions on reconnect
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't really a reconnect right?

self._text_data.pushed_text += text
self._text_data.sentence_stream.push_text(text)
# when delta is received not at the sentence boundary, flush sentence stream
self._text_data.sentence_stream.flush()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Discussed in Slack

@theomonnom theomonnom closed this Mar 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants