Exemple #1
0
func Say(text string) int {
	ctext := C.CString(text)
	defer C.free(unsafe.Pointer(ctext))
	return int(C.EspeakSynth(ctext, C.uint(0), C.espeak_POSITION_TYPE(0), C.uint(0)))
}
Exemple #2
0
func Synth(text string, position uint, positionType EspeakPositionType, endPosition uint) int {
	ctext := C.CString(text)
	defer C.free(unsafe.Pointer(ctext))
	return int(C.EspeakSynth(ctext, C.uint(position), C.espeak_POSITION_TYPE(positionType), C.uint(endPosition)))
}