How do I work with FireMonkey and VCL frameworks?
Last reviewed: 11/12/2023
HowTo Article ID: H032316
The information in this article applies to:
- AudioSearch 4
- GrammarKit 9
- KinesicsKit 7
- LexiconKit 9
- ProfileKit 9
- SpeechKit 12
- SpeechManager 3
- Talk&Listen 4
- VoiceMarkupKit 9
- VoiceXMLKit 6
Summary
FireMonkey and VCL frameworks provide C++Builder and Delphi apps a rich suite of application capabilities for developing most any class of application. The VCL framework is for deploying apps on Windows-only where the FireMonkey framework is cross-platform for deploying on various desktop, mobile, and server platforms.
More Information
Chant class libraries are app framework agnostic. You may instantiate objects in either FireMonkey or VCL application frameworks in C++Builder and Delphi Applications.
Where differences arise and decisions need to be made is with applications and use Speech Recognition and Speech Synthesis technologies. These are platform-dependent technologies and their APIs are platform dependent.
SpeechKit class libraries include SpeechRecognition and SpeechSynthesis classes that may be used cross-platform and default to the available speech technology on the various deployment platforms. This is illustrated in the samples.
// Create recognizer
_Recognizer = _SpeechKit->CreateChantRecognizer();
//_Recognizer = _SpeechKit->CreateMCSRecognizer("speechKey", "speechRegion");
// Create synthesizer
_Synthesizer = _SpeechKit->CreateChantSynthesizer();
//_Synthesizer = _SpeechKit->CreateMCSSynthesizer("speechKey", "speechRegion");
// Create recognizer
_Recognizer := _SpeechKit.CreateChantRecognizer();
//_Recognizer := _SpeechKit.CreateMCSRecognizer('speechKey', 'speechRegion');
// Create synthesizer
_Synthesizer := _SpeechKit.CreateChantSynthesizer();
//_Synthesizer := _SpeechKit.CreateMCSSynthesizer('speechKey', 'speechRegion');
The SpeechKit VCL application samples illustrate all of the classes that support the available speech APIs on Windows since VCL is a Windows-only deployment technology. These classes and speech APIs are available for FireMonkey Windows apps too.
// Create recognizer
_Recognizer = _SpeechKit->CreateChantRecognizer();
//_Recognizer = _SpeechKit->CreateDgnRecognizer();
//_Recognizer = _SpeechKit->CreateMCSRecognizer("speechKey", "speechRegion");
//_Recognizer = _SpeechKit->CreateSAPI5Recognizer();
//_Recognizer = _SpeechKit->CreateWindowsMediaRecognizer();
// Create synthesizer
_Synthesizer = _SpeechKit->CreateChantSynthesizer();
//_Synthesizer = _SpeechKit->CreateAcaTTSSynthesizer();
//_Synthesizer = _SpeechKit->CreateCereVoiceSynthesizer();
//_Synthesizer = _SpeechKit->CreateMCSSynthesizer("speechKey", "speechRegion");
//_Synthesizer = _SpeechKit->CreateMSPSynthesizer();
//_Synthesizer = _SpeechKit->CreateSAPI5Synthesizer();
//_Synthesizer = _SpeechKit->CreateSwiftSynthesizer();
//_Synthesizer = _SpeechKit->CreateWindowsMediaSynthesizer();
// Create recognizer
_Recognizer := _SpeechKit.CreateChantRecognizer();
//_Recognizer := _SpeechKit.CreateDgnRecognizer();
//_Recognizer := _SpeechKit.CreateMCSRecognizer('speechKey', 'speechRegion');
//_Recognizer := _SpeechKit.CreateSAPI5Recognizer();
//_Recognizer := _SpeechKit.CreateWindowsMediaRecognizer();
// Create synthesizer
_Synthesizer := _SpeechKit.CreateChantSynthesizer();
//_Synthesizer := _SpeechKit.CreateAcaTTSSynthesizer();
//_Synthesizer := _SpeechKit.CreateCereVoiceSynthesizer();
//_Synthesizer := _SpeechKit.CreateMCSSynthesizer('speechKey', 'speechRegion');
//_Synthesizer := _SpeechKit.CreateMSPSynthesizer();
//_Synthesizer := _SpeechKit.CreateSAPI5Synthesizer();
//_Synthesizer := _SpeechKit.CreateSwiftSynthesizer();
//_Synthesizer := _SpeechKit.CreateWindowsMediaSynthesizer();
The documentation references provide integration steps for Chant class libraries with C++Builder and Delphi as follows:
- GrammarKit C++Builder VCL and FireMonkey Applications
- GrammarKit Delphi VCL and FireMonkey Applications
- KinesicsKit C++Builder VCL and FireMonkey Applications
- KinesicsKit Delphi VCL and FireMonkey Applications
- LexiconKit C++Builder VCL and FireMonkey Applications
- LexiconKit Delphi VCL and FireMonkey Applications
- ProfileKit C++Builder VCL and FireMonkey Applications
- ProfileKit Delphi VCL and FireMonkey Applications
- SpeechKit C++Builder VCL and FireMonkey Applications
- SpeechKit Delphi VCL and FireMonkey Applications
- VoiceMarkupKit C++Builder VCL and FireMonkey Applications
- VoiceMarkupKit Delphi VCL and FireMonkey Applications
- VoiceXMLKit C++Builder VCL and FireMonkey Applications
- VoiceXMLKit Delphi VCL and FireMonkey Applications