Coder Social home page Coder Social logo

Comments (9)

daanzu avatar daanzu commented on July 22, 2024

The server and the recognize URL are for websocket connections only, not normal HTTP GET requests. The included client uses that for low-latency streaming; are you using it?

It wouldn't be hard to add support for receiving GET/POST requests containing audio, but it's not there currently.

from deepspeech-websocket-server.

ulimmeh avatar ulimmeh commented on July 22, 2024

Thanks for getting back to me @daanzu

My server code always seems to say listening to 'http://...' not 'ws://...' when i run the server.py file with the pretrained deepspeech model parameters. When i run python client.py, which when i checked the code already has the 'ws://...' address, it says the following in anaconda:

(base) C:\Code\python\deepspeech-websocket-server-master>python client.py Connecting to 'ws://localhost:8080/recognize'... Listening (ctrl-C to exit)...

By the way this hangs and 'ctrl-C' does nothing, i need to restart anaconda. Also, when i put ws://localhost:8080/recognize into my Google Chrome browser, i get the following error msg, despite it saying in anaconda that it is connected to that localhost via ws.

ws_listening

Any idea how i can get either the client.py or server.py on anaconda on Windows 10?

from deepspeech-websocket-server.

daanzu avatar daanzu commented on July 22, 2024

Hmm, I don't use Anaconda, and I'm no websocket expert (thankfully haven't needed to debug it much). Actually, I just realized that I haven't tested the server running directly in Windows, only in WSL. (This was developed before DeepSpeech ran on Windows.)

from deepspeech-websocket-server.

ulimmeh avatar ulimmeh commented on July 22, 2024

Ok thanks. I would really like to get this working using anaconda on Windows. Anything you can suggest to help me resolve this?

from deepspeech-websocket-server.

daanzu avatar daanzu commented on July 22, 2024

I just tried it with your configuration except vanilla python and it worked. Maybe an anaconda issue?

from deepspeech-websocket-server.

ulimmeh avatar ulimmeh commented on July 22, 2024

Hmm, can you walk me through your steps? What version of deepspeech do you use? Also, what version of the pre-trained model do you use?

from deepspeech-websocket-server.

daanzu avatar daanzu commented on July 22, 2024

I used python 3.6.3 from python.org, installed the requirements and the latest deepspeech from pip, and the 0.5.1 pretrained model.

from deepspeech-websocket-server.

ulimmeh avatar ulimmeh commented on July 22, 2024

But did you do this on Windows? Pip on what command prompt? What IDE did you use for python?

from deepspeech-websocket-server.

daanzu avatar daanzu commented on July 22, 2024

Windows 10; normal non-powershell command prompt; no IDE.

from deepspeech-websocket-server.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.