iflytek

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: GPL-3.0 Imports: 22 Imported by: 0

README

科大讯飞接口

Documentation

Index

Constants

View Source
const (
	ApiNoSuccessErr         = "api resp no success"
	ApiGetResultFailTypeErr = "api get result fail"
)

Variables

View Source
var Client = new(client)

Functions

This section is empty.

Types

type Json1best

type Json1best struct {
	St struct {
		Sc string `json:"sc"`
		Pa string `json:"pa"`
		Rt []struct {
			Ws []struct {
				Cw []struct {
					W  string `json:"w"`
					Wp string `json:"wp"`
					Wc string `json:"wc"`
				} `json:"cw"`
				Wb int `json:"wb"`
				We int `json:"we"`
			} `json:"ws"`
		} `json:"rt"`
		Bg string `json:"bg"`
		Ed string `json:"ed"`
		Rl string `json:"rl"`
	} `json:"st"`
}

type OrderResult

type OrderResult struct {
	Lattice []struct {
		Json1best string `json:"json_1best"`
	} `json:"lattice"`
}

func (OrderResult) String

func (o OrderResult) String() string

type UploadReq

type UploadReq struct {
	FilePath string
	Duration int64
	FileSize int64
}

type UploadResp

type UploadResp struct {
	OrderId      string
	FailedReason string
}

Jump to

Keyboard shortcuts

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