The classic first application "Hello, World!" with xtd::forms::button control and xtd::speech::synthesis::speech_synthesizer class.
- Windows
-
- macOS
-
- Gnome
-
#include <xtd/speech/synthesis/speech_synthesizer>
#include <xtd/forms/application>
#include <xtd/forms/button>
#include <xtd/forms/form>
class form1 :
public form {
public:
form1() {
text(
"Hello world (say)");
speech_synthesizer1.speak_async("Hello, world!");
};
}
private:
};
auto main()->int {
}