VoiceSessionConfig constructor

VoiceSessionConfig({
  1. int? silenceDurationMs,
  2. double? speechThreshold,
  3. bool? autoPlayTts,
  4. bool? continuousMode,
  5. bool? thinkingModeEnabled,
  6. int? maxTokens,
  7. int? maxRecordingDurationMs,
  8. String? languageCode,
  9. String? voiceId,
})

Implementation

factory VoiceSessionConfig({
  $core.int? silenceDurationMs,
  $core.double? speechThreshold,
  $core.bool? autoPlayTts,
  $core.bool? continuousMode,
  $core.bool? thinkingModeEnabled,
  $core.int? maxTokens,
  $core.int? maxRecordingDurationMs,
  $core.String? languageCode,
  $core.String? voiceId,
}) {
  final result = create();
  if (silenceDurationMs != null) result.silenceDurationMs = silenceDurationMs;
  if (speechThreshold != null) result.speechThreshold = speechThreshold;
  if (autoPlayTts != null) result.autoPlayTts = autoPlayTts;
  if (continuousMode != null) result.continuousMode = continuousMode;
  if (thinkingModeEnabled != null)
    result.thinkingModeEnabled = thinkingModeEnabled;
  if (maxTokens != null) result.maxTokens = maxTokens;
  if (maxRecordingDurationMs != null)
    result.maxRecordingDurationMs = maxRecordingDurationMs;
  if (languageCode != null) result.languageCode = languageCode;
  if (voiceId != null) result.voiceId = voiceId;
  return result;
}