diff options
Diffstat (limited to 'lib/grpc/generated')
-rw-r--r-- | lib/grpc/generated/voice_agent.pb.dart | 70 | ||||
-rw-r--r-- | lib/grpc/generated/voice_agent.pbenum.dart | 30 | ||||
-rw-r--r-- | lib/grpc/generated/voice_agent.pbgrpc.dart | 176 | ||||
-rw-r--r-- | lib/grpc/generated/voice_agent.pbjson.dart | 74 |
4 files changed, 238 insertions, 112 deletions
diff --git a/lib/grpc/generated/voice_agent.pb.dart b/lib/grpc/generated/voice_agent.pb.dart index 2c0f9fa..892b95e 100644 --- a/lib/grpc/generated/voice_agent.pb.dart +++ b/lib/grpc/generated/voice_agent.pb.dart @@ -9,6 +9,7 @@ // ignore_for_file: non_constant_identifier_names, prefer_final_fields // ignore_for_file: unnecessary_import, unnecessary_this, unused_import +import 'dart:async' as $async; import 'dart:core' as $core; import 'package:protobuf/protobuf.dart' as $pb; @@ -274,6 +275,7 @@ class S_RecognizeVoiceControl extends $pb.GeneratedMessage { VoiceAudio? audioStream, NLUModel? nluModel, $core.String? streamId, + STTFramework? sttFramework, }) { final $result = create(); if (audioStream != null) { @@ -285,6 +287,9 @@ class S_RecognizeVoiceControl extends $pb.GeneratedMessage { if (streamId != null) { $result.streamId = streamId; } + if (sttFramework != null) { + $result.sttFramework = sttFramework; + } return $result; } S_RecognizeVoiceControl._() : super(); @@ -295,6 +300,7 @@ class S_RecognizeVoiceControl extends $pb.GeneratedMessage { ..aOM<VoiceAudio>(1, _omitFieldNames ? '' : 'audioStream', subBuilder: VoiceAudio.create) ..e<NLUModel>(2, _omitFieldNames ? '' : 'nluModel', $pb.PbFieldType.OE, defaultOrMaker: NLUModel.SNIPS, valueOf: NLUModel.valueOf, enumValues: NLUModel.values) ..aOS(3, _omitFieldNames ? '' : 'streamId') + ..e<STTFramework>(4, _omitFieldNames ? '' : 'sttFramework', $pb.PbFieldType.OE, defaultOrMaker: STTFramework.VOSK, valueOf: STTFramework.valueOf, enumValues: STTFramework.values) ..hasRequiredFields = false ; @@ -347,6 +353,15 @@ class S_RecognizeVoiceControl extends $pb.GeneratedMessage { $core.bool hasStreamId() => $_has(2); @$pb.TagNumber(3) void clearStreamId() => clearField(3); + + @$pb.TagNumber(4) + STTFramework get sttFramework => $_getN(3); + @$pb.TagNumber(4) + set sttFramework(STTFramework v) { setField(4, v); } + @$pb.TagNumber(4) + $core.bool hasSttFramework() => $_has(3); + @$pb.TagNumber(4) + void clearSttFramework() => clearField(4); } class RecognizeVoiceControl extends $pb.GeneratedMessage { @@ -355,6 +370,8 @@ class RecognizeVoiceControl extends $pb.GeneratedMessage { NLUModel? nluModel, RecordMode? recordMode, $core.String? streamId, + STTFramework? sttFramework, + OnlineMode? onlineMode, }) { final $result = create(); if (action != null) { @@ -369,6 +386,12 @@ class RecognizeVoiceControl extends $pb.GeneratedMessage { if (streamId != null) { $result.streamId = streamId; } + if (sttFramework != null) { + $result.sttFramework = sttFramework; + } + if (onlineMode != null) { + $result.onlineMode = onlineMode; + } return $result; } RecognizeVoiceControl._() : super(); @@ -380,6 +403,8 @@ class RecognizeVoiceControl extends $pb.GeneratedMessage { ..e<NLUModel>(2, _omitFieldNames ? '' : 'nluModel', $pb.PbFieldType.OE, defaultOrMaker: NLUModel.SNIPS, valueOf: NLUModel.valueOf, enumValues: NLUModel.values) ..e<RecordMode>(3, _omitFieldNames ? '' : 'recordMode', $pb.PbFieldType.OE, defaultOrMaker: RecordMode.MANUAL, valueOf: RecordMode.valueOf, enumValues: RecordMode.values) ..aOS(4, _omitFieldNames ? '' : 'streamId') + ..e<STTFramework>(5, _omitFieldNames ? '' : 'sttFramework', $pb.PbFieldType.OE, defaultOrMaker: STTFramework.VOSK, valueOf: STTFramework.valueOf, enumValues: STTFramework.values) + ..e<OnlineMode>(6, _omitFieldNames ? '' : 'onlineMode', $pb.PbFieldType.OE, defaultOrMaker: OnlineMode.ONLINE, valueOf: OnlineMode.valueOf, enumValues: OnlineMode.values) ..hasRequiredFields = false ; @@ -439,6 +464,24 @@ class RecognizeVoiceControl extends $pb.GeneratedMessage { $core.bool hasStreamId() => $_has(3); @$pb.TagNumber(4) void clearStreamId() => clearField(4); + + @$pb.TagNumber(5) + STTFramework get sttFramework => $_getN(4); + @$pb.TagNumber(5) + set sttFramework(STTFramework v) { setField(5, v); } + @$pb.TagNumber(5) + $core.bool hasSttFramework() => $_has(4); + @$pb.TagNumber(5) + void clearSttFramework() => clearField(5); + + @$pb.TagNumber(6) + OnlineMode get onlineMode => $_getN(5); + @$pb.TagNumber(6) + set onlineMode(OnlineMode v) { setField(6, v); } + @$pb.TagNumber(6) + $core.bool hasOnlineMode() => $_has(5); + @$pb.TagNumber(6) + void clearOnlineMode() => clearField(6); } class RecognizeTextControl extends $pb.GeneratedMessage { @@ -791,6 +834,33 @@ class ExecuteResult extends $pb.GeneratedMessage { void clearStatus() => clearField(2); } +class VoiceAgentServiceApi { + $pb.RpcClient _client; + VoiceAgentServiceApi(this._client); + + $async.Future<ServiceStatus> checkServiceStatus($pb.ClientContext? ctx, Empty request) => + _client.invoke<ServiceStatus>(ctx, 'VoiceAgentService', 'CheckServiceStatus', request, ServiceStatus()) + ; + $async.Future<WakeWordStatus> s_DetectWakeWord($pb.ClientContext? ctx, VoiceAudio request) => + _client.invoke<WakeWordStatus>(ctx, 'VoiceAgentService', 'S_DetectWakeWord', request, WakeWordStatus()) + ; + $async.Future<WakeWordStatus> detectWakeWord($pb.ClientContext? ctx, Empty request) => + _client.invoke<WakeWordStatus>(ctx, 'VoiceAgentService', 'DetectWakeWord', request, WakeWordStatus()) + ; + $async.Future<RecognizeResult> s_RecognizeVoiceCommand($pb.ClientContext? ctx, S_RecognizeVoiceControl request) => + _client.invoke<RecognizeResult>(ctx, 'VoiceAgentService', 'S_RecognizeVoiceCommand', request, RecognizeResult()) + ; + $async.Future<RecognizeResult> recognizeVoiceCommand($pb.ClientContext? ctx, RecognizeVoiceControl request) => + _client.invoke<RecognizeResult>(ctx, 'VoiceAgentService', 'RecognizeVoiceCommand', request, RecognizeResult()) + ; + $async.Future<RecognizeResult> recognizeTextCommand($pb.ClientContext? ctx, RecognizeTextControl request) => + _client.invoke<RecognizeResult>(ctx, 'VoiceAgentService', 'RecognizeTextCommand', request, RecognizeResult()) + ; + $async.Future<ExecuteResult> executeCommand($pb.ClientContext? ctx, ExecuteInput request) => + _client.invoke<ExecuteResult>(ctx, 'VoiceAgentService', 'ExecuteCommand', request, ExecuteResult()) + ; +} + const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/lib/grpc/generated/voice_agent.pbenum.dart b/lib/grpc/generated/voice_agent.pbenum.dart index 78da13f..51e7427 100644 --- a/lib/grpc/generated/voice_agent.pbenum.dart +++ b/lib/grpc/generated/voice_agent.pbenum.dart @@ -13,6 +13,36 @@ import 'dart:core' as $core; import 'package:protobuf/protobuf.dart' as $pb; +class STTFramework extends $pb.ProtobufEnum { + static const STTFramework VOSK = STTFramework._(0, _omitEnumNames ? '' : 'VOSK'); + static const STTFramework WHISPER = STTFramework._(1, _omitEnumNames ? '' : 'WHISPER'); + + static const $core.List<STTFramework> values = <STTFramework> [ + VOSK, + WHISPER, + ]; + + static final $core.Map<$core.int, STTFramework> _byValue = $pb.ProtobufEnum.initByValue(values); + static STTFramework? valueOf($core.int value) => _byValue[value]; + + const STTFramework._($core.int v, $core.String n) : super(v, n); +} + +class OnlineMode extends $pb.ProtobufEnum { + static const OnlineMode ONLINE = OnlineMode._(0, _omitEnumNames ? '' : 'ONLINE'); + static const OnlineMode OFFLINE = OnlineMode._(1, _omitEnumNames ? '' : 'OFFLINE'); + + static const $core.List<OnlineMode> values = <OnlineMode> [ + ONLINE, + OFFLINE, + ]; + + static final $core.Map<$core.int, OnlineMode> _byValue = $pb.ProtobufEnum.initByValue(values); + static OnlineMode? valueOf($core.int value) => _byValue[value]; + + const OnlineMode._($core.int v, $core.String n) : super(v, n); +} + class RecordAction extends $pb.ProtobufEnum { static const RecordAction START = RecordAction._(0, _omitEnumNames ? '' : 'START'); static const RecordAction STOP = RecordAction._(1, _omitEnumNames ? '' : 'STOP'); 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); } diff --git a/lib/grpc/generated/voice_agent.pbjson.dart b/lib/grpc/generated/voice_agent.pbjson.dart index 6fa9502..1b8365d 100644 --- a/lib/grpc/generated/voice_agent.pbjson.dart +++ b/lib/grpc/generated/voice_agent.pbjson.dart @@ -13,6 +13,32 @@ import 'dart:convert' as $convert; import 'dart:core' as $core; import 'dart:typed_data' as $typed_data; +@$core.Deprecated('Use sTTFrameworkDescriptor instead') +const STTFramework$json = { + '1': 'STTFramework', + '2': [ + {'1': 'VOSK', '2': 0}, + {'1': 'WHISPER', '2': 1}, + ], +}; + +/// Descriptor for `STTFramework`. Decode as a `google.protobuf.EnumDescriptorProto`. +final $typed_data.Uint8List sTTFrameworkDescriptor = $convert.base64Decode( + 'CgxTVFRGcmFtZXdvcmsSCAoEVk9TSxAAEgsKB1dISVNQRVIQAQ=='); + +@$core.Deprecated('Use onlineModeDescriptor instead') +const OnlineMode$json = { + '1': 'OnlineMode', + '2': [ + {'1': 'ONLINE', '2': 0}, + {'1': 'OFFLINE', '2': 1}, + ], +}; + +/// Descriptor for `OnlineMode`. Decode as a `google.protobuf.EnumDescriptorProto`. +final $typed_data.Uint8List onlineModeDescriptor = $convert.base64Decode( + 'CgpPbmxpbmVNb2RlEgoKBk9OTElORRAAEgsKB09GRkxJTkUQAQ=='); + @$core.Deprecated('Use recordActionDescriptor instead') const RecordAction$json = { '1': 'RecordAction', @@ -151,6 +177,7 @@ const S_RecognizeVoiceControl$json = { {'1': 'audio_stream', '3': 1, '4': 1, '5': 11, '6': '.VoiceAudio', '10': 'audioStream'}, {'1': 'nlu_model', '3': 2, '4': 1, '5': 14, '6': '.NLUModel', '10': 'nluModel'}, {'1': 'stream_id', '3': 3, '4': 1, '5': 9, '10': 'streamId'}, + {'1': 'stt_framework', '3': 4, '4': 1, '5': 14, '6': '.STTFramework', '10': 'sttFramework'}, ], }; @@ -158,7 +185,8 @@ const S_RecognizeVoiceControl$json = { final $typed_data.Uint8List s_RecognizeVoiceControlDescriptor = $convert.base64Decode( 'ChdTX1JlY29nbml6ZVZvaWNlQ29udHJvbBIuCgxhdWRpb19zdHJlYW0YASABKAsyCy5Wb2ljZU' 'F1ZGlvUgthdWRpb1N0cmVhbRImCglubHVfbW9kZWwYAiABKA4yCS5OTFVNb2RlbFIIbmx1TW9k' - 'ZWwSGwoJc3RyZWFtX2lkGAMgASgJUghzdHJlYW1JZA=='); + 'ZWwSGwoJc3RyZWFtX2lkGAMgASgJUghzdHJlYW1JZBIyCg1zdHRfZnJhbWV3b3JrGAQgASgOMg' + '0uU1RURnJhbWV3b3JrUgxzdHRGcmFtZXdvcms='); @$core.Deprecated('Use recognizeVoiceControlDescriptor instead') const RecognizeVoiceControl$json = { @@ -168,6 +196,8 @@ const RecognizeVoiceControl$json = { {'1': 'nlu_model', '3': 2, '4': 1, '5': 14, '6': '.NLUModel', '10': 'nluModel'}, {'1': 'record_mode', '3': 3, '4': 1, '5': 14, '6': '.RecordMode', '10': 'recordMode'}, {'1': 'stream_id', '3': 4, '4': 1, '5': 9, '10': 'streamId'}, + {'1': 'stt_framework', '3': 5, '4': 1, '5': 14, '6': '.STTFramework', '10': 'sttFramework'}, + {'1': 'online_mode', '3': 6, '4': 1, '5': 14, '6': '.OnlineMode', '10': 'onlineMode'}, ], }; @@ -176,7 +206,8 @@ final $typed_data.Uint8List recognizeVoiceControlDescriptor = $convert.base64Dec 'ChVSZWNvZ25pemVWb2ljZUNvbnRyb2wSJQoGYWN0aW9uGAEgASgOMg0uUmVjb3JkQWN0aW9uUg' 'ZhY3Rpb24SJgoJbmx1X21vZGVsGAIgASgOMgkuTkxVTW9kZWxSCG5sdU1vZGVsEiwKC3JlY29y' 'ZF9tb2RlGAMgASgOMgsuUmVjb3JkTW9kZVIKcmVjb3JkTW9kZRIbCglzdHJlYW1faWQYBCABKA' - 'lSCHN0cmVhbUlk'); + 'lSCHN0cmVhbUlkEjIKDXN0dF9mcmFtZXdvcmsYBSABKA4yDS5TVFRGcmFtZXdvcmtSDHN0dEZy' + 'YW1ld29yaxIsCgtvbmxpbmVfbW9kZRgGIAEoDjILLk9ubGluZU1vZGVSCm9ubGluZU1vZGU='); @$core.Deprecated('Use recognizeTextControlDescriptor instead') const RecognizeTextControl$json = { @@ -252,3 +283,42 @@ final $typed_data.Uint8List executeResultDescriptor = $convert.base64Decode( 'Cg1FeGVjdXRlUmVzdWx0EhoKCHJlc3BvbnNlGAEgASgJUghyZXNwb25zZRIqCgZzdGF0dXMYAi' 'ABKA4yEi5FeGVjdXRlU3RhdHVzVHlwZVIGc3RhdHVz'); +const $core.Map<$core.String, $core.dynamic> VoiceAgentServiceBase$json = { + '1': 'VoiceAgentService', + '2': [ + {'1': 'CheckServiceStatus', '2': '.Empty', '3': '.ServiceStatus'}, + {'1': 'S_DetectWakeWord', '2': '.VoiceAudio', '3': '.WakeWordStatus', '5': true, '6': true}, + {'1': 'DetectWakeWord', '2': '.Empty', '3': '.WakeWordStatus', '6': true}, + {'1': 'S_RecognizeVoiceCommand', '2': '.S_RecognizeVoiceControl', '3': '.RecognizeResult', '5': true}, + {'1': 'RecognizeVoiceCommand', '2': '.RecognizeVoiceControl', '3': '.RecognizeResult', '5': true}, + {'1': 'RecognizeTextCommand', '2': '.RecognizeTextControl', '3': '.RecognizeResult'}, + {'1': 'ExecuteCommand', '2': '.ExecuteInput', '3': '.ExecuteResult'}, + ], +}; + +@$core.Deprecated('Use voiceAgentServiceDescriptor instead') +const $core.Map<$core.String, $core.Map<$core.String, $core.dynamic>> VoiceAgentServiceBase$messageJson = { + '.Empty': Empty$json, + '.ServiceStatus': ServiceStatus$json, + '.VoiceAudio': VoiceAudio$json, + '.WakeWordStatus': WakeWordStatus$json, + '.S_RecognizeVoiceControl': S_RecognizeVoiceControl$json, + '.RecognizeResult': RecognizeResult$json, + '.IntentSlot': IntentSlot$json, + '.RecognizeVoiceControl': RecognizeVoiceControl$json, + '.RecognizeTextControl': RecognizeTextControl$json, + '.ExecuteInput': ExecuteInput$json, + '.ExecuteResult': ExecuteResult$json, +}; + +/// Descriptor for `VoiceAgentService`. Decode as a `google.protobuf.ServiceDescriptorProto`. +final $typed_data.Uint8List voiceAgentServiceDescriptor = $convert.base64Decode( + 'ChFWb2ljZUFnZW50U2VydmljZRIsChJDaGVja1NlcnZpY2VTdGF0dXMSBi5FbXB0eRoOLlNlcn' + 'ZpY2VTdGF0dXMSNAoQU19EZXRlY3RXYWtlV29yZBILLlZvaWNlQXVkaW8aDy5XYWtlV29yZFN0' + 'YXR1cygBMAESKwoORGV0ZWN0V2FrZVdvcmQSBi5FbXB0eRoPLldha2VXb3JkU3RhdHVzMAESRw' + 'oXU19SZWNvZ25pemVWb2ljZUNvbW1hbmQSGC5TX1JlY29nbml6ZVZvaWNlQ29udHJvbBoQLlJl' + 'Y29nbml6ZVJlc3VsdCgBEkMKFVJlY29nbml6ZVZvaWNlQ29tbWFuZBIWLlJlY29nbml6ZVZvaW' + 'NlQ29udHJvbBoQLlJlY29nbml6ZVJlc3VsdCgBEj8KFFJlY29nbml6ZVRleHRDb21tYW5kEhUu' + 'UmVjb2duaXplVGV4dENvbnRyb2waEC5SZWNvZ25pemVSZXN1bHQSLwoORXhlY3V0ZUNvbW1hbm' + 'QSDS5FeGVjdXRlSW5wdXQaDi5FeGVjdXRlUmVzdWx0'); + |