DeepSpeech/native_client/client.py
Chris Lord d829eb4436 Split audioToInputVector into a separate library
Split out functions that don't depend on TensorFlow into a separate
library to avoid opening the TensorFlow library if it's not necessary.
2017-06-27 10:16:54 +01:00

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)