Update code snippet to output seconds as float
This commit is contained in:
@@ -54,7 +54,7 @@ segments, info = model.transcribe("audio.mp3", beam_size=5)
|
||||
print("Detected language '%s' with probability %f" % (info.language, info.language_probability))
|
||||
|
||||
for segment in segments:
|
||||
print("[%ds -> %ds] %s" % (segment.start, segment.end, segment.text))
|
||||
print("[%.2fs -> %.2fs] %s" % (segment.start, segment.end, segment.text))
|
||||
```
|
||||
|
||||
## Comparing performance against openai/whisper
|
||||
|
||||
Reference in New Issue
Block a user