AttributeError: module 'dtw' has no attribute 'stepPattern' #232
Unanswered
ivanVgusev
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Code:
import whisper_timestamped as whisper
import json
audio = whisper.load_audio("/content/1_16bit.wav")
model = whisper.load_model("tiny", device="cpu")
result = whisper.transcribe(model, audio, language="ru")
word_timestamps = ''
for segment in result['segments']:
for word in segment['words']:
word_timestamps += str(word) + '\n'
print(word)
with open('res_.txt', 'w') as f:
f.write(word_timestamps)
I get an error on the line (result = whisper.transcribe(model, audio, language="ru"). It says AttributeError: module 'dtw' has no attribute 'stepPattern'. What could this mean?
Beta Was this translation helpful? Give feedback.
All reactions