mirror of
https://github.com/mozilla/DeepSpeech.git
synced 2025-10-26 11:19:39 +00:00
12 lines
293 B
Python
12 lines
293 B
Python
#!/usr/bin/env python
|
|
# -*- coding: utf-8 -*-
|
|
from __future__ import absolute_import, division, print_function
|
|
|
|
import sys
|
|
import scipy.io.wavfile as wav
|
|
from deepspeech.model import Model
|
|
|
|
ds = Model(sys.argv[1], 26, 9, sys.argv[3])
|
|
fs, audio = wav.read(sys.argv[2])
|
|
print(ds.stt(audio, fs))
|