Spaces:
Running
on
Zero
Running
on
Zero
Helw150
commited on
Commit
•
64e2453
1
Parent(s):
c80e82b
Fix FileName
Browse files
app.py
CHANGED
@@ -127,7 +127,7 @@ def response(state: AppState):
|
|
127 |
|
128 |
file_name = f"/tmp/{xxhash.xxh32(bytes(state.stream)).hexdigest()}.wav"
|
129 |
|
130 |
-
sf.write(
|
131 |
|
132 |
state.conversation.append(
|
133 |
{"role": "user", "content": {"path": file_name, "mime_type": "audio/wav"}}
|
|
|
127 |
|
128 |
file_name = f"/tmp/{xxhash.xxh32(bytes(state.stream)).hexdigest()}.wav"
|
129 |
|
130 |
+
sf.write(file_name, state.stream, state.sampling_rate, format="wav")
|
131 |
|
132 |
state.conversation.append(
|
133 |
{"role": "user", "content": {"path": file_name, "mime_type": "audio/wav"}}
|