-
Notifications
You must be signed in to change notification settings - Fork 132
Shubhra/ajs 31 refactor vad with streams #390
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
Shubhrakanti
merged 42 commits into
dev-1.0
from
shubhra/ajs-31-refactor-vad-with-streams
May 19, 2025
Merged
Changes from all commits
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
c27c7bc
init
Shubhrakanti cac38aa
deafults
Shubhrakanti 01eac6e
agent import woking in example
Shubhrakanti a431af5
update gitignore
Shubhrakanti aabbaaa
get basic audio forwarding working
Shubhrakanti 7c0c60b
forwarding audio to vad
Shubhrakanti 52b7f81
fix test
Shubhrakanti 90afce8
clean up room ui
Shubhrakanti a821d7f
clean up session code
Shubhrakanti e79d8f1
clean up Activity input stream resolver
Shubhrakanti c2966d7
clean up audio recognition and activity
Shubhrakanti 2e0f79d
clean up
Shubhrakanti cce6eba
Update Livekit SDK version (#384)
Shubhrakanti 86af51d
Run tests on dev branch (#382)
Shubhrakanti fd4594c
update audio stream cancel
Shubhrakanti 31f8aa9
Merge remote-tracking branch 'origin/dev-1.0' into shubhra/design-doc
Shubhrakanti da1fe68
update logging
Shubhrakanti 155a15f
working with source
Shubhrakanti ba2d45e
update naming
Shubhrakanti 79c79bb
clean up
Shubhrakanti 4b59d14
add commnet on stream compatibility
Shubhrakanti ae3c28c
Merge branch 'dev-1.0' of https://github.com/livekit/agents-js into s…
Shubhrakanti ba56ffd
clean up log
Shubhrakanti 8eab520
clean up
Shubhrakanti dfdd424
undo
Shubhrakanti 4447274
clean up
Shubhrakanti 569802a
remove unused code
Shubhrakanti 7cbbe1d
update types
Shubhrakanti 366da68
fix type
Shubhrakanti 584149b
fix bug with track not subscribing
Shubhrakanti be2137a
remove line
Shubhrakanti e212a01
Use DeferredStream helper (#388)
lukasIO 7cb1e15
fix lint errors
Shubhrakanti 7ab8914
fix test failtures
Shubhrakanti 4ca5c99
save progress
Shubhrakanti dd14362
try using VAD source
Shubhrakanti bc50d9c
working with identity transform streams
Shubhrakanti 7c3f31e
clean up
Shubhrakanti 8a8d093
Merge branch 'dev-1.0' into shubhra/ajs-31-refactor-vad-with-streams
Shubhrakanti 0084207
Merge branch 'dev-1.0' into shubhra/ajs-31-refactor-vad-with-streams
Shubhrakanti 01b85f6
refactor with identity transofrm stream
Shubhrakanti c4a4fa1
build issue
Shubhrakanti File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I don't think this should implement
AsyncIterableIterator
. I think it would be better to have a methodThere 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.
can you elaborate on why (out of curiousity)?
Uh oh!
There was an error while loading. Please reload this page.
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.
Yeah this isn't a huge issue for the VAD, but the other components (LLM/TTS/STT) expect the output to be a
ReadableStream
for their default implementations (see this comment). This way the default usage of the components can just beReference python implementation
I just want to keep all the
[STT/LLM/TTS/VAD]Stream
classes similar.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.
Although in this case it makes more sense for
VADStream
to be calledVADStreamManager
or something.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.
I see, that makes sense to me!
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.
I'll do this in a separate PR. There are some tricky things with the legacy implementation not worth wrestling right now since we will delete that anyway. https://linear.app/livekit/issue/AJS-48/remove-iterator-from-vadsream