tts

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service interface {
	Synthesize(text string) ([]byte, error) // 将文本合成为音频数据
}

Service 定义了 TTS 服务的通用接口

func NewService

func NewService(provider string) Service

NewService 根据配置返回相应的 TTS 服务实现

Directories

Path Synopsis
internal/tts/aws/aws.go
internal/tts/aws/aws.go

Jump to

Keyboard shortcuts

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