vineelpratap commited on
Commit
a043894
1 Parent(s): bcdaadd

Update lid.py

Browse files
Files changed (1) hide show
  1. lid.py +1 -1
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.float)
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