/stt

Speech to text library for Golang

Primary LanguageGoMIT LicenseMIT

stt - Speech to text in Go

A speech to text library using portaudio to record and CMU PocketSphinx to transcribe.

Example

The example below uses the CMU PocketSphinx driver provided by the included psphinx package. See the Engines section for available speech to text engines.

import (
	"github.com/kladd/stt"
	"github.com/kladd/stt/engines/psphinx"
)

func main() {
	transcriber := new(psphinx.Transcriber)

	// Records for 10 seconds before transcribing
	fmt.Println(stt.RecordAndTranscribe(transcriber, 10))
}

Engines

Caveats & Dependencies

Dependencies:

  • portaudio
  • cmu-sphinxbase
  • cmu-pocketsphinx

Caveats:

  • Not very accurate right now

Installation

go get github.com/kladd/stt

License

See LICENSE

Contributing

Appreciated. Fork, branch, commit, push, pull request.