jaekookang commited on
Commit
37f6612
1 Parent(s): bee682c

add package.stxt

Browse files
Files changed (3) hide show
  1. gradio_asr_en_libri100.py +4 -4
  2. packages.txt +2 -0
  3. requirements.txt +1 -2
gradio_asr_en_libri100.py CHANGED
@@ -12,9 +12,9 @@
12
  import os
13
  from glob import glob
14
  from loguru import logger
15
- # import soundfile as sf
16
  # import librosa
17
- from scipy.io import wavfile
18
  import gradio as gr
19
 
20
  from espnet_model_zoo.downloader import ModelDownloader
@@ -53,9 +53,9 @@ logger.info('model loaded')
53
 
54
  def predict(wav_file):
55
  logger.info('wav file loaded')
56
- # speech, rate = sf.read(wav_file)
57
  # speech, rate = librosa.load(wav_file, sr=16000)
58
- rate, speech = wavfile.read(wav_file)
59
  nbests = model(speech)
60
  text, *_ = nbests[0]
61
  logger.info('predicted')
 
12
  import os
13
  from glob import glob
14
  from loguru import logger
15
+ import soundfile as sf
16
  # import librosa
17
+ # from scipy.io import wavfile
18
  import gradio as gr
19
 
20
  from espnet_model_zoo.downloader import ModelDownloader
 
53
 
54
  def predict(wav_file):
55
  logger.info('wav file loaded')
56
+ speech, rate = sf.read(wav_file)
57
  # speech, rate = librosa.load(wav_file, sr=16000)
58
+ # rate, speech = wavfile.read(wav_file)
59
  nbests = model(speech)
60
  text, *_ = nbests[0]
61
  logger.info('predicted')
packages.txt ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ cmake
2
+ libsndfile1
requirements.txt CHANGED
@@ -2,5 +2,4 @@ espnet==0.10.6
2
  espnet_model_zoo==0.1.7
3
  gradio==2.7.5.2
4
  loguru==0.6.0
5
- librosa
6
- scipy==1.7.3
 
2
  espnet_model_zoo==0.1.7
3
  gradio==2.7.5.2
4
  loguru==0.6.0
5
+ soundfile