Skip to content

Duckduckgot/htgo-tts

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HTGO-TTS

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"
import "github.com/hegedustibor/htgo-tts/voices"

Use

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

Use with Handlers

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

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

Have Fun!

About

Text to speech package for Golang.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%