6#include "../../any.hpp"
7#include "../../optional.hpp"
8#include "../../event_args.hpp"
9#include "../../system_exception.hpp"
19 class speech_synthesizer;
51 bool cancelled() const noexcept {
return cancelled_;}
55 std::optional<std::reference_wrapper<const xtd::system_exception>>
error() const noexcept {
return error_ ? std::optional<std::reference_wrapper<const xtd::system_exception>>(*error_) : std::nullopt; }
63 std::any
user_state() const noexcept {
return user_state_;}
70 bool cancelled_ =
false;
Represents the base class for classes that contain event data, and provides a value to use for events...
Definition event_args.hpp:18
Provides data for the method_name_completed event.
Definition prompt_event_args.hpp:37
std::optional< std::reference_wrapper< const xtd::system_exception > > error() const noexcept
Gets a value indicating which error occurred during an asynchronous operation.
Definition prompt_event_args.hpp:55
std::any user_state() const noexcept
Gets the unique identifier for the asynchronous task.
Definition prompt_event_args.hpp:63
bool cancelled() const noexcept
Gets a value indicating whether an asynchronous operation has been canceled.
Definition prompt_event_args.hpp:51
const xtd::speech::synthesis::prompt & prompt() const noexcept
Gets the prompt associated with the event.
Definition prompt_event_args.hpp:59
Represents information about what can be rendered, either text or an audio file, by the xtd::speech::...
Definition prompt.hpp:36
Provides access to the functionality of an installed speech synthesis engine.
Definition speech_synthesizer.hpp:35
The exception that is thrown when a method call is invalid for the object's current state.
Definition system_exception.hpp:18
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10
Contains xtd::speech::synthesis::prompt class.