Skip to content

vcapi/tts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TTS

This is a TTS(Text-to-Speech) Library.

Test

Usage

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)
    }
}

LICENSE

MIT License

About

TTS library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages