The classic first application "Hello, World!" with xtd::forms::button control and xtd::speech::synthesis::speech_synthesizer class.
- Windows
-
- macOS
-
- Gnome
-
#include <xtd/xtd>
class form1 :
public form {
public:
form1() {
text("Hello world (say)");
button1.location({10, 10});
button1.parent(*this);
button1.text("Say...");
button1.click += [&] {
speech_synthesizer1.speak_async("Hello, world!");
};
}
private:
};
auto main() -> int {
application::run(form1 {});
}
Provides access to the functionality of an installed speech synthesis engine.
Definition speech_synthesizer.h:35
Contains classes for initializing and configuring a speech synthesis engine, for creating prompts,...
Definition prompt.h:13
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10