From 0b59086cdddd40689e57969aa7914ba38f1ec2dd Mon Sep 17 00:00:00 2001 From: Anuj-S62 Date: Thu, 11 Jul 2024 15:18:31 +0530 Subject: Update Voice Agent Flutter App - update voice-agent flutter app to use whisper AI for speech-to-text functionality. - Integrated SharedPreferences to store the application state. Bug-AGL: SPEC-5200 Change-Id: I9a05b1d135c1fa07949333391ff828f166b7fe8e Signed-off-by: Anuj-S62 --- lib/protos/voice_agent.proto | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'lib/protos') diff --git a/lib/protos/voice_agent.proto b/lib/protos/voice_agent.proto index 40dfe6a..09b9461 100644 --- a/lib/protos/voice_agent.proto +++ b/lib/protos/voice_agent.proto @@ -11,6 +11,15 @@ service VoiceAgentService { rpc ExecuteCommand(ExecuteInput) returns (ExecuteResult); } +enum STTFramework { + VOSK = 0; + WHISPER = 1; +} + +enum OnlineMode { + ONLINE = 0; + OFFLINE = 1; +} enum RecordAction { START = 0; @@ -50,7 +59,7 @@ message Empty {} message ServiceStatus { string version = 1; - bool status = 2; + bool status = 2; string wake_word = 3; } @@ -69,6 +78,7 @@ message S_RecognizeVoiceControl { VoiceAudio audio_stream = 1; NLUModel nlu_model = 2; string stream_id = 3; + STTFramework stt_framework = 4; } message RecognizeVoiceControl { @@ -76,6 +86,8 @@ message RecognizeVoiceControl { NLUModel nlu_model = 2; RecordMode record_mode = 3; string stream_id = 4; + STTFramework stt_framework = 5; + OnlineMode online_mode = 6; } message RecognizeTextControl { -- cgit