Spaces:
Sleeping
Sleeping
File size: 367 Bytes
438c749 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | import whisper
from filler_detection import count_filler_words
def transcribe_audio(audio_path):
model = whisper.load_model("base")
result = model.transcribe(audio_path)
print("Transcript:")
print(result["text"])
return result["text"]
if __name__ == "__main__":
text = transcribe_audio("output/audio.wav")
count_filler_words(text) |