TG_bot / model_whisper.py
KateProxa's picture
Initial commit
0b41292 verified
raw
history blame contribute delete
No virus
248 Bytes
#!/usr/bin/env python
# coding: utf-8
# In[ ]:
import whisper
model = whisper.load_model('small')
result = model.transcribe('audio_6.ogg', fp16=False) # добавляем аудио для обработки
print(result['text'])