Last active
March 29, 2024 12:22
-
-
Save edsu/3533dfbb6cc698ce72d6bae28643fa70 to your computer and use it in GitHub Desktop.
This seems to cause whisper to segfault on my MacBook Pro 2.4 GHz 8-Core Intel Core i9, Sonoma 14.4.1, Python 3.12.0
This file contains 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
#!/usr/bin/env python3 | |
import whisper | |
model = whisper.load_model('small') | |
audio = whisper.load_audio('en.wav') | |
t = whisper.transcribe( | |
audio=audio, | |
model=model, | |
language='en', | |
beam_size=5, | |
patience=1.0, | |
condition_on_previous_text=True, | |
word_timestamps=True | |
) | |
print(t['text']) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment