GithubHelp home page GithubHelp logo

go-dockly / go-astideepspeech Goto Github PK

View Code? Open in Web Editor NEW

This project forked from asticode/go-astideepspeech

0.0 0.0 0.0 42 KB

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

License: MIT License

Go 57.56% C++ 31.53% C 10.91%

go-astideepspeech's Introduction

GoReportCard GoDoc

Golang bindings for Mozilla's/Coqui's STT speech-to-text library.

astideepspeech is compatible with version v1.0.0 of STT.

Installation

Install tflite

Run the following command:

$ pip3 install --extra-index-url https://google-coral.github.io/py-repo/ tflite_runtime

Install Coqui STT

  • fetch an up-to-date native_client.<your system>.tar.xz matching your system from "releases"
  • extract its content to /tmp/stt/lib
  • set environment variables to point to client export CGO_LDFLAGS="-L/tmp/native_client.tflite.Linux/" export CGO_CXXFLAGS="-I/tmp/native_client.tflite.Linux/" export LD_LIBRARY_PATH=/tmp/native_client.tflite.Linux//:$LD_LIBRARY_PATH

Install astideepspeech

Run the following command:

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

Example

Get the pre-trained model and scorer

Sign up with your email and download the scorer and tflite files from eg https://coqui.ai/english/coqui/v1.0.0-large-vocab

Get the audio files

Run the following commands:

$ cd /tmp/deepspeech
$ wget https://github.com/coqui-ai/STT/releases/download/v1.0.0/audio-1.0.0.tar.gz
$ tar xvfz audio-1.0.0.tar.gz

Use this client

Run the following commands:

$ go run deepspeech/main.go -model stt-1.0.0-model.tflite -scorer stt-1.0.0-model.scorer -audio audio/2830-3980-0043.wav

    Text: experience proves this

$ go run deepspeech/main.go -model stt-1.0.0-model.tflite -scorer stt-1.0.0-model.scorer -audio audio/4507-16021-0012.wav

    Text: why should one hall on the way
    
$ go run deepspeech/main.go -model stt-1.0.0-model.tflite -scorer stt-1.0.0-model.scorer -audio audio/8455-210777-0068.wav

    Text: your power is sufficient i said

go-astideepspeech's People

Contributors

asticode avatar derat avatar go-dockly avatar lissyx avatar xdjinnx avatar lu4p 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.