Speech2Text_Multi / ReverseAudio_app.py
Tlanextli's picture
Duplicate from Tlanextli/Speech2Text_Ge
6b9c021
raw
history blame
319 Bytes
import os
import numpy as np
import gradio as gr
def reverse_audio(audio):
sr, data = audio
return (sr, np.flipud(data))
demo = gr.Interface(fn=reverse_audio,
inputs="microphone",
outputs="audio"
)
if __name__ == "__main__":
demo.launch()