RecognitionFeatures constructor

RecognitionFeatures({
  1. bool? profanityFilter,
  2. bool? enableWordTimeOffsets,
  3. bool? enableWordConfidence,
  4. bool? enableAutomaticPunctuation,
  5. SpeakerDiarizationConfig? diarizationConfig,
  6. bool? enableSpokenPunctuation,
  7. bool? enableSpokenEmojis,
  8. int? maxAlternatives,
  9. RecognitionFeatures_MultiChannelMode? multiChannelMode,
})

Implementation

factory RecognitionFeatures({
  $core.bool? profanityFilter,
  $core.bool? enableWordTimeOffsets,
  $core.bool? enableWordConfidence,
  $core.bool? enableAutomaticPunctuation,
  SpeakerDiarizationConfig? diarizationConfig,
  $core.bool? enableSpokenPunctuation,
  $core.bool? enableSpokenEmojis,
  $core.int? maxAlternatives,
  RecognitionFeatures_MultiChannelMode? multiChannelMode,
}) {
  final $result = create();
  if (profanityFilter != null) {
    $result.profanityFilter = profanityFilter;
  }
  if (enableWordTimeOffsets != null) {
    $result.enableWordTimeOffsets = enableWordTimeOffsets;
  }
  if (enableWordConfidence != null) {
    $result.enableWordConfidence = enableWordConfidence;
  }
  if (enableAutomaticPunctuation != null) {
    $result.enableAutomaticPunctuation = enableAutomaticPunctuation;
  }
  if (diarizationConfig != null) {
    $result.diarizationConfig = diarizationConfig;
  }
  if (enableSpokenPunctuation != null) {
    $result.enableSpokenPunctuation = enableSpokenPunctuation;
  }
  if (enableSpokenEmojis != null) {
    $result.enableSpokenEmojis = enableSpokenEmojis;
  }
  if (maxAlternatives != null) {
    $result.maxAlternatives = maxAlternatives;
  }
  if (multiChannelMode != null) {
    $result.multiChannelMode = multiChannelMode;
  }
  return $result;
}