GithubHelp home page GithubHelp logo

coconaut / go-astideepspeech Goto Github PK

View Code? Open in Web Editor NEW

This project forked from asticode/go-astideepspeech

0.0 1.0 0.0 4 KB

Golang bindings for Mozilla's DeepSpeech speech-to-text library

License: MIT License

C++ 23.88% Go 68.69% C 7.43%

go-astideepspeech's Introduction

GoReportCard GoDoc

Golang bindings for Mozilla's DeepSpeech speech-to-text library.

As of now, astideepspeech is only compatible with version v0.1.1 of DeepSpeech.

Installation

Install DeepSpeech

  • get the code by following instructions in DeepSpeech's "Getting the code" chapter

  • cd into the directory you've just cloned the project into

  • run the following commands:

      $ git checkout v0.1.1
      $ sudo mkdir /usr/local/include/DeepSpeech
      $ sudo cp native_client/*.h /usr/local/include/DeepSpeech
      $ sudo cp native_client/build/*.so /usr/local/lib
    
  • make sure /usr/local/lib is in your LD_LIBRARY_PATH environment variable

Install astideepspeech

Run the following command:

$ go get -u github.com/asticode/go-astideepspeech/...

Example

Get the pre-trained model

Run the following commands:

$ mkdir /tmp/deepspeech
$ cd /tmp/deepspeech
$ wget https://github.com/mozilla/DeepSpeech/releases/download/v0.1.1/deepspeech-0.1.1-models.tar.gz
$ tar xvfz deepspeech-0.1.1-models.tar.gz

Get the audio files

Run the following commands:

$ cd /tmp/deepspeech
$ wget https://github.com/mozilla/DeepSpeech/releases/download/v0.1.1/audio-0.1.1.tar.gz
$ tar xvfz audio-0.1.1.tar.gz

Use the client

Run the following commands (make sure $GOPATH/bin is in your $PATH):

$ cd /tmp/deepspeech
$ deepspeech models/output_graph.pb audio/2830-3980-0043.wav models/alphabet.txt models/lm.binary models/trie

    Text: experience proves this

$ deepspeech models/output_graph.pb audio/4507-16021-0012.wav models/alphabet.txt models/lm.binary models/trie

    Text: why should one halt on the way
    
$ deepspeech models/output_graph.pb audio/8455-210777-0068.wav models/alphabet.txt models/lm.binary models/trie

    Text: your power is sufficient i said

go-astideepspeech's People

Contributors

asticode avatar

Watchers

Alexander Barry 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.