tts

package
v0.0.0-...-56a85f5 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MergeOggStreams

func MergeOggStreams(processedParts []io.Reader) (io.Reader, error)

Types

type LettersStat

type LettersStat struct {
	Latin    float64
	Cyrillic float64
}

type TTSClient

type TTSClient struct {
	*http.Client

	RequestURL string
}

func (*TTSClient) Process

func (c *TTSClient) Process(text string) (io.Reader, error)

type TTSProvider

type TTSProvider interface {
	Process(text string) (io.Reader, error)
}

type TextToSpeech

type TextToSpeech struct {
	Provider TTSProvider
}

TextToSpeech is a plugin to support text to speech feature

func NewTTS

func NewTTS(p TTSProvider) *TextToSpeech

func (*TextToSpeech) MessageReactionAdd

func (tts *TextToSpeech) MessageReactionAdd(s *discordgo.Session, mr *discordgo.MessageReactionAdd)

MessageReactionAdd

Jump to

Keyboard shortcuts

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