Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -51,7 +51,7 @@ def transcribe_2(audio_bytes):
|
|
51 |
#request = speech_v1.RecognizeSpeechRequest(config=config, audio=audio)
|
52 |
print(type(audio_bytes))
|
53 |
sr, y = audio_bytes
|
54 |
-
print(type(sr))
|
55 |
print(type(y))
|
56 |
y = y.astype(np.float32)
|
57 |
y /= np.max(np.abs(y))
|
|
|
51 |
#request = speech_v1.RecognizeSpeechRequest(config=config, audio=audio)
|
52 |
print(type(audio_bytes))
|
53 |
sr, y = audio_bytes
|
54 |
+
print(f"{type(sr)} {sr}")
|
55 |
print(type(y))
|
56 |
y = y.astype(np.float32)
|
57 |
y /= np.max(np.abs(y))
|