Synthesizer. Try Set Default Voice Async(VoiceInformation) Method
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public: static IAsyncOperation<bool> ^ TrySetDefaultVoiceAsync(VoiceInformation ^ voice);
/// [Windows.Foundation.Metadata.RemoteAsync] static IAsyncOperation<bool> TrySetDefaultVoiceAsync(VoiceInformation const& voice);
[Windows.Foundation.Metadata.RemoteAsync] public static IAsyncOperation<bool> TrySetDefaultVoiceAsync(VoiceInformation voice);
Public Shared Function TrySetDefaultVoiceAsync (voice As VoiceInformation) As IAsyncOperation(Of Boolean)
One of the installed speech synthesis engines (voices).
An asynchronous operation that returns true if the set operation was a success. Otherwise, returns false.
Windows 10 Fall Creators Update (introduced in 10.0.16299.0)
Windows.Foundation.UniversalApiContract (introduced in v5.0)
Your app must declare the systemManagement capability, which lets apps access basic system administration privileges including locale, timezone, shut down, and reboot.
The systemManagement capability must include the iot namespace when you declare it in your app's package manifest.
Use Windows.Globalization.ApplicationLanguages.Languages to get the ranked list of current runtime language values preferred by the user.