deepspeech-websocket-server icon indicating copy to clipboard operation
deepspeech-websocket-server copied to clipboard

can't get server running

Open siberiansun opened this issue 6 years ago • 1 comments

deepspeech is running fine on my WSL. Trying to point the server to the right directory but it won't recognize. I tried different paths but still the same. Is there anything special?

python deepspeech-websocket-server/server.py --model deepspeech-0.5.1-models/ -l -t Initializing model... 2019-10-29 PM 04:44:28.804: main: INFO: (): ARGS.model: deepspeech-0.5.1-models/output_graph.pb 2019-10-29 PM 04:44:28.805: main: INFO: (): ARGS.alphabet: deepspeech-0.5.1-models/alphabet.txt Traceback (most recent call last): File "deepspeech-websocket-server/server.py", line 60, in model = deepspeech.Model(ARGS.model, N_FEATURES, N_CONTEXT, ARGS.alphabet, BEAM_WIDTH) AttributeError: 'module' object has no attribute 'Model'

siberiansun avatar Oct 29 '19 16:10 siberiansun

Steps to make it work:

cd GIT_REPOSITORY
python3 -m venv .
source ./bin/activate
pip install -r requirements-server.txt
pip install deepspeech-gpu # Or deepspeech
python server.py --model ../models/ #  I have it outside of git repo

PixsaOJ avatar Aug 14 '21 17:08 PixsaOJ