You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

29 lines
488 B

package main
import (
"fmt"
"os/exec"
"strings"
)
func festivalEn(text string) {
path, err := exec.LookPath("festival")
if err != nil {
return
}
festival := exec.Command(path, "--tts")
reader := strings.NewReader(text)
festival.Stdin = reader
err = festival.Run()
if err != nil {
fmt.Println("error")
}
}
func festivalCa(text string) {
out, err := exec.Command("bash", "readCa.sh", text).Output()
if err != nil {
fmt.Println("error")
}
fmt.Println(string(out))
}