gokit

package
v0.0.0-...-15846b5 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SDK

type SDK struct {
	AccessKeyId     string // AccessKey Id
	AccessKeySecret string // AccessKey Secret
}

func (*SDK) AliyunToken

func (s *SDK) AliyunToken() ([]byte, error)

阿里云Token

type TTS

type TTS struct {
	Appkey     string // Appkey
	Text       string // 待合成的文本
	Token      string // 服务鉴权Token
	Voice      string // 发音人,默认是xiaoyun
	Format     string // 音频编码格式,支持的格式:pcm、wav、mp3,默认是pcm
	SampleRate string // 音频采样率,支持16000Hz、8000Hz,默认是16000Hz
	Volume     int    // volume 音量,范围是0~100,可选,默认50
	SpeechRate int    // SpeechRate 语速,范围是-500~500,可选,默认是0
	PitchRate  int    // PitchRate 语调,范围是-500~500,可选,默认是0
}

func (*TTS) Aliyuntts

func (t *TTS) Aliyuntts() ([]byte, error)

语音合成 (文字转语音)

Jump to

Keyboard shortcuts

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