Skip to content

Publish transcriptions additionally via text stream APIs #348

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Apr 29, 2025

Conversation

lukasIO
Copy link
Contributor

@lukasIO lukasIO commented Mar 28, 2025

depends on livekit/node-sdks#447

add support for text stream based transcriptions while trying to leave things as they are otherwise.

The whole synchronizer logic (esp. wrt to deltas) should get an overhaul for 1.0 as a bunch of things changed on the python side.

@lukasIO lukasIO requested review from nbsp and bcherry March 28, 2025 12:29
Copy link

changeset-bot bot commented Mar 28, 2025

🦋 Changeset detected

Latest commit: 1392f15

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@livekit/agents Patch

Not sure what this means? Click here to learn what changesets are.

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

@lukasIO lukasIO requested a review from Shubhrakanti April 28, 2025 16:26
#synthesizeAgentSpeech(
speechId: string,
source: string | LLMStream | AsyncIterable<string>,
): SynthesisHandle {
const synchronizer = new TextAudioSynchronizer(defaultTextSyncOptions);
synchronizer.on('textUpdated', (text) => {
// TODO: where possible we would want to use deltas instead of full text segments, esp for LLM streams over the streamText API
Copy link
Contributor

Choose a reason for hiding this comment

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

this makes sense.

@Shubhrakanti
Copy link
Contributor

Just make sure the build/tests past before merging. Thanks for bringing this to my attention. I'll include this in my agents-js 1.0 design doc.

@lukasIO lukasIO merged commit a0c49c9 into main Apr 29, 2025
8 checks passed
@lukasIO lukasIO deleted the lukas/stream-transcriptions branch April 29, 2025 10:30
@github-actions github-actions bot mentioned this pull request Apr 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