baidutts

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2023 License: Apache-2.0 Imports: 12 Imported by: 4

Documentation

Overview

Package baidutts 百度文字转语音

Index

Constants

This section is empty.

Variables

View Source
var (
	// BaiduttsModes ...
	BaiduttsModes = map[int]string{0: "女声", 1: "男声", 3: "度逍遥", 4: "度丫丫"}
)

Functions

This section is empty.

Types

type BaiduTTS

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

BaiduTTS 百度类

func NewBaiduTTS

func NewBaiduTTS(per int, clientID, clientSecret string) *BaiduTTS

NewBaiduTTS 新的百度语音

func (*BaiduTTS) Speak

func (tts *BaiduTTS) Speak(uid int64, text func() string) (fileName string, err error)

Speak 返回音频本地路径

func (*BaiduTTS) String

func (tts *BaiduTTS) String() string

String 服务名

Jump to

Keyboard shortcuts

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