whisper使用

This commit is contained in:
karljiang118440 2025-04-26 14:03:12 +08:00
parent 71daa9d138
commit b22742a67c
1 changed files with 5 additions and 0 deletions

5
whisper/test.py Normal file
View File

@ -0,0 +1,5 @@
import whisper
model = whisper.load_model("large-v3-turbo")
result = model.transcribe("./driven_audio/chinese_poem1.wav",fp16="False")
print(result["text"])