vineelpratap
commited on
Commit
•
a043894
1
Parent(s):
bcdaadd
Update lid.py
Browse files
lid.py
CHANGED
@@ -24,7 +24,7 @@ def identify(audio_data):
|
|
24 |
if isinstance(audio_data, tuple):
|
25 |
# microphone
|
26 |
sr, audio_samples = audio_data
|
27 |
-
audio_samples = (audio_samples / 32768.0).astype(np.
|
28 |
assert sr == LID_SAMPLING_RATE, "Invalid sampling rate"
|
29 |
else:
|
30 |
# file upload
|
|
|
24 |
if isinstance(audio_data, tuple):
|
25 |
# microphone
|
26 |
sr, audio_samples = audio_data
|
27 |
+
audio_samples = (audio_samples / 32768.0).astype(np.float32)
|
28 |
assert sr == LID_SAMPLING_RATE, "Invalid sampling rate"
|
29 |
else:
|
30 |
# file upload
|