Skip to content
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

how to mix audio track #1364

Open
zz00217 opened this issue Aug 26, 2023 · 2 comments
Open

how to mix audio track #1364

zz00217 opened this issue Aug 26, 2023 · 2 comments

Comments

@zz00217
Copy link

zz00217 commented Aug 26, 2023

I want to mix 2 audio tracks. have any related examples?

@whitphx
Copy link
Owner

whitphx commented Sep 10, 2023

This is an example of mixing multiple video tracks: https://github.com/whitphx/streamlit-webrtc/blob/main/pages/6_mix_multi_inputs.py
Replacing its "video" to "audio" may work...? Sorry audio is not my expertise...

@zz00217
Copy link
Author

zz00217 commented Sep 11, 2023

Thank you for your reply. It will save the last frame in the _latest_frames_map and don't remove it in the mixe.py unless the track is ended . For videos, this will save the previous image. Is there an impact on audio mixing?

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

No branches or pull requests

2 participants