RecognitionConfig constructor

RecognitionConfig({
  1. RecognitionFeatures? features,
  2. SpeechAdaptation? adaptation,
  3. AutoDetectDecodingConfig? autoDecodingConfig,
  4. ExplicitDecodingConfig? explicitDecodingConfig,
  5. String? model,
  6. Iterable<String>? languageCodes,
})

Implementation

factory RecognitionConfig({
  RecognitionFeatures? features,
  SpeechAdaptation? adaptation,
  AutoDetectDecodingConfig? autoDecodingConfig,
  ExplicitDecodingConfig? explicitDecodingConfig,
  $core.String? model,
  $core.Iterable<$core.String>? languageCodes,
}) {
  final $result = create();
  if (features != null) {
    $result.features = features;
  }
  if (adaptation != null) {
    $result.adaptation = adaptation;
  }
  if (autoDecodingConfig != null) {
    $result.autoDecodingConfig = autoDecodingConfig;
  }
  if (explicitDecodingConfig != null) {
    $result.explicitDecodingConfig = explicitDecodingConfig;
  }
  if (model != null) {
    $result.model = model;
  }
  if (languageCodes != null) {
    $result.languageCodes.addAll(languageCodes);
  }
  return $result;
}