Skip to content

Ignore output_frame_size parameter #210

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 1 commit into from
Apr 1, 2025

Conversation

vvolhejn
Copy link
Contributor

Resolves #204

!!! tip

In general it is best to leave these settings untouched. In some cases,
lowering the output_frame_size can yield smoother audio playback.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Wasn't sure whether to keep a part of this - but it seems strange to document a parameter and then tell people not to use it

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yes makes sense


```python
from fastrtc import ReplyOnPause, Stream

stream = Stream(
handler=ReplyOnPause(..., output_sample_rate=24000, output_frame_size=960),
handler=ReplyOnPause(..., output_sample_rate=16000),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Used a non-default value so that the example actually changes the behavior. Haven't tested though.

Copy link
Collaborator

@freddyaboulton freddyaboulton left a comment

Choose a reason for hiding this comment

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

Thank you @vvolhejn ! And sorry for the delayed review here

@freddyaboulton freddyaboulton merged commit 06885d0 into gradio-app:main Apr 1, 2025
1 check failed
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.

Choppy audio with default output_frame_size
2 participants