Skip to content

Instantly share code, notes, and snippets.

@manhg
Created July 21, 2023 15:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save manhg/e971d3f6e0c174d3a42972d38bcd5e40 to your computer and use it in GitHub Desktop.
Save manhg/e971d3f6e0c174d3a42972d38bcd5e40 to your computer and use it in GitHub Desktop.
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
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