htgotts

package module
Version: v0.0.0-...-b76f419 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2021 License: MIT Imports: 8 Imported by: 2

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"
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!

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Speech

type Speech struct {
	Folder   string
	Language string
	Handler  handlers.PlayerInterface
}

Speech struct

func (*Speech) Speak

func (speech *Speech) Speak(text string) error

Speak downloads speech and plays it using mplayer

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL