mirror of
https://github.com/mozilla/DeepSpeech.git
synced 2025-10-26 11:19:39 +00:00
Split out functions that don't depend on TensorFlow into a separate library to avoid opening the TensorFlow library if it's not necessary.
8 lines
167 B
Python
8 lines
167 B
Python
import sys
|
|
import scipy.io.wavfile as wav
|
|
from deepspeech.model import Model
|
|
|
|
ds = Model(sys.argv[1], 26, 9)
|
|
fs, audio = wav.read(sys.argv[2])
|
|
print ds.stt(audio, fs)
|