VoiceAgentConfig constructor
VoiceAgentConfig({
- String? llmModelId,
- String? sttModelId,
- String? ttsModelId,
- String? vadModelId,
- int? sampleRateHz,
- int? chunkMs,
- AudioSource? audioSource,
- bool? enableBargeIn,
- int? bargeInThresholdMs,
- String? systemPrompt,
- int? maxContextTokens,
- double? temperature,
- bool? emitPartials,
- bool? emitThoughts,
- String? audioFilePath,
- SolutionType? typeKind,
- String? ttsVoiceId,
Implementation
factory VoiceAgentConfig({
$core.String? llmModelId,
$core.String? sttModelId,
$core.String? ttsModelId,
$core.String? vadModelId,
$core.int? sampleRateHz,
$core.int? chunkMs,
AudioSource? audioSource,
$core.bool? enableBargeIn,
$core.int? bargeInThresholdMs,
$core.String? systemPrompt,
$core.int? maxContextTokens,
$core.double? temperature,
$core.bool? emitPartials,
$core.bool? emitThoughts,
$core.String? audioFilePath,
SolutionType? typeKind,
$core.String? ttsVoiceId,
}) {
final result = create();
if (llmModelId != null) result.llmModelId = llmModelId;
if (sttModelId != null) result.sttModelId = sttModelId;
if (ttsModelId != null) result.ttsModelId = ttsModelId;
if (vadModelId != null) result.vadModelId = vadModelId;
if (sampleRateHz != null) result.sampleRateHz = sampleRateHz;
if (chunkMs != null) result.chunkMs = chunkMs;
if (audioSource != null) result.audioSource = audioSource;
if (enableBargeIn != null) result.enableBargeIn = enableBargeIn;
if (bargeInThresholdMs != null)
result.bargeInThresholdMs = bargeInThresholdMs;
if (systemPrompt != null) result.systemPrompt = systemPrompt;
if (maxContextTokens != null) result.maxContextTokens = maxContextTokens;
if (temperature != null) result.temperature = temperature;
if (emitPartials != null) result.emitPartials = emitPartials;
if (emitThoughts != null) result.emitThoughts = emitThoughts;
if (audioFilePath != null) result.audioFilePath = audioFilePath;
if (typeKind != null) result.typeKind = typeKind;
if (ttsVoiceId != null) result.ttsVoiceId = ttsVoiceId;
return result;
}