Provides access to the functionality of an installed speech synthesis engine.
Constructors | |
| speech_synthesizer () | |
| Initializes a new instance of the xtd::speech::synthesis::speech_synthesizer class. More... | |
Properties | |
| synthesizer_state | state () const noexcept |
| Gets the current speaking state of the xtd::speech::speech_synthesizer object. More... | |
Methods | |
| void | speak (const xtd::ustring &text_to_speak) |
| Synchronously speaks the contents of a string. More... | |
| void | speak (xtd::speech::synthesis::prompt &prompt) |
| Synchronously speaks the contents of a xtd::speech::synthesis::prompt object. More... | |
| xtd::speech::synthesis::prompt & | speak_async (const xtd::ustring &text_to_speak) |
| Asynchronously speaks the contents of a string. More... | |
| void | speak_async (xtd::speech::synthesis::prompt &prompt) |
| Asynchronously speaks the contents of a xtd::speech::synthesis::prompt object. More... | |
Events | |
| event< speech_synthesizer, speak_completed_event_handler > | speak_completed |
| Raised when the xtd::speech::synthesis::speech_synthesizer completes the speaking of a prompt. More... | |
| event< speech_synthesizer, speak_started_event_handler > | speak_started |
| Raised when the xtd::speech::synthesis::speech_synthesizer begins the speaking of a prompt. More... | |
| event< speech_synthesizer, state_changed_event_handler > | state_changed |
| Raised when the state of the xtd::speech::synthesis::speech_synthesizer changes. More... | |
Additional Inherited Members | |
Public Member Functions inherited from xtd::object | |
| object ()=default | |
| Create a new instance of the ultimate base class object. More... | |
| bool | equals (const object &obj) const noexcept |
| Determines whether the specified object is equal to the current object. More... | |
| virtual size_t | get_hash_code () const noexcept |
| Serves as a hash function for a particular type. More... | |
| virtual type_object | get_type () const noexcept |
| Gets the type of the current instance. More... | |
| template<typename object_t > | |
| std::unique_ptr< object_t > | memberwise_clone () const noexcept |
| Creates a shallow copy of the current object. More... | |
| virtual xtd::ustring | to_string () const noexcept |
| Returns a sxd::ustring that represents the current object. More... | |
Static Public Member Functions inherited from xtd::object | |
| static bool | equals (const object &object_a, const object &object_b) noexcept |
| Determines whether the specified object instances are considered equal. More... | |
| static bool | reference_equals (const object &object_a, const object &object_b) noexcept |
| Determines whether the specified object instances are the same instance. More... | |
| xtd::speech::synthesis::speech_synthesizer::speech_synthesizer | ( | ) |
Initializes a new instance of the xtd::speech::synthesis::speech_synthesizer class.
| void xtd::speech::synthesis::speech_synthesizer::speak | ( | const xtd::ustring & | text_to_speak | ) |
Synchronously speaks the contents of a string.
| text_to_speak | The text to speak. |
| void xtd::speech::synthesis::speech_synthesizer::speak | ( | xtd::speech::synthesis::prompt & | prompt | ) |
Synchronously speaks the contents of a xtd::speech::synthesis::prompt object.
| prompt | The content to speak. |
| xtd::speech::synthesis::prompt& xtd::speech::synthesis::speech_synthesizer::speak_async | ( | const xtd::ustring & | text_to_speak | ) |
Asynchronously speaks the contents of a string.
| text_to_speak | The text to speak. |
| void xtd::speech::synthesis::speech_synthesizer::speak_async | ( | xtd::speech::synthesis::prompt & | prompt | ) |
Asynchronously speaks the contents of a xtd::speech::synthesis::prompt object.
| prompt | The content to speak. |
|
noexcept |
Gets the current speaking state of the xtd::speech::speech_synthesizer object.
| event<speech_synthesizer, speak_completed_event_handler> xtd::speech::synthesis::speech_synthesizer::speak_completed |
Raised when the xtd::speech::synthesis::speech_synthesizer completes the speaking of a prompt.
| event<speech_synthesizer, speak_started_event_handler> xtd::speech::synthesis::speech_synthesizer::speak_started |
Raised when the xtd::speech::synthesis::speech_synthesizer begins the speaking of a prompt.
| event<speech_synthesizer, state_changed_event_handler> xtd::speech::synthesis::speech_synthesizer::state_changed |
Raised when the state of the xtd::speech::synthesis::speech_synthesizer changes.