dlaiu
changed to pitch processing
a01aab6
raw
history blame
374 Bytes
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()