SpeechSynthesizer.getVoicesAsync Method

Definition

Overloads

getVoicesAsync()

Get the available voices, asynchronously. Added in version 1.16.0

getVoicesAsync(String locale)

Get the available voices, asynchronously. Added in version 1.16.0

getVoicesAsync()

Get the available voices, asynchronously. Added in version 1.16.0

public Future<SynthesisVoicesResult> getVoicesAsync()

Returns

A task representing the asynchronous operation that gets the voices.

getVoicesAsync(String locale)

Get the available voices, asynchronously. Added in version 1.16.0

public Future<SynthesisVoicesResult> getVoicesAsync(String locale)

Parameters

locale
String

Specify the locale of voices, in BCP-47 format; or leave it empty to get all available voices.

Returns

A task representing the asynchronous operation that gets the voices.

Applies to