Setting media track constraints.
- I have searched to see if a similar issue already exists.
Is your feature request related to a problem? Please describe.
Some users of my demo are complaining about the quality of the audio recorded using the audio component. This is random and can not be replicated effectively. As a workaround, I built a simple audio recorder using plain Javascript. After some tries with certain combinations of media track constraints, I got better results. I would like to keep the same settings on the Gradio demo as well. Is it possible to accept them as arguments in the Python API?
Describe the solution you'd like
Probably accept the media track constraints as arguments in the Python API.
Additional context
MediaTrackConstraints: https://developer.mozilla.org/en-US/docs/Web/API/MediaTrackConstraints
Source: gradio-app/gradio