tts

package module
v0.0.0-...-e7b4a4d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 3, 2020 License: MIT Imports: 6 Imported by: 0

README

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Google

func Google(ctx context.Context, text, lang string, out io.Writer) error

Google tts api

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL