diff options
author | 2023-11-12 04:03:26 +0500 | |
---|---|---|
committer | 2023-11-12 04:03:26 +0500 | |
commit | d433980265de4eccd343dcbfc92c3e7416057842 (patch) | |
tree | 02e364a622c40f333999271862edf4c73ded8c31 /lib/protos | |
parent | 8417e9daeecbdb3847de401b0fcc6304d246a787 (diff) |
Add sample command section to voice assistant app
Add a section that allows to choose and execute sample commands
and minor improvements to app UI.
Bug-AGL: SPEC-4906
Signed-off-by: Malik Talha <talhamalik727x@gmail.com>
Change-Id: I1a279c6ecd1904c428b8403d3ce0750bc063da3b
Diffstat (limited to 'lib/protos')
-rw-r--r-- | lib/protos/voice_agent.proto | 30 |
1 files changed, 27 insertions, 3 deletions
diff --git a/lib/protos/voice_agent.proto b/lib/protos/voice_agent.proto index 8c3ab65..40dfe6a 100644 --- a/lib/protos/voice_agent.proto +++ b/lib/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; |