aliyun

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	METHOD_POST string = "POST"
	METHOD_GET  string = "GET"
)
View Source
const (
	REGION_ID           string = "cn-shanghai"
	ENDPOINT_NAME       string = "cn-shanghai"
	PRODUCT             string = "nls-filetrans"
	DOMAIN              string = "filetrans.cn-shanghai.aliyuncs.com"
	API_VERSION         string = "2018-08-17"
	POST_REQUEST_ACTION string = "SubmitTask"
	GET_REQUEST_ACTION  string = "GetTaskResult"
)
View Source
const (
	KEY_APP_KEY     string = "app_key"
	KEY_FILE_LINK   string = "file_link"
	KEY_TASK        string = "Task"
	KEY_TASK_ID     string = "TaskId"
	KEY_STATUS_TEXT string = "StatusText"
)

Variables

View Source
var (
	MXAI_PARAM_ERROR        = errors.New("request param errors")
	MXAI_ASR_ERROR          = errors.New("asr errors")
	MXAI_ASR_FAILURE        = errors.New("asr failure")
	MXAI_HTTP_REQUEST_ERROR = errors.New("http request errors")
)

Functions

This section is empty.

Types

type MGAi

type MGAi struct {
	AppKey          string
	AccessKeyId     string
	AccessKeySecret string
}

func (*MGAi) FileASR

func (mg *MGAi) FileASR(fileURL string) (content string, err error)

Jump to

Keyboard shortcuts

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