Sfoglia il codice sorgente

add whisper_asr.py

liqian 1 anno fa
parent
commit
8b4470e9c3
1 ha cambiato i file con 5 aggiunte e 0 eliminazioni
  1. 5 0
      whisper_asr.py

+ 5 - 0
whisper_asr.py

@@ -0,0 +1,5 @@
+import whisper
+
+model = whisper.load_model("base")
+result = model.transcribe("./videos/233446.mp4")
+print(result["text"])