Created
July 21, 2023 15:47
-
-
Save manhg/e971d3f6e0c174d3a42972d38bcd5e40 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openai-whisper==20230314 | |
spacy==3.5.3 | |
transformers==4.30.2 | |
nltk==3.8.1 | |
sentencepiece-0.1.99 | |
gensim==3.8.3 | |
sumy==0.11.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import whisper | |
# ffmpeg -i "2.mp4" -ar 16000 -ac 1 -c:a pcm_s16le 1.wav | |
model = whisper.load_model("medium") | |
text = model.transcribe("./vmail.wav") | |
print(text['text']) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment