Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Use Flite Text-to-Speech Synthesizer from Go
Go C Makefile
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.gitignore
LICENSE
Makefile
README.rst
flitewrap.c
flitewrap.h
goflite.go
goflite_test.go
voices.go
voices_test.go
waveform.go
waveform_test.go

README.rst

GoFlite

Access the Flite Speech Synthesizer from Go!

Usage

import "github.com/happyalu/goflite"

See Example application at http://www.github.com/happyalu/gofliteweb

Build / Install

GoFlite depends upon the CMU Flite speech synthesis engine ( http://www.cmuflite.org ). Running "make depflite" in the source directory will download all dependencies.

After than, "go build" or "go install" will build the library properly.

Alternatively, you could just run "make" to download dependencies, build and test goflite.

API

func TextToWave(text, voicename string) (*Wave, error)
   Run Text to Speech on a given text with a selected voice and return Wave
   data. If voicename is empty, a default voice will be used for the speech
   synthesis.
func (w *Wave) DumpRIFF(out io.Writer) (err error)
   Write out complete RIFF waveform, with headers
func (w *Wave) Duration() float32
   Get the Duration of Waveform in Seconds
func AddVoice(name, path string) error
   If you have built flite voices and have the flitevox files generated,
   use this function to add them to goflite. Provide a name to the voice
   being added and a path to the location of the flitevox file. Prefer
   absolute pathname.
Something went wrong with that request. Please try again.