Documentation ¶
Overview ¶
Package speechpb is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterSpeechServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterSpeechServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client SpeechServiceClient) error
- func RegisterSpeechServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterSpeechServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server SpeechServiceServer) error
- func RegisterSpeechServiceServer(s *grpc.Server, srv SpeechServiceServer)
- type ErrorInfo
- func (*ErrorInfo) Descriptor() ([]byte, []int)
- func (m *ErrorInfo) GetCode() string
- func (m *ErrorInfo) GetErrorType() ErrorType
- func (m *ErrorInfo) GetInfo() string
- func (*ErrorInfo) ProtoMessage()
- func (m *ErrorInfo) Reset()
- func (m *ErrorInfo) String() string
- func (m *ErrorInfo) XXX_DiscardUnknown()
- func (m *ErrorInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ErrorInfo) XXX_Merge(src proto.Message)
- func (m *ErrorInfo) XXX_Size() int
- func (m *ErrorInfo) XXX_Unmarshal(b []byte) error
- type ErrorType
- type GetVoiceVolumeRequest
- func (*GetVoiceVolumeRequest) Descriptor() ([]byte, []int)
- func (*GetVoiceVolumeRequest) ProtoMessage()
- func (m *GetVoiceVolumeRequest) Reset()
- func (m *GetVoiceVolumeRequest) String() string
- func (m *GetVoiceVolumeRequest) XXX_DiscardUnknown()
- func (m *GetVoiceVolumeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetVoiceVolumeRequest) XXX_Merge(src proto.Message)
- func (m *GetVoiceVolumeRequest) XXX_Size() int
- func (m *GetVoiceVolumeRequest) XXX_Unmarshal(b []byte) error
- type GetVoiceVolumeResponse
- func (*GetVoiceVolumeResponse) Descriptor() ([]byte, []int)
- func (m *GetVoiceVolumeResponse) GetVoiceVolumeInfo() *VoiceVolumeInfo
- func (*GetVoiceVolumeResponse) ProtoMessage()
- func (m *GetVoiceVolumeResponse) Reset()
- func (m *GetVoiceVolumeResponse) String() string
- func (m *GetVoiceVolumeResponse) XXX_DiscardUnknown()
- func (m *GetVoiceVolumeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetVoiceVolumeResponse) XXX_Merge(src proto.Message)
- func (m *GetVoiceVolumeResponse) XXX_Size() int
- func (m *GetVoiceVolumeResponse) XXX_Unmarshal(b []byte) error
- type HibernateRequest
- func (*HibernateRequest) Descriptor() ([]byte, []int)
- func (*HibernateRequest) ProtoMessage()
- func (m *HibernateRequest) Reset()
- func (m *HibernateRequest) String() string
- func (m *HibernateRequest) XXX_DiscardUnknown()
- func (m *HibernateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HibernateRequest) XXX_Merge(src proto.Message)
- func (m *HibernateRequest) XXX_Size() int
- func (m *HibernateRequest) XXX_Unmarshal(b []byte) error
- type HibernateResponse
- func (*HibernateResponse) Descriptor() ([]byte, []int)
- func (*HibernateResponse) ProtoMessage()
- func (m *HibernateResponse) Reset()
- func (m *HibernateResponse) String() string
- func (m *HibernateResponse) XXX_DiscardUnknown()
- func (m *HibernateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HibernateResponse) XXX_Merge(src proto.Message)
- func (m *HibernateResponse) XXX_Size() int
- func (m *HibernateResponse) XXX_Unmarshal(b []byte) error
- type ListenSpeechEventRequest
- func (*ListenSpeechEventRequest) Descriptor() ([]byte, []int)
- func (m *ListenSpeechEventRequest) GetWithVadVol() bool
- func (*ListenSpeechEventRequest) ProtoMessage()
- func (m *ListenSpeechEventRequest) Reset()
- func (m *ListenSpeechEventRequest) String() string
- func (m *ListenSpeechEventRequest) XXX_DiscardUnknown()
- func (m *ListenSpeechEventRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListenSpeechEventRequest) XXX_Merge(src proto.Message)
- func (m *ListenSpeechEventRequest) XXX_Size() int
- func (m *ListenSpeechEventRequest) XXX_Unmarshal(b []byte) error
- type ListenSpeechEventResponse
- func (*ListenSpeechEventResponse) Descriptor() ([]byte, []int)
- func (m *ListenSpeechEventResponse) GetErrorInfo() *ErrorInfo
- func (m *ListenSpeechEventResponse) GetEventType() SpeechEvent
- func (m *ListenSpeechEventResponse) GetResultInfo() *ResultInfo
- func (m *ListenSpeechEventResponse) GetSpeechEventOneof() isListenSpeechEventResponse_SpeechEventOneof
- func (m *ListenSpeechEventResponse) GetVadInfo() *VadInfo
- func (m *ListenSpeechEventResponse) GetWakeUpInfo() *WakeUpInfo
- func (*ListenSpeechEventResponse) ProtoMessage()
- func (m *ListenSpeechEventResponse) Reset()
- func (m *ListenSpeechEventResponse) String() string
- func (m *ListenSpeechEventResponse) XXX_DiscardUnknown()
- func (m *ListenSpeechEventResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListenSpeechEventResponse) XXX_Merge(src proto.Message)
- func (*ListenSpeechEventResponse) XXX_OneofWrappers() []interface{}
- func (m *ListenSpeechEventResponse) XXX_Size() int
- func (m *ListenSpeechEventResponse) XXX_Unmarshal(b []byte) error
- type ListenSpeechEventResponse_ErrorInfo
- type ListenSpeechEventResponse_ResultInfo
- type ListenSpeechEventResponse_VadInfo
- type ListenSpeechEventResponse_WakeUpInfo
- type ResultInfo
- func (*ResultInfo) Descriptor() ([]byte, []int)
- func (m *ResultInfo) GetSentenceComplete() bool
- func (m *ResultInfo) GetWords() []string
- func (*ResultInfo) ProtoMessage()
- func (m *ResultInfo) Reset()
- func (m *ResultInfo) String() string
- func (m *ResultInfo) XXX_DiscardUnknown()
- func (m *ResultInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ResultInfo) XXX_Merge(src proto.Message)
- func (m *ResultInfo) XXX_Size() int
- func (m *ResultInfo) XXX_Unmarshal(b []byte) error
- type SetParamsRequest
- func (*SetParamsRequest) Descriptor() ([]byte, []int)
- func (m *SetParamsRequest) GetParams() []byte
- func (*SetParamsRequest) ProtoMessage()
- func (m *SetParamsRequest) Reset()
- func (m *SetParamsRequest) String() string
- func (m *SetParamsRequest) XXX_DiscardUnknown()
- func (m *SetParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SetParamsRequest) XXX_Merge(src proto.Message)
- func (m *SetParamsRequest) XXX_Size() int
- func (m *SetParamsRequest) XXX_Unmarshal(b []byte) error
- type SetParamsResponse
- func (*SetParamsResponse) Descriptor() ([]byte, []int)
- func (*SetParamsResponse) ProtoMessage()
- func (m *SetParamsResponse) Reset()
- func (m *SetParamsResponse) String() string
- func (m *SetParamsResponse) XXX_DiscardUnknown()
- func (m *SetParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SetParamsResponse) XXX_Merge(src proto.Message)
- func (m *SetParamsResponse) XXX_Size() int
- func (m *SetParamsResponse) XXX_Unmarshal(b []byte) error
- type SetVoiceVolumeRequest
- func (*SetVoiceVolumeRequest) Descriptor() ([]byte, []int)
- func (m *SetVoiceVolumeRequest) GetVoiceVolumeInfo() *VoiceVolumeInfo
- func (*SetVoiceVolumeRequest) ProtoMessage()
- func (m *SetVoiceVolumeRequest) Reset()
- func (m *SetVoiceVolumeRequest) String() string
- func (m *SetVoiceVolumeRequest) XXX_DiscardUnknown()
- func (m *SetVoiceVolumeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SetVoiceVolumeRequest) XXX_Merge(src proto.Message)
- func (m *SetVoiceVolumeRequest) XXX_Size() int
- func (m *SetVoiceVolumeRequest) XXX_Unmarshal(b []byte) error
- type SetVoiceVolumeResponse
- func (*SetVoiceVolumeResponse) Descriptor() ([]byte, []int)
- func (m *SetVoiceVolumeResponse) GetVoiceVolumeInfo() *VoiceVolumeInfo
- func (*SetVoiceVolumeResponse) ProtoMessage()
- func (m *SetVoiceVolumeResponse) Reset()
- func (m *SetVoiceVolumeResponse) String() string
- func (m *SetVoiceVolumeResponse) XXX_DiscardUnknown()
- func (m *SetVoiceVolumeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SetVoiceVolumeResponse) XXX_Merge(src proto.Message)
- func (m *SetVoiceVolumeResponse) XXX_Size() int
- func (m *SetVoiceVolumeResponse) XXX_Unmarshal(b []byte) error
- type SpeechEvent
- type SpeechServiceClient
- type SpeechServiceServer
- type SpeechService_ListenSpeechEventClient
- type SpeechService_ListenSpeechEventServer
- type SpeechStopRequest
- func (*SpeechStopRequest) Descriptor() ([]byte, []int)
- func (*SpeechStopRequest) ProtoMessage()
- func (m *SpeechStopRequest) Reset()
- func (m *SpeechStopRequest) String() string
- func (m *SpeechStopRequest) XXX_DiscardUnknown()
- func (m *SpeechStopRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SpeechStopRequest) XXX_Merge(src proto.Message)
- func (m *SpeechStopRequest) XXX_Size() int
- func (m *SpeechStopRequest) XXX_Unmarshal(b []byte) error
- type SpeechStopResponse
- func (*SpeechStopResponse) Descriptor() ([]byte, []int)
- func (*SpeechStopResponse) ProtoMessage()
- func (m *SpeechStopResponse) Reset()
- func (m *SpeechStopResponse) String() string
- func (m *SpeechStopResponse) XXX_DiscardUnknown()
- func (m *SpeechStopResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SpeechStopResponse) XXX_Merge(src proto.Message)
- func (m *SpeechStopResponse) XXX_Size() int
- func (m *SpeechStopResponse) XXX_Unmarshal(b []byte) error
- type TextToSpeechRequest
- func (*TextToSpeechRequest) Descriptor() ([]byte, []int)
- func (m *TextToSpeechRequest) GetText() string
- func (*TextToSpeechRequest) ProtoMessage()
- func (m *TextToSpeechRequest) Reset()
- func (m *TextToSpeechRequest) String() string
- func (m *TextToSpeechRequest) XXX_DiscardUnknown()
- func (m *TextToSpeechRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TextToSpeechRequest) XXX_Merge(src proto.Message)
- func (m *TextToSpeechRequest) XXX_Size() int
- func (m *TextToSpeechRequest) XXX_Unmarshal(b []byte) error
- type TextToSpeechResponse
- func (*TextToSpeechResponse) Descriptor() ([]byte, []int)
- func (*TextToSpeechResponse) ProtoMessage()
- func (m *TextToSpeechResponse) Reset()
- func (m *TextToSpeechResponse) String() string
- func (m *TextToSpeechResponse) XXX_DiscardUnknown()
- func (m *TextToSpeechResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TextToSpeechResponse) XXX_Merge(src proto.Message)
- func (m *TextToSpeechResponse) XXX_Size() int
- func (m *TextToSpeechResponse) XXX_Unmarshal(b []byte) error
- type UnimplementedSpeechServiceServer
- func (*UnimplementedSpeechServiceServer) GetVoiceVolume(ctx context.Context, req *GetVoiceVolumeRequest) (*GetVoiceVolumeResponse, error)
- func (*UnimplementedSpeechServiceServer) Hibernate(ctx context.Context, req *HibernateRequest) (*HibernateResponse, error)
- func (*UnimplementedSpeechServiceServer) ListenSpeechEvent(req *ListenSpeechEventRequest, srv SpeechService_ListenSpeechEventServer) error
- func (*UnimplementedSpeechServiceServer) SetParams(ctx context.Context, req *SetParamsRequest) (*SetParamsResponse, error)
- func (*UnimplementedSpeechServiceServer) SetVoiceVolume(ctx context.Context, req *SetVoiceVolumeRequest) (*SetVoiceVolumeResponse, error)
- func (*UnimplementedSpeechServiceServer) SpeechStop(ctx context.Context, req *SpeechStopRequest) (*SpeechStopResponse, error)
- func (*UnimplementedSpeechServiceServer) TextToSpeech(ctx context.Context, req *TextToSpeechRequest) (*TextToSpeechResponse, error)
- func (*UnimplementedSpeechServiceServer) WakeUp(ctx context.Context, req *WakeUpRequest) (*WakeUpResponse, error)
- type VadInfo
- func (*VadInfo) Descriptor() ([]byte, []int)
- func (m *VadInfo) GetVadType() VadType
- func (m *VadInfo) GetVol() uint32
- func (*VadInfo) ProtoMessage()
- func (m *VadInfo) Reset()
- func (m *VadInfo) String() string
- func (m *VadInfo) XXX_DiscardUnknown()
- func (m *VadInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *VadInfo) XXX_Merge(src proto.Message)
- func (m *VadInfo) XXX_Size() int
- func (m *VadInfo) XXX_Unmarshal(b []byte) error
- type VadType
- type VoiceVolumeInfo
- func (*VoiceVolumeInfo) Descriptor() ([]byte, []int)
- func (m *VoiceVolumeInfo) GetVol() uint32
- func (*VoiceVolumeInfo) ProtoMessage()
- func (m *VoiceVolumeInfo) Reset()
- func (m *VoiceVolumeInfo) String() string
- func (m *VoiceVolumeInfo) XXX_DiscardUnknown()
- func (m *VoiceVolumeInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *VoiceVolumeInfo) XXX_Merge(src proto.Message)
- func (m *VoiceVolumeInfo) XXX_Size() int
- func (m *VoiceVolumeInfo) XXX_Unmarshal(b []byte) error
- type WakeUpInfo
- func (*WakeUpInfo) Descriptor() ([]byte, []int)
- func (m *WakeUpInfo) GetAngle() int32
- func (m *WakeUpInfo) GetBeam() int32
- func (*WakeUpInfo) ProtoMessage()
- func (m *WakeUpInfo) Reset()
- func (m *WakeUpInfo) String() string
- func (m *WakeUpInfo) XXX_DiscardUnknown()
- func (m *WakeUpInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *WakeUpInfo) XXX_Merge(src proto.Message)
- func (m *WakeUpInfo) XXX_Size() int
- func (m *WakeUpInfo) XXX_Unmarshal(b []byte) error
- type WakeUpRequest
- func (*WakeUpRequest) Descriptor() ([]byte, []int)
- func (m *WakeUpRequest) GetAfterWakeUpSpeechText() string
- func (*WakeUpRequest) ProtoMessage()
- func (m *WakeUpRequest) Reset()
- func (m *WakeUpRequest) String() string
- func (m *WakeUpRequest) XXX_DiscardUnknown()
- func (m *WakeUpRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *WakeUpRequest) XXX_Merge(src proto.Message)
- func (m *WakeUpRequest) XXX_Size() int
- func (m *WakeUpRequest) XXX_Unmarshal(b []byte) error
- type WakeUpResponse
- func (*WakeUpResponse) Descriptor() ([]byte, []int)
- func (*WakeUpResponse) ProtoMessage()
- func (m *WakeUpResponse) Reset()
- func (m *WakeUpResponse) String() string
- func (m *WakeUpResponse) XXX_DiscardUnknown()
- func (m *WakeUpResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *WakeUpResponse) XXX_Merge(src proto.Message)
- func (m *WakeUpResponse) XXX_Size() int
- func (m *WakeUpResponse) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
var ErrorType_name = map[int32]string{
0: "UNKNOWN_ERROR_TYPE",
1: "ERR_TIMEOUT",
2: "ERR_PARAMS",
3: "ERR_AUTH",
4: "ERR_NETWORK",
5: "ERR_NOT_READY",
6: "ERR_CONFIG",
}
var ErrorType_value = map[string]int32{
"UNKNOWN_ERROR_TYPE": 0,
"ERR_TIMEOUT": 1,
"ERR_PARAMS": 2,
"ERR_AUTH": 3,
"ERR_NETWORK": 4,
"ERR_NOT_READY": 5,
"ERR_CONFIG": 6,
}
var SpeechEvent_name = map[int32]string{
0: "UNKNOWN_EVENT",
1: "WAKE_UP",
2: "HIBERNATE",
3: "ERROR",
4: "VAD",
5: "RESULT",
6: "TTS_START",
7: "TTS_END",
}
var SpeechEvent_value = map[string]int32{
"UNKNOWN_EVENT": 0,
"WAKE_UP": 1,
"HIBERNATE": 2,
"ERROR": 3,
"VAD": 4,
"RESULT": 5,
"TTS_START": 6,
"TTS_END": 7,
}
var VadType_name = map[int32]string{
0: "UNKNOWN_VAD_TYPE",
1: "START",
2: "END",
3: "TIMEOUT",
4: "VOLUME_CHANGE",
}
var VadType_value = map[string]int32{
"UNKNOWN_VAD_TYPE": 0,
"START": 1,
"END": 2,
"TIMEOUT": 3,
"VOLUME_CHANGE": 4,
}
Functions ¶
func RegisterSpeechServiceHandler ¶
func RegisterSpeechServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterSpeechServiceHandler registers the http handlers for service SpeechService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterSpeechServiceHandlerClient ¶
func RegisterSpeechServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client SpeechServiceClient) error
RegisterSpeechServiceHandlerClient registers the http handlers for service SpeechService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "SpeechServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "SpeechServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "SpeechServiceClient" to call the correct interceptors.
func RegisterSpeechServiceHandlerFromEndpoint ¶
func RegisterSpeechServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterSpeechServiceHandlerFromEndpoint is same as RegisterSpeechServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterSpeechServiceHandlerServer ¶
func RegisterSpeechServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server SpeechServiceServer) error
RegisterSpeechServiceHandlerServer registers the http handlers for service SpeechService to "mux". UnaryRPC :call SpeechServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.
func RegisterSpeechServiceServer ¶
func RegisterSpeechServiceServer(s *grpc.Server, srv SpeechServiceServer)
Types ¶
type ErrorInfo ¶
type ErrorInfo struct { ErrorType ErrorType `protobuf:"varint,1,opt,name=error_type,json=errorType,proto3,enum=speechService.ErrorType" json:"error_type,omitempty"` Info string `protobuf:"bytes,2,opt,name=info,proto3" json:"info,omitempty"` Code string `protobuf:"bytes,3,opt,name=code,proto3" json:"code,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ErrorInfo) Descriptor ¶
func (*ErrorInfo) GetErrorType ¶
func (*ErrorInfo) ProtoMessage ¶
func (*ErrorInfo) ProtoMessage()
func (*ErrorInfo) XXX_DiscardUnknown ¶
func (m *ErrorInfo) XXX_DiscardUnknown()
func (*ErrorInfo) XXX_Marshal ¶
func (*ErrorInfo) XXX_Unmarshal ¶
type GetVoiceVolumeRequest ¶
type GetVoiceVolumeRequest struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetVoiceVolumeRequest) Descriptor ¶
func (*GetVoiceVolumeRequest) Descriptor() ([]byte, []int)
func (*GetVoiceVolumeRequest) ProtoMessage ¶
func (*GetVoiceVolumeRequest) ProtoMessage()
func (*GetVoiceVolumeRequest) Reset ¶
func (m *GetVoiceVolumeRequest) Reset()
func (*GetVoiceVolumeRequest) String ¶
func (m *GetVoiceVolumeRequest) String() string
func (*GetVoiceVolumeRequest) XXX_DiscardUnknown ¶
func (m *GetVoiceVolumeRequest) XXX_DiscardUnknown()
func (*GetVoiceVolumeRequest) XXX_Marshal ¶
func (m *GetVoiceVolumeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetVoiceVolumeRequest) XXX_Merge ¶
func (m *GetVoiceVolumeRequest) XXX_Merge(src proto.Message)
func (*GetVoiceVolumeRequest) XXX_Size ¶
func (m *GetVoiceVolumeRequest) XXX_Size() int
func (*GetVoiceVolumeRequest) XXX_Unmarshal ¶
func (m *GetVoiceVolumeRequest) XXX_Unmarshal(b []byte) error
type GetVoiceVolumeResponse ¶
type GetVoiceVolumeResponse struct { // 音量信息 VoiceVolumeInfo *VoiceVolumeInfo `protobuf:"bytes,1,opt,name=voice_volume_info,json=voiceVolumeInfo,proto3" json:"voice_volume_info,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetVoiceVolumeResponse) Descriptor ¶
func (*GetVoiceVolumeResponse) Descriptor() ([]byte, []int)
func (*GetVoiceVolumeResponse) GetVoiceVolumeInfo ¶
func (m *GetVoiceVolumeResponse) GetVoiceVolumeInfo() *VoiceVolumeInfo
func (*GetVoiceVolumeResponse) ProtoMessage ¶
func (*GetVoiceVolumeResponse) ProtoMessage()
func (*GetVoiceVolumeResponse) Reset ¶
func (m *GetVoiceVolumeResponse) Reset()
func (*GetVoiceVolumeResponse) String ¶
func (m *GetVoiceVolumeResponse) String() string
func (*GetVoiceVolumeResponse) XXX_DiscardUnknown ¶
func (m *GetVoiceVolumeResponse) XXX_DiscardUnknown()
func (*GetVoiceVolumeResponse) XXX_Marshal ¶
func (m *GetVoiceVolumeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetVoiceVolumeResponse) XXX_Merge ¶
func (m *GetVoiceVolumeResponse) XXX_Merge(src proto.Message)
func (*GetVoiceVolumeResponse) XXX_Size ¶
func (m *GetVoiceVolumeResponse) XXX_Size() int
func (*GetVoiceVolumeResponse) XXX_Unmarshal ¶
func (m *GetVoiceVolumeResponse) XXX_Unmarshal(b []byte) error
type HibernateRequest ¶
type HibernateRequest struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*HibernateRequest) Descriptor ¶
func (*HibernateRequest) Descriptor() ([]byte, []int)
func (*HibernateRequest) ProtoMessage ¶
func (*HibernateRequest) ProtoMessage()
func (*HibernateRequest) Reset ¶
func (m *HibernateRequest) Reset()
func (*HibernateRequest) String ¶
func (m *HibernateRequest) String() string
func (*HibernateRequest) XXX_DiscardUnknown ¶
func (m *HibernateRequest) XXX_DiscardUnknown()
func (*HibernateRequest) XXX_Marshal ¶
func (m *HibernateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HibernateRequest) XXX_Merge ¶
func (m *HibernateRequest) XXX_Merge(src proto.Message)
func (*HibernateRequest) XXX_Size ¶
func (m *HibernateRequest) XXX_Size() int
func (*HibernateRequest) XXX_Unmarshal ¶
func (m *HibernateRequest) XXX_Unmarshal(b []byte) error
type HibernateResponse ¶
type HibernateResponse struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*HibernateResponse) Descriptor ¶
func (*HibernateResponse) Descriptor() ([]byte, []int)
func (*HibernateResponse) ProtoMessage ¶
func (*HibernateResponse) ProtoMessage()
func (*HibernateResponse) Reset ¶
func (m *HibernateResponse) Reset()
func (*HibernateResponse) String ¶
func (m *HibernateResponse) String() string
func (*HibernateResponse) XXX_DiscardUnknown ¶
func (m *HibernateResponse) XXX_DiscardUnknown()
func (*HibernateResponse) XXX_Marshal ¶
func (m *HibernateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HibernateResponse) XXX_Merge ¶
func (m *HibernateResponse) XXX_Merge(src proto.Message)
func (*HibernateResponse) XXX_Size ¶
func (m *HibernateResponse) XXX_Size() int
func (*HibernateResponse) XXX_Unmarshal ¶
func (m *HibernateResponse) XXX_Unmarshal(b []byte) error
type ListenSpeechEventRequest ¶
type ListenSpeechEventRequest struct { // 是否获取vad状态传入语音音量动态变化 // 启用与否不影响获取Vad_START, Vad_END, // 仅影响Vad_VOLUME_CHANGE WithVadVol bool `protobuf:"varint,1,opt,name=with_vad_vol,json=withVadVol,proto3" json:"with_vad_vol,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ListenSpeechEventRequest) Descriptor ¶
func (*ListenSpeechEventRequest) Descriptor() ([]byte, []int)
func (*ListenSpeechEventRequest) GetWithVadVol ¶
func (m *ListenSpeechEventRequest) GetWithVadVol() bool
func (*ListenSpeechEventRequest) ProtoMessage ¶
func (*ListenSpeechEventRequest) ProtoMessage()
func (*ListenSpeechEventRequest) Reset ¶
func (m *ListenSpeechEventRequest) Reset()
func (*ListenSpeechEventRequest) String ¶
func (m *ListenSpeechEventRequest) String() string
func (*ListenSpeechEventRequest) XXX_DiscardUnknown ¶
func (m *ListenSpeechEventRequest) XXX_DiscardUnknown()
func (*ListenSpeechEventRequest) XXX_Marshal ¶
func (m *ListenSpeechEventRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListenSpeechEventRequest) XXX_Merge ¶
func (m *ListenSpeechEventRequest) XXX_Merge(src proto.Message)
func (*ListenSpeechEventRequest) XXX_Size ¶
func (m *ListenSpeechEventRequest) XXX_Size() int
func (*ListenSpeechEventRequest) XXX_Unmarshal ¶
func (m *ListenSpeechEventRequest) XXX_Unmarshal(b []byte) error
type ListenSpeechEventResponse ¶
type ListenSpeechEventResponse struct { // 事件类型 EventType SpeechEvent `protobuf:"varint,1,opt,name=event_type,json=eventType,proto3,enum=speechService.SpeechEvent" json:"event_type,omitempty"` // Types that are valid to be assigned to SpeechEventOneof: // *ListenSpeechEventResponse_WakeUpInfo // *ListenSpeechEventResponse_VadInfo // *ListenSpeechEventResponse_ResultInfo // *ListenSpeechEventResponse_ErrorInfo SpeechEventOneof isListenSpeechEventResponse_SpeechEventOneof `protobuf_oneof:"speech_event_oneof"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ListenSpeechEventResponse) Descriptor ¶
func (*ListenSpeechEventResponse) Descriptor() ([]byte, []int)
func (*ListenSpeechEventResponse) GetErrorInfo ¶
func (m *ListenSpeechEventResponse) GetErrorInfo() *ErrorInfo
func (*ListenSpeechEventResponse) GetEventType ¶
func (m *ListenSpeechEventResponse) GetEventType() SpeechEvent
func (*ListenSpeechEventResponse) GetResultInfo ¶
func (m *ListenSpeechEventResponse) GetResultInfo() *ResultInfo
func (*ListenSpeechEventResponse) GetSpeechEventOneof ¶
func (m *ListenSpeechEventResponse) GetSpeechEventOneof() isListenSpeechEventResponse_SpeechEventOneof
func (*ListenSpeechEventResponse) GetVadInfo ¶
func (m *ListenSpeechEventResponse) GetVadInfo() *VadInfo
func (*ListenSpeechEventResponse) GetWakeUpInfo ¶
func (m *ListenSpeechEventResponse) GetWakeUpInfo() *WakeUpInfo
func (*ListenSpeechEventResponse) ProtoMessage ¶
func (*ListenSpeechEventResponse) ProtoMessage()
func (*ListenSpeechEventResponse) Reset ¶
func (m *ListenSpeechEventResponse) Reset()
func (*ListenSpeechEventResponse) String ¶
func (m *ListenSpeechEventResponse) String() string
func (*ListenSpeechEventResponse) XXX_DiscardUnknown ¶
func (m *ListenSpeechEventResponse) XXX_DiscardUnknown()
func (*ListenSpeechEventResponse) XXX_Marshal ¶
func (m *ListenSpeechEventResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListenSpeechEventResponse) XXX_Merge ¶
func (m *ListenSpeechEventResponse) XXX_Merge(src proto.Message)
func (*ListenSpeechEventResponse) XXX_OneofWrappers ¶
func (*ListenSpeechEventResponse) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*ListenSpeechEventResponse) XXX_Size ¶
func (m *ListenSpeechEventResponse) XXX_Size() int
func (*ListenSpeechEventResponse) XXX_Unmarshal ¶
func (m *ListenSpeechEventResponse) XXX_Unmarshal(b []byte) error
type ListenSpeechEventResponse_ErrorInfo ¶
type ListenSpeechEventResponse_ErrorInfo struct {
ErrorInfo *ErrorInfo `protobuf:"bytes,5,opt,name=error_info,json=errorInfo,proto3,oneof"`
}
type ListenSpeechEventResponse_ResultInfo ¶
type ListenSpeechEventResponse_ResultInfo struct {
ResultInfo *ResultInfo `protobuf:"bytes,4,opt,name=result_info,json=resultInfo,proto3,oneof"`
}
type ListenSpeechEventResponse_VadInfo ¶
type ListenSpeechEventResponse_VadInfo struct {
VadInfo *VadInfo `protobuf:"bytes,3,opt,name=vad_info,json=vadInfo,proto3,oneof"`
}
type ListenSpeechEventResponse_WakeUpInfo ¶
type ListenSpeechEventResponse_WakeUpInfo struct {
WakeUpInfo *WakeUpInfo `protobuf:"bytes,2,opt,name=wake_up_info,json=wakeUpInfo,proto3,oneof"`
}
type ResultInfo ¶
type ResultInfo struct { // 分词结果 Words []string `protobuf:"bytes,1,rep,name=words,proto3" json:"words,omitempty"` // 是否为完整句 SentenceComplete bool `protobuf:"varint,2,opt,name=sentence_complete,json=sentenceComplete,proto3" json:"sentence_complete,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
识别结果
func (*ResultInfo) Descriptor ¶
func (*ResultInfo) Descriptor() ([]byte, []int)
func (*ResultInfo) GetSentenceComplete ¶
func (m *ResultInfo) GetSentenceComplete() bool
func (*ResultInfo) GetWords ¶
func (m *ResultInfo) GetWords() []string
func (*ResultInfo) ProtoMessage ¶
func (*ResultInfo) ProtoMessage()
func (*ResultInfo) Reset ¶
func (m *ResultInfo) Reset()
func (*ResultInfo) String ¶
func (m *ResultInfo) String() string
func (*ResultInfo) XXX_DiscardUnknown ¶
func (m *ResultInfo) XXX_DiscardUnknown()
func (*ResultInfo) XXX_Marshal ¶
func (m *ResultInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ResultInfo) XXX_Merge ¶
func (m *ResultInfo) XXX_Merge(src proto.Message)
func (*ResultInfo) XXX_Size ¶
func (m *ResultInfo) XXX_Size() int
func (*ResultInfo) XXX_Unmarshal ¶
func (m *ResultInfo) XXX_Unmarshal(b []byte) error
type SetParamsRequest ¶
type SetParamsRequest struct { // 参数配置内容 // 此内容将进行透明转发,不会进行校验 Params []byte `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SetParamsRequest) Descriptor ¶
func (*SetParamsRequest) Descriptor() ([]byte, []int)
func (*SetParamsRequest) GetParams ¶
func (m *SetParamsRequest) GetParams() []byte
func (*SetParamsRequest) ProtoMessage ¶
func (*SetParamsRequest) ProtoMessage()
func (*SetParamsRequest) Reset ¶
func (m *SetParamsRequest) Reset()
func (*SetParamsRequest) String ¶
func (m *SetParamsRequest) String() string
func (*SetParamsRequest) XXX_DiscardUnknown ¶
func (m *SetParamsRequest) XXX_DiscardUnknown()
func (*SetParamsRequest) XXX_Marshal ¶
func (m *SetParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SetParamsRequest) XXX_Merge ¶
func (m *SetParamsRequest) XXX_Merge(src proto.Message)
func (*SetParamsRequest) XXX_Size ¶
func (m *SetParamsRequest) XXX_Size() int
func (*SetParamsRequest) XXX_Unmarshal ¶
func (m *SetParamsRequest) XXX_Unmarshal(b []byte) error
type SetParamsResponse ¶
type SetParamsResponse struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SetParamsResponse) Descriptor ¶
func (*SetParamsResponse) Descriptor() ([]byte, []int)
func (*SetParamsResponse) ProtoMessage ¶
func (*SetParamsResponse) ProtoMessage()
func (*SetParamsResponse) Reset ¶
func (m *SetParamsResponse) Reset()
func (*SetParamsResponse) String ¶
func (m *SetParamsResponse) String() string
func (*SetParamsResponse) XXX_DiscardUnknown ¶
func (m *SetParamsResponse) XXX_DiscardUnknown()
func (*SetParamsResponse) XXX_Marshal ¶
func (m *SetParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SetParamsResponse) XXX_Merge ¶
func (m *SetParamsResponse) XXX_Merge(src proto.Message)
func (*SetParamsResponse) XXX_Size ¶
func (m *SetParamsResponse) XXX_Size() int
func (*SetParamsResponse) XXX_Unmarshal ¶
func (m *SetParamsResponse) XXX_Unmarshal(b []byte) error
type SetVoiceVolumeRequest ¶
type SetVoiceVolumeRequest struct { // 音量信息 VoiceVolumeInfo *VoiceVolumeInfo `protobuf:"bytes,1,opt,name=voice_volume_info,json=voiceVolumeInfo,proto3" json:"voice_volume_info,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SetVoiceVolumeRequest) Descriptor ¶
func (*SetVoiceVolumeRequest) Descriptor() ([]byte, []int)
func (*SetVoiceVolumeRequest) GetVoiceVolumeInfo ¶
func (m *SetVoiceVolumeRequest) GetVoiceVolumeInfo() *VoiceVolumeInfo
func (*SetVoiceVolumeRequest) ProtoMessage ¶
func (*SetVoiceVolumeRequest) ProtoMessage()
func (*SetVoiceVolumeRequest) Reset ¶
func (m *SetVoiceVolumeRequest) Reset()
func (*SetVoiceVolumeRequest) String ¶
func (m *SetVoiceVolumeRequest) String() string
func (*SetVoiceVolumeRequest) XXX_DiscardUnknown ¶
func (m *SetVoiceVolumeRequest) XXX_DiscardUnknown()
func (*SetVoiceVolumeRequest) XXX_Marshal ¶
func (m *SetVoiceVolumeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SetVoiceVolumeRequest) XXX_Merge ¶
func (m *SetVoiceVolumeRequest) XXX_Merge(src proto.Message)
func (*SetVoiceVolumeRequest) XXX_Size ¶
func (m *SetVoiceVolumeRequest) XXX_Size() int
func (*SetVoiceVolumeRequest) XXX_Unmarshal ¶
func (m *SetVoiceVolumeRequest) XXX_Unmarshal(b []byte) error
type SetVoiceVolumeResponse ¶
type SetVoiceVolumeResponse struct { // 音量信息 VoiceVolumeInfo *VoiceVolumeInfo `protobuf:"bytes,1,opt,name=voice_volume_info,json=voiceVolumeInfo,proto3" json:"voice_volume_info,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SetVoiceVolumeResponse) Descriptor ¶
func (*SetVoiceVolumeResponse) Descriptor() ([]byte, []int)
func (*SetVoiceVolumeResponse) GetVoiceVolumeInfo ¶
func (m *SetVoiceVolumeResponse) GetVoiceVolumeInfo() *VoiceVolumeInfo
func (*SetVoiceVolumeResponse) ProtoMessage ¶
func (*SetVoiceVolumeResponse) ProtoMessage()
func (*SetVoiceVolumeResponse) Reset ¶
func (m *SetVoiceVolumeResponse) Reset()
func (*SetVoiceVolumeResponse) String ¶
func (m *SetVoiceVolumeResponse) String() string
func (*SetVoiceVolumeResponse) XXX_DiscardUnknown ¶
func (m *SetVoiceVolumeResponse) XXX_DiscardUnknown()
func (*SetVoiceVolumeResponse) XXX_Marshal ¶
func (m *SetVoiceVolumeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SetVoiceVolumeResponse) XXX_Merge ¶
func (m *SetVoiceVolumeResponse) XXX_Merge(src proto.Message)
func (*SetVoiceVolumeResponse) XXX_Size ¶
func (m *SetVoiceVolumeResponse) XXX_Size() int
func (*SetVoiceVolumeResponse) XXX_Unmarshal ¶
func (m *SetVoiceVolumeResponse) XXX_Unmarshal(b []byte) error
type SpeechEvent ¶
type SpeechEvent int32
const ( SpeechEvent_UNKNOWN_EVENT SpeechEvent = 0 SpeechEvent_WAKE_UP SpeechEvent = 1 SpeechEvent_HIBERNATE SpeechEvent = 2 SpeechEvent_ERROR SpeechEvent = 3 SpeechEvent_VAD SpeechEvent = 4 SpeechEvent_RESULT SpeechEvent = 5 SpeechEvent_TTS_START SpeechEvent = 6 SpeechEvent_TTS_END SpeechEvent = 7 )
func (SpeechEvent) EnumDescriptor ¶
func (SpeechEvent) EnumDescriptor() ([]byte, []int)
func (SpeechEvent) String ¶
func (x SpeechEvent) String() string
type SpeechServiceClient ¶
type SpeechServiceClient interface { // ListenSpeechEvent 监听语音事件 // // 语音内容识别支持单句多次返回,请留意完整句标识 // // 详见SpeechEvent ListenSpeechEvent(ctx context.Context, in *ListenSpeechEventRequest, opts ...grpc.CallOption) (SpeechService_ListenSpeechEventClient, error) // TextToSpeech 文本转语音 // // 新的TTS请求将立即中断当前语音, // 需要结束后播放新语音应监听TTS_END事件后再进行新的请求。 // // TTS方法支持在休眠状态下调用 TextToSpeech(ctx context.Context, in *TextToSpeechRequest, opts ...grpc.CallOption) (*TextToSpeechResponse, error) // SpeechStop 中止语音 // // 通过此方法进行打断不会产生TTS_END事件 SpeechStop(ctx context.Context, in *SpeechStopRequest, opts ...grpc.CallOption) (*SpeechStopResponse, error) // WakeUp 唤醒 // // 唤醒后开始监听语音输入 WakeUp(ctx context.Context, in *WakeUpRequest, opts ...grpc.CallOption) (*WakeUpResponse, error) // Hibernate 休眠 // // 休眠后不再监听语音输入 Hibernate(ctx context.Context, in *HibernateRequest, opts ...grpc.CallOption) (*HibernateResponse, error) // SetVoiceVolume 设置语音音量 SetVoiceVolume(ctx context.Context, in *SetVoiceVolumeRequest, opts ...grpc.CallOption) (*SetVoiceVolumeResponse, error) // GetVoiceVolume 查询语音音量 GetVoiceVolume(ctx context.Context, in *GetVoiceVolumeRequest, opts ...grpc.CallOption) (*GetVoiceVolumeResponse, error) // SetParams 配置参数 // // 此方法通常为开发用户在开发过程中进行一次性配置 // 不建议不了解该配置文件的用户进行参数设置 // // AIUI模块参数配置参考: // https://doc.iflyos.cn/aiui/sdk/smart_doc/config_file.html#配置文件 SetParams(ctx context.Context, in *SetParamsRequest, opts ...grpc.CallOption) (*SetParamsResponse, error) }
SpeechServiceClient is the client API for SpeechService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewSpeechServiceClient ¶
func NewSpeechServiceClient(cc grpc.ClientConnInterface) SpeechServiceClient
type SpeechServiceServer ¶
type SpeechServiceServer interface { // ListenSpeechEvent 监听语音事件 // // 语音内容识别支持单句多次返回,请留意完整句标识 // // 详见SpeechEvent ListenSpeechEvent(*ListenSpeechEventRequest, SpeechService_ListenSpeechEventServer) error // TextToSpeech 文本转语音 // // 新的TTS请求将立即中断当前语音, // 需要结束后播放新语音应监听TTS_END事件后再进行新的请求。 // // TTS方法支持在休眠状态下调用 TextToSpeech(context.Context, *TextToSpeechRequest) (*TextToSpeechResponse, error) // SpeechStop 中止语音 // // 通过此方法进行打断不会产生TTS_END事件 SpeechStop(context.Context, *SpeechStopRequest) (*SpeechStopResponse, error) // WakeUp 唤醒 // // 唤醒后开始监听语音输入 WakeUp(context.Context, *WakeUpRequest) (*WakeUpResponse, error) // Hibernate 休眠 // // 休眠后不再监听语音输入 Hibernate(context.Context, *HibernateRequest) (*HibernateResponse, error) // SetVoiceVolume 设置语音音量 SetVoiceVolume(context.Context, *SetVoiceVolumeRequest) (*SetVoiceVolumeResponse, error) // GetVoiceVolume 查询语音音量 GetVoiceVolume(context.Context, *GetVoiceVolumeRequest) (*GetVoiceVolumeResponse, error) // SetParams 配置参数 // // 此方法通常为开发用户在开发过程中进行一次性配置 // 不建议不了解该配置文件的用户进行参数设置 // // AIUI模块参数配置参考: // https://doc.iflyos.cn/aiui/sdk/smart_doc/config_file.html#配置文件 SetParams(context.Context, *SetParamsRequest) (*SetParamsResponse, error) }
SpeechServiceServer is the server API for SpeechService service.
type SpeechService_ListenSpeechEventClient ¶
type SpeechService_ListenSpeechEventClient interface { Recv() (*ListenSpeechEventResponse, error) grpc.ClientStream }
type SpeechService_ListenSpeechEventServer ¶
type SpeechService_ListenSpeechEventServer interface { Send(*ListenSpeechEventResponse) error grpc.ServerStream }
type SpeechStopRequest ¶
type SpeechStopRequest struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SpeechStopRequest) Descriptor ¶
func (*SpeechStopRequest) Descriptor() ([]byte, []int)
func (*SpeechStopRequest) ProtoMessage ¶
func (*SpeechStopRequest) ProtoMessage()
func (*SpeechStopRequest) Reset ¶
func (m *SpeechStopRequest) Reset()
func (*SpeechStopRequest) String ¶
func (m *SpeechStopRequest) String() string
func (*SpeechStopRequest) XXX_DiscardUnknown ¶
func (m *SpeechStopRequest) XXX_DiscardUnknown()
func (*SpeechStopRequest) XXX_Marshal ¶
func (m *SpeechStopRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SpeechStopRequest) XXX_Merge ¶
func (m *SpeechStopRequest) XXX_Merge(src proto.Message)
func (*SpeechStopRequest) XXX_Size ¶
func (m *SpeechStopRequest) XXX_Size() int
func (*SpeechStopRequest) XXX_Unmarshal ¶
func (m *SpeechStopRequest) XXX_Unmarshal(b []byte) error
type SpeechStopResponse ¶
type SpeechStopResponse struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SpeechStopResponse) Descriptor ¶
func (*SpeechStopResponse) Descriptor() ([]byte, []int)
func (*SpeechStopResponse) ProtoMessage ¶
func (*SpeechStopResponse) ProtoMessage()
func (*SpeechStopResponse) Reset ¶
func (m *SpeechStopResponse) Reset()
func (*SpeechStopResponse) String ¶
func (m *SpeechStopResponse) String() string
func (*SpeechStopResponse) XXX_DiscardUnknown ¶
func (m *SpeechStopResponse) XXX_DiscardUnknown()
func (*SpeechStopResponse) XXX_Marshal ¶
func (m *SpeechStopResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SpeechStopResponse) XXX_Merge ¶
func (m *SpeechStopResponse) XXX_Merge(src proto.Message)
func (*SpeechStopResponse) XXX_Size ¶
func (m *SpeechStopResponse) XXX_Size() int
func (*SpeechStopResponse) XXX_Unmarshal ¶
func (m *SpeechStopResponse) XXX_Unmarshal(b []byte) error
type TextToSpeechRequest ¶
type TextToSpeechRequest struct { // 语音内容 Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TextToSpeechRequest) Descriptor ¶
func (*TextToSpeechRequest) Descriptor() ([]byte, []int)
func (*TextToSpeechRequest) GetText ¶
func (m *TextToSpeechRequest) GetText() string
func (*TextToSpeechRequest) ProtoMessage ¶
func (*TextToSpeechRequest) ProtoMessage()
func (*TextToSpeechRequest) Reset ¶
func (m *TextToSpeechRequest) Reset()
func (*TextToSpeechRequest) String ¶
func (m *TextToSpeechRequest) String() string
func (*TextToSpeechRequest) XXX_DiscardUnknown ¶
func (m *TextToSpeechRequest) XXX_DiscardUnknown()
func (*TextToSpeechRequest) XXX_Marshal ¶
func (m *TextToSpeechRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TextToSpeechRequest) XXX_Merge ¶
func (m *TextToSpeechRequest) XXX_Merge(src proto.Message)
func (*TextToSpeechRequest) XXX_Size ¶
func (m *TextToSpeechRequest) XXX_Size() int
func (*TextToSpeechRequest) XXX_Unmarshal ¶
func (m *TextToSpeechRequest) XXX_Unmarshal(b []byte) error
type TextToSpeechResponse ¶
type TextToSpeechResponse struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TextToSpeechResponse) Descriptor ¶
func (*TextToSpeechResponse) Descriptor() ([]byte, []int)
func (*TextToSpeechResponse) ProtoMessage ¶
func (*TextToSpeechResponse) ProtoMessage()
func (*TextToSpeechResponse) Reset ¶
func (m *TextToSpeechResponse) Reset()
func (*TextToSpeechResponse) String ¶
func (m *TextToSpeechResponse) String() string
func (*TextToSpeechResponse) XXX_DiscardUnknown ¶
func (m *TextToSpeechResponse) XXX_DiscardUnknown()
func (*TextToSpeechResponse) XXX_Marshal ¶
func (m *TextToSpeechResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TextToSpeechResponse) XXX_Merge ¶
func (m *TextToSpeechResponse) XXX_Merge(src proto.Message)
func (*TextToSpeechResponse) XXX_Size ¶
func (m *TextToSpeechResponse) XXX_Size() int
func (*TextToSpeechResponse) XXX_Unmarshal ¶
func (m *TextToSpeechResponse) XXX_Unmarshal(b []byte) error
type UnimplementedSpeechServiceServer ¶
type UnimplementedSpeechServiceServer struct { }
UnimplementedSpeechServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedSpeechServiceServer) GetVoiceVolume ¶
func (*UnimplementedSpeechServiceServer) GetVoiceVolume(ctx context.Context, req *GetVoiceVolumeRequest) (*GetVoiceVolumeResponse, error)
func (*UnimplementedSpeechServiceServer) Hibernate ¶
func (*UnimplementedSpeechServiceServer) Hibernate(ctx context.Context, req *HibernateRequest) (*HibernateResponse, error)
func (*UnimplementedSpeechServiceServer) ListenSpeechEvent ¶
func (*UnimplementedSpeechServiceServer) ListenSpeechEvent(req *ListenSpeechEventRequest, srv SpeechService_ListenSpeechEventServer) error
func (*UnimplementedSpeechServiceServer) SetParams ¶
func (*UnimplementedSpeechServiceServer) SetParams(ctx context.Context, req *SetParamsRequest) (*SetParamsResponse, error)
func (*UnimplementedSpeechServiceServer) SetVoiceVolume ¶
func (*UnimplementedSpeechServiceServer) SetVoiceVolume(ctx context.Context, req *SetVoiceVolumeRequest) (*SetVoiceVolumeResponse, error)
func (*UnimplementedSpeechServiceServer) SpeechStop ¶
func (*UnimplementedSpeechServiceServer) SpeechStop(ctx context.Context, req *SpeechStopRequest) (*SpeechStopResponse, error)
func (*UnimplementedSpeechServiceServer) TextToSpeech ¶
func (*UnimplementedSpeechServiceServer) TextToSpeech(ctx context.Context, req *TextToSpeechRequest) (*TextToSpeechResponse, error)
func (*UnimplementedSpeechServiceServer) WakeUp ¶
func (*UnimplementedSpeechServiceServer) WakeUp(ctx context.Context, req *WakeUpRequest) (*WakeUpResponse, error)
type VadInfo ¶
type VadInfo struct { // 语音检测类型 VadType VadType `protobuf:"varint,1,opt,name=vad_type,json=vadType,proto3,enum=speechService.VadType" json:"vad_type,omitempty"` // 检测音量 // VadType == VOLUME_CHANGE时此值有效 // 0-100 Vol uint32 `protobuf:"varint,2,opt,name=vol,proto3" json:"vol,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*VadInfo) Descriptor ¶
func (*VadInfo) GetVadType ¶
func (*VadInfo) ProtoMessage ¶
func (*VadInfo) ProtoMessage()
func (*VadInfo) XXX_DiscardUnknown ¶
func (m *VadInfo) XXX_DiscardUnknown()
func (*VadInfo) XXX_Marshal ¶
func (*VadInfo) XXX_Unmarshal ¶
type VoiceVolumeInfo ¶
type VoiceVolumeInfo struct { // 音量值 0-10 // AIUI限制值: 2-10 Vol uint32 `protobuf:"varint,1,opt,name=vol,proto3" json:"vol,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
音量信息
func (*VoiceVolumeInfo) Descriptor ¶
func (*VoiceVolumeInfo) Descriptor() ([]byte, []int)
func (*VoiceVolumeInfo) GetVol ¶
func (m *VoiceVolumeInfo) GetVol() uint32
func (*VoiceVolumeInfo) ProtoMessage ¶
func (*VoiceVolumeInfo) ProtoMessage()
func (*VoiceVolumeInfo) Reset ¶
func (m *VoiceVolumeInfo) Reset()
func (*VoiceVolumeInfo) String ¶
func (m *VoiceVolumeInfo) String() string
func (*VoiceVolumeInfo) XXX_DiscardUnknown ¶
func (m *VoiceVolumeInfo) XXX_DiscardUnknown()
func (*VoiceVolumeInfo) XXX_Marshal ¶
func (m *VoiceVolumeInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*VoiceVolumeInfo) XXX_Merge ¶
func (m *VoiceVolumeInfo) XXX_Merge(src proto.Message)
func (*VoiceVolumeInfo) XXX_Size ¶
func (m *VoiceVolumeInfo) XXX_Size() int
func (*VoiceVolumeInfo) XXX_Unmarshal ¶
func (m *VoiceVolumeInfo) XXX_Unmarshal(b []byte) error
type WakeUpInfo ¶
type WakeUpInfo struct { // 唤醒角度 // 麦克风朝向用户自身左(0)至右(180), // 非语音唤醒时此值为-1 Angle int32 `protobuf:"varint,1,opt,name=angle,proto3" json:"angle,omitempty"` // 拾音波束号 // 非语音唤醒时此值为-1 Beam int32 `protobuf:"varint,2,opt,name=beam,proto3" json:"beam,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
唤醒相关数据
func (*WakeUpInfo) Descriptor ¶
func (*WakeUpInfo) Descriptor() ([]byte, []int)
func (*WakeUpInfo) GetAngle ¶
func (m *WakeUpInfo) GetAngle() int32
func (*WakeUpInfo) GetBeam ¶
func (m *WakeUpInfo) GetBeam() int32
func (*WakeUpInfo) ProtoMessage ¶
func (*WakeUpInfo) ProtoMessage()
func (*WakeUpInfo) Reset ¶
func (m *WakeUpInfo) Reset()
func (*WakeUpInfo) String ¶
func (m *WakeUpInfo) String() string
func (*WakeUpInfo) XXX_DiscardUnknown ¶
func (m *WakeUpInfo) XXX_DiscardUnknown()
func (*WakeUpInfo) XXX_Marshal ¶
func (m *WakeUpInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*WakeUpInfo) XXX_Merge ¶
func (m *WakeUpInfo) XXX_Merge(src proto.Message)
func (*WakeUpInfo) XXX_Size ¶
func (m *WakeUpInfo) XXX_Size() int
func (*WakeUpInfo) XXX_Unmarshal ¶
func (m *WakeUpInfo) XXX_Unmarshal(b []byte) error
type WakeUpRequest ¶
type WakeUpRequest struct { AfterWakeUpSpeechText string `` /* 130-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*WakeUpRequest) Descriptor ¶
func (*WakeUpRequest) Descriptor() ([]byte, []int)
func (*WakeUpRequest) GetAfterWakeUpSpeechText ¶
func (m *WakeUpRequest) GetAfterWakeUpSpeechText() string
func (*WakeUpRequest) ProtoMessage ¶
func (*WakeUpRequest) ProtoMessage()
func (*WakeUpRequest) Reset ¶
func (m *WakeUpRequest) Reset()
func (*WakeUpRequest) String ¶
func (m *WakeUpRequest) String() string
func (*WakeUpRequest) XXX_DiscardUnknown ¶
func (m *WakeUpRequest) XXX_DiscardUnknown()
func (*WakeUpRequest) XXX_Marshal ¶
func (m *WakeUpRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*WakeUpRequest) XXX_Merge ¶
func (m *WakeUpRequest) XXX_Merge(src proto.Message)
func (*WakeUpRequest) XXX_Size ¶
func (m *WakeUpRequest) XXX_Size() int
func (*WakeUpRequest) XXX_Unmarshal ¶
func (m *WakeUpRequest) XXX_Unmarshal(b []byte) error
type WakeUpResponse ¶
type WakeUpResponse struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*WakeUpResponse) Descriptor ¶
func (*WakeUpResponse) Descriptor() ([]byte, []int)
func (*WakeUpResponse) ProtoMessage ¶
func (*WakeUpResponse) ProtoMessage()
func (*WakeUpResponse) Reset ¶
func (m *WakeUpResponse) Reset()
func (*WakeUpResponse) String ¶
func (m *WakeUpResponse) String() string
func (*WakeUpResponse) XXX_DiscardUnknown ¶
func (m *WakeUpResponse) XXX_DiscardUnknown()
func (*WakeUpResponse) XXX_Marshal ¶
func (m *WakeUpResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*WakeUpResponse) XXX_Merge ¶
func (m *WakeUpResponse) XXX_Merge(src proto.Message)
func (*WakeUpResponse) XXX_Size ¶
func (m *WakeUpResponse) XXX_Size() int
func (*WakeUpResponse) XXX_Unmarshal ¶
func (m *WakeUpResponse) XXX_Unmarshal(b []byte) error