Documentation
¶
Overview ¶
Package audio is a generated protocol buffer package.
It is generated from these files:
audio.proto
It has these top-level messages:
Request Response
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterAudioServer ¶
func RegisterAudioServer(s *grpc.Server, srv AudioServer)
Types ¶
type AudioClient ¶
type AudioClient interface {
SpeechToText(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error)
}
func NewAudioClient ¶
func NewAudioClient(cc *grpc.ClientConn) AudioClient
type AudioServer ¶
type Request ¶
type Request struct { Audio []byte `protobuf:"bytes,1,opt,name=audio,proto3" json:"audio,omitempty"` LangCode string `protobuf:"bytes,2,opt,name=lang_code,json=langCode" json:"lang_code,omitempty"` }
func (*Request) Descriptor ¶
func (*Request) GetLangCode ¶
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
type Response ¶
type Response struct {
Transcriptions []string `protobuf:"bytes,1,rep,name=transcriptions" json:"transcriptions,omitempty"`
}
func (*Response) Descriptor ¶
func (*Response) GetTranscriptions ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.