A speech to text library using portaudio to record and CMU PocketSphinx to transcribe.
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))
}
- CMU PocketSphinx - pshinx
Dependencies:
- portaudio
- cmu-sphinxbase
- cmu-pocketsphinx
Caveats:
- Not very accurate right now
go get github.com/kladd/stt
See LICENSE
Appreciated. Fork, branch, commit, push, pull request.