Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -16,6 +16,7 @@ def audio_to_bytes(audio):
|
|
16 |
audio_bytes = io.BytesIO()
|
17 |
sf.write(audio_bytes, data, sr, format='WAV')
|
18 |
audio_bytes.seek(0)
|
|
|
19 |
return audio_bytes
|
20 |
|
21 |
def langswitch_API_call(audio, language):
|
|
|
16 |
audio_bytes = io.BytesIO()
|
17 |
sf.write(audio_bytes, data, sr, format='WAV')
|
18 |
audio_bytes.seek(0)
|
19 |
+
print(len(data), sr, len(data)/sr)
|
20 |
return audio_bytes
|
21 |
|
22 |
def langswitch_API_call(audio, language):
|