Documentation ¶
Index ¶
- func GenReqDefForCollectTranscriberJob() *def.HttpRequestDef
- func GenReqDefForCreateVocabulary() *def.HttpRequestDef
- func GenReqDefForDeleteVocabulary() *def.HttpRequestDef
- func GenReqDefForPushTranscriberJobs() *def.HttpRequestDef
- func GenReqDefForRecognizeFlashAsr() *def.HttpRequestDef
- func GenReqDefForRecognizeShortAudio() *def.HttpRequestDef
- func GenReqDefForRunAudioAssessment() *def.HttpRequestDef
- func GenReqDefForRunMultiModalAssessment() *def.HttpRequestDef
- func GenReqDefForRunTts() *def.HttpRequestDef
- func GenReqDefForShowVocabularies() *def.HttpRequestDef
- func GenReqDefForShowVocabulary() *def.HttpRequestDef
- func GenReqDefForUpdateVocabulary() *def.HttpRequestDef
- func SisClientBuilder() *http_client.HcHttpClientBuilder
- type SisClient
- func (c *SisClient) CollectTranscriberJob(request *model.CollectTranscriberJobRequest) (*model.CollectTranscriberJobResponse, error)
- func (c *SisClient) CreateVocabulary(request *model.CreateVocabularyRequest) (*model.CreateVocabularyResponse, error)
- func (c *SisClient) DeleteVocabulary(request *model.DeleteVocabularyRequest) (*model.DeleteVocabularyResponse, error)
- func (c *SisClient) PushTranscriberJobs(request *model.PushTranscriberJobsRequest) (*model.PushTranscriberJobsResponse, error)
- func (c *SisClient) RecognizeFlashAsr(request *model.RecognizeFlashAsrRequest) (*model.RecognizeFlashAsrResponse, error)
- func (c *SisClient) RecognizeShortAudio(request *model.RecognizeShortAudioRequest) (*model.RecognizeShortAudioResponse, error)
- func (c *SisClient) RunAudioAssessment(request *model.RunAudioAssessmentRequest) (*model.RunAudioAssessmentResponse, error)
- func (c *SisClient) RunMultiModalAssessment(request *model.RunMultiModalAssessmentRequest) (*model.RunMultiModalAssessmentResponse, error)
- func (c *SisClient) RunTts(request *model.RunTtsRequest) (*model.RunTtsResponse, error)
- func (c *SisClient) ShowVocabularies(request *model.ShowVocabulariesRequest) (*model.ShowVocabulariesResponse, error)
- func (c *SisClient) ShowVocabulary(request *model.ShowVocabularyRequest) (*model.ShowVocabularyResponse, error)
- func (c *SisClient) UpdateVocabulary(request *model.UpdateVocabularyRequest) (*model.UpdateVocabularyResponse, error)
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 SisClient ¶
type SisClient struct {
HcClient *http_client.HcHttpClient
}
func NewSisClient ¶
func NewSisClient(hcClient *http_client.HcHttpClient) *SisClient
func (*SisClient) CollectTranscriberJob ¶
func (c *SisClient) CollectTranscriberJob(request *model.CollectTranscriberJobRequest) (*model.CollectTranscriberJobResponse, error)
该接口用于获取录音文件识别结果及识别状态。
func (*SisClient) CreateVocabulary ¶
func (c *SisClient) CreateVocabulary(request *model.CreateVocabularyRequest) (*model.CreateVocabularyResponse, error)
新建一个热词表,创建成功返回id。每个用户限制创建10个热词表。
func (*SisClient) DeleteVocabulary ¶
func (c *SisClient) DeleteVocabulary(request *model.DeleteVocabularyRequest) (*model.DeleteVocabularyResponse, error)
通过热词表id删除热词表。
func (*SisClient) PushTranscriberJobs ¶
func (c *SisClient) PushTranscriberJobs(request *model.PushTranscriberJobsRequest) (*model.PushTranscriberJobsResponse, error)
**录音文件识别** 录音文件识别接口,用于识别长录音文件,录音文件放在华为云OBS(对象存储服务)上。 由于录音文件识别通常会需要较长的时间,因此识别是异步的,也即接口分为创建识别任务和查询任务状态两个接口。创建识别任务接口创建任务完成后返回,然后用户通过调用查询任务状态接口来获得转写状态和结果。 **功能介绍** 该接口用于提交录音文件识别任务,其中录音文件保存在用户的OBS桶中。用户开通录音识别服务时,需授权录音文件引擎读取用户OBS桶权限。 接口约束 录音时长不超过5小时,文件大小不超过300M,识别结果保存72小时(从识别完成的时间算起)。72小时后如果再访问,将会返回 \"task id is not found\"错误。
func (*SisClient) RecognizeFlashAsr ¶
func (c *SisClient) RecognizeFlashAsr(request *model.RecognizeFlashAsrRequest) (*model.RecognizeFlashAsrResponse, error)
极速版ASR(Restful API 接口, 适用于音频(文件大小<=100M,语音时长<=30分钟)文件的同步识别。 此接口以POST方式一次性上传整个音频或从华为OBS中下载音频, 识别结果将在请求响应中即刻返回,用于语音文件极速转写,质检分析的离线场景。
func (*SisClient) RecognizeShortAudio ¶
func (c *SisClient) RecognizeShortAudio(request *model.RecognizeShortAudioRequest) (*model.RecognizeShortAudioResponse, error)
一句话识别接口,用于短语音的同步识别。一次性上传整个音频,响应中即返回识别结果。
func (*SisClient) RunAudioAssessment ¶
func (c *SisClient) RunAudioAssessment(request *model.RunAudioAssessmentRequest) (*model.RunAudioAssessmentResponse, error)
口语评测接口,基于一小段朗读语音和预期文本,评价朗读者发音质量。当前仅支持华北-北京四。
func (*SisClient) RunMultiModalAssessment ¶
func (c *SisClient) RunMultiModalAssessment(request *model.RunMultiModalAssessmentRequest) (*model.RunMultiModalAssessmentResponse, error)
多模态评测接口,根据朗读视频数据、视频对应的音频数据和试题文本,综合给出朗读者口语的评测分数。当前仅支持华北-北京四。
func (*SisClient) RunTts ¶
func (c *SisClient) RunTts(request *model.RunTtsRequest) (*model.RunTtsResponse, error)
语音合成,是一种将文本转换成逼真语音的服务。用户通过实时访问和调用API获取语音合成结果,将用户输入的文字合成为音频。通过音色选择、自定义音量、语速,为企业和个人提供个性化的发音服务
func (*SisClient) ShowVocabularies ¶
func (c *SisClient) ShowVocabularies(request *model.ShowVocabulariesRequest) (*model.ShowVocabulariesResponse, error)
查询用户所有热词表列表。
func (*SisClient) ShowVocabulary ¶
func (c *SisClient) ShowVocabulary(request *model.ShowVocabularyRequest) (*model.ShowVocabularyResponse, error)
通过热词表id查询热词表的信息和内容。
func (*SisClient) UpdateVocabulary ¶
func (c *SisClient) UpdateVocabulary(request *model.UpdateVocabularyRequest) (*model.UpdateVocabularyResponse, error)
更新一个热词表,更新成功返回id。