TTSVoiceInfo constructor
TTSVoiceInfo({})
Implementation
factory TTSVoiceInfo({
$core.String? id,
$core.String? displayName,
$core.String? languageCode,
TTSVoiceGender? gender,
$core.String? description,
$core.bool? isNeural,
$core.bool? isSystem,
$core.int? sampleRate,
$core.Iterable<$core.String>? supportedStyles,
}) {
final result = create();
if (id != null) result.id = id;
if (displayName != null) result.displayName = displayName;
if (languageCode != null) result.languageCode = languageCode;
if (gender != null) result.gender = gender;
if (description != null) result.description = description;
if (isNeural != null) result.isNeural = isNeural;
if (isSystem != null) result.isSystem = isSystem;
if (sampleRate != null) result.sampleRate = sampleRate;
if (supportedStyles != null) result.supportedStyles.addAll(supportedStyles);
return result;
}