etts

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: May 5, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package etts Description: 语音合成

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func E取MP3时间

func E取MP3时间(文件路径 string) (int, error)

E取MP3时间 读取MP3文件的持续时间(以毫秒为单位)

Types

type ETTS

type ETTS struct {
	ETTSI
	// contains filtered or unexported fields
}

func NewETTS

func NewETTS(存放目录 string) *ETTS

func (*ETTS) E创建

func (e *ETTS) E创建() error

func (*ETTS) E文本转语音

func (e *ETTS) E文本转语音(文本 string) (string, error)

func (*ETTS) E设置音色

func (e *ETTS) E设置音色(人名 string)

type ETTSI

type ETTSI interface {
	E创建() *ETTS
	E文本转语音(文本 string) error
	E设置音色(人名 string)
}

Jump to

Keyboard shortcuts

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