Skip to content

Shubhra/ajs 41 remove hard coding of audio input sample rate #494

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

Shubhrakanti
Copy link
Contributor

@Shubhrakanti Shubhrakanti commented Jun 27, 2025

Add RoomIO input and output options. Will actually apply the flags in a later PR.

Copy link

changeset-bot bot commented Jun 27, 2025

🦋 Changeset detected

Latest commit: 3635fb6

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

This PR includes changesets to release 10 packages
Name Type
@livekit/agents Patch
@livekit/agents-plugin-cartesia Patch
@livekit/agents-plugin-deepgram Patch
@livekit/agents-plugin-elevenlabs Patch
@livekit/agents-plugin-livekit Patch
@livekit/agents-plugin-neuphonic Patch
@livekit/agents-plugin-openai Patch
@livekit/agents-plugin-resemble Patch
@livekit/agents-plugin-silero Patch
@livekit/agents-plugins-test 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

@Shubhrakanti Shubhrakanti changed the base branch from main to dev-1.0 June 27, 2025 16:23
Comment on lines +145 to +148
session.start({
agent: routerAgent,
room: ctx.room,
});
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@toubatbrian feel like this is cleaner?

Copy link
Contributor

Choose a reason for hiding this comment

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

+1

Comment on lines +101 to +102
this.inputOptions = { ...DEFAULT_ROOM_INPUT_OPTIONS, ...inputOptions };
this.outputOptions = { ...DEFAULT_ROOM_OUTPUT_OPTIONS, ...outputOptions };
Copy link
Contributor Author

Choose a reason for hiding this comment

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

we do this instead of inputOptions = DEFAULT_ROOM_INPUT_OPTIONS in the constructor because we want to override the defaults with any options specified by the user.

@Shubhrakanti Shubhrakanti requested a review from toubatbrian June 27, 2025 16:28
@Shubhrakanti
Copy link
Contributor Author

Shubhrakanti commented Jun 27, 2025

Also finishes AJS-55

@Shubhrakanti Shubhrakanti merged commit 5dc4e65 into dev-1.0 Jun 27, 2025
4 checks passed
@Shubhrakanti Shubhrakanti deleted the shubhra/ajs-41-remove-hard-coding-of-audio-input-sample-rate branch June 27, 2025 17:09
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.

2 participants