larkspeech_to_text

package
v3.0.0-beta-3 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2022 License: MIT Imports: 3 Imported by: 8

Documentation

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"`
}

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 (*FileRecognizeSpeechPathReqBodyBuilder) Config

func (*FileRecognizeSpeechPathReqBodyBuilder) Speech

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

1.3 生成body的build方法

func (*FileRecognizeSpeechReqBodyBuilder) Config

func (*FileRecognizeSpeechReqBodyBuilder) Speech

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

1.5 生成请求的builder属性方法

func (*FileRecognizeSpeechReqBuilder) Build

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 Speech

type Speech struct {
	Speech    *string `json:"speech,omitempty"`
	SpeechKey *string `json:"speech_key,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
}

业务域服务定义

func NewService

func NewService(config *larkcore.Config) *SpeechToTextService

构建业务域服务实例

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"`
}

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 (*StreamRecognizeSpeechPathReqBodyBuilder) Config

func (*StreamRecognizeSpeechPathReqBodyBuilder) Speech

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

1.3 生成body的build方法

func (*StreamRecognizeSpeechReqBodyBuilder) Config

func (*StreamRecognizeSpeechReqBodyBuilder) Speech

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

1.5 生成请求的builder属性方法

func (*StreamRecognizeSpeechReqBuilder) Build

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

type StreamRecognizeSpeechRespData

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

Jump to

Keyboard shortcuts

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