wordToVoice

package
v1.9.9 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WORD_MAX_LEN int = 1800
)

Variables

This section is empty.

Functions

func WorldToVoice

func WorldToVoice(worldstr string, host string, app_id string, apikey string, apisec string, msgTemplate *SRequireParam) ([]byte, error)

Types

type SRequireParam

type SRequireParam struct {
	Common struct {
		AppID string `json:"app_id"`
	} `json:"common"`
	Business struct {
		Ent    string `json:"ent"`
		Aue    string `json:"aue"`
		Sfl    int    `json:"sfl"`
		Auf    string `json:"auf"`
		Vcn    string `json:"vcn"`
		Speed  int    `json:"speed"`
		Volume int    `json:"volume"`
		Pitch  int    `json:"pitch"`
		Bgs    int    `json:"bgs"`
		Tte    string `json:"tte"`
		Reg    string `json:"reg"`
		RAM    string `json:"ram"`
		Rdn    string `json:"rdn"`
	} `json:"business"`
	Data struct {
		Status   int    `json:"status"`
		Encoding string `json:"encoding"`
		Text     string `json:"text"`
	} `json:"data"`
}

func NewParam

func NewParam() *SRequireParam

type SResponResult

type SResponResult struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
	Sid     string `json:"sid"`
	Data    struct {
		Audio  string `json:"audio"`
		Status int    `json:"status"`
		Ced    string `json:"ced"`
	} `json:"data"`
}

Jump to

Keyboard shortcuts

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