InstalledVoice.Enabled 属性
定义
获取或设置某个声音是否可用来生成语音。Gets or sets whether a voice can be used to generate speech.
public:
property bool Enabled { bool get(); void set(bool value); };
public bool Enabled { get; set; }
member this.Enabled : bool with get, set
Public Property Enabled As Boolean
属性值
返回表示声音的启用状态的 bool。Returns a bool that represents the enabled state of the voice.
注解
Enabled默认情况下,属性的值为 true 。The value of the Enabled property is true by default. 当应用程序调用时 GetInstalledVoices ,该方法会验证它在注册表中找到的每个声音是否满足某些最小标准。When an application calls GetInstalledVoices, the method verifies that each of the voices it finds in the registry meets certain minimum criteria. 对于验证失败的任何语音, GetInstalledVoices 将其 Enabled 属性设置为 false 。For any voice that fails verification, GetInstalledVoices sets its Enabled property to false. 应用程序无法选择其 Enabled 属性为的声音 false 。An application cannot select a voice whose Enabled property is false. 通常,应用程序不会设置语音的 Enabled 属性。Typically, applications will not set a voice's Enabled property.