This is a TTS(Text-to-Speech) Library.
Use google TTS api
package main
import (
"context"
"os"
"github.com/vcapi/tts"
)
func main() {
fs, err := os.OpenFile("hello.mp3", os.O_CREATE, 0600)
if err != nil {
panic(err)
}
defer fs.Close()
ctx := context.TODO()
err = tts.Google(ctx, "hello", "en", fs)
if err != nil {
panic(err)
}
}MIT License