Giter VIP home page Giter VIP logo

deepspeech-server's Introduction

Build

  • Download compatible version of native_client.tar.xz (check deepspeech-rs)
  • LB_LIBRARY_PATH=... LIBRARY_PATH=... cargo build with both path pointing to the extracted native_client.tar.xz

Run

  • Download compatible DeepSpeech model and extract
$ LD_LIBRARY_PATH=...: ./target/debug/ds-srv --model models/output_graph.pbmm --lm models/lm.binary --trie models/trie -vvvvv
05:16:57 [DEBUG] ds_srv: Parsed all CLI args: RuntimeConfig { http_ip: V6(::), http_port: 8080, dump_dir: "/tmp", warmup_dir: "", warmup_cycles: 10, model: "models/output_graph.pbmm", lm: "models/lm.binary", trie: "models/trie", verbosity_level: DEBUG }
Started all thread.
05:16:57 [INFO] Inference thread started
TensorFlow: v1.11.0-rc2-4-g77b7b17
05:16:57 [INFO] Building server http://[::]:8080
DeepSpeech: v0.2.1-alpha.1-0-gae2cfe0
05:16:57 [INFO] Listening on http://[::]:8080
2018-09-27 07:16:57.157376: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
05:16:57 [DEBUG] tokio_reactor::background: starting background reactor
05:17:02 [INFO] Model ready and waiting for data to infer ...

Test

Using 4507-16021-0012.wav from DeepSpeech's release:

$ curl -v -H 'Content-Type: application/octet-stream' --data-binary @"./audio/4507-16021-0012.wav" http://127.0.0.1:8080
*   Trying 127.0.0.1...
* TCP_NODELAY set
* Connected to 127.0.0.1 (127.0.0.1) port 8080 (#0)
> POST / HTTP/1.1
> Host: 127.0.0.1:8080
> User-Agent: curl/7.58.0
> Accept: */*
> Content-Type: application/octet-stream
> Content-Length: 87564
> Expect: 100-continue
>
< HTTP/1.1 100 Continue
* We are completely uploaded and fine
< HTTP/1.1 200 OK
< content-type: application/json
< content-length: 84
< date: Thu, 27 Sep 2018 05:12:36 GMT
<
* Connection #0 to host 127.0.0.1 left intact
{"status":"ok","data":[{"text":"why should one hall on the way ","confidence":1.0}]}

deepspeech-server's People

Contributors

andrenatal avatar bravecorvus avatar jbuck avatar lissyx avatar

Watchers

 avatar  avatar

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.