Spaces:
Sleeping
Sleeping
File size: 374 Bytes
e701383 a01aab6 e701383 a01aab6 e701383 a01aab6 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
import gradio as gr
# def greet(name):
# return "Hello " + name + "!!"
# demo = gr.Interface(fn=greet, inputs="text", outputs="text")
# demo.launch()
import parselmouth
def get_pitch(audio_file):
sound = parselmouth.Sound(audio_file)
pitch = sound.to_pitch()
return pitch
demo = gr.Interface(fn=get_pitch, inputs="audio", outputs="text")
demo.launch()
|