toConfig method
Implementation
_cs.RecognitionConfig toConfig() => _cs.RecognitionConfig()
..encoding = _encoding(encoding)
..languageCode = languageCode
..sampleRateHertz = sampleRateHertz!
..audioChannelCount = audioChannelCount
..enableSeparateRecognitionPerChannel = enableSeparateRecognitionPerChannel
..maxAlternatives = maxAlternatives
..profanityFilter = profanityFilter
..enableWordTimeOffsets = enableWordTimeOffsets
..enableAutomaticPunctuation = enableAutomaticPunctuation
..diarizationConfig = diarizationConfig ?? _cs.SpeakerDiarizationConfig()
..metadata = recognitionMetadata ?? _cs.RecognitionMetadata()
..model = _model(model)
..speechContexts
.addAll(speechContexts.map((sc) => sc.toGoogleSpeechContext()))
..useEnhanced = useEnhanced
..enableSpokenPunctuation = BoolValue(value: enableSpokenPunctuation);