Documentation
¶
Index ¶
- Variables
- func RegisterTtsServer(s grpc.ServiceRegistrar, srv TtsServer)
- type CevioTtsRequest
- func (*CevioTtsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CevioTtsRequest) GetAlpha() uint32
- func (x *CevioTtsRequest) GetCast() string
- func (x *CevioTtsRequest) GetEmotions() map[string]uint32
- func (x *CevioTtsRequest) GetIntro() uint32
- func (x *CevioTtsRequest) GetPitch() uint32
- func (x *CevioTtsRequest) GetSpeed() uint32
- func (x *CevioTtsRequest) GetText() string
- func (x *CevioTtsRequest) GetToken() string
- func (x *CevioTtsRequest) GetVolume() uint32
- func (*CevioTtsRequest) ProtoMessage()
- func (x *CevioTtsRequest) ProtoReflect() protoreflect.Message
- func (x *CevioTtsRequest) Reset()
- func (x *CevioTtsRequest) String() string
- type CevioTtsResponse
- type TtsClient
- type TtsServer
- type UnimplementedTtsServer
- type UnsafeTtsServer
Constants ¶
This section is empty.
Variables ¶
var File_proto_textToSpeech_proto protoreflect.FileDescriptor
var Tts_ServiceDesc = grpc.ServiceDesc{ ServiceName: "Tts", HandlerType: (*TtsServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateWav", Handler: _Tts_CreateWav_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/textToSpeech.proto", }
Tts_ServiceDesc is the grpc.ServiceDesc for Tts service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterTtsServer ¶
func RegisterTtsServer(s grpc.ServiceRegistrar, srv TtsServer)
Types ¶
type CevioTtsRequest ¶
type CevioTtsRequest struct { Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"` Cast string `protobuf:"bytes,2,opt,name=cast,proto3" json:"cast,omitempty"` Volume uint32 `protobuf:"varint,3,opt,name=volume,proto3" json:"volume,omitempty"` Speed uint32 `protobuf:"varint,4,opt,name=speed,proto3" json:"speed,omitempty"` Pitch uint32 `protobuf:"varint,5,opt,name=pitch,proto3" json:"pitch,omitempty"` Alpha uint32 `protobuf:"varint,6,opt,name=alpha,proto3" json:"alpha,omitempty"` Intro uint32 `protobuf:"varint,7,opt,name=intro,proto3" json:"intro,omitempty"` Emotions map[string]uint32 `` /* 158-byte string literal not displayed */ Token string `protobuf:"bytes,9,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*CevioTtsRequest) Descriptor
deprecated
func (*CevioTtsRequest) Descriptor() ([]byte, []int)
Deprecated: Use CevioTtsRequest.ProtoReflect.Descriptor instead.
func (*CevioTtsRequest) GetAlpha ¶
func (x *CevioTtsRequest) GetAlpha() uint32
func (*CevioTtsRequest) GetCast ¶
func (x *CevioTtsRequest) GetCast() string
func (*CevioTtsRequest) GetEmotions ¶
func (x *CevioTtsRequest) GetEmotions() map[string]uint32
func (*CevioTtsRequest) GetIntro ¶
func (x *CevioTtsRequest) GetIntro() uint32
func (*CevioTtsRequest) GetPitch ¶
func (x *CevioTtsRequest) GetPitch() uint32
func (*CevioTtsRequest) GetSpeed ¶
func (x *CevioTtsRequest) GetSpeed() uint32
func (*CevioTtsRequest) GetText ¶
func (x *CevioTtsRequest) GetText() string
func (*CevioTtsRequest) GetToken ¶
func (x *CevioTtsRequest) GetToken() string
func (*CevioTtsRequest) GetVolume ¶
func (x *CevioTtsRequest) GetVolume() uint32
func (*CevioTtsRequest) ProtoMessage ¶
func (*CevioTtsRequest) ProtoMessage()
func (*CevioTtsRequest) ProtoReflect ¶
func (x *CevioTtsRequest) ProtoReflect() protoreflect.Message
func (*CevioTtsRequest) Reset ¶
func (x *CevioTtsRequest) Reset()
func (*CevioTtsRequest) String ¶
func (x *CevioTtsRequest) String() string
type CevioTtsResponse ¶
type CevioTtsResponse struct { Audio []byte `protobuf:"bytes,1,opt,name=audio,proto3" json:"audio,omitempty"` // contains filtered or unexported fields }
func (*CevioTtsResponse) Descriptor
deprecated
func (*CevioTtsResponse) Descriptor() ([]byte, []int)
Deprecated: Use CevioTtsResponse.ProtoReflect.Descriptor instead.
func (*CevioTtsResponse) GetAudio ¶
func (x *CevioTtsResponse) GetAudio() []byte
func (*CevioTtsResponse) ProtoMessage ¶
func (*CevioTtsResponse) ProtoMessage()
func (*CevioTtsResponse) ProtoReflect ¶
func (x *CevioTtsResponse) ProtoReflect() protoreflect.Message
func (*CevioTtsResponse) Reset ¶
func (x *CevioTtsResponse) Reset()
func (*CevioTtsResponse) String ¶
func (x *CevioTtsResponse) String() string
type TtsClient ¶
type TtsClient interface {
CreateWav(ctx context.Context, in *CevioTtsRequest, opts ...grpc.CallOption) (*CevioTtsResponse, error)
}
TtsClient is the client API for Tts service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewTtsClient ¶
func NewTtsClient(cc grpc.ClientConnInterface) TtsClient
type TtsServer ¶
type TtsServer interface { CreateWav(context.Context, *CevioTtsRequest) (*CevioTtsResponse, error) // contains filtered or unexported methods }
TtsServer is the server API for Tts service. All implementations must embed UnimplementedTtsServer for forward compatibility
type UnimplementedTtsServer ¶
type UnimplementedTtsServer struct { }
UnimplementedTtsServer must be embedded to have forward compatible implementations.
func (UnimplementedTtsServer) CreateWav ¶
func (UnimplementedTtsServer) CreateWav(context.Context, *CevioTtsRequest) (*CevioTtsResponse, error)
type UnsafeTtsServer ¶
type UnsafeTtsServer interface {
// contains filtered or unexported methods
}
UnsafeTtsServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TtsServer will result in compilation errors.