facebookresearch / audio2photoreal

Code and dataset for photorealistic Codec Avatars driven from audio
Other
2.66k stars 250 forks source link

Switching from Recording to Uploading Audio in a Demo: Is it Possible? #51

Closed idarous4 closed 6 months ago

idarous4 commented 7 months ago

Is it possible to switch from recording audio to uploading audio in the demo? I tried changing gr.Audio(sources=["microphone"]) to gr.File() in the demo script. While I can upload audio successfully, it doesn't display anything afterward. Can this be resolved? audio

evonneng commented 7 months ago

Hi! Thanks for your question. It seems that providing support for both of them requires some toggling feature which I will look into later. But in the meantime, it seems you might have to change microphone to upload instead.

Please see this link for reference: https://www.gradio.app/docs/audio