You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Not getting timestamp information with text in Whisper Streaming #296
Initially I was using whisper truss to translate my videos which gives you timestamp information with the translated text in json format.
but now shifted to whisper streaming model to get the translation text in stream but the whisper streaming just dump the translated text without the timestamp information.
is there any way to get the timestamp with the translated text while using whisper streaming?
I am using the given code snippet example which was provided in whisper stream demo.
import requests
import base64
def wav_to_base64(file_path):
with open(file_path, "rb") as wav_file:
binary_data = wav_file.read()
base64_data = base64.b64encode(binary_data)
base64_string = base64_data.decode("utf-8")
return base64_string
Activity