say

package
v0.0.0-...-cba17b0 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package say is a generated protocol buffer package.

It is generated from these files:

say.proto

It has these top-level messages:

Text
Speech

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterTextToSpeechServer

func RegisterTextToSpeechServer(s *grpc.Server, srv TextToSpeechServer)

Types

type Speech

type Speech struct {
	Audio []byte `protobuf:"bytes,1,opt,name=audio,proto3" json:"audio,omitempty"`
}

func (*Speech) Descriptor

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

func (*Speech) GetAudio

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

func (*Speech) ProtoMessage

func (*Speech) ProtoMessage()

func (*Speech) Reset

func (m *Speech) Reset()

func (*Speech) String

func (m *Speech) String() string

type Text

type Text struct {
	Text string `protobuf:"bytes,1,opt,name=text" json:"text,omitempty"`
}

func (*Text) Descriptor

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

func (*Text) GetText

func (m *Text) GetText() string

func (*Text) ProtoMessage

func (*Text) ProtoMessage()

func (*Text) Reset

func (m *Text) Reset()

func (*Text) String

func (m *Text) String() string

type TextToSpeechClient

type TextToSpeechClient interface {
	Say(ctx context.Context, in *Text, opts ...grpc.CallOption) (*Speech, error)
}

func NewTextToSpeechClient

func NewTextToSpeechClient(cc *grpc.ClientConn) TextToSpeechClient

type TextToSpeechServer

type TextToSpeechServer interface {
	Say(context.Context, *Text) (*Speech, error)
}

Jump to

Keyboard shortcuts

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