aliyun

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MethodPost string = "POST"
	MethodGet  string = "GET"
)
View Source
const (
	RegionId string = "cn-shanghai"

	PRODUCT           string = "nls-filetrans"
	DOMAIN            string = "filetrans.cn-shanghai.aliyuncs.com"
	ApiVersion        string = "2018-08-17"
	PostRequestAction string = "SubmitTask"
	GetRequestAction  string = "GetTaskResult"
)
View Source
const (
	KeyAppKey     string = "app_key"
	KeyFileLink   string = "file_link"
	KeyTask       string = "Task"
	KeyTaskId     string = "TaskId"
	KeyStatusText string = "StatusText"
)

Variables

View Source
var (
	ErrRequestParam     = errors.New("request param errors")
	ErrAsrErrors        = errors.New("asr errors")
	ErrAsrFailure       = errors.New("asr failure")
	ErrHttpRequestError = 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