TextToSpeech.GetLocalesAsync Method

Definition

Gets a list of languages supported by text-to-speech.

public:
 static System::Threading::Tasks::Task<System::Collections::Generic::IEnumerable<Microsoft::Maui::Media::Locale ^> ^> ^ GetLocalesAsync();
public static System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Microsoft.Maui.Media.Locale>> GetLocalesAsync ();
static member GetLocalesAsync : unit -> System.Threading.Tasks.Task<seq<Microsoft.Maui.Media.Locale>>
Public Shared Function GetLocalesAsync () As Task(Of IEnumerable(Of Locale))

Returns

A collection of Locale objects with languages supported by text-to-speech on this device.

Applies to