if __name__ == "__main__":
model = WhisperModel(**MODEL_OPTION, device_index=0)
# first
segments1, info = model.transcribe("audio_test.wav", **ASR_OPTION)
for segment in segments1:
print("[%.2fs -> %.2fs] %s" % (segment.start, segment.end, segment.text))
# second
segments2, info = model.transcribe("audio_test.wav", **ASR_OPTION)
for segment in segments2:
print("[%.2fs -> %.2fs] %s" % (segment.start, segment.end, segment.text))
# third
segments3, info = model.transcribe("audio_test.wav", **ASR_OPTION)
for segment in segments3:
print("[%.2fs -> %.2fs] %s" % (segment.start, segment.end, segment.text))
every time I run python test.py ,the first result is every accurate ,but the second is same as the third result and they both are not accurate.
here is the test code:
every time I run
python test.py
,the first result is every accurate ,but the second is same as the third result and they both are not accurate.