Documentation ¶
Index ¶
- type FileConfig
- type FileConfigBuilder
- type FileRecognizeSpeechPathReqBodyBuilder
- func (builder *FileRecognizeSpeechPathReqBodyBuilder) Build() (*FileRecognizeSpeechReqBody, error)
- func (builder *FileRecognizeSpeechPathReqBodyBuilder) Config(config *FileConfig) *FileRecognizeSpeechPathReqBodyBuilder
- func (builder *FileRecognizeSpeechPathReqBodyBuilder) Speech(speech *Speech) *FileRecognizeSpeechPathReqBodyBuilder
- type FileRecognizeSpeechReq
- type FileRecognizeSpeechReqBody
- type FileRecognizeSpeechReqBodyBuilder
- func (builder *FileRecognizeSpeechReqBodyBuilder) Build() *FileRecognizeSpeechReqBody
- func (builder *FileRecognizeSpeechReqBodyBuilder) Config(config *FileConfig) *FileRecognizeSpeechReqBodyBuilder
- func (builder *FileRecognizeSpeechReqBodyBuilder) Speech(speech *Speech) *FileRecognizeSpeechReqBodyBuilder
- type FileRecognizeSpeechReqBuilder
- type FileRecognizeSpeechResp
- type FileRecognizeSpeechRespData
- type Speech
- type SpeechBuilder
- type SpeechToTextService
- type StreamConfig
- type StreamConfigBuilder
- func (builder *StreamConfigBuilder) Action(action int) *StreamConfigBuilder
- func (builder *StreamConfigBuilder) Build() *StreamConfig
- func (builder *StreamConfigBuilder) EngineType(engineType string) *StreamConfigBuilder
- func (builder *StreamConfigBuilder) Format(format string) *StreamConfigBuilder
- func (builder *StreamConfigBuilder) SequenceId(sequenceId int) *StreamConfigBuilder
- func (builder *StreamConfigBuilder) StreamId(streamId string) *StreamConfigBuilder
- type StreamRecognizeSpeechPathReqBodyBuilder
- func (builder *StreamRecognizeSpeechPathReqBodyBuilder) Build() (*StreamRecognizeSpeechReqBody, error)
- func (builder *StreamRecognizeSpeechPathReqBodyBuilder) Config(config *StreamConfig) *StreamRecognizeSpeechPathReqBodyBuilder
- func (builder *StreamRecognizeSpeechPathReqBodyBuilder) Speech(speech *Speech) *StreamRecognizeSpeechPathReqBodyBuilder
- type StreamRecognizeSpeechReq
- type StreamRecognizeSpeechReqBody
- type StreamRecognizeSpeechReqBodyBuilder
- func (builder *StreamRecognizeSpeechReqBodyBuilder) Build() *StreamRecognizeSpeechReqBody
- func (builder *StreamRecognizeSpeechReqBodyBuilder) Config(config *StreamConfig) *StreamRecognizeSpeechReqBodyBuilder
- func (builder *StreamRecognizeSpeechReqBodyBuilder) Speech(speech *Speech) *StreamRecognizeSpeechReqBodyBuilder
- type StreamRecognizeSpeechReqBuilder
- type StreamRecognizeSpeechResp
- type StreamRecognizeSpeechRespData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileConfig ¶
type FileConfigBuilder ¶
type FileConfigBuilder struct {
// contains filtered or unexported fields
}
builder开始
func NewFileConfigBuilder ¶
func NewFileConfigBuilder() *FileConfigBuilder
func (*FileConfigBuilder) Build ¶
func (builder *FileConfigBuilder) Build() *FileConfig
func (*FileConfigBuilder) EngineType ¶
func (builder *FileConfigBuilder) EngineType(engineType string) *FileConfigBuilder
func (*FileConfigBuilder) FileId ¶
func (builder *FileConfigBuilder) FileId(fileId string) *FileConfigBuilder
func (*FileConfigBuilder) Format ¶
func (builder *FileConfigBuilder) Format(format string) *FileConfigBuilder
type FileRecognizeSpeechPathReqBodyBuilder ¶
type FileRecognizeSpeechPathReqBodyBuilder struct {
// contains filtered or unexported fields
}
上传文件path开始
func NewFileRecognizeSpeechPathReqBodyBuilder ¶
func NewFileRecognizeSpeechPathReqBodyBuilder() *FileRecognizeSpeechPathReqBodyBuilder
func (*FileRecognizeSpeechPathReqBodyBuilder) Build ¶
func (builder *FileRecognizeSpeechPathReqBodyBuilder) Build() (*FileRecognizeSpeechReqBody, error)
func (*FileRecognizeSpeechPathReqBodyBuilder) Config ¶
func (builder *FileRecognizeSpeechPathReqBodyBuilder) Config(config *FileConfig) *FileRecognizeSpeechPathReqBodyBuilder
func (*FileRecognizeSpeechPathReqBodyBuilder) Speech ¶
func (builder *FileRecognizeSpeechPathReqBodyBuilder) Speech(speech *Speech) *FileRecognizeSpeechPathReqBodyBuilder
type FileRecognizeSpeechReq ¶
type FileRecognizeSpeechReq struct { Body *FileRecognizeSpeechReqBody `body:""` // contains filtered or unexported fields }
type FileRecognizeSpeechReqBody ¶
type FileRecognizeSpeechReqBody struct { Speech *Speech `json:"speech,omitempty"` Config *FileConfig `json:"config,omitempty"` }
type FileRecognizeSpeechReqBodyBuilder ¶
type FileRecognizeSpeechReqBodyBuilder struct {
// contains filtered or unexported fields
}
func NewFileRecognizeSpeechReqBodyBuilder ¶
func NewFileRecognizeSpeechReqBodyBuilder() *FileRecognizeSpeechReqBodyBuilder
生成body的New构造器
func (*FileRecognizeSpeechReqBodyBuilder) Build ¶
func (builder *FileRecognizeSpeechReqBodyBuilder) Build() *FileRecognizeSpeechReqBody
1.3 生成body的build方法
func (*FileRecognizeSpeechReqBodyBuilder) Config ¶
func (builder *FileRecognizeSpeechReqBodyBuilder) Config(config *FileConfig) *FileRecognizeSpeechReqBodyBuilder
func (*FileRecognizeSpeechReqBodyBuilder) Speech ¶
func (builder *FileRecognizeSpeechReqBodyBuilder) Speech(speech *Speech) *FileRecognizeSpeechReqBodyBuilder
1.2 生成body的builder属性方法
type FileRecognizeSpeechReqBuilder ¶
type FileRecognizeSpeechReqBuilder struct {
// contains filtered or unexported fields
}
1.4 生成请求的builder结构体
func NewFileRecognizeSpeechReqBuilder ¶
func NewFileRecognizeSpeechReqBuilder() *FileRecognizeSpeechReqBuilder
生成请求的New构造器
func (*FileRecognizeSpeechReqBuilder) Body ¶
func (builder *FileRecognizeSpeechReqBuilder) Body(body *FileRecognizeSpeechReqBody) *FileRecognizeSpeechReqBuilder
1.5 生成请求的builder属性方法
func (*FileRecognizeSpeechReqBuilder) Build ¶
func (builder *FileRecognizeSpeechReqBuilder) Build() *FileRecognizeSpeechReq
1.5 生成请求的builder的build方法
type FileRecognizeSpeechResp ¶
type FileRecognizeSpeechResp struct { *larkcore.ApiResp `json:"-"` larkcore.CodeError Data *FileRecognizeSpeechRespData `json:"data"` }
func (*FileRecognizeSpeechResp) Success ¶
func (resp *FileRecognizeSpeechResp) Success() bool
type FileRecognizeSpeechRespData ¶
type FileRecognizeSpeechRespData struct {
RecognitionText *string `json:"recognition_text,omitempty"`
}
type SpeechBuilder ¶
type SpeechBuilder struct {
// contains filtered or unexported fields
}
builder开始
func NewSpeechBuilder ¶
func NewSpeechBuilder() *SpeechBuilder
func (*SpeechBuilder) Build ¶
func (builder *SpeechBuilder) Build() *Speech
func (*SpeechBuilder) Speech ¶
func (builder *SpeechBuilder) Speech(speech string) *SpeechBuilder
func (*SpeechBuilder) SpeechKey ¶
func (builder *SpeechBuilder) SpeechKey(speechKey string) *SpeechBuilder
type SpeechToTextService ¶
type SpeechToTextService struct { Speech *speech // contains filtered or unexported fields }
业务域服务定义
type StreamConfig ¶
type StreamConfigBuilder ¶
type StreamConfigBuilder struct {
// contains filtered or unexported fields
}
builder开始
func NewStreamConfigBuilder ¶
func NewStreamConfigBuilder() *StreamConfigBuilder
func (*StreamConfigBuilder) Action ¶
func (builder *StreamConfigBuilder) Action(action int) *StreamConfigBuilder
func (*StreamConfigBuilder) Build ¶
func (builder *StreamConfigBuilder) Build() *StreamConfig
func (*StreamConfigBuilder) EngineType ¶
func (builder *StreamConfigBuilder) EngineType(engineType string) *StreamConfigBuilder
func (*StreamConfigBuilder) Format ¶
func (builder *StreamConfigBuilder) Format(format string) *StreamConfigBuilder
func (*StreamConfigBuilder) SequenceId ¶
func (builder *StreamConfigBuilder) SequenceId(sequenceId int) *StreamConfigBuilder
func (*StreamConfigBuilder) StreamId ¶
func (builder *StreamConfigBuilder) StreamId(streamId string) *StreamConfigBuilder
type StreamRecognizeSpeechPathReqBodyBuilder ¶
type StreamRecognizeSpeechPathReqBodyBuilder struct {
// contains filtered or unexported fields
}
上传文件path开始
func NewStreamRecognizeSpeechPathReqBodyBuilder ¶
func NewStreamRecognizeSpeechPathReqBodyBuilder() *StreamRecognizeSpeechPathReqBodyBuilder
func (*StreamRecognizeSpeechPathReqBodyBuilder) Build ¶
func (builder *StreamRecognizeSpeechPathReqBodyBuilder) Build() (*StreamRecognizeSpeechReqBody, error)
func (*StreamRecognizeSpeechPathReqBodyBuilder) Config ¶
func (builder *StreamRecognizeSpeechPathReqBodyBuilder) Config(config *StreamConfig) *StreamRecognizeSpeechPathReqBodyBuilder
func (*StreamRecognizeSpeechPathReqBodyBuilder) Speech ¶
func (builder *StreamRecognizeSpeechPathReqBodyBuilder) Speech(speech *Speech) *StreamRecognizeSpeechPathReqBodyBuilder
type StreamRecognizeSpeechReq ¶
type StreamRecognizeSpeechReq struct { Body *StreamRecognizeSpeechReqBody `body:""` // contains filtered or unexported fields }
type StreamRecognizeSpeechReqBody ¶
type StreamRecognizeSpeechReqBody struct { Speech *Speech `json:"speech,omitempty"` Config *StreamConfig `json:"config,omitempty"` }
type StreamRecognizeSpeechReqBodyBuilder ¶
type StreamRecognizeSpeechReqBodyBuilder struct {
// contains filtered or unexported fields
}
func NewStreamRecognizeSpeechReqBodyBuilder ¶
func NewStreamRecognizeSpeechReqBodyBuilder() *StreamRecognizeSpeechReqBodyBuilder
生成body的New构造器
func (*StreamRecognizeSpeechReqBodyBuilder) Build ¶
func (builder *StreamRecognizeSpeechReqBodyBuilder) Build() *StreamRecognizeSpeechReqBody
1.3 生成body的build方法
func (*StreamRecognizeSpeechReqBodyBuilder) Config ¶
func (builder *StreamRecognizeSpeechReqBodyBuilder) Config(config *StreamConfig) *StreamRecognizeSpeechReqBodyBuilder
func (*StreamRecognizeSpeechReqBodyBuilder) Speech ¶
func (builder *StreamRecognizeSpeechReqBodyBuilder) Speech(speech *Speech) *StreamRecognizeSpeechReqBodyBuilder
1.2 生成body的builder属性方法
type StreamRecognizeSpeechReqBuilder ¶
type StreamRecognizeSpeechReqBuilder struct {
// contains filtered or unexported fields
}
1.4 生成请求的builder结构体
func NewStreamRecognizeSpeechReqBuilder ¶
func NewStreamRecognizeSpeechReqBuilder() *StreamRecognizeSpeechReqBuilder
生成请求的New构造器
func (*StreamRecognizeSpeechReqBuilder) Body ¶
func (builder *StreamRecognizeSpeechReqBuilder) Body(body *StreamRecognizeSpeechReqBody) *StreamRecognizeSpeechReqBuilder
1.5 生成请求的builder属性方法
func (*StreamRecognizeSpeechReqBuilder) Build ¶
func (builder *StreamRecognizeSpeechReqBuilder) Build() *StreamRecognizeSpeechReq
1.5 生成请求的builder的build方法
type StreamRecognizeSpeechResp ¶
type StreamRecognizeSpeechResp struct { *larkcore.ApiResp `json:"-"` larkcore.CodeError Data *StreamRecognizeSpeechRespData `json:"data"` }
func (*StreamRecognizeSpeechResp) Success ¶
func (resp *StreamRecognizeSpeechResp) Success() bool
Click to show internal directories.
Click to hide internal directories.