Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -31,6 +31,8 @@ vad_iterator = VADIterator(
|
|
31 |
|
32 |
def transcribe(stream, new_chunk):
|
33 |
sr, y = new_chunk
|
|
|
|
|
34 |
audio_int16 = np.frombuffer(y, dtype=np.int16)
|
35 |
audio_float32 = int2float(audio_int16)
|
36 |
vad_output = vad_iterator(torch.from_numpy(audio_float32))
|
|
|
31 |
|
32 |
def transcribe(stream, new_chunk):
|
33 |
sr, y = new_chunk
|
34 |
+
print(sr)
|
35 |
+
print(y.shape)
|
36 |
audio_int16 = np.frombuffer(y, dtype=np.int16)
|
37 |
audio_float32 = int2float(audio_int16)
|
38 |
vad_output = vad_iterator(torch.from_numpy(audio_float32))
|