-
Notifications
You must be signed in to change notification settings - Fork 109
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
Conversation
🦋 Changeset detectedLatest commit: 1392f15 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
#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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this makes sense.
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. |
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.