copyWith method

VoiceConfig copyWith({
  1. SttProvider? sttProvider,
  2. TtsProvider? ttsProvider,
  3. SpeechLanguage? language,
  4. String? apiKey,
  5. String? baseUrl,
  6. String? model,
  7. String? voice,
  8. double? speed,
  9. double? silenceThreshold,
  10. bool? autoSend,
  11. bool? continuousMode,
  12. int? sampleRate,
  13. AudioFormat? format,
})

Implementation

VoiceConfig copyWith({
  SttProvider? sttProvider,
  TtsProvider? ttsProvider,
  SpeechLanguage? language,
  String? apiKey,
  String? baseUrl,
  String? model,
  String? voice,
  double? speed,
  double? silenceThreshold,
  bool? autoSend,
  bool? continuousMode,
  int? sampleRate,
  AudioFormat? format,
}) => VoiceConfig(
  sttProvider: sttProvider ?? this.sttProvider,
  ttsProvider: ttsProvider ?? this.ttsProvider,
  language: language ?? this.language,
  apiKey: apiKey ?? this.apiKey,
  baseUrl: baseUrl ?? this.baseUrl,
  model: model ?? this.model,
  voice: voice ?? this.voice,
  speed: speed ?? this.speed,
  silenceThreshold: silenceThreshold ?? this.silenceThreshold,
  autoSend: autoSend ?? this.autoSend,
  continuousMode: continuousMode ?? this.continuousMode,
  sampleRate: sampleRate ?? this.sampleRate,
  format: format ?? this.format,
);