Skip to content

Instantly share code, notes, and snippets.

@edsu
Last active March 29, 2024 12:22
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 edsu/3533dfbb6cc698ce72d6bae28643fa70 to your computer and use it in GitHub Desktop.
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
#!/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