diff options
author | Anuj-S62 <anuj603362@gmail.com> | 2024-07-11 15:18:31 +0530 |
---|---|---|
committer | Anuj-S62 <anuj603362@gmail.com> | 2024-07-21 19:52:11 +0530 |
commit | 0b59086cdddd40689e57969aa7914ba38f1ec2dd (patch) | |
tree | 975c38663f57d497eeab0e2649e51308aef9a755 /lib/grpc/generated/voice_agent.pbgrpc.dart | |
parent | ecd34435c1a74b39bf41d59ad479fdc85d0afb7b (diff) |
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 <anuj603362@gmail.com>
Diffstat (limited to 'lib/grpc/generated/voice_agent.pbgrpc.dart')
-rw-r--r-- | lib/grpc/generated/voice_agent.pbgrpc.dart | 176 |
1 files changed, 66 insertions, 110 deletions
diff --git a/lib/grpc/generated/voice_agent.pbgrpc.dart b/lib/grpc/generated/voice_agent.pbgrpc.dart index 502c797..5b31b44 100644 --- a/lib/grpc/generated/voice_agent.pbgrpc.dart +++ b/lib/grpc/generated/voice_agent.pbgrpc.dart @@ -21,92 +21,66 @@ export 'voice_agent.pb.dart'; // @$pb.GrpcServiceName('VoiceAgentService') class VoiceAgentServiceClient extends $grpc.Client { - static final _$checkServiceStatus = - $grpc.ClientMethod<$0.Empty, $0.ServiceStatus>( - '/VoiceAgentService/CheckServiceStatus', - ($0.Empty value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $0.ServiceStatus.fromBuffer(value)); - static final _$s_DetectWakeWord = - $grpc.ClientMethod<$0.VoiceAudio, $0.WakeWordStatus>( - '/VoiceAgentService/S_DetectWakeWord', - ($0.VoiceAudio value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $0.WakeWordStatus.fromBuffer(value)); - static final _$detectWakeWord = - $grpc.ClientMethod<$0.Empty, $0.WakeWordStatus>( - '/VoiceAgentService/DetectWakeWord', - ($0.Empty value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $0.WakeWordStatus.fromBuffer(value)); - static final _$s_RecognizeVoiceCommand = - $grpc.ClientMethod<$0.S_RecognizeVoiceControl, $0.RecognizeResult>( - '/VoiceAgentService/S_RecognizeVoiceCommand', - ($0.S_RecognizeVoiceControl value) => value.writeToBuffer(), - ($core.List<$core.int> value) => - $0.RecognizeResult.fromBuffer(value)); - static final _$recognizeVoiceCommand = - $grpc.ClientMethod<$0.RecognizeVoiceControl, $0.RecognizeResult>( - '/VoiceAgentService/RecognizeVoiceCommand', - ($0.RecognizeVoiceControl value) => value.writeToBuffer(), - ($core.List<$core.int> value) => - $0.RecognizeResult.fromBuffer(value)); - static final _$recognizeTextCommand = - $grpc.ClientMethod<$0.RecognizeTextControl, $0.RecognizeResult>( - '/VoiceAgentService/RecognizeTextCommand', - ($0.RecognizeTextControl value) => value.writeToBuffer(), - ($core.List<$core.int> value) => - $0.RecognizeResult.fromBuffer(value)); - static final _$executeCommand = - $grpc.ClientMethod<$0.ExecuteInput, $0.ExecuteResult>( - '/VoiceAgentService/ExecuteCommand', - ($0.ExecuteInput value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $0.ExecuteResult.fromBuffer(value)); + static final _$checkServiceStatus = $grpc.ClientMethod<$0.Empty, $0.ServiceStatus>( + '/VoiceAgentService/CheckServiceStatus', + ($0.Empty value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $0.ServiceStatus.fromBuffer(value)); + static final _$s_DetectWakeWord = $grpc.ClientMethod<$0.VoiceAudio, $0.WakeWordStatus>( + '/VoiceAgentService/S_DetectWakeWord', + ($0.VoiceAudio value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $0.WakeWordStatus.fromBuffer(value)); + static final _$detectWakeWord = $grpc.ClientMethod<$0.Empty, $0.WakeWordStatus>( + '/VoiceAgentService/DetectWakeWord', + ($0.Empty value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $0.WakeWordStatus.fromBuffer(value)); + static final _$s_RecognizeVoiceCommand = $grpc.ClientMethod<$0.S_RecognizeVoiceControl, $0.RecognizeResult>( + '/VoiceAgentService/S_RecognizeVoiceCommand', + ($0.S_RecognizeVoiceControl value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $0.RecognizeResult.fromBuffer(value)); + static final _$recognizeVoiceCommand = $grpc.ClientMethod<$0.RecognizeVoiceControl, $0.RecognizeResult>( + '/VoiceAgentService/RecognizeVoiceCommand', + ($0.RecognizeVoiceControl value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $0.RecognizeResult.fromBuffer(value)); + static final _$recognizeTextCommand = $grpc.ClientMethod<$0.RecognizeTextControl, $0.RecognizeResult>( + '/VoiceAgentService/RecognizeTextCommand', + ($0.RecognizeTextControl value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $0.RecognizeResult.fromBuffer(value)); + static final _$executeCommand = $grpc.ClientMethod<$0.ExecuteInput, $0.ExecuteResult>( + '/VoiceAgentService/ExecuteCommand', + ($0.ExecuteInput value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $0.ExecuteResult.fromBuffer(value)); VoiceAgentServiceClient($grpc.ClientChannel channel, {$grpc.CallOptions? options, $core.Iterable<$grpc.ClientInterceptor>? interceptors}) - : super(channel, options: options, interceptors: interceptors); + : super(channel, options: options, + interceptors: interceptors); - $grpc.ResponseFuture<$0.ServiceStatus> checkServiceStatus($0.Empty request, - {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$0.ServiceStatus> checkServiceStatus($0.Empty request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$checkServiceStatus, request, options: options); } - $grpc.ResponseStream<$0.WakeWordStatus> s_DetectWakeWord( - $async.Stream<$0.VoiceAudio> request, - {$grpc.CallOptions? options}) { + $grpc.ResponseStream<$0.WakeWordStatus> s_DetectWakeWord($async.Stream<$0.VoiceAudio> request, {$grpc.CallOptions? options}) { return $createStreamingCall(_$s_DetectWakeWord, request, options: options); } - $grpc.ResponseStream<$0.WakeWordStatus> detectWakeWord($0.Empty request, - {$grpc.CallOptions? options}) { - return $createStreamingCall( - _$detectWakeWord, $async.Stream.fromIterable([request]), - options: options); + $grpc.ResponseStream<$0.WakeWordStatus> detectWakeWord($0.Empty request, {$grpc.CallOptions? options}) { + return $createStreamingCall(_$detectWakeWord, $async.Stream.fromIterable([request]), options: options); } - $grpc.ResponseFuture<$0.RecognizeResult> s_RecognizeVoiceCommand( - $async.Stream<$0.S_RecognizeVoiceControl> request, - {$grpc.CallOptions? options}) { - return $createStreamingCall(_$s_RecognizeVoiceCommand, request, - options: options) - .single; + $grpc.ResponseFuture<$0.RecognizeResult> s_RecognizeVoiceCommand($async.Stream<$0.S_RecognizeVoiceControl> request, {$grpc.CallOptions? options}) { + return $createStreamingCall(_$s_RecognizeVoiceCommand, request, options: options).single; } - $grpc.ResponseFuture<$0.RecognizeResult> recognizeVoiceCommand( - $async.Stream<$0.RecognizeVoiceControl> request, - {$grpc.CallOptions? options}) { - return $createStreamingCall(_$recognizeVoiceCommand, request, - options: options) - .single; + $grpc.ResponseFuture<$0.RecognizeResult> recognizeVoiceCommand($async.Stream<$0.RecognizeVoiceControl> request, {$grpc.CallOptions? options}) { + return $createStreamingCall(_$recognizeVoiceCommand, request, options: options).single; } - $grpc.ResponseFuture<$0.RecognizeResult> recognizeTextCommand( - $0.RecognizeTextControl request, - {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$0.RecognizeResult> recognizeTextCommand($0.RecognizeTextControl request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$recognizeTextCommand, request, options: options); } - $grpc.ResponseFuture<$0.ExecuteResult> executeCommand($0.ExecuteInput request, - {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$0.ExecuteResult> executeCommand($0.ExecuteInput request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$executeCommand, request, options: options); } } @@ -137,31 +111,26 @@ abstract class VoiceAgentServiceBase extends $grpc.Service { true, ($core.List<$core.int> value) => $0.Empty.fromBuffer(value), ($0.WakeWordStatus value) => value.writeToBuffer())); - $addMethod( - $grpc.ServiceMethod<$0.S_RecognizeVoiceControl, $0.RecognizeResult>( - 'S_RecognizeVoiceCommand', - s_RecognizeVoiceCommand, - true, - false, - ($core.List<$core.int> value) => - $0.S_RecognizeVoiceControl.fromBuffer(value), - ($0.RecognizeResult value) => value.writeToBuffer())); - $addMethod( - $grpc.ServiceMethod<$0.RecognizeVoiceControl, $0.RecognizeResult>( - 'RecognizeVoiceCommand', - recognizeVoiceCommand, - true, - false, - ($core.List<$core.int> value) => - $0.RecognizeVoiceControl.fromBuffer(value), - ($0.RecognizeResult value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$0.S_RecognizeVoiceControl, $0.RecognizeResult>( + 'S_RecognizeVoiceCommand', + s_RecognizeVoiceCommand, + true, + false, + ($core.List<$core.int> value) => $0.S_RecognizeVoiceControl.fromBuffer(value), + ($0.RecognizeResult value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$0.RecognizeVoiceControl, $0.RecognizeResult>( + 'RecognizeVoiceCommand', + recognizeVoiceCommand, + true, + false, + ($core.List<$core.int> value) => $0.RecognizeVoiceControl.fromBuffer(value), + ($0.RecognizeResult value) => value.writeToBuffer())); $addMethod($grpc.ServiceMethod<$0.RecognizeTextControl, $0.RecognizeResult>( 'RecognizeTextCommand', recognizeTextCommand_Pre, false, false, - ($core.List<$core.int> value) => - $0.RecognizeTextControl.fromBuffer(value), + ($core.List<$core.int> value) => $0.RecognizeTextControl.fromBuffer(value), ($0.RecognizeResult value) => value.writeToBuffer())); $addMethod($grpc.ServiceMethod<$0.ExecuteInput, $0.ExecuteResult>( 'ExecuteCommand', @@ -172,40 +141,27 @@ abstract class VoiceAgentServiceBase extends $grpc.Service { ($0.ExecuteResult value) => value.writeToBuffer())); } - $async.Future<$0.ServiceStatus> checkServiceStatus_Pre( - $grpc.ServiceCall call, $async.Future<$0.Empty> request) async { + $async.Future<$0.ServiceStatus> checkServiceStatus_Pre($grpc.ServiceCall call, $async.Future<$0.Empty> request) async { return checkServiceStatus(call, await request); } - $async.Stream<$0.WakeWordStatus> detectWakeWord_Pre( - $grpc.ServiceCall call, $async.Future<$0.Empty> request) async* { + $async.Stream<$0.WakeWordStatus> detectWakeWord_Pre($grpc.ServiceCall call, $async.Future<$0.Empty> request) async* { yield* detectWakeWord(call, await request); } - $async.Future<$0.RecognizeResult> recognizeTextCommand_Pre( - $grpc.ServiceCall call, - $async.Future<$0.RecognizeTextControl> request) async { + $async.Future<$0.RecognizeResult> recognizeTextCommand_Pre($grpc.ServiceCall call, $async.Future<$0.RecognizeTextControl> request) async { return recognizeTextCommand(call, await request); } - $async.Future<$0.ExecuteResult> executeCommand_Pre( - $grpc.ServiceCall call, $async.Future<$0.ExecuteInput> request) async { + $async.Future<$0.ExecuteResult> executeCommand_Pre($grpc.ServiceCall call, $async.Future<$0.ExecuteInput> request) async { return executeCommand(call, await request); } - $async.Future<$0.ServiceStatus> checkServiceStatus( - $grpc.ServiceCall call, $0.Empty request); - $async.Stream<$0.WakeWordStatus> s_DetectWakeWord( - $grpc.ServiceCall call, $async.Stream<$0.VoiceAudio> request); - $async.Stream<$0.WakeWordStatus> detectWakeWord( - $grpc.ServiceCall call, $0.Empty request); - $async.Future<$0.RecognizeResult> s_RecognizeVoiceCommand( - $grpc.ServiceCall call, - $async.Stream<$0.S_RecognizeVoiceControl> request); - $async.Future<$0.RecognizeResult> recognizeVoiceCommand( - $grpc.ServiceCall call, $async.Stream<$0.RecognizeVoiceControl> request); - $async.Future<$0.RecognizeResult> recognizeTextCommand( - $grpc.ServiceCall call, $0.RecognizeTextControl request); - $async.Future<$0.ExecuteResult> executeCommand( - $grpc.ServiceCall call, $0.ExecuteInput request); + $async.Future<$0.ServiceStatus> checkServiceStatus($grpc.ServiceCall call, $0.Empty request); + $async.Stream<$0.WakeWordStatus> s_DetectWakeWord($grpc.ServiceCall call, $async.Stream<$0.VoiceAudio> request); + $async.Stream<$0.WakeWordStatus> detectWakeWord($grpc.ServiceCall call, $0.Empty request); + $async.Future<$0.RecognizeResult> s_RecognizeVoiceCommand($grpc.ServiceCall call, $async.Stream<$0.S_RecognizeVoiceControl> request); + $async.Future<$0.RecognizeResult> recognizeVoiceCommand($grpc.ServiceCall call, $async.Stream<$0.RecognizeVoiceControl> request); + $async.Future<$0.RecognizeResult> recognizeTextCommand($grpc.ServiceCall call, $0.RecognizeTextControl request); + $async.Future<$0.ExecuteResult> executeCommand($grpc.ServiceCall call, $0.ExecuteInput request); } |