mirror of
https://github.com/kyutai-labs/delayed-streams-modeling.git
synced 2025-12-23 03:19:57 +00:00
Address review comments
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
static_dir = "./static/"
|
||||
log_dir = "$HOME/tmp/tts-logs"
|
||||
instance_name = "tts"
|
||||
authorized_ids = ["open_token"]
|
||||
authorized_ids = ["public_token"]
|
||||
|
||||
[modules.asr]
|
||||
path = "/api/asr-streaming"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
static_dir = "./static/"
|
||||
log_dir = "$HOME/tmp/tts-logs"
|
||||
instance_name = "tts"
|
||||
authorized_ids = ["open_token"]
|
||||
authorized_ids = ["public_token"]
|
||||
|
||||
[modules.asr]
|
||||
path = "/api/asr-streaming"
|
||||
|
||||
@@ -18,7 +18,6 @@ import websockets
|
||||
|
||||
SAMPLE_RATE = 24000
|
||||
FRAME_SIZE = 1920 # Send data in chunks
|
||||
HEADERS = {"kyutai-api-key": "open_token"}
|
||||
|
||||
|
||||
def load_and_process_audio(file_path):
|
||||
@@ -130,4 +129,7 @@ if __name__ == "__main__":
|
||||
|
||||
print()
|
||||
print()
|
||||
print(transcript)
|
||||
for word in transcript:
|
||||
print(
|
||||
f"{word['timestamp'][0]:7.2f} -{word['timestamp'][1]:7.2f} {word['text']}"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user