Documentation
¶
Overview ¶
Code generated by lark suite oapi sdk gen
Code generated by lark suite oapi sdk gen
Index ¶
- type FileConfig
- type Service
- type Speech
- type SpeechFileRecognizeReqBody
- type SpeechFileRecognizeReqCall
- type SpeechFileRecognizeResult
- type SpeechService
- func (speechs *SpeechService) FileRecognize(ctx *core.Context, body *SpeechFileRecognizeReqBody, optFns ...request.OptFn) *SpeechFileRecognizeReqCall
- func (speechs *SpeechService) StreamRecognize(ctx *core.Context, body *SpeechStreamRecognizeReqBody, optFns ...request.OptFn) *SpeechStreamRecognizeReqCall
- type SpeechStreamRecognizeReqBody
- type SpeechStreamRecognizeReqCall
- type SpeechStreamRecognizeResult
- type StreamConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileConfig ¶
type FileConfig struct { FileId string `json:"file_id,omitempty"` Format string `json:"format,omitempty"` EngineType string `json:"engine_type,omitempty"` ForceSendFields []string `json:"-"` }
func (*FileConfig) MarshalJSON ¶
func (s *FileConfig) MarshalJSON() ([]byte, error)
type Service ¶
type Service struct { Speechs *SpeechService // contains filtered or unexported fields }
func NewService ¶
type Speech ¶
type Speech struct { Speech string `json:"speech,omitempty"` SpeechKey string `json:"speech_key,omitempty"` ForceSendFields []string `json:"-"` }
func (*Speech) MarshalJSON ¶
type SpeechFileRecognizeReqBody ¶
type SpeechFileRecognizeReqBody struct { Speech *Speech `json:"speech,omitempty"` Config *FileConfig `json:"config,omitempty"` ForceSendFields []string `json:"-"` }
func (*SpeechFileRecognizeReqBody) MarshalJSON ¶
func (s *SpeechFileRecognizeReqBody) MarshalJSON() ([]byte, error)
type SpeechFileRecognizeReqCall ¶
type SpeechFileRecognizeReqCall struct {
// contains filtered or unexported fields
}
func (*SpeechFileRecognizeReqCall) Do ¶
func (rc *SpeechFileRecognizeReqCall) Do() (*SpeechFileRecognizeResult, error)
type SpeechFileRecognizeResult ¶
type SpeechFileRecognizeResult struct {
RecognitionText string `json:"recognition_text,omitempty"`
}
type SpeechService ¶
type SpeechService struct {
// contains filtered or unexported fields
}
func (*SpeechService) FileRecognize ¶
func (speechs *SpeechService) FileRecognize(ctx *core.Context, body *SpeechFileRecognizeReqBody, optFns ...request.OptFn) *SpeechFileRecognizeReqCall
func (*SpeechService) StreamRecognize ¶
func (speechs *SpeechService) StreamRecognize(ctx *core.Context, body *SpeechStreamRecognizeReqBody, optFns ...request.OptFn) *SpeechStreamRecognizeReqCall
type SpeechStreamRecognizeReqBody ¶
type SpeechStreamRecognizeReqBody struct { Speech *Speech `json:"speech,omitempty"` Config *StreamConfig `json:"config,omitempty"` ForceSendFields []string `json:"-"` }
func (*SpeechStreamRecognizeReqBody) MarshalJSON ¶
func (s *SpeechStreamRecognizeReqBody) MarshalJSON() ([]byte, error)
type SpeechStreamRecognizeReqCall ¶
type SpeechStreamRecognizeReqCall struct {
// contains filtered or unexported fields
}
func (*SpeechStreamRecognizeReqCall) Do ¶
func (rc *SpeechStreamRecognizeReqCall) Do() (*SpeechStreamRecognizeResult, error)
type StreamConfig ¶
type StreamConfig struct { StreamId string `json:"stream_id,omitempty"` SequenceId int `json:"sequence_id,omitempty"` Action int `json:"action,omitempty"` Format string `json:"format,omitempty"` EngineType string `json:"engine_type,omitempty"` ForceSendFields []string `json:"-"` }
func (*StreamConfig) MarshalJSON ¶
func (s *StreamConfig) MarshalJSON() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.