Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
IEvangelist committed Apr 28, 2023
1 parent 98a5bfd commit 740c162
Show file tree
Hide file tree
Showing 53 changed files with 45 additions and 3,158 deletions.
2 changes: 1 addition & 1 deletion Azure.OpenAI/Client/Components/VoiceDialog.razor
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
case RequestVoiceState.FoundVoices:
if (_voices is { Length: > 0 })
{
<MudSelect T="string" Label=@Localizer["Voice"] AdornmentColor="Color.Secondary"
<MudSelect T="string" Label=@Localizer["Voice"] AdornmentColor="Color.Secondary"
AutoFocus="true" Strict="true" Variant="Variant.Outlined"
AnchorOrigin="Origin.BottomCenter" ReadOnly="(_state is RequestVoiceState.RequestingVoices)"
TextChanged="OnValueChanged"
Expand Down
6 changes: 6 additions & 0 deletions Azure.OpenAI/Client/Components/VoiceDialog.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ protected override async Task OnInitializedAsync()
SpeechSynthesis.OnVoicesChanged(() => GetVoicesAsync(true));

_voicePreferences = new VoicePreferences(LocalStorage);

if (_voicePreferences.Voice is null &&
_voices.FirstOrDefault(voice => voice.Default) is { } voice)
{
_voicePreferences.Voice = voice.Name;
}
}

async Task GetVoicesAsync(bool isFromCallback = false)
Expand Down
48 changes: 0 additions & 48 deletions Azure.OpenAI/Client/Pages/Chat.razor

This file was deleted.

73 changes: 0 additions & 73 deletions Azure.OpenAI/Client/Pages/Chat.razor.af.resx

This file was deleted.

73 changes: 0 additions & 73 deletions Azure.OpenAI/Client/Pages/Chat.razor.ar.resx

This file was deleted.

73 changes: 0 additions & 73 deletions Azure.OpenAI/Client/Pages/Chat.razor.az.resx

This file was deleted.

73 changes: 0 additions & 73 deletions Azure.OpenAI/Client/Pages/Chat.razor.bg.resx

This file was deleted.

Loading

0 comments on commit 740c162

Please sign in to comment.