Update app.py
Browse files
app.py
CHANGED
@@ -15,8 +15,8 @@ llmchain = LLM_chain()
|
|
15 |
|
16 |
def autoplay(audio, wait: bool=True):
|
17 |
if audio:
|
18 |
-
audio_bytes = audio
|
19 |
-
sample_rate =
|
20 |
sample_width = audio["sample_width"]
|
21 |
total_samples = len(audio_bytes) / sample_width
|
22 |
duration = total_samples / sample_rate
|
|
|
15 |
|
16 |
def autoplay(audio, wait: bool=True):
|
17 |
if audio:
|
18 |
+
audio_bytes = audio
|
19 |
+
sample_rate = 16000
|
20 |
sample_width = audio["sample_width"]
|
21 |
total_samples = len(audio_bytes) / sample_width
|
22 |
duration = total_samples / sample_rate
|