copyWith method
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,
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,
);