mirror of
https://github.com/Mrs4s/MiraiGo.git
synced 2025-05-04 11:07:40 +08:00
107 lines
1.9 KiB
Go
107 lines
1.9 KiB
Go
// Code generated by protoc-gen-golite. DO NOT EDIT.
|
|
// source: tts.proto
|
|
|
|
package richmedia
|
|
|
|
type TtsRspBody struct {
|
|
RetCode uint32 `protobuf:"varint,1,opt"`
|
|
SessionId string `protobuf:"bytes,2,opt"`
|
|
OutSeq uint32 `protobuf:"varint,3,opt"`
|
|
VoiceData []*TtsVoiceItem `protobuf:"bytes,4,rep"`
|
|
Islast bool `protobuf:"varint,5,opt"`
|
|
PcmSampleRate uint32 `protobuf:"varint,6,opt"`
|
|
OpusSampleRate uint32 `protobuf:"varint,7,opt"`
|
|
OpusChannels uint32 `protobuf:"varint,8,opt"`
|
|
OpusBitRate uint32 `protobuf:"varint,9,opt"`
|
|
OpusFrameSize uint32 `protobuf:"varint,10,opt"`
|
|
}
|
|
|
|
func (x *TtsRspBody) GetRetCode() uint32 {
|
|
if x != nil {
|
|
return x.RetCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *TtsRspBody) GetSessionId() string {
|
|
if x != nil {
|
|
return x.SessionId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *TtsRspBody) GetOutSeq() uint32 {
|
|
if x != nil {
|
|
return x.OutSeq
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *TtsRspBody) GetVoiceData() []*TtsVoiceItem {
|
|
if x != nil {
|
|
return x.VoiceData
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *TtsRspBody) GetIslast() bool {
|
|
if x != nil {
|
|
return x.Islast
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *TtsRspBody) GetPcmSampleRate() uint32 {
|
|
if x != nil {
|
|
return x.PcmSampleRate
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *TtsRspBody) GetOpusSampleRate() uint32 {
|
|
if x != nil {
|
|
return x.OpusSampleRate
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *TtsRspBody) GetOpusChannels() uint32 {
|
|
if x != nil {
|
|
return x.OpusChannels
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *TtsRspBody) GetOpusBitRate() uint32 {
|
|
if x != nil {
|
|
return x.OpusBitRate
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *TtsRspBody) GetOpusFrameSize() uint32 {
|
|
if x != nil {
|
|
return x.OpusFrameSize
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type TtsVoiceItem struct {
|
|
Voice []byte `protobuf:"bytes,1,opt"`
|
|
Seq uint32 `protobuf:"varint,2,opt"`
|
|
}
|
|
|
|
func (x *TtsVoiceItem) GetVoice() []byte {
|
|
if x != nil {
|
|
return x.Voice
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *TtsVoiceItem) GetSeq() uint32 {
|
|
if x != nil {
|
|
return x.Seq
|
|
}
|
|
return 0
|
|
}
|