fix to preserve "general" speaking styles
This commit is contained in:
parent
cd246c76e8
commit
d37b289355
1 changed files with 6 additions and 8 deletions
|
|
@ -73,19 +73,17 @@ namespace Observatory.Herald
|
|||
{
|
||||
string demonym = GetDemonymFromLocale(voice.Locale);
|
||||
|
||||
if (voice.StyleList.Length > 1)
|
||||
voiceOptions.Add(
|
||||
$"{demonym} - {voice.LocalName}",
|
||||
voice);
|
||||
|
||||
foreach (var style in voice.StyleList)
|
||||
{
|
||||
foreach (var style in voice.StyleList)
|
||||
{
|
||||
if (!string.IsNullOrWhiteSpace(style))
|
||||
voiceOptions.Add(
|
||||
$"{demonym} - {voice.LocalName} - {style}",
|
||||
voice);
|
||||
}
|
||||
}
|
||||
else
|
||||
voiceOptions.Add(
|
||||
$"{demonym} - {voice.LocalName}",
|
||||
voice);
|
||||
}
|
||||
|
||||
return voiceOptions;
|
||||
|
|
|
|||
Loading…
Reference in a new issue