Spaces:
Sleeping
Sleeping
File size: 455 Bytes
e701383 a01aab6 e701383 a01aab6 be3a34b a01aab6 e701383 a01aab6 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
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 = call(sound, "To Pitch", 0.0, 75, 500)
pitch_values = pitch.selected_array['frequency']
return pitch_values
demo = gr.Interface(fn=get_pitch, inputs="audio", outputs="text")
demo.launch()
|