v1

package
v0.1.43 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenReqDefForCollectTranscriberJob

func GenReqDefForCollectTranscriberJob() *def.HttpRequestDef

func GenReqDefForCreateVocabulary

func GenReqDefForCreateVocabulary() *def.HttpRequestDef

func GenReqDefForDeleteVocabulary

func GenReqDefForDeleteVocabulary() *def.HttpRequestDef

func GenReqDefForPushTranscriberJobs

func GenReqDefForPushTranscriberJobs() *def.HttpRequestDef

func GenReqDefForRecognizeFlashAsr

func GenReqDefForRecognizeFlashAsr() *def.HttpRequestDef

func GenReqDefForRecognizeShortAudio

func GenReqDefForRecognizeShortAudio() *def.HttpRequestDef

func GenReqDefForRunAudioAssessment

func GenReqDefForRunAudioAssessment() *def.HttpRequestDef

func GenReqDefForRunMultiModalAssessment

func GenReqDefForRunMultiModalAssessment() *def.HttpRequestDef

func GenReqDefForRunTts

func GenReqDefForRunTts() *def.HttpRequestDef

func GenReqDefForShowVocabularies

func GenReqDefForShowVocabularies() *def.HttpRequestDef

func GenReqDefForShowVocabulary

func GenReqDefForShowVocabulary() *def.HttpRequestDef

func GenReqDefForUpdateVocabulary

func GenReqDefForUpdateVocabulary() *def.HttpRequestDef

func SisClientBuilder

func SisClientBuilder() *http_client.HcHttpClientBuilder

Types

type CollectTranscriberJobInvoker added in v0.0.90

type CollectTranscriberJobInvoker struct {
	*invoker.BaseInvoker
}

func (*CollectTranscriberJobInvoker) Invoke added in v0.0.90

type CreateVocabularyInvoker added in v0.0.90

type CreateVocabularyInvoker struct {
	*invoker.BaseInvoker
}

func (*CreateVocabularyInvoker) Invoke added in v0.0.90

type DeleteVocabularyInvoker added in v0.0.90

type DeleteVocabularyInvoker struct {
	*invoker.BaseInvoker
}

func (*DeleteVocabularyInvoker) Invoke added in v0.0.90

type PushTranscriberJobsInvoker added in v0.0.90

type PushTranscriberJobsInvoker struct {
	*invoker.BaseInvoker
}

func (*PushTranscriberJobsInvoker) Invoke added in v0.0.90

type RecognizeFlashAsrInvoker added in v0.0.90

type RecognizeFlashAsrInvoker struct {
	*invoker.BaseInvoker
}

func (*RecognizeFlashAsrInvoker) Invoke added in v0.0.90

type RecognizeShortAudioInvoker added in v0.0.90

type RecognizeShortAudioInvoker struct {
	*invoker.BaseInvoker
}

func (*RecognizeShortAudioInvoker) Invoke added in v0.0.90

type RunAudioAssessmentInvoker added in v0.0.90

type RunAudioAssessmentInvoker struct {
	*invoker.BaseInvoker
}

func (*RunAudioAssessmentInvoker) Invoke added in v0.0.90

type RunMultiModalAssessmentInvoker added in v0.0.90

type RunMultiModalAssessmentInvoker struct {
	*invoker.BaseInvoker
}

func (*RunMultiModalAssessmentInvoker) Invoke added in v0.0.90

type RunTtsInvoker added in v0.0.90

type RunTtsInvoker struct {
	*invoker.BaseInvoker
}

func (*RunTtsInvoker) Invoke added in v0.0.90

func (i *RunTtsInvoker) Invoke() (*model.RunTtsResponse, error)

type ShowVocabulariesInvoker added in v0.0.90

type ShowVocabulariesInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowVocabulariesInvoker) Invoke added in v0.0.90

type ShowVocabularyInvoker added in v0.0.90

type ShowVocabularyInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowVocabularyInvoker) Invoke added in v0.0.90

type SisClient

type SisClient struct {
	HcClient *http_client.HcHttpClient
}

func NewSisClient

func NewSisClient(hcClient *http_client.HcHttpClient) *SisClient

func (*SisClient) CollectTranscriberJob

CollectTranscriberJob 获取录音文件识别结果

该接口用于获取录音文件识别结果及识别状态。

Please refer to HUAWEI cloud API Explorer for details.

func (*SisClient) CollectTranscriberJobInvoker added in v0.0.90

func (c *SisClient) CollectTranscriberJobInvoker(request *model.CollectTranscriberJobRequest) *CollectTranscriberJobInvoker

CollectTranscriberJobInvoker 获取录音文件识别结果

func (*SisClient) CreateVocabulary

func (c *SisClient) CreateVocabulary(request *model.CreateVocabularyRequest) (*model.CreateVocabularyResponse, error)

CreateVocabulary 创建热词表

新建一个热词表,创建成功返回id。每个用户限制创建10个热词表。

Please refer to HUAWEI cloud API Explorer for details.

func (*SisClient) CreateVocabularyInvoker added in v0.0.90

func (c *SisClient) CreateVocabularyInvoker(request *model.CreateVocabularyRequest) *CreateVocabularyInvoker

CreateVocabularyInvoker 创建热词表

func (*SisClient) DeleteVocabulary

func (c *SisClient) DeleteVocabulary(request *model.DeleteVocabularyRequest) (*model.DeleteVocabularyResponse, error)

DeleteVocabulary 删除热词表

通过热词表id删除热词表。

Please refer to HUAWEI cloud API Explorer for details.

func (*SisClient) DeleteVocabularyInvoker added in v0.0.90

func (c *SisClient) DeleteVocabularyInvoker(request *model.DeleteVocabularyRequest) *DeleteVocabularyInvoker

DeleteVocabularyInvoker 删除热词表

func (*SisClient) PushTranscriberJobs

PushTranscriberJobs 提交录音文件识别任务

**录音文件识别** 录音文件识别接口,用于识别长录音文件,录音文件放在华为云OBS(对象存储服务)上。

由于录音文件识别通常会需要较长的时间,因此识别是异步的,也即接口分为创建识别任务和查询任务状态两个接口。创建识别任务接口创建任务完成后返回,然后用户通过调用查询任务状态接口来获得转写状态和结果。

**功能介绍** 该接口用于提交录音文件识别任务,其中录音文件保存在用户的OBS桶中。用户开通录音识别服务时,需授权录音文件引擎读取用户OBS桶权限。

接口约束 录音时长不超过5小时,文件大小不超过300M,识别结果保存72小时(从识别完成的时间算起)。72小时后如果再访问,将会返回 \"task id is not found\"错误。

Please refer to HUAWEI cloud API Explorer for details.

func (*SisClient) PushTranscriberJobsInvoker added in v0.0.90

func (c *SisClient) PushTranscriberJobsInvoker(request *model.PushTranscriberJobsRequest) *PushTranscriberJobsInvoker

PushTranscriberJobsInvoker 提交录音文件识别任务

func (*SisClient) RecognizeFlashAsr

func (c *SisClient) RecognizeFlashAsr(request *model.RecognizeFlashAsrRequest) (*model.RecognizeFlashAsrResponse, error)

RecognizeFlashAsr 录音文件识别极速版

极速版ASR(Restful API 接口, 适用于音频(文件大小<=100M,语音时长<=30分钟)文件的同步识别。 此接口以POST方式一次性上传整个音频或从华为OBS中下载音频, 识别结果将在请求响应中即刻返回,用于语音文件极速转写,质检分析的离线场景。

Please refer to HUAWEI cloud API Explorer for details.

func (*SisClient) RecognizeFlashAsrInvoker added in v0.0.90

func (c *SisClient) RecognizeFlashAsrInvoker(request *model.RecognizeFlashAsrRequest) *RecognizeFlashAsrInvoker

RecognizeFlashAsrInvoker 录音文件识别极速版

func (*SisClient) RecognizeShortAudio

RecognizeShortAudio 一句话识别

一句话识别接口,用于短语音的同步识别。一次性上传整个音频,响应中即返回识别结果。

Please refer to HUAWEI cloud API Explorer for details.

func (*SisClient) RecognizeShortAudioInvoker added in v0.0.90

func (c *SisClient) RecognizeShortAudioInvoker(request *model.RecognizeShortAudioRequest) *RecognizeShortAudioInvoker

RecognizeShortAudioInvoker 一句话识别

func (*SisClient) RunAudioAssessment

func (c *SisClient) RunAudioAssessment(request *model.RunAudioAssessmentRequest) (*model.RunAudioAssessmentResponse, error)

RunAudioAssessment 语音评测

口语评测接口,基于一小段朗读语音和预期文本,评价朗读者发音质量。当前仅支持华北-北京四。

Please refer to HUAWEI cloud API Explorer for details.

func (*SisClient) RunAudioAssessmentInvoker added in v0.0.90

func (c *SisClient) RunAudioAssessmentInvoker(request *model.RunAudioAssessmentRequest) *RunAudioAssessmentInvoker

RunAudioAssessmentInvoker 语音评测

func (*SisClient) RunMultiModalAssessment

RunMultiModalAssessment 多模态评测

多模态评测接口,根据朗读视频数据、视频对应的音频数据和试题文本,综合给出朗读者口语的评测分数。当前仅支持华北-北京四。

Please refer to HUAWEI cloud API Explorer for details.

func (*SisClient) RunMultiModalAssessmentInvoker added in v0.0.90

func (c *SisClient) RunMultiModalAssessmentInvoker(request *model.RunMultiModalAssessmentRequest) *RunMultiModalAssessmentInvoker

RunMultiModalAssessmentInvoker 多模态评测

func (*SisClient) RunTts

func (c *SisClient) RunTts(request *model.RunTtsRequest) (*model.RunTtsResponse, error)

RunTts 语音合成

语音合成,是一种将文本转换成逼真语音的服务。用户通过实时访问和调用API获取语音合成结果,将用户输入的文字合成为音频。通过音色选择、自定义音量、语速,为企业和个人提供个性化的发音服务

Please refer to HUAWEI cloud API Explorer for details.

func (*SisClient) RunTtsInvoker added in v0.0.90

func (c *SisClient) RunTtsInvoker(request *model.RunTtsRequest) *RunTtsInvoker

RunTtsInvoker 语音合成

func (*SisClient) ShowVocabularies

func (c *SisClient) ShowVocabularies(request *model.ShowVocabulariesRequest) (*model.ShowVocabulariesResponse, error)

ShowVocabularies 查询热词表列表

查询用户所有热词表列表。

Please refer to HUAWEI cloud API Explorer for details.

func (*SisClient) ShowVocabulariesInvoker added in v0.0.90

func (c *SisClient) ShowVocabulariesInvoker(request *model.ShowVocabulariesRequest) *ShowVocabulariesInvoker

ShowVocabulariesInvoker 查询热词表列表

func (*SisClient) ShowVocabulary

func (c *SisClient) ShowVocabulary(request *model.ShowVocabularyRequest) (*model.ShowVocabularyResponse, error)

ShowVocabulary 查询热词表信息

通过热词表id查询热词表的信息和内容。

Please refer to HUAWEI cloud API Explorer for details.

func (*SisClient) ShowVocabularyInvoker added in v0.0.90

func (c *SisClient) ShowVocabularyInvoker(request *model.ShowVocabularyRequest) *ShowVocabularyInvoker

ShowVocabularyInvoker 查询热词表信息

func (*SisClient) UpdateVocabulary

func (c *SisClient) UpdateVocabulary(request *model.UpdateVocabularyRequest) (*model.UpdateVocabularyResponse, error)

UpdateVocabulary 更新热词表

更新一个热词表,更新成功返回id。

Please refer to HUAWEI cloud API Explorer for details.

func (*SisClient) UpdateVocabularyInvoker added in v0.0.90

func (c *SisClient) UpdateVocabularyInvoker(request *model.UpdateVocabularyRequest) *UpdateVocabularyInvoker

UpdateVocabularyInvoker 更新热词表

type UpdateVocabularyInvoker added in v0.0.90

type UpdateVocabularyInvoker struct {
	*invoker.BaseInvoker
}

func (*UpdateVocabularyInvoker) Invoke added in v0.0.90

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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