stt

package module
v0.0.0-...-e96b3ff Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 5, 2016 License: MIT Imports: 6 Imported by: 0

README

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.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RecordAndTranscribe

func RecordAndTranscribe(t Transcriber, duration time.Duration) string

RecordAndTranscribe records audio for Duration and uses the text to speech engine defined to format the speech audio into a string.

Types

type Transcriber

type Transcriber interface {
	Transcribe(path string) string
}

Transcriber transcribes an audio file

Directories

Path Synopsis
engines

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL