Spaces:
Running
Running
PerryCheng614
commited on
Commit
•
4080a13
1
Parent(s):
ad55a96
added print debug base 64
Browse files
app.py
CHANGED
@@ -20,6 +20,8 @@ async def process_audio_stream(audio_path, max_tokens):
|
|
20 |
# Convert to string for writing to text file
|
21 |
base64_string = base64_bytes.decode('utf-8')
|
22 |
|
|
|
|
|
23 |
# Connect to WebSocket
|
24 |
async with websockets.connect('ws://nexa-omni.nexa4ai.com/ws/process-audio/') as websocket:
|
25 |
# Send binary base64 audio data
|
|
|
20 |
# Convert to string for writing to text file
|
21 |
base64_string = base64_bytes.decode('utf-8')
|
22 |
|
23 |
+
print(base64_string)
|
24 |
+
|
25 |
# Connect to WebSocket
|
26 |
async with websockets.connect('ws://nexa-omni.nexa4ai.com/ws/process-audio/') as websocket:
|
27 |
# Send binary base64 audio data
|