aboutsummaryrefslogtreecommitdiffstats
path: root/agl_service_voiceagent/protos
diff options
context:
space:
mode:
authorMalik Talha <talhamalik727x@gmail.com>2023-11-12 03:50:42 +0500
committerMalik Talha <talhamalik727x@gmail.com>2023-11-12 03:50:42 +0500
commit9629533242da050b0d30173d6becea20191c0b2b (patch)
tree137db0e12094773f364aa3a5ca8ba0810cd7e1aa /agl_service_voiceagent/protos
parenta644c90d7409f48c49fbd5ddca7ecfe35de15953 (diff)
Add grpc support and improvements to voice agent
Add grpc support, enhance logging functionality, re-write the client side code, add new rpc end point to handle text-based commands. and minor bug fixes. Bug-AGL: SPEC-4906 Signed-off-by: Malik Talha <talhamalik727x@gmail.com> Change-Id: If65c5940a78c5496110ff596fa744e3c93c78033
Diffstat (limited to 'agl_service_voiceagent/protos')
-rw-r--r--agl_service_voiceagent/protos/voice_agent.proto30
1 files changed, 27 insertions, 3 deletions
diff --git a/agl_service_voiceagent/protos/voice_agent.proto b/agl_service_voiceagent/protos/voice_agent.proto
index 8c3ab65..40dfe6a 100644
--- a/agl_service_voiceagent/protos/voice_agent.proto
+++ b/agl_service_voiceagent/protos/voice_agent.proto
@@ -3,9 +3,12 @@ syntax = "proto3";
service VoiceAgentService {
rpc CheckServiceStatus(Empty) returns (ServiceStatus);
+ rpc S_DetectWakeWord(stream VoiceAudio) returns (stream WakeWordStatus); // Stream version of DetectWakeWord, assumes audio is coming from client
rpc DetectWakeWord(Empty) returns (stream WakeWordStatus);
- rpc RecognizeVoiceCommand(stream RecognizeControl) returns (RecognizeResult);
- rpc ExecuteVoiceCommand(ExecuteInput) returns (ExecuteResult);
+ rpc S_RecognizeVoiceCommand(stream S_RecognizeVoiceControl) returns (RecognizeResult); // Stream version of RecognizeVoiceCommand, assumes audio is coming from client
+ rpc RecognizeVoiceCommand(stream RecognizeVoiceControl) returns (RecognizeResult);
+ rpc RecognizeTextCommand(RecognizeTextControl) returns (RecognizeResult);
+ rpc ExecuteCommand(ExecuteInput) returns (ExecuteResult);
}
@@ -30,6 +33,8 @@ enum RecognizeStatusType {
REC_PROCESSING = 2;
VOICE_NOT_RECOGNIZED = 3;
INTENT_NOT_RECOGNIZED = 4;
+ TEXT_NOT_RECOGNIZED = 5;
+ NLU_MODEL_NOT_SUPPORTED = 6;
}
enum ExecuteStatusType {
@@ -46,19 +51,38 @@ message Empty {}
message ServiceStatus {
string version = 1;
bool status = 2;
+ string wake_word = 3;
+}
+
+message VoiceAudio {
+ bytes audio_chunk = 1;
+ string audio_format = 2;
+ int32 sample_rate = 3;
+ string language = 4;
}
message WakeWordStatus {
bool status = 1;
}
-message RecognizeControl {
+message S_RecognizeVoiceControl {
+ VoiceAudio audio_stream = 1;
+ NLUModel nlu_model = 2;
+ string stream_id = 3;
+}
+
+message RecognizeVoiceControl {
RecordAction action = 1;
NLUModel nlu_model = 2;
RecordMode record_mode = 3;
string stream_id = 4;
}
+message RecognizeTextControl {
+ string text_command = 1;
+ NLUModel nlu_model = 2;
+}
+
message IntentSlot {
string name = 1;
string value = 2;