Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Commit

Permalink
Hotfix: Fix param attribution
Browse files Browse the repository at this point in the history
  • Loading branch information
lucoiso committed Aug 13, 2023
1 parent 14a6954 commit c136f24
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,16 +69,16 @@ FAzSpeechRecognitionOptions::FAzSpeechRecognitionOptions(const FName& InLocale)

if (IsAutoLanguage(InLocale))
{
this->bUseLanguageIdentification = true;
this->Locale = InLocale;
bUseLanguageIdentification = true;
Locale = InLocale;
}
else if (IsDefault(InLocale))
{
this->Locale = GetDefault<UAzSpeechSettings>()->DefaultOptions.RecognitionOptions.Locale;
Locale = GetDefault<UAzSpeechSettings>()->DefaultOptions.RecognitionOptions.Locale;
}
else
{
this->Locale = InLocale;
Locale = InLocale;
}
}

Expand Down Expand Up @@ -123,18 +123,18 @@ FAzSpeechSynthesisOptions::FAzSpeechSynthesisOptions(const FName& InLocale)
{
SetDefaults();

if (IsAutoLanguage(Locale))
if (IsAutoLanguage(InLocale))
{
bUseLanguageIdentification = true;
Locale = Locale;
Locale = InLocale;
}
else if (IsDefault(Locale))
else if (IsDefault(InLocale))
{
Locale = GetDefault<UAzSpeechSettings>()->DefaultOptions.SynthesisOptions.Locale;
}
else
{
Locale = Locale;
Locale = InLocale;
}
}

Expand Down

0 comments on commit c136f24

Please sign in to comment.