Unable to set multiple FilterSpeechOptions with Delphi VCL
Last reviewed: 11/15/2001
PRB Article ID: P110108
The information in this article applies to:
- SpeechKit 3
Symptoms
The FilterSpeech ChantSR property on Delphi VCL is typed as TFilterSpeechOption so the options enumerate in the dropdown on the component palette.
However, this forces a selection of one value and in many cases, multiple values are needed.
Cause
The FilterSpeech property is typed in the VCL. This prevents setting to multiple values in the palette or with inline code:
ChantSR1.FilterSpeech := vFilterSpeechDropMenuBarMenu | vFilterSpeechRaiseMenu | vFilterSpeechClickButton;
Status
Fixed in SpeechKit 3 SR3. The ChantSR properties AutoSpeak, Console, FilterSpeech, and the ChantTTS property Console, are typed as Integer. This allows use of the enumeration constants or setting the value in the palette to an integer value.
For example, to set the property value inline, it would look something like:
ChantSR1.FilterSpeech := FilterSpeechDropMenuBarMenu + FilterSpeechRaiseMenu + FilterSpeechClickButton;
Component Formats Impacted
Delphi VCL only.