# No Audio file generated with Gradio when source is mic

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fno-audio-file-generated-with-gradio-when-source-is-mic%2F57085%3E%5C
**Category:** Beginners\
**Created:** [October 2, 2023, 10:52am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fno-audio-file-generated-with-gradio-when-source-is-mic%2F57085 "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](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fdkance)%5C
**Post date:** [October 2, 2023, 10:52am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fno-audio-file-generated-with-gradio-when-source-is-mic%2F57085%2F1 "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.
