StreamingRecognitionConfig constructor

StreamingRecognitionConfig({
  1. RecognitionConfig? config,
  2. bool? singleUtterance,
  3. bool? interimResults,
  4. bool? enableVoiceActivityEvents,
  5. StreamingRecognitionConfig_VoiceActivityTimeout? voiceActivityTimeout,
})

Implementation

factory StreamingRecognitionConfig({
  RecognitionConfig? config,
  $core.bool? singleUtterance,
  $core.bool? interimResults,
  $core.bool? enableVoiceActivityEvents,
  StreamingRecognitionConfig_VoiceActivityTimeout? voiceActivityTimeout,
}) {
  final $result = create();
  if (config != null) {
    $result.config = config;
  }
  if (singleUtterance != null) {
    $result.singleUtterance = singleUtterance;
  }
  if (interimResults != null) {
    $result.interimResults = interimResults;
  }
  if (enableVoiceActivityEvents != null) {
    $result.enableVoiceActivityEvents = enableVoiceActivityEvents;
  }
  if (voiceActivityTimeout != null) {
    $result.voiceActivityTimeout = voiceActivityTimeout;
  }
  return $result;
}