Прочитај на енглеском Уреди

Делите путем


InstalledVoice.Enabled Property

Definition

Gets or sets whether a voice can be used to generate speech.

C#
public bool Enabled { get; set; }

Property Value

Returns a bool that represents the enabled state of the voice.

Remarks

The value of the Enabled property is true by default. When an application calls GetInstalledVoices, the method verifies that each of the voices it finds in the registry meets certain minimum criteria. For any voice that fails verification, GetInstalledVoices sets its Enabled property to false. An application cannot select a voice whose Enabled property is false. Typically, applications will not set a voice's Enabled property.

Applies to

Производ Верзије
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)

See also