Documentation ¶
Index ¶
Constants ¶
View Source
const API_VERSION string = "2018-08-17"
View Source
const DOMAIN string = "filetrans.cn-shanghai.aliyuncs.com"
View Source
const ENDPOINT_NAME string = "cn-shanghai"
View Source
const GET_REQUEST_ACTION string = "GetTaskResult"
View Source
const KEY_APP_KEY string = "appkey"
请求参数key
View Source
const KEY_ENABLE_DISFLUENCY = "enable_disfluency"
View Source
const KEY_ENABLE_UNIFY_POST = "enable_unify_post"
View Source
const KEY_ENABLE_WORDS string = "enable_words"
View Source
const KEY_FILE_LINK string = "file_link"
View Source
const KEY_MAX_SINGLE_SEGMENT_TIME = "max_single_segment_time"
View Source
const KEY_RESULT string = "Result"
View Source
const KEY_STATUS_TEXT string = "StatusText"
View Source
const KEY_TASK string = "Task"
响应参数key
View Source
const KEY_TASK_ID string = "TaskId"
View Source
const KEY_VERSION string = "version"
View Source
const POST_REQUEST_ACTION string = "SubmitTask"
View Source
const PRODUCT string = "nls-filetrans"
View Source
const REGION_ID string = "cn-shanghai"
地域ID,常量内容,请勿改变
View Source
const STATUS_QUEUEING string = "QUEUEING"
View Source
const STATUS_RUNNING string = "RUNNING"
View Source
const STATUS_SUCCESS string = "SUCCESS"
状态值
Variables ¶
View Source
var ( WellKnownNumber = map[string]int{ "zero": 0, "one": 1, "two": 2, "three": 3, "four": 4, "five": 5, "six": 6, "seven": 7, "eight": 8, "nine": 9, "ten": 10, "eleven": 11, "twelve": 12, "thirteen": 13, "fourteen": 14, "fifteen": 15, "sixteen": 16, "seventeen": 17, "eighteen": 18, "nineteen": 19, "twenty": 20, "thirty": 30, "forty": 40, "fifty": 50, "sixty": 60, "seventy": 70, "eighty": 80, "ninety": 90, "thousand": 1000, "hundred": 100, "million": 1000000, "minus": -99, } WellKnowUnit = map[string]string{ "b": "bytes", } )
Functions ¶
Types ¶
type Result ¶
type Result struct { Sentences []*SentencesResult `json:"Sentences"` Words []*WordResult `json:"Words"` }
type SentencesResult ¶
type Speech ¶
type Speech struct {
// contains filtered or unexported fields
}
func (*Speech) BreakSentence ¶ added in v1.1.1
Click to show internal directories.
Click to hide internal directories.