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