Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
speech_nlu_parse
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵文静
speech_nlu_parse
Commits
3950e916
Commit
3950e916
authored
May 14, 2025
by
赵文静
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
补充闹钟
parent
c60c5dfb
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
256 additions
and
244 deletions
+256
-244
model/speech.go
model/speech.go
+2
-0
pkg/proto/alarm_remind_skill.pb.go
pkg/proto/alarm_remind_skill.pb.go
+106
-201
pkg/proto/alarm_remind_skill.proto
pkg/proto/alarm_remind_skill.proto
+10
-16
service/connect/alarm.go
service/connect/alarm.go
+65
-0
service/connect/music.go
service/connect/music.go
+6
-1
service/speechNlu/domain.go
service/speechNlu/domain.go
+67
-26
No files found.
model/speech.go
View file @
3950e916
...
@@ -77,6 +77,8 @@ type SpeechWsResp struct {
...
@@ -77,6 +77,8 @@ type SpeechWsResp struct {
Param
*
struct
{
Param
*
struct
{
Volume
string
`json:"volume"`
Volume
string
`json:"volume"`
Mode
string
`json:"mode"`
Mode
string
`json:"mode"`
Object
string
`json:"object"`
Extra
string
`json:"extra"`
}
`json:"param"`
}
`json:"param"`
Api
string
`json:"api"`
Api
string
`json:"api"`
}
`json:"command"`
}
`json:"command"`
...
...
pkg/proto/alarm_remind_skill.pb.go
View file @
3950e916
...
@@ -25,11 +25,10 @@ type AlarmRemindSkillRequest struct {
...
@@ -25,11 +25,10 @@ type AlarmRemindSkillRequest struct {
sizeCache
protoimpl
.
SizeCache
sizeCache
protoimpl
.
SizeCache
unknownFields
protoimpl
.
UnknownFields
unknownFields
protoimpl
.
UnknownFields
AppInfo
*
AlarmRemindSkillRequest_AppInfo
`protobuf:"bytes,1,opt,name=appInfo,proto3" json:"appInfo,omitempty"`
AppInfo
*
AlarmRemindSkillRequest_AppInfo
`protobuf:"bytes,1,opt,name=appInfo,proto3" json:"appInfo,omitempty"`
DevInfo
*
AlarmRemindSkillRequest_DevInfo
`protobuf:"bytes,2,opt,name=devInfo,proto3" json:"devInfo,omitempty"`
DevInfo
*
AlarmRemindSkillRequest_DevInfo
`protobuf:"bytes,2,opt,name=devInfo,proto3" json:"devInfo,omitempty"`
UserInfo
*
AlarmRemindSkillRequest_UserInfo
`protobuf:"bytes,3,opt,name=userInfo,proto3" json:"userInfo,omitempty"`
Command
*
AlarmRemindSkillRequest_Command
`protobuf:"bytes,3,opt,name=command,proto3" json:"command,omitempty"`
Command
*
AlarmRemindSkillRequest_Command
`protobuf:"bytes,4,opt,name=command,proto3" json:"command,omitempty"`
AsrRecognize
string
`protobuf:"bytes,4,opt,name=asr_recognize,json=asrRecognize,proto3" json:"asr_recognize,omitempty"`
AsrRecognize
string
`protobuf:"bytes,5,opt,name=asr_recognize,json=asrRecognize,proto3" json:"asr_recognize,omitempty"`
}
}
func
(
x
*
AlarmRemindSkillRequest
)
Reset
()
{
func
(
x
*
AlarmRemindSkillRequest
)
Reset
()
{
...
@@ -78,13 +77,6 @@ func (x *AlarmRemindSkillRequest) GetDevInfo() *AlarmRemindSkillRequest_DevInfo
...
@@ -78,13 +77,6 @@ func (x *AlarmRemindSkillRequest) GetDevInfo() *AlarmRemindSkillRequest_DevInfo
return
nil
return
nil
}
}
func
(
x
*
AlarmRemindSkillRequest
)
GetUserInfo
()
*
AlarmRemindSkillRequest_UserInfo
{
if
x
!=
nil
{
return
x
.
UserInfo
}
return
nil
}
func
(
x
*
AlarmRemindSkillRequest
)
GetCommand
()
*
AlarmRemindSkillRequest_Command
{
func
(
x
*
AlarmRemindSkillRequest
)
GetCommand
()
*
AlarmRemindSkillRequest_Command
{
if
x
!=
nil
{
if
x
!=
nil
{
return
x
.
Command
return
x
.
Command
...
@@ -201,17 +193,21 @@ func (x *AlarmRemindSkillRequest_AppInfo) GetRequestId() string {
...
@@ -201,17 +193,21 @@ func (x *AlarmRemindSkillRequest_AppInfo) GetRequestId() string {
return
""
return
""
}
}
type
AlarmRemindSkillRequest_
User
Info
struct
{
type
AlarmRemindSkillRequest_
Dev
Info
struct
{
state
protoimpl
.
MessageState
state
protoimpl
.
MessageState
sizeCache
protoimpl
.
SizeCache
sizeCache
protoimpl
.
SizeCache
unknownFields
protoimpl
.
UnknownFields
unknownFields
protoimpl
.
UnknownFields
Uid
string
`protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"`
Mac
string
`protobuf:"bytes,1,opt,name=mac,proto3" json:"mac,omitempty"`
Hid
string
`protobuf:"bytes,2,opt,name=hid,proto3" json:"hid,omitempty"`
Mid
string
`protobuf:"bytes,2,opt,name=mid,proto3" json:"mid,omitempty"`
Vender
string
`protobuf:"bytes,3,opt,name=vender,proto3" json:"vender,omitempty"`
Hid
string
`protobuf:"bytes,4,opt,name=hid,proto3" json:"hid,omitempty"`
// 模组id
HomeId
string
`protobuf:"bytes,5,opt,name=homeId,proto3" json:"homeId,omitempty"`
//家庭id
Uid
string
`protobuf:"bytes,6,opt,name=uid,proto3" json:"uid,omitempty"`
// 用户id(可以空,语音入口一般无法识别用户)
}
}
func
(
x
*
AlarmRemindSkillRequest_
User
Info
)
Reset
()
{
func
(
x
*
AlarmRemindSkillRequest_
Dev
Info
)
Reset
()
{
*
x
=
AlarmRemindSkillRequest_
User
Info
{}
*
x
=
AlarmRemindSkillRequest_
Dev
Info
{}
if
protoimpl
.
UnsafeEnabled
{
if
protoimpl
.
UnsafeEnabled
{
mi
:=
&
file_pkg_proto_alarm_remind_skill_proto_msgTypes
[
3
]
mi
:=
&
file_pkg_proto_alarm_remind_skill_proto_msgTypes
[
3
]
ms
:=
protoimpl
.
X
.
MessageStateOf
(
protoimpl
.
Pointer
(
x
))
ms
:=
protoimpl
.
X
.
MessageStateOf
(
protoimpl
.
Pointer
(
x
))
...
@@ -219,13 +215,13 @@ func (x *AlarmRemindSkillRequest_UserInfo) Reset() {
...
@@ -219,13 +215,13 @@ func (x *AlarmRemindSkillRequest_UserInfo) Reset() {
}
}
}
}
func
(
x
*
AlarmRemindSkillRequest_
User
Info
)
String
()
string
{
func
(
x
*
AlarmRemindSkillRequest_
Dev
Info
)
String
()
string
{
return
protoimpl
.
X
.
MessageStringOf
(
x
)
return
protoimpl
.
X
.
MessageStringOf
(
x
)
}
}
func
(
*
AlarmRemindSkillRequest_
User
Info
)
ProtoMessage
()
{}
func
(
*
AlarmRemindSkillRequest_
Dev
Info
)
ProtoMessage
()
{}
func
(
x
*
AlarmRemindSkillRequest_
User
Info
)
ProtoReflect
()
protoreflect
.
Message
{
func
(
x
*
AlarmRemindSkillRequest_
Dev
Info
)
ProtoReflect
()
protoreflect
.
Message
{
mi
:=
&
file_pkg_proto_alarm_remind_skill_proto_msgTypes
[
3
]
mi
:=
&
file_pkg_proto_alarm_remind_skill_proto_msgTypes
[
3
]
if
protoimpl
.
UnsafeEnabled
&&
x
!=
nil
{
if
protoimpl
.
UnsafeEnabled
&&
x
!=
nil
{
ms
:=
protoimpl
.
X
.
MessageStateOf
(
protoimpl
.
Pointer
(
x
))
ms
:=
protoimpl
.
X
.
MessageStateOf
(
protoimpl
.
Pointer
(
x
))
...
@@ -237,76 +233,49 @@ func (x *AlarmRemindSkillRequest_UserInfo) ProtoReflect() protoreflect.Message {
...
@@ -237,76 +233,49 @@ func (x *AlarmRemindSkillRequest_UserInfo) ProtoReflect() protoreflect.Message {
return
mi
.
MessageOf
(
x
)
return
mi
.
MessageOf
(
x
)
}
}
// Deprecated: Use AlarmRemindSkillRequest_
User
Info.ProtoReflect.Descriptor instead.
// Deprecated: Use AlarmRemindSkillRequest_
Dev
Info.ProtoReflect.Descriptor instead.
func
(
*
AlarmRemindSkillRequest_
User
Info
)
Descriptor
()
([]
byte
,
[]
int
)
{
func
(
*
AlarmRemindSkillRequest_
Dev
Info
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
file_pkg_proto_alarm_remind_skill_proto_rawDescGZIP
(),
[]
int
{
0
,
1
}
return
file_pkg_proto_alarm_remind_skill_proto_rawDescGZIP
(),
[]
int
{
0
,
1
}
}
}
func
(
x
*
AlarmRemindSkillRequest_
UserInfo
)
GetUid
()
string
{
func
(
x
*
AlarmRemindSkillRequest_
DevInfo
)
GetMac
()
string
{
if
x
!=
nil
{
if
x
!=
nil
{
return
x
.
Uid
return
x
.
Mac
}
}
return
""
return
""
}
}
func
(
x
*
AlarmRemindSkillRequest_
UserInfo
)
GetH
id
()
string
{
func
(
x
*
AlarmRemindSkillRequest_
DevInfo
)
GetM
id
()
string
{
if
x
!=
nil
{
if
x
!=
nil
{
return
x
.
H
id
return
x
.
M
id
}
}
return
""
return
""
}
}
type
AlarmRemindSkillRequest_DevInfo
struct
{
func
(
x
*
AlarmRemindSkillRequest_DevInfo
)
GetVender
()
string
{
state
protoimpl
.
MessageState
if
x
!=
nil
{
sizeCache
protoimpl
.
SizeCache
return
x
.
Vender
unknownFields
protoimpl
.
UnknownFields
Mac
string
`protobuf:"bytes,1,opt,name=mac,proto3" json:"mac,omitempty"`
TarMac
string
`protobuf:"bytes,2,opt,name=tarMac,proto3" json:"tarMac,omitempty"`
}
func
(
x
*
AlarmRemindSkillRequest_DevInfo
)
Reset
()
{
*
x
=
AlarmRemindSkillRequest_DevInfo
{}
if
protoimpl
.
UnsafeEnabled
{
mi
:=
&
file_pkg_proto_alarm_remind_skill_proto_msgTypes
[
4
]
ms
:=
protoimpl
.
X
.
MessageStateOf
(
protoimpl
.
Pointer
(
x
))
ms
.
StoreMessageInfo
(
mi
)
}
}
return
""
}
}
func
(
x
*
AlarmRemindSkillRequest_DevInfo
)
String
()
string
{
func
(
x
*
AlarmRemindSkillRequest_DevInfo
)
GetHid
()
string
{
return
protoimpl
.
X
.
MessageStringOf
(
x
)
if
x
!=
nil
{
}
return
x
.
Hid
func
(
*
AlarmRemindSkillRequest_DevInfo
)
ProtoMessage
()
{}
func
(
x
*
AlarmRemindSkillRequest_DevInfo
)
ProtoReflect
()
protoreflect
.
Message
{
mi
:=
&
file_pkg_proto_alarm_remind_skill_proto_msgTypes
[
4
]
if
protoimpl
.
UnsafeEnabled
&&
x
!=
nil
{
ms
:=
protoimpl
.
X
.
MessageStateOf
(
protoimpl
.
Pointer
(
x
))
if
ms
.
LoadMessageInfo
()
==
nil
{
ms
.
StoreMessageInfo
(
mi
)
}
return
ms
}
}
return
mi
.
MessageOf
(
x
)
return
""
}
// Deprecated: Use AlarmRemindSkillRequest_DevInfo.ProtoReflect.Descriptor instead.
func
(
*
AlarmRemindSkillRequest_DevInfo
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
file_pkg_proto_alarm_remind_skill_proto_rawDescGZIP
(),
[]
int
{
0
,
2
}
}
}
func
(
x
*
AlarmRemindSkillRequest_DevInfo
)
Get
Mac
()
string
{
func
(
x
*
AlarmRemindSkillRequest_DevInfo
)
Get
HomeId
()
string
{
if
x
!=
nil
{
if
x
!=
nil
{
return
x
.
Mac
return
x
.
HomeId
}
}
return
""
return
""
}
}
func
(
x
*
AlarmRemindSkillRequest_DevInfo
)
Get
TarMac
()
string
{
func
(
x
*
AlarmRemindSkillRequest_DevInfo
)
Get
Uid
()
string
{
if
x
!=
nil
{
if
x
!=
nil
{
return
x
.
TarMac
return
x
.
Uid
}
}
return
""
return
""
}
}
...
@@ -316,20 +285,15 @@ type AlarmRemindSkillRequest_Command struct {
...
@@ -316,20 +285,15 @@ type AlarmRemindSkillRequest_Command struct {
sizeCache
protoimpl
.
SizeCache
sizeCache
protoimpl
.
SizeCache
unknownFields
protoimpl
.
UnknownFields
unknownFields
protoimpl
.
UnknownFields
Api
string
`protobuf:"bytes,1,opt,name=api,proto3" json:"api,omitempty"`
Api
string
`protobuf:"bytes,1,opt,name=api,proto3" json:"api,omitempty"`
// 意图
Repeat
string
`protobuf:"bytes,2,opt,name=repeat,proto3" json:"repeat,omitempty"`
Extra
string
`protobuf:"bytes,2,opt,name=extra,proto3" json:"extra,omitempty"`
// speech解析原字段 : 内部有content字段提取闹钟列表
Timestamp
int64
`protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
Object
string
`protobuf:"bytes,3,opt,name=object,proto3" json:"object,omitempty"`
// speech解析原字段:闹钟/提醒(日程)
Date
string
`protobuf:"bytes,4,opt,name=date,proto3" json:"date,omitempty"`
Time
string
`protobuf:"bytes,5,opt,name=time,proto3" json:"time,omitempty"`
Event
string
`protobuf:"bytes,6,opt,name=event,proto3" json:"event,omitempty"`
Period
string
`protobuf:"bytes,7,opt,name=period,proto3" json:"period,omitempty"`
Object
string
`protobuf:"bytes,8,opt,name=object,proto3" json:"object,omitempty"`
// 区分品类,闹钟/日程(提醒)
}
}
func
(
x
*
AlarmRemindSkillRequest_Command
)
Reset
()
{
func
(
x
*
AlarmRemindSkillRequest_Command
)
Reset
()
{
*
x
=
AlarmRemindSkillRequest_Command
{}
*
x
=
AlarmRemindSkillRequest_Command
{}
if
protoimpl
.
UnsafeEnabled
{
if
protoimpl
.
UnsafeEnabled
{
mi
:=
&
file_pkg_proto_alarm_remind_skill_proto_msgTypes
[
5
]
mi
:=
&
file_pkg_proto_alarm_remind_skill_proto_msgTypes
[
4
]
ms
:=
protoimpl
.
X
.
MessageStateOf
(
protoimpl
.
Pointer
(
x
))
ms
:=
protoimpl
.
X
.
MessageStateOf
(
protoimpl
.
Pointer
(
x
))
ms
.
StoreMessageInfo
(
mi
)
ms
.
StoreMessageInfo
(
mi
)
}
}
...
@@ -342,7 +306,7 @@ func (x *AlarmRemindSkillRequest_Command) String() string {
...
@@ -342,7 +306,7 @@ func (x *AlarmRemindSkillRequest_Command) String() string {
func
(
*
AlarmRemindSkillRequest_Command
)
ProtoMessage
()
{}
func
(
*
AlarmRemindSkillRequest_Command
)
ProtoMessage
()
{}
func
(
x
*
AlarmRemindSkillRequest_Command
)
ProtoReflect
()
protoreflect
.
Message
{
func
(
x
*
AlarmRemindSkillRequest_Command
)
ProtoReflect
()
protoreflect
.
Message
{
mi
:=
&
file_pkg_proto_alarm_remind_skill_proto_msgTypes
[
5
]
mi
:=
&
file_pkg_proto_alarm_remind_skill_proto_msgTypes
[
4
]
if
protoimpl
.
UnsafeEnabled
&&
x
!=
nil
{
if
protoimpl
.
UnsafeEnabled
&&
x
!=
nil
{
ms
:=
protoimpl
.
X
.
MessageStateOf
(
protoimpl
.
Pointer
(
x
))
ms
:=
protoimpl
.
X
.
MessageStateOf
(
protoimpl
.
Pointer
(
x
))
if
ms
.
LoadMessageInfo
()
==
nil
{
if
ms
.
LoadMessageInfo
()
==
nil
{
...
@@ -355,7 +319,7 @@ func (x *AlarmRemindSkillRequest_Command) ProtoReflect() protoreflect.Message {
...
@@ -355,7 +319,7 @@ func (x *AlarmRemindSkillRequest_Command) ProtoReflect() protoreflect.Message {
// Deprecated: Use AlarmRemindSkillRequest_Command.ProtoReflect.Descriptor instead.
// Deprecated: Use AlarmRemindSkillRequest_Command.ProtoReflect.Descriptor instead.
func
(
*
AlarmRemindSkillRequest_Command
)
Descriptor
()
([]
byte
,
[]
int
)
{
func
(
*
AlarmRemindSkillRequest_Command
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
file_pkg_proto_alarm_remind_skill_proto_rawDescGZIP
(),
[]
int
{
0
,
3
}
return
file_pkg_proto_alarm_remind_skill_proto_rawDescGZIP
(),
[]
int
{
0
,
2
}
}
}
func
(
x
*
AlarmRemindSkillRequest_Command
)
GetApi
()
string
{
func
(
x
*
AlarmRemindSkillRequest_Command
)
GetApi
()
string
{
...
@@ -365,44 +329,9 @@ func (x *AlarmRemindSkillRequest_Command) GetApi() string {
...
@@ -365,44 +329,9 @@ func (x *AlarmRemindSkillRequest_Command) GetApi() string {
return
""
return
""
}
}
func
(
x
*
AlarmRemindSkillRequest_Command
)
GetRepeat
()
string
{
func
(
x
*
AlarmRemindSkillRequest_Command
)
GetExtra
()
string
{
if
x
!=
nil
{
return
x
.
Repeat
}
return
""
}
func
(
x
*
AlarmRemindSkillRequest_Command
)
GetTimestamp
()
int64
{
if
x
!=
nil
{
return
x
.
Timestamp
}
return
0
}
func
(
x
*
AlarmRemindSkillRequest_Command
)
GetDate
()
string
{
if
x
!=
nil
{
return
x
.
Date
}
return
""
}
func
(
x
*
AlarmRemindSkillRequest_Command
)
GetTime
()
string
{
if
x
!=
nil
{
return
x
.
Time
}
return
""
}
func
(
x
*
AlarmRemindSkillRequest_Command
)
GetEvent
()
string
{
if
x
!=
nil
{
return
x
.
Event
}
return
""
}
func
(
x
*
AlarmRemindSkillRequest_Command
)
GetPeriod
()
string
{
if
x
!=
nil
{
if
x
!=
nil
{
return
x
.
Period
return
x
.
Extra
}
}
return
""
return
""
}
}
...
@@ -426,7 +355,7 @@ type AlarmRemindSkillResponse_Status struct {
...
@@ -426,7 +355,7 @@ type AlarmRemindSkillResponse_Status struct {
func
(
x
*
AlarmRemindSkillResponse_Status
)
Reset
()
{
func
(
x
*
AlarmRemindSkillResponse_Status
)
Reset
()
{
*
x
=
AlarmRemindSkillResponse_Status
{}
*
x
=
AlarmRemindSkillResponse_Status
{}
if
protoimpl
.
UnsafeEnabled
{
if
protoimpl
.
UnsafeEnabled
{
mi
:=
&
file_pkg_proto_alarm_remind_skill_proto_msgTypes
[
6
]
mi
:=
&
file_pkg_proto_alarm_remind_skill_proto_msgTypes
[
5
]
ms
:=
protoimpl
.
X
.
MessageStateOf
(
protoimpl
.
Pointer
(
x
))
ms
:=
protoimpl
.
X
.
MessageStateOf
(
protoimpl
.
Pointer
(
x
))
ms
.
StoreMessageInfo
(
mi
)
ms
.
StoreMessageInfo
(
mi
)
}
}
...
@@ -439,7 +368,7 @@ func (x *AlarmRemindSkillResponse_Status) String() string {
...
@@ -439,7 +368,7 @@ func (x *AlarmRemindSkillResponse_Status) String() string {
func
(
*
AlarmRemindSkillResponse_Status
)
ProtoMessage
()
{}
func
(
*
AlarmRemindSkillResponse_Status
)
ProtoMessage
()
{}
func
(
x
*
AlarmRemindSkillResponse_Status
)
ProtoReflect
()
protoreflect
.
Message
{
func
(
x
*
AlarmRemindSkillResponse_Status
)
ProtoReflect
()
protoreflect
.
Message
{
mi
:=
&
file_pkg_proto_alarm_remind_skill_proto_msgTypes
[
6
]
mi
:=
&
file_pkg_proto_alarm_remind_skill_proto_msgTypes
[
5
]
if
protoimpl
.
UnsafeEnabled
&&
x
!=
nil
{
if
protoimpl
.
UnsafeEnabled
&&
x
!=
nil
{
ms
:=
protoimpl
.
X
.
MessageStateOf
(
protoimpl
.
Pointer
(
x
))
ms
:=
protoimpl
.
X
.
MessageStateOf
(
protoimpl
.
Pointer
(
x
))
if
ms
.
LoadMessageInfo
()
==
nil
{
if
ms
.
LoadMessageInfo
()
==
nil
{
...
@@ -474,7 +403,7 @@ var File_pkg_proto_alarm_remind_skill_proto protoreflect.FileDescriptor
...
@@ -474,7 +403,7 @@ var File_pkg_proto_alarm_remind_skill_proto protoreflect.FileDescriptor
var
file_pkg_proto_alarm_remind_skill_proto_rawDesc
=
[]
byte
{
var
file_pkg_proto_alarm_remind_skill_proto_rawDesc
=
[]
byte
{
0x0a
,
0x22
,
0x70
,
0x6b
,
0x67
,
0x2f
,
0x70
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x2f
,
0x61
,
0x6c
,
0x61
,
0x72
,
0x0a
,
0x22
,
0x70
,
0x6b
,
0x67
,
0x2f
,
0x70
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x2f
,
0x61
,
0x6c
,
0x61
,
0x72
,
0x6d
,
0x5f
,
0x72
,
0x65
,
0x6d
,
0x69
,
0x6e
,
0x64
,
0x5f
,
0x73
,
0x6b
,
0x69
,
0x6c
,
0x6c
,
0x2e
,
0x70
,
0x6d
,
0x5f
,
0x72
,
0x65
,
0x6d
,
0x69
,
0x6e
,
0x64
,
0x5f
,
0x73
,
0x6b
,
0x69
,
0x6c
,
0x6c
,
0x2e
,
0x70
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x12
,
0x05
,
0x70
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x22
,
0x
af
,
0x05
,
0x0a
,
0x17
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x12
,
0x05
,
0x70
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x22
,
0x
92
,
0x04
,
0x0a
,
0x17
,
0x41
,
0x6c
,
0x61
,
0x72
,
0x6d
,
0x52
,
0x65
,
0x6d
,
0x69
,
0x6e
,
0x64
,
0x53
,
0x6b
,
0x69
,
0x6c
,
0x6c
,
0x41
,
0x6c
,
0x61
,
0x72
,
0x6d
,
0x52
,
0x65
,
0x6d
,
0x69
,
0x6e
,
0x64
,
0x53
,
0x6b
,
0x69
,
0x6c
,
0x6c
,
0x52
,
0x65
,
0x71
,
0x75
,
0x65
,
0x73
,
0x74
,
0x12
,
0x40
,
0x0a
,
0x07
,
0x61
,
0x70
,
0x70
,
0x49
,
0x6e
,
0x52
,
0x65
,
0x71
,
0x75
,
0x65
,
0x73
,
0x74
,
0x12
,
0x40
,
0x0a
,
0x07
,
0x61
,
0x70
,
0x70
,
0x49
,
0x6e
,
0x66
,
0x6f
,
0x18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x0b
,
0x32
,
0x26
,
0x2e
,
0x70
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x66
,
0x6f
,
0x18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x0b
,
0x32
,
0x26
,
0x2e
,
0x70
,
0x72
,
0x6f
,
0x74
,
0x6f
,
...
@@ -484,58 +413,48 @@ var file_pkg_proto_alarm_remind_skill_proto_rawDesc = []byte{
...
@@ -484,58 +413,48 @@ var file_pkg_proto_alarm_remind_skill_proto_rawDesc = []byte{
0x49
,
0x6e
,
0x66
,
0x6f
,
0x18
,
0x02
,
0x20
,
0x01
,
0x28
,
0x0b
,
0x32
,
0x26
,
0x2e
,
0x70
,
0x72
,
0x6f
,
0x49
,
0x6e
,
0x66
,
0x6f
,
0x18
,
0x02
,
0x20
,
0x01
,
0x28
,
0x0b
,
0x32
,
0x26
,
0x2e
,
0x70
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x2e
,
0x41
,
0x6c
,
0x61
,
0x72
,
0x6d
,
0x52
,
0x65
,
0x6d
,
0x69
,
0x6e
,
0x64
,
0x53
,
0x6b
,
0x74
,
0x6f
,
0x2e
,
0x41
,
0x6c
,
0x61
,
0x72
,
0x6d
,
0x52
,
0x65
,
0x6d
,
0x69
,
0x6e
,
0x64
,
0x53
,
0x6b
,
0x69
,
0x6c
,
0x6c
,
0x52
,
0x65
,
0x71
,
0x75
,
0x65
,
0x73
,
0x74
,
0x2e
,
0x44
,
0x65
,
0x76
,
0x49
,
0x6e
,
0x69
,
0x6c
,
0x6c
,
0x52
,
0x65
,
0x71
,
0x75
,
0x65
,
0x73
,
0x74
,
0x2e
,
0x44
,
0x65
,
0x76
,
0x49
,
0x6e
,
0x66
,
0x6f
,
0x52
,
0x07
,
0x64
,
0x65
,
0x76
,
0x49
,
0x6e
,
0x66
,
0x6f
,
0x12
,
0x43
,
0x0a
,
0x08
,
0x75
,
0x66
,
0x6f
,
0x52
,
0x07
,
0x64
,
0x65
,
0x76
,
0x49
,
0x6e
,
0x66
,
0x6f
,
0x12
,
0x40
,
0x0a
,
0x07
,
0x63
,
0x73
,
0x65
,
0x72
,
0x49
,
0x6e
,
0x66
,
0x6f
,
0x18
,
0x03
,
0x20
,
0x01
,
0x28
,
0x0b
,
0x32
,
0x27
,
0x2e
,
0x6f
,
0x6d
,
0x6d
,
0x61
,
0x6e
,
0x64
,
0x18
,
0x03
,
0x20
,
0x01
,
0x28
,
0x0b
,
0x32
,
0x26
,
0x2e
,
0x70
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x2e
,
0x41
,
0x6c
,
0x61
,
0x72
,
0x6d
,
0x52
,
0x65
,
0x6d
,
0x69
,
0x6e
,
0x64
,
0x53
,
0x6b
,
0x69
,
0x6c
,
0x6c
,
0x52
,
0x65
,
0x71
,
0x75
,
0x65
,
0x73
,
0x74
,
0x2e
,
0x43
,
0x6f
,
0x6d
,
0x6d
,
0x61
,
0x6e
,
0x64
,
0x52
,
0x07
,
0x63
,
0x6f
,
0x6d
,
0x6d
,
0x61
,
0x6e
,
0x64
,
0x12
,
0x23
,
0x0a
,
0x0d
,
0x61
,
0x73
,
0x72
,
0x5f
,
0x72
,
0x65
,
0x63
,
0x6f
,
0x67
,
0x6e
,
0x69
,
0x7a
,
0x65
,
0x18
,
0x04
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x0c
,
0x61
,
0x73
,
0x72
,
0x52
,
0x65
,
0x63
,
0x6f
,
0x67
,
0x6e
,
0x69
,
0x7a
,
0x65
,
0x1a
,
0x3d
,
0x0a
,
0x07
,
0x41
,
0x70
,
0x70
,
0x49
,
0x6e
,
0x66
,
0x6f
,
0x12
,
0x14
,
0x0a
,
0x05
,
0x61
,
0x70
,
0x70
,
0x49
,
0x64
,
0x18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x05
,
0x61
,
0x70
,
0x70
,
0x49
,
0x64
,
0x12
,
0x1c
,
0x0a
,
0x09
,
0x72
,
0x65
,
0x71
,
0x75
,
0x65
,
0x73
,
0x74
,
0x49
,
0x64
,
0x18
,
0x02
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x09
,
0x72
,
0x65
,
0x71
,
0x75
,
0x65
,
0x73
,
0x74
,
0x49
,
0x64
,
0x1a
,
0x81
,
0x01
,
0x0a
,
0x07
,
0x44
,
0x65
,
0x76
,
0x49
,
0x6e
,
0x66
,
0x6f
,
0x12
,
0x10
,
0x0a
,
0x03
,
0x6d
,
0x61
,
0x63
,
0x18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x03
,
0x6d
,
0x61
,
0x63
,
0x12
,
0x10
,
0x0a
,
0x03
,
0x6d
,
0x69
,
0x64
,
0x18
,
0x02
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x03
,
0x6d
,
0x69
,
0x64
,
0x12
,
0x16
,
0x0a
,
0x06
,
0x76
,
0x65
,
0x6e
,
0x64
,
0x65
,
0x72
,
0x18
,
0x03
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x06
,
0x76
,
0x65
,
0x6e
,
0x64
,
0x65
,
0x72
,
0x12
,
0x10
,
0x0a
,
0x03
,
0x68
,
0x69
,
0x64
,
0x18
,
0x04
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x03
,
0x68
,
0x69
,
0x64
,
0x12
,
0x16
,
0x0a
,
0x06
,
0x68
,
0x6f
,
0x6d
,
0x65
,
0x49
,
0x64
,
0x18
,
0x05
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x06
,
0x68
,
0x6f
,
0x6d
,
0x65
,
0x49
,
0x64
,
0x12
,
0x10
,
0x0a
,
0x03
,
0x75
,
0x69
,
0x64
,
0x18
,
0x06
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x03
,
0x75
,
0x69
,
0x64
,
0x1a
,
0x49
,
0x0a
,
0x07
,
0x43
,
0x6f
,
0x6d
,
0x6d
,
0x61
,
0x6e
,
0x64
,
0x12
,
0x10
,
0x0a
,
0x03
,
0x61
,
0x70
,
0x69
,
0x18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x03
,
0x61
,
0x70
,
0x69
,
0x12
,
0x14
,
0x0a
,
0x05
,
0x65
,
0x78
,
0x74
,
0x72
,
0x61
,
0x18
,
0x02
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x05
,
0x65
,
0x78
,
0x74
,
0x72
,
0x61
,
0x12
,
0x16
,
0x0a
,
0x06
,
0x6f
,
0x62
,
0x6a
,
0x65
,
0x63
,
0x74
,
0x18
,
0x03
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x06
,
0x6f
,
0x62
,
0x6a
,
0x65
,
0x63
,
0x74
,
0x22
,
0x8a
,
0x01
,
0x0a
,
0x18
,
0x41
,
0x6c
,
0x61
,
0x72
,
0x6d
,
0x52
,
0x65
,
0x6d
,
0x69
,
0x6e
,
0x64
,
0x53
,
0x6b
,
0x69
,
0x6c
,
0x6c
,
0x52
,
0x65
,
0x73
,
0x70
,
0x6f
,
0x6e
,
0x73
,
0x65
,
0x12
,
0x3e
,
0x0a
,
0x06
,
0x73
,
0x74
,
0x61
,
0x74
,
0x75
,
0x73
,
0x18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x0b
,
0x32
,
0x26
,
0x2e
,
0x70
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x2e
,
0x41
,
0x6c
,
0x61
,
0x72
,
0x6d
,
0x52
,
0x65
,
0x6d
,
0x69
,
0x6e
,
0x70
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x2e
,
0x41
,
0x6c
,
0x61
,
0x72
,
0x6d
,
0x52
,
0x65
,
0x6d
,
0x69
,
0x6e
,
0x64
,
0x53
,
0x6b
,
0x69
,
0x6c
,
0x6c
,
0x52
,
0x65
,
0x71
,
0x75
,
0x65
,
0x73
,
0x74
,
0x2e
,
0x55
,
0x73
,
0x64
,
0x53
,
0x6b
,
0x69
,
0x6c
,
0x6c
,
0x52
,
0x65
,
0x73
,
0x70
,
0x6f
,
0x6e
,
0x73
,
0x65
,
0x2e
,
0x53
,
0x65
,
0x72
,
0x49
,
0x6e
,
0x66
,
0x6f
,
0x52
,
0x08
,
0x75
,
0x73
,
0x65
,
0x72
,
0x49
,
0x6e
,
0x66
,
0x6f
,
0x74
,
0x61
,
0x74
,
0x75
,
0x73
,
0x52
,
0x06
,
0x73
,
0x74
,
0x61
,
0x74
,
0x75
,
0x73
,
0x1a
,
0x2e
,
0x0a
,
0x12
,
0x40
,
0x0a
,
0x07
,
0x63
,
0x6f
,
0x6d
,
0x6d
,
0x61
,
0x6e
,
0x64
,
0x18
,
0x04
,
0x20
,
0x01
,
0x28
,
0x06
,
0x53
,
0x74
,
0x61
,
0x74
,
0x75
,
0x73
,
0x12
,
0x12
,
0x0a
,
0x04
,
0x63
,
0x6f
,
0x64
,
0x65
,
0x18
,
0x0b
,
0x32
,
0x26
,
0x2e
,
0x70
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x2e
,
0x41
,
0x6c
,
0x61
,
0x72
,
0x6d
,
0x52
,
0x01
,
0x20
,
0x01
,
0x28
,
0x05
,
0x52
,
0x04
,
0x63
,
0x6f
,
0x64
,
0x65
,
0x12
,
0x10
,
0x0a
,
0x03
,
0x6d
,
0x65
,
0x6d
,
0x69
,
0x6e
,
0x64
,
0x53
,
0x6b
,
0x69
,
0x6c
,
0x6c
,
0x52
,
0x65
,
0x71
,
0x75
,
0x65
,
0x73
,
0x73
,
0x67
,
0x18
,
0x02
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x03
,
0x6d
,
0x73
,
0x67
,
0x32
,
0x6a
,
0x0a
,
0x74
,
0x2e
,
0x43
,
0x6f
,
0x6d
,
0x6d
,
0x61
,
0x6e
,
0x64
,
0x52
,
0x07
,
0x63
,
0x6f
,
0x6d
,
0x6d
,
0x61
,
0x10
,
0x41
,
0x6c
,
0x61
,
0x72
,
0x6d
,
0x52
,
0x65
,
0x6d
,
0x69
,
0x6e
,
0x64
,
0x53
,
0x6b
,
0x69
,
0x6c
,
0x6e
,
0x64
,
0x12
,
0x23
,
0x0a
,
0x0d
,
0x61
,
0x73
,
0x72
,
0x5f
,
0x72
,
0x65
,
0x63
,
0x6f
,
0x67
,
0x6e
,
0x6c
,
0x12
,
0x56
,
0x0a
,
0x13
,
0x48
,
0x61
,
0x6e
,
0x64
,
0x6c
,
0x65
,
0x53
,
0x70
,
0x65
,
0x65
,
0x63
,
0x69
,
0x7a
,
0x65
,
0x18
,
0x05
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x0c
,
0x61
,
0x73
,
0x72
,
0x52
,
0x65
,
0x68
,
0x43
,
0x6f
,
0x6d
,
0x6d
,
0x61
,
0x6e
,
0x64
,
0x12
,
0x1e
,
0x2e
,
0x70
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x63
,
0x6f
,
0x67
,
0x6e
,
0x69
,
0x7a
,
0x65
,
0x1a
,
0x3d
,
0x0a
,
0x07
,
0x41
,
0x70
,
0x70
,
0x49
,
0x6e
,
0x2e
,
0x41
,
0x6c
,
0x61
,
0x72
,
0x6d
,
0x52
,
0x65
,
0x6d
,
0x69
,
0x6e
,
0x64
,
0x53
,
0x6b
,
0x69
,
0x6c
,
0x66
,
0x6f
,
0x12
,
0x14
,
0x0a
,
0x05
,
0x61
,
0x70
,
0x70
,
0x49
,
0x64
,
0x18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x6c
,
0x52
,
0x65
,
0x71
,
0x75
,
0x65
,
0x73
,
0x74
,
0x1a
,
0x1f
,
0x2e
,
0x70
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x09
,
0x52
,
0x05
,
0x61
,
0x70
,
0x70
,
0x49
,
0x64
,
0x12
,
0x1c
,
0x0a
,
0x09
,
0x72
,
0x65
,
0x71
,
0x75
,
0x2e
,
0x41
,
0x6c
,
0x61
,
0x72
,
0x6d
,
0x52
,
0x65
,
0x6d
,
0x69
,
0x6e
,
0x64
,
0x53
,
0x6b
,
0x69
,
0x6c
,
0x65
,
0x73
,
0x74
,
0x49
,
0x64
,
0x18
,
0x02
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x09
,
0x72
,
0x65
,
0x71
,
0x6c
,
0x52
,
0x65
,
0x73
,
0x70
,
0x6f
,
0x6e
,
0x73
,
0x65
,
0x42
,
0x13
,
0x5a
,
0x11
,
0x2e
,
0x2f
,
0x70
,
0x75
,
0x65
,
0x73
,
0x74
,
0x49
,
0x64
,
0x1a
,
0x2e
,
0x0a
,
0x08
,
0x55
,
0x73
,
0x65
,
0x72
,
0x49
,
0x6e
,
0x6b
,
0x67
,
0x2f
,
0x70
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x3b
,
0x70
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x62
,
0x06
,
0x66
,
0x6f
,
0x12
,
0x10
,
0x0a
,
0x03
,
0x75
,
0x69
,
0x64
,
0x18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x70
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x33
,
0x03
,
0x75
,
0x69
,
0x64
,
0x12
,
0x10
,
0x0a
,
0x03
,
0x68
,
0x69
,
0x64
,
0x18
,
0x02
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x03
,
0x68
,
0x69
,
0x64
,
0x1a
,
0x33
,
0x0a
,
0x07
,
0x44
,
0x65
,
0x76
,
0x49
,
0x6e
,
0x66
,
0x6f
,
0x12
,
0x10
,
0x0a
,
0x03
,
0x6d
,
0x61
,
0x63
,
0x18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x03
,
0x6d
,
0x61
,
0x63
,
0x12
,
0x16
,
0x0a
,
0x06
,
0x74
,
0x61
,
0x72
,
0x4d
,
0x61
,
0x63
,
0x18
,
0x02
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x06
,
0x74
,
0x61
,
0x72
,
0x4d
,
0x61
,
0x63
,
0x1a
,
0xbf
,
0x01
,
0x0a
,
0x07
,
0x43
,
0x6f
,
0x6d
,
0x6d
,
0x61
,
0x6e
,
0x64
,
0x12
,
0x10
,
0x0a
,
0x03
,
0x61
,
0x70
,
0x69
,
0x18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x03
,
0x61
,
0x70
,
0x69
,
0x12
,
0x16
,
0x0a
,
0x06
,
0x72
,
0x65
,
0x70
,
0x65
,
0x61
,
0x74
,
0x18
,
0x02
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x06
,
0x72
,
0x65
,
0x70
,
0x65
,
0x61
,
0x74
,
0x12
,
0x1c
,
0x0a
,
0x09
,
0x74
,
0x69
,
0x6d
,
0x65
,
0x73
,
0x74
,
0x61
,
0x6d
,
0x70
,
0x18
,
0x03
,
0x20
,
0x01
,
0x28
,
0x03
,
0x52
,
0x09
,
0x74
,
0x69
,
0x6d
,
0x65
,
0x73
,
0x74
,
0x61
,
0x6d
,
0x70
,
0x12
,
0x12
,
0x0a
,
0x04
,
0x64
,
0x61
,
0x74
,
0x65
,
0x18
,
0x04
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x04
,
0x64
,
0x61
,
0x74
,
0x65
,
0x12
,
0x12
,
0x0a
,
0x04
,
0x74
,
0x69
,
0x6d
,
0x65
,
0x18
,
0x05
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x04
,
0x74
,
0x69
,
0x6d
,
0x65
,
0x12
,
0x14
,
0x0a
,
0x05
,
0x65
,
0x76
,
0x65
,
0x6e
,
0x74
,
0x18
,
0x06
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x05
,
0x65
,
0x76
,
0x65
,
0x6e
,
0x74
,
0x12
,
0x16
,
0x0a
,
0x06
,
0x70
,
0x65
,
0x72
,
0x69
,
0x6f
,
0x64
,
0x18
,
0x07
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x06
,
0x70
,
0x65
,
0x72
,
0x69
,
0x6f
,
0x64
,
0x12
,
0x16
,
0x0a
,
0x06
,
0x6f
,
0x62
,
0x6a
,
0x65
,
0x63
,
0x74
,
0x18
,
0x08
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x06
,
0x6f
,
0x62
,
0x6a
,
0x65
,
0x63
,
0x74
,
0x22
,
0x8a
,
0x01
,
0x0a
,
0x18
,
0x41
,
0x6c
,
0x61
,
0x72
,
0x6d
,
0x52
,
0x65
,
0x6d
,
0x69
,
0x6e
,
0x64
,
0x53
,
0x6b
,
0x69
,
0x6c
,
0x6c
,
0x52
,
0x65
,
0x73
,
0x70
,
0x6f
,
0x6e
,
0x73
,
0x65
,
0x12
,
0x3e
,
0x0a
,
0x06
,
0x73
,
0x74
,
0x61
,
0x74
,
0x75
,
0x73
,
0x18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x0b
,
0x32
,
0x26
,
0x2e
,
0x70
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x2e
,
0x41
,
0x6c
,
0x61
,
0x72
,
0x6d
,
0x52
,
0x65
,
0x6d
,
0x69
,
0x6e
,
0x64
,
0x53
,
0x6b
,
0x69
,
0x6c
,
0x6c
,
0x52
,
0x65
,
0x73
,
0x70
,
0x6f
,
0x6e
,
0x73
,
0x65
,
0x2e
,
0x53
,
0x74
,
0x61
,
0x74
,
0x75
,
0x73
,
0x52
,
0x06
,
0x73
,
0x74
,
0x61
,
0x74
,
0x75
,
0x73
,
0x1a
,
0x2e
,
0x0a
,
0x06
,
0x53
,
0x74
,
0x61
,
0x74
,
0x75
,
0x73
,
0x12
,
0x12
,
0x0a
,
0x04
,
0x63
,
0x6f
,
0x64
,
0x65
,
0x18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x05
,
0x52
,
0x04
,
0x63
,
0x6f
,
0x64
,
0x65
,
0x12
,
0x10
,
0x0a
,
0x03
,
0x6d
,
0x73
,
0x67
,
0x18
,
0x02
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x03
,
0x6d
,
0x73
,
0x67
,
0x32
,
0x6a
,
0x0a
,
0x10
,
0x41
,
0x6c
,
0x61
,
0x72
,
0x6d
,
0x52
,
0x65
,
0x6d
,
0x69
,
0x6e
,
0x64
,
0x53
,
0x6b
,
0x69
,
0x6c
,
0x6c
,
0x12
,
0x56
,
0x0a
,
0x13
,
0x48
,
0x61
,
0x6e
,
0x64
,
0x6c
,
0x65
,
0x53
,
0x70
,
0x65
,
0x65
,
0x63
,
0x68
,
0x43
,
0x6f
,
0x6d
,
0x6d
,
0x61
,
0x6e
,
0x64
,
0x12
,
0x1e
,
0x2e
,
0x70
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x2e
,
0x41
,
0x6c
,
0x61
,
0x72
,
0x6d
,
0x52
,
0x65
,
0x6d
,
0x69
,
0x6e
,
0x64
,
0x53
,
0x6b
,
0x69
,
0x6c
,
0x6c
,
0x52
,
0x65
,
0x71
,
0x75
,
0x65
,
0x73
,
0x74
,
0x1a
,
0x1f
,
0x2e
,
0x70
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x2e
,
0x41
,
0x6c
,
0x61
,
0x72
,
0x6d
,
0x52
,
0x65
,
0x6d
,
0x69
,
0x6e
,
0x64
,
0x53
,
0x6b
,
0x69
,
0x6c
,
0x6c
,
0x52
,
0x65
,
0x73
,
0x70
,
0x6f
,
0x6e
,
0x73
,
0x65
,
0x42
,
0x13
,
0x5a
,
0x11
,
0x2e
,
0x2f
,
0x70
,
0x6b
,
0x67
,
0x2f
,
0x70
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x3b
,
0x70
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x62
,
0x06
,
0x70
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x33
,
}
}
var
(
var
(
...
@@ -550,29 +469,27 @@ func file_pkg_proto_alarm_remind_skill_proto_rawDescGZIP() []byte {
...
@@ -550,29 +469,27 @@ func file_pkg_proto_alarm_remind_skill_proto_rawDescGZIP() []byte {
return
file_pkg_proto_alarm_remind_skill_proto_rawDescData
return
file_pkg_proto_alarm_remind_skill_proto_rawDescData
}
}
var
file_pkg_proto_alarm_remind_skill_proto_msgTypes
=
make
([]
protoimpl
.
MessageInfo
,
7
)
var
file_pkg_proto_alarm_remind_skill_proto_msgTypes
=
make
([]
protoimpl
.
MessageInfo
,
6
)
var
file_pkg_proto_alarm_remind_skill_proto_goTypes
=
[]
interface
{}{
var
file_pkg_proto_alarm_remind_skill_proto_goTypes
=
[]
interface
{}{
(
*
AlarmRemindSkillRequest
)(
nil
),
// 0: proto.AlarmRemindSkillRequest
(
*
AlarmRemindSkillRequest
)(
nil
),
// 0: proto.AlarmRemindSkillRequest
(
*
AlarmRemindSkillResponse
)(
nil
),
// 1: proto.AlarmRemindSkillResponse
(
*
AlarmRemindSkillResponse
)(
nil
),
// 1: proto.AlarmRemindSkillResponse
(
*
AlarmRemindSkillRequest_AppInfo
)(
nil
),
// 2: proto.AlarmRemindSkillRequest.AppInfo
(
*
AlarmRemindSkillRequest_AppInfo
)(
nil
),
// 2: proto.AlarmRemindSkillRequest.AppInfo
(
*
AlarmRemindSkillRequest_UserInfo
)(
nil
),
// 3: proto.AlarmRemindSkillRequest.UserInfo
(
*
AlarmRemindSkillRequest_DevInfo
)(
nil
),
// 3: proto.AlarmRemindSkillRequest.DevInfo
(
*
AlarmRemindSkillRequest_DevInfo
)(
nil
),
// 4: proto.AlarmRemindSkillRequest.DevInfo
(
*
AlarmRemindSkillRequest_Command
)(
nil
),
// 4: proto.AlarmRemindSkillRequest.Command
(
*
AlarmRemindSkillRequest_Command
)(
nil
),
// 5: proto.AlarmRemindSkillRequest.Command
(
*
AlarmRemindSkillResponse_Status
)(
nil
),
// 5: proto.AlarmRemindSkillResponse.Status
(
*
AlarmRemindSkillResponse_Status
)(
nil
),
// 6: proto.AlarmRemindSkillResponse.Status
}
}
var
file_pkg_proto_alarm_remind_skill_proto_depIdxs
=
[]
int32
{
var
file_pkg_proto_alarm_remind_skill_proto_depIdxs
=
[]
int32
{
2
,
// 0: proto.AlarmRemindSkillRequest.appInfo:type_name -> proto.AlarmRemindSkillRequest.AppInfo
2
,
// 0: proto.AlarmRemindSkillRequest.appInfo:type_name -> proto.AlarmRemindSkillRequest.AppInfo
4
,
// 1: proto.AlarmRemindSkillRequest.devInfo:type_name -> proto.AlarmRemindSkillRequest.DevInfo
3
,
// 1: proto.AlarmRemindSkillRequest.devInfo:type_name -> proto.AlarmRemindSkillRequest.DevInfo
3
,
// 2: proto.AlarmRemindSkillRequest.userInfo:type_name -> proto.AlarmRemindSkillRequest.UserInfo
4
,
// 2: proto.AlarmRemindSkillRequest.command:type_name -> proto.AlarmRemindSkillRequest.Command
5
,
// 3: proto.AlarmRemindSkillRequest.command:type_name -> proto.AlarmRemindSkillRequest.Command
5
,
// 3: proto.AlarmRemindSkillResponse.status:type_name -> proto.AlarmRemindSkillResponse.Status
6
,
// 4: proto.AlarmRemindSkillResponse.status:type_name -> proto.AlarmRemindSkillResponse.Status
0
,
// 4: proto.AlarmRemindSkill.HandleSpeechCommand:input_type -> proto.AlarmRemindSkillRequest
0
,
// 5: proto.AlarmRemindSkill.HandleSpeechCommand:input_type -> proto.AlarmRemindSkillRequest
1
,
// 5: proto.AlarmRemindSkill.HandleSpeechCommand:output_type -> proto.AlarmRemindSkillResponse
1
,
// 6: proto.AlarmRemindSkill.HandleSpeechCommand:output_type -> proto.AlarmRemindSkillResponse
5
,
// [5:6] is the sub-list for method output_type
6
,
// [6:7] is the sub-list for method output_type
4
,
// [4:5] is the sub-list for method input_type
5
,
// [5:6] is the sub-list for method input_type
4
,
// [4:4] is the sub-list for extension type_name
5
,
// [5:5] is the sub-list for extension type_name
4
,
// [4:4] is the sub-list for extension extendee
5
,
// [5:5] is the sub-list for extension extendee
0
,
// [0:4] is the sub-list for field type_name
0
,
// [0:5] is the sub-list for field type_name
}
}
func
init
()
{
file_pkg_proto_alarm_remind_skill_proto_init
()
}
func
init
()
{
file_pkg_proto_alarm_remind_skill_proto_init
()
}
...
@@ -618,18 +535,6 @@ func file_pkg_proto_alarm_remind_skill_proto_init() {
...
@@ -618,18 +535,6 @@ func file_pkg_proto_alarm_remind_skill_proto_init() {
}
}
}
}
file_pkg_proto_alarm_remind_skill_proto_msgTypes
[
3
]
.
Exporter
=
func
(
v
interface
{},
i
int
)
interface
{}
{
file_pkg_proto_alarm_remind_skill_proto_msgTypes
[
3
]
.
Exporter
=
func
(
v
interface
{},
i
int
)
interface
{}
{
switch
v
:=
v
.
(
*
AlarmRemindSkillRequest_UserInfo
);
i
{
case
0
:
return
&
v
.
state
case
1
:
return
&
v
.
sizeCache
case
2
:
return
&
v
.
unknownFields
default
:
return
nil
}
}
file_pkg_proto_alarm_remind_skill_proto_msgTypes
[
4
]
.
Exporter
=
func
(
v
interface
{},
i
int
)
interface
{}
{
switch
v
:=
v
.
(
*
AlarmRemindSkillRequest_DevInfo
);
i
{
switch
v
:=
v
.
(
*
AlarmRemindSkillRequest_DevInfo
);
i
{
case
0
:
case
0
:
return
&
v
.
state
return
&
v
.
state
...
@@ -641,7 +546,7 @@ func file_pkg_proto_alarm_remind_skill_proto_init() {
...
@@ -641,7 +546,7 @@ func file_pkg_proto_alarm_remind_skill_proto_init() {
return
nil
return
nil
}
}
}
}
file_pkg_proto_alarm_remind_skill_proto_msgTypes
[
5
]
.
Exporter
=
func
(
v
interface
{},
i
int
)
interface
{}
{
file_pkg_proto_alarm_remind_skill_proto_msgTypes
[
4
]
.
Exporter
=
func
(
v
interface
{},
i
int
)
interface
{}
{
switch
v
:=
v
.
(
*
AlarmRemindSkillRequest_Command
);
i
{
switch
v
:=
v
.
(
*
AlarmRemindSkillRequest_Command
);
i
{
case
0
:
case
0
:
return
&
v
.
state
return
&
v
.
state
...
@@ -653,7 +558,7 @@ func file_pkg_proto_alarm_remind_skill_proto_init() {
...
@@ -653,7 +558,7 @@ func file_pkg_proto_alarm_remind_skill_proto_init() {
return
nil
return
nil
}
}
}
}
file_pkg_proto_alarm_remind_skill_proto_msgTypes
[
6
]
.
Exporter
=
func
(
v
interface
{},
i
int
)
interface
{}
{
file_pkg_proto_alarm_remind_skill_proto_msgTypes
[
5
]
.
Exporter
=
func
(
v
interface
{},
i
int
)
interface
{}
{
switch
v
:=
v
.
(
*
AlarmRemindSkillResponse_Status
);
i
{
switch
v
:=
v
.
(
*
AlarmRemindSkillResponse_Status
);
i
{
case
0
:
case
0
:
return
&
v
.
state
return
&
v
.
state
...
@@ -672,7 +577,7 @@ func file_pkg_proto_alarm_remind_skill_proto_init() {
...
@@ -672,7 +577,7 @@ func file_pkg_proto_alarm_remind_skill_proto_init() {
GoPackagePath
:
reflect
.
TypeOf
(
x
{})
.
PkgPath
(),
GoPackagePath
:
reflect
.
TypeOf
(
x
{})
.
PkgPath
(),
RawDescriptor
:
file_pkg_proto_alarm_remind_skill_proto_rawDesc
,
RawDescriptor
:
file_pkg_proto_alarm_remind_skill_proto_rawDesc
,
NumEnums
:
0
,
NumEnums
:
0
,
NumMessages
:
7
,
NumMessages
:
6
,
NumExtensions
:
0
,
NumExtensions
:
0
,
NumServices
:
1
,
NumServices
:
1
,
},
},
...
...
pkg/proto/alarm_remind_skill.proto
View file @
3950e916
...
@@ -10,29 +10,23 @@ message AlarmRemindSkillRequest{
...
@@ -10,29 +10,23 @@ message AlarmRemindSkillRequest{
string
appId
=
1
;
string
appId
=
1
;
string
requestId
=
2
;
string
requestId
=
2
;
}
}
message
UserInfo
{
string
uid
=
1
;
string
hid
=
2
;
}
message
DevInfo
{
message
DevInfo
{
string
mac
=
1
;
string
mac
=
1
;
string
tarMac
=
2
;
string
mid
=
2
;
string
vender
=
3
;
string
hid
=
4
;
// 模组id
string
homeId
=
5
;
//家庭id
string
uid
=
6
;
// 用户id(可以空,语音入口一般无法识别用户)
}
}
AppInfo
appInfo
=
1
;
AppInfo
appInfo
=
1
;
DevInfo
devInfo
=
2
;
DevInfo
devInfo
=
2
;
UserInfo
userInfo
=
3
;
message
Command
{
message
Command
{
string
api
=
1
;
string
api
=
1
;
// 意图
string
repeat
=
2
;
string
extra
=
2
;
// speech解析原字段 : 内部有content字段提取闹钟列表
int64
timestamp
=
3
;
string
object
=
3
;
// speech解析原字段:闹钟/提醒(日程)
string
date
=
4
;
string
time
=
5
;
string
event
=
6
;
string
period
=
7
;
string
object
=
8
;
// 区分品类,闹钟/日程(提醒)
}
}
Command
command
=
4
;
Command
command
=
3
;
string
asr_recognize
=
5
;
string
asr_recognize
=
4
;
}
}
message
AlarmRemindSkillResponse
{
message
AlarmRemindSkillResponse
{
...
...
service/connect/alarm.go
0 → 100644
View file @
3950e916
package
connect
import
(
"context"
"speech-nlu-parse/global"
"speech-nlu-parse/model"
"speech-nlu-parse/pkg/logger"
"speech-nlu-parse/pkg/proto"
"time"
)
const
(
Alarm
=
"alarm_remind"
)
func
AlarmGrpc
(
params
*
model
.
SpeechDomainParams
,
api
,
extra
,
object
string
)
(
*
proto
.
AlarmRemindSkillResponse
,
error
)
{
conn
,
err
:=
GrpcConn
(
Alarm
)
if
err
!=
nil
{
global
.
Logger
.
Errorf
(
"faild to connect: %v"
,
err
)
return
nil
,
err
}
ctx
,
cancel
:=
context
.
WithTimeout
(
context
.
Background
(),
time
.
Second
*
2
)
defer
cancel
()
c
:=
proto
.
NewAlarmRemindSkillClient
(
conn
)
req
:=
&
proto
.
AlarmRemindSkillRequest
{
AppInfo
:
&
proto
.
AlarmRemindSkillRequest_AppInfo
{
AppId
:
"speech-nlu-parse"
,
RequestId
:
params
.
RequestId
,
},
DevInfo
:
&
proto
.
AlarmRemindSkillRequest_DevInfo
{
Mac
:
params
.
Mac
,
Mid
:
params
.
Mid
,
Vender
:
params
.
MidType
,
Hid
:
""
,
HomeId
:
""
,
Uid
:
""
,
},
Command
:
&
proto
.
AlarmRemindSkillRequest_Command
{
Api
:
api
,
Extra
:
extra
,
Object
:
object
,
},
AsrRecognize
:
params
.
Query
,
}
resp
,
err
:=
c
.
HandleSpeechCommand
(
ctx
,
req
)
if
err
!=
nil
{
global
.
Logger
.
WithFields
(
logger
.
Fields
{
"requestId"
:
params
.
RequestId
,
"AlarmGrpc serverName"
:
Alarm
,
"AlarmGrpc request"
:
req
,
})
.
Errorf
(
"alarm grpc error: %v"
,
err
)
return
nil
,
err
}
global
.
Logger
.
WithFields
(
logger
.
Fields
{
"requestId"
:
params
.
RequestId
,
"AlarmGrpc serverName"
:
Alarm
,
"AlarmGrpc request"
:
req
,
"AlarmGrpc response"
:
resp
,
})
.
Info
(
"AlarmGrpc"
)
return
resp
,
nil
}
service/connect/music.go
View file @
3950e916
...
@@ -45,10 +45,15 @@ func MusicGrpc(params *model.SpeechDomainParams) (*proto.MusicSpotResponse, erro
...
@@ -45,10 +45,15 @@ func MusicGrpc(params *model.SpeechDomainParams) (*proto.MusicSpotResponse, erro
resp
,
err
:=
c
.
GetMusicList
(
ctx
,
req
)
resp
,
err
:=
c
.
GetMusicList
(
ctx
,
req
)
if
err
!=
nil
{
if
err
!=
nil
{
global
.
Logger
.
Errorf
(
"MusicGrpc error: %v"
,
err
)
global
.
Logger
.
WithFields
(
logger
.
Fields
{
"requestId"
:
params
.
RequestId
,
"MusicGrpc serverName"
:
MusicSpot
,
"MusicGrpc request"
:
req
,
})
.
Errorf
(
"MusicGrpc error: %v"
,
err
)
return
nil
,
err
return
nil
,
err
}
}
global
.
Logger
.
WithFields
(
logger
.
Fields
{
global
.
Logger
.
WithFields
(
logger
.
Fields
{
"requestId"
:
params
.
RequestId
,
"MusicGrpc serverName"
:
MusicSpot
,
"MusicGrpc serverName"
:
MusicSpot
,
"MusicGrpc request"
:
req
,
"MusicGrpc request"
:
req
,
"MusicGrpc response"
:
resp
,
"MusicGrpc response"
:
resp
,
...
...
service/speechNlu/domain.go
View file @
3950e916
...
@@ -359,33 +359,74 @@ func translateDomain(params *model.SpeechDomainParams) []byte {
...
@@ -359,33 +359,74 @@ func translateDomain(params *model.SpeechDomainParams) []byte {
return
Marshal
(
params
,
res
)
return
Marshal
(
params
,
res
)
}
}
func
alarmDevFilter
(
params
*
model
.
SpeechDomainParams
)
bool
{
func
alarmDomain
(
params
*
model
.
SpeechDomainParams
)
[]
byte
{
if
params
.
Mid
==
"10f05"
&&
params
.
MidType
==
"87654321"
{
if
!
params
.
CheckDm
()
||
!
params
.
CheckCommandParam
()
{
return
true
return
replyWithChat
(
error_reply
,
"doudi"
)
}
else
if
params
.
Mid
==
"10f05"
&&
params
.
MidType
==
"7e000024"
&&
params
.
AppKey
==
"a8814080829e11eda5c8e38bb1008e50"
{
return
true
}
}
return
false
var
result
model
.
ResponseBody
}
api
:=
params
.
SpeechWsResp
.
Dm
.
Command
.
Api
extra
:=
params
.
SpeechWsResp
.
Dm
.
Command
.
Param
.
Extra
object
:=
params
.
SpeechWsResp
.
Dm
.
Command
.
Param
.
Object
type
AlarmItem
struct
{
if
object
==
"闹钟"
{
Content
string
`json:"content"`
result
.
Header
.
Semantic
.
Domain
=
"alarm"
Id
string
`json:"id"`
}
else
{
Note
string
`json:"note"`
result
.
Header
.
Semantic
.
Domain
=
"reminder_v2"
RepeatType
int
`json:"repeatType"`
}
SpeechType
int
`json:"speechType"`
result
.
Header
.
Semantic
.
Code
=
0
Start
string
`json:"start"`
result
.
Header
.
Semantic
.
Msg
=
speech_nlu_parse
Type
int
`json:"type"`
result
.
AsrRecongize
=
params
.
SpeechWsResp
.
Dm
.
Input
Url
string
`json:"url"`
result
.
Header
.
Semantic
.
SessionComplete
=
params
.
SpeechWsResp
.
Dm
.
ShouldEndSession
//params.SpeechWsResp.Dm.ShouldEndSession
}
result
.
ResponseText
=
params
.
SpeechWsResp
.
Dm
.
Nlg
if
api
==
"ai.dui.dskdm.reminder.query"
{
result
.
Header
.
Semantic
.
Intent
=
"check"
result
.
Header
.
Semantic
.
SkillId
=
result
.
Header
.
Semantic
.
Domain
+
"."
+
result
.
Header
.
Semantic
.
Intent
}
else
if
api
==
"ai.dui.dskdm.reminder.insert"
{
result
.
Header
.
Semantic
.
Intent
=
"new"
result
.
Header
.
Semantic
.
SkillId
=
result
.
Header
.
Semantic
.
Domain
+
"."
+
result
.
Header
.
Semantic
.
Intent
resAlarm
,
err
:=
connect
.
AlarmGrpc
(
params
,
api
,
extra
,
object
)
if
err
!=
nil
{
global
.
Logger
.
WithFields
(
logger
.
Fields
{
"requestId"
:
params
.
RequestId
,
"mac"
:
params
.
Mac
,
"mid"
:
params
.
Mid
,
"vender"
:
params
.
MidType
,
})
.
Errorf
(
"connect.AlarmGrpc error:%v"
,
err
)
return
replyWithChat
(
error_reply
,
"doudi"
)
}
if
resAlarm
.
GetStatus
()
.
GetCode
()
==
0
{
return
Marshal
(
params
,
&
result
)
}
else
{
resultTextStr
:=
"网络不稳定,请稍后再试"
return
replyWithChat
(
resultTextStr
,
"chat.chat"
)
}
}
else
if
api
==
"ai.dui.dskdm.reminder.remove"
{
result
.
Header
.
Semantic
.
Intent
=
"delete"
result
.
Header
.
Semantic
.
SkillId
=
result
.
Header
.
Semantic
.
Domain
+
"."
+
result
.
Header
.
Semantic
.
Intent
if
!
params
.
SpeechWsResp
.
Dm
.
ShouldEndSession
{
return
Marshal
(
params
,
&
result
)
}
resAlarm
,
err
:=
connect
.
AlarmGrpc
(
params
,
api
,
extra
,
object
)
if
err
!=
nil
{
global
.
Logger
.
WithFields
(
logger
.
Fields
{
"requestId"
:
params
.
RequestId
,
"mac"
:
params
.
Mac
,
"mid"
:
params
.
Mid
,
"vender"
:
params
.
MidType
,
})
.
Errorf
(
"connect.AlarmGrpc error:%v"
,
err
)
return
replyWithChat
(
error_reply
,
"doudi"
)
}
if
resAlarm
.
GetStatus
()
.
GetCode
()
==
0
{
return
Marshal
(
params
,
&
result
)
}
else
{
resultTextStr
:=
"网络不稳定,请稍后再试"
return
replyWithChat
(
resultTextStr
,
"chat.chat"
)
}
}
// 闹钟待写
func
alarmDomain
(
params
*
model
.
SpeechDomainParams
)
[]
byte
{
//mac := params.Mac
//
//if !params.CheckDm() || !params.CheckDmParam() {
// return replyWithChat(error_reply, "doudi")
//}
//
//
//var result model.ResponseBody
//var result model.ResponseBody
//result.Header.Semantic.Code = 0
//result.Header.Semantic.Code = 0
...
@@ -480,8 +521,8 @@ func alarmDomain(params *model.SpeechDomainParams) []byte {
...
@@ -480,8 +521,8 @@ func alarmDomain(params *model.SpeechDomainParams) []byte {
//}
//}
//
//
//return Marshal(params, &result)
//return Marshal(params, &result)
resultTextStr
:=
"暂不支持闹钟设定"
return
replyWithChat
(
resultTextStr
,
"chat.chat"
)
return
Marshal
(
params
,
&
result
)
}
}
func
scienceDomain
(
params
*
model
.
SpeechDomainParams
)
[]
byte
{
func
scienceDomain
(
params
*
model
.
SpeechDomainParams
)
[]
byte
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment