edge_tts_go

package module
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: MIT Imports: 6 Imported by: 0

README

github.com/pp-group/edge-tts-go

this is a project rewrite edge-tts with go

language and voice support: https://learn.microsoft.com/en-us/azure/cognitive-services/speech-service/language-support?tabs=tts

QUICK START

speech_test.go TestGenTTS()

LICENSE: MIT

pp-group/github.com/pp-group/edge-tts-go is licensed under the MIT License

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ISpeech added in v1.1.0

type ISpeech interface {
	GenTTS() (string, func() error)
	URL(filename string) (string, error)
}

type LocalSpeech added in v1.1.0

type LocalSpeech struct {
	*Speech
}

func NewLocalSpeech added in v1.1.0

func NewLocalSpeech(c *edge.Communicate, folder string) (*LocalSpeech, error)

func (*LocalSpeech) GenTTS added in v1.1.0

func (speech *LocalSpeech) GenTTS() (string, func() error)

func (*LocalSpeech) URL added in v1.1.0

func (speech *LocalSpeech) URL(filename string) (string, error)

type OssSpeech added in v1.1.0

type OssSpeech struct {
	*Speech
	// contains filtered or unexported fields
}

func NewOssSpeech added in v1.1.0

func NewOssSpeech(c *edge.Communicate, endpoint, ak, sk, folder, bucket string) (*OssSpeech, error)

func (*OssSpeech) GenTTS added in v1.1.0

func (speech *OssSpeech) GenTTS() (string, func() error)

func (*OssSpeech) URL added in v1.1.0

func (speech *OssSpeech) URL(filename string) (string, error)

type OssSpeechFactory added in v1.1.1

type OssSpeechFactory struct {
	// contains filtered or unexported fields
}

func NewOssSpeechFactory added in v1.1.1

func NewOssSpeechFactory(endpoint, ak, sk, bucket, folder string) *OssSpeechFactory

func (*OssSpeechFactory) OssSpeech added in v1.1.1

func (factory *OssSpeechFactory) OssSpeech(c *edge.Communicate, folder string) (*OssSpeech, error)

type Speech

type Speech struct {
	*edge.Communicate
	storage.IStorage
	Folder   string
	FileName string
}

func NewSpeech added in v1.1.0

func NewSpeech(c *edge.Communicate, storage storage.IStorage, folder string) (*Speech, error)

Directories

Path Synopsis
biz

Jump to

Keyboard shortcuts

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