audio

package
v0.0.0-...-83be830 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

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 AudioServer interface {
	SpeechToText(context.Context, *Request) (*Response, error)
}

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) Descriptor() ([]byte, []int)

func (*Request) GetAudio

func (m *Request) GetAudio() []byte

func (*Request) GetLangCode

func (m *Request) GetLangCode() string

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) Reset

func (m *Request) Reset()

func (*Request) String

func (m *Request) String() string

type Response

type Response struct {
	Transcriptions []string `protobuf:"bytes,1,rep,name=transcriptions" json:"transcriptions,omitempty"`
}

func (*Response) Descriptor

func (*Response) Descriptor() ([]byte, []int)

func (*Response) GetTranscriptions

func (m *Response) GetTranscriptions() []string

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) Reset

func (m *Response) Reset()

func (*Response) String

func (m *Response) String() string

Jump to

Keyboard shortcuts

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