# No Audio file generated with Gradio when source is mic

**URL:** <https://discuss.huggingface.co/t/no-audio-file-generated-with-gradio-when-source-is-mic/57085>\
**Category:** Beginners\
**Created:** [October 2, 2023, 10:52am UTC](https://discuss.huggingface.co/t/no-audio-file-generated-with-gradio-when-source-is-mic/57085 "2023-10-02T10:52:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dkance](https://avatars.discourse-cdn.com/v4/letter/d/6bbea6/32.png) [@dkance](https://discuss.huggingface.co/u/dkance)\
**Post date:** [October 2, 2023, 10:52am UTC](https://discuss.huggingface.co/t/no-audio-file-generated-with-gradio-when-source-is-mic/57085/1 "2023-10-02T10:52:38Z")

</div>

Hello, the following code (Gradio) does not generate an audio file.

```auto
demo = gr.Interface(
    fn=process,
    inputs=gr.Audio(source="microphone",type="filepath"),
    outputs="text")

```

The “upload” source option works just fine.

Please advise.

Thanks.
