Versions in this module Expand all Collapse all v0 v0.0.3 Mar 8, 2024 v0.0.2 Mar 4, 2024 Changes in this version + const ParaformerWSURL + func CloseRecognitionClient(cli *httpclient.WsClient) + func ConnRecognitionClient(request *Request, token string) (*httpclient.WsClient, error) + func GenerateTaskID() string + func HandleRecognitionResult(ctx context.Context, cli *httpclient.WsClient, fn StreamingFunc) + func SendRadioData(cli *httpclient.WsClient, bytesData []byte) + type Attributes struct + type Header struct + Attributes Attributes + Event string + TaskID string + type ModelParaformer = string + const Paraformer8KV1 + const ParaformerMtlV1 + const ParaformerRealTime8KV1 + const ParaformerRealTimeV1 + const ParaformerV1 + type Output struct + Sentence Sentence + type Parameters struct + Format string + SampleRate int + type PayloadIn struct + Function string + Input map[string]interface{} + Model string + Parameters Parameters + Task string + TaskGroup string + type PayloadOut struct + Output Output + Usage Usage + type RecognitionResult struct + Header Header + Payload PayloadOut + type ReqHeader struct + Action string + Streaming string + TaskID string + type Request struct + Header ReqHeader + Payload PayloadIn + StreamingFn StreamingFunc + type ResultWriter interface + WriteResult func(str string) error + type Sentence struct + BeginTime int + EndTime int + Text string + type StreamingFunc func(ctx context.Context, chunk []byte) error + type Usage struct + Duration int