Categorygithub.com/zivoy/htgo-tts
repositorypackage
0.0.0-20210901062300-83bdafae4d56
Repository: https://github.com/zivoy/htgo-tts.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# README

htgo-tts

https://hegedustibor.github.io/htgo-tts/

Requirement:

  • mplayer (optional)

Install

go get "github.com/hegedustibor/htgo-tts"

Update

go get -u "github.com/hegedustibor/htgo-tts"

Remove

go clean -i "github.com/hegedustibor/htgo-tts"

Import

import "github.com/hegedustibor/htgo-tts"

Use

speech := htgotts.Speech{Folder: "audio", Language: "en"}
speech.Speak("Your sentence.")

Use with Handlers

import (
    htgotts "github.com/hegedustibor/htgo-tts"
    handlers "github.com/hegedustibor/htgo-tts/handlers"
)

speech := htgotts.Speech{Folder: "audio", Language: "en", Handler: &handlers.MPlayer{}}
speech.Speak("Your sentence.")

Have Fun!