Share via


SpeechSynthesizer.GetVoicesAsync(String) Methode

Definition

Rufen Sie die verfügbaren Stimmen ab. In 1.16.0 hinzugefügt

public System.Threading.Tasks.Task<Microsoft.CognitiveServices.Speech.SynthesisVoicesResult> GetVoicesAsync (string locale = "");
member this.GetVoicesAsync : string -> System.Threading.Tasks.Task<Microsoft.CognitiveServices.Speech.SynthesisVoicesResult>
Public Function GetVoicesAsync (Optional locale As String = "") As Task(Of SynthesisVoicesResult)

Parameter

locale
String

Geben Sie das Gebietsschema von Stimmen im BCP-47-Format an. oder lassen Sie es leer, um alle verfügbaren Stimmen abzurufen.

Gibt zurück

Eine Aufgabe, die den Vorgang zum Abrufen der Stimmenliste darstellt.

Gilt für: