xtd 0.2.0
Loading...
Searching...
No Matches
xtd::speech::synthesis::prompt Class Reference
Inheritance diagram for xtd::speech::synthesis::prompt:
xtd::object

Definition

Represents information about what can be rendered, either text or an audio file, by the xtd::speech::synthesis::speech_synthesizer.

Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.h:42
Represents information about what can be rendered, either text or an audio file, by the xtd::speech::...
Definition prompt.h:36
#define core_export_
Define shared library export.
Definition core_export.h:13
Inheritance
xtd::objectxtd::speech::synthesis::prompt
Header
#include <xtd/speech/synthesis/prompt>
Namespace
xtd::speech::synthesis
Library
xtd.core
Remarks
A xtd::speech::synthesis::prompt object can contain plain text, text formatted with markup language, or audio files.
An empty xtd::speech::synthesis::prompt object is created with each new instance of xtd::speech::synthesis::prompt_builder. The xtd::speech::synthesis::prompt_builder class provides methods for adding content, including text, SSML markup, bookmarks, and prerecorded audio files (such as .wav files), to the empty xtd::speech::synthesis::prompt object that it contains. Typically, applications will use xtd::speech::synthesis::prompt_builder, rather than a xtd::speech::synthesis::prompt object, to create prompts and populate them with content.
To generate speech from the contents of a xtd::speech::synthesis::prompt object, use the xtd::speech::synthesis::speach_synthesizer::speak method.

Public Constructors

 prompt (const xtd::string &text_to_speak)
 Initializes a new instance of the xtd::speech::synthesis::speech_synthesizer class.
 

Public Properties

bool is_completed () const noexcept
 

Additional Inherited Members

- Public Member Functions inherited from xtd::object
 object ()=default
 Create a new instance of the ultimate base class object.
 
virtual bool equals (const object &obj) const noexcept
 Determines whether the specified object is equal to the current object.
 
virtual size_t get_hash_code () const noexcept
 Serves as a hash function for a particular type.
 
virtual type_object get_type () const noexcept
 Gets the type of the current instance.
 
template<typename object_t >
xtd::uptr< object_t > memberwise_clone () const
 Creates a shallow copy of the current object.
 
virtual xtd::string to_string () const noexcept
 Returns a xtd::string that represents the current object.
 
- Static Public Member Functions inherited from xtd::object
template<typename object_a_t , typename object_b_t >
static bool equals (const object_a_t &object_a, const object_b_t &object_b) noexcept
 Determines whether the specified object instances are considered equal.
 
template<typename object_a_t , typename object_b_t >
static bool reference_equals (const object_a_t &object_a, const object_b_t &object_b) noexcept
 Determines whether the specified object instances are the same instance.
 

Constructor & Destructor Documentation

◆ prompt()

xtd::speech::synthesis::prompt::prompt ( const xtd::string text_to_speak)
explicit

Initializes a new instance of the xtd::speech::synthesis::speech_synthesizer class.

Remarks
When you initialize a new xtd::speech::synthesis::speech_synthesizer instance, it uses the default system voice. To configure the xtd::speech::synthesis::speech_synthesizer to use one of the installed speech synthesis (text-to-speech) voices, use the xtd::speech::synthesis::speech_synthesizer::select_voice or xtd::speech::synthesis::speech_synthesizer::select_voice_by_hints method. To get information about which voices are installed, use the xtd::speech::synthesis::speech_synthesizer::get_installed_voices method and the xtd::speech::synthesis::voice_info class.

The documentation for this class was generated from the following file: