Spaces:
Runtime error
Runtime error
jaekookang
commited on
Commit
•
3d0edc0
1
Parent(s):
f14549b
update speech.dtypeg
Browse files
gradio_asr_en_libri100_word_vs_bpe.py
CHANGED
@@ -54,6 +54,7 @@ def predict(wav_file):
|
|
54 |
logger.info(f'speech.shape: {speech.shape}')
|
55 |
logger.info(f'speech.dtype: {speech.dtype}')
|
56 |
logger.info(f'speech rate: {rate}')
|
|
|
57 |
|
58 |
# number_of_samples = round(len(speech_raw) * float(16000) / rate)
|
59 |
# speech = sps.resample(speech_raw, number_of_samples)
|
|
|
54 |
logger.info(f'speech.shape: {speech.shape}')
|
55 |
logger.info(f'speech.dtype: {speech.dtype}')
|
56 |
logger.info(f'speech rate: {rate}')
|
57 |
+
speech = speech.astype('float32')
|
58 |
|
59 |
# number_of_samples = round(len(speech_raw) * float(16000) / rate)
|
60 |
# speech = sps.resample(speech_raw, number_of_samples)
|