v1

package
v1.1.32 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Code generated by lark suite oapi sdk gen

Code generated by lark suite oapi sdk gen

Index

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

func NewService(conf *config.Config) *Service

type Speech

type Speech struct {
	Speech          string   `json:"speech,omitempty"`
	SpeechKey       string   `json:"speech_key,omitempty"`
	ForceSendFields []string `json:"-"`
}

func (*Speech) MarshalJSON

func (s *Speech) MarshalJSON() ([]byte, error)

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

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

type SpeechStreamRecognizeResult

type SpeechStreamRecognizeResult struct {
	StreamId        string `json:"stream_id,omitempty"`
	SequenceId      int    `json:"sequence_id,omitempty"`
	RecognitionText string `json:"recognition_text,omitempty"`
}

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)

Jump to

Keyboard shortcuts

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