xtd 0.2.0
prompt.hpp
Go to the documentation of this file.
1
4#pragma once
5#include "../../object.hpp"
6#include "../../string.hpp"
7
9namespace xtd {
11 namespace speech {
13 namespace synthesis {
17
37 friend class speech_synthesizer;
38 struct data;
39
40 public:
42
46 explicit prompt(const xtd::string& text_to_speak);
48
50 prompt();
51 prompt(const prompt&) = default;
52 prompt(prompt&&) = default;
53 prompt& operator =(const prompt&) = default;
55
57
59 bool is_completed() const noexcept;
61
62 private:
63 xtd::string& text_to_speak() noexcept;
64 void synthesizer(const speech_synthesizer* synthesizer) noexcept;
65 xtd::sptr<data> data_;
66 };
67 }
68 }
69}
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.hpp:44
prompt(const xtd::string &text_to_speak)
Initializes a new instance of the xtd::speech::synthesis::speech_synthesizer class.
Provides access to the functionality of an installed speech synthesis engine.
Definition speech_synthesizer.hpp:35
#define core_export_
Define shared library export.
Definition core_export.hpp:13
xtd::basic_string< char > string
Represents text as a sequence of UTF-8 code units.
Definition __string_definitions.hpp:43
xtd::shared_ptr_object< type_t > sptr
The xtd::sptr object is a shared pointer.
Definition sptr.hpp:25
Contains classes for initializing and configuring a speech synthesis engine, for creating prompts,...
Definition prompt.hpp:13
The xtd::speech namespace contains all classes and namespace to access speech technology.
Definition prompt.hpp:11
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
constexpr const_pointer data() const noexcept
Gets direct access to the underlying contiguous storage.
Definition read_only_span.hpp:201
Contains xtd::object class.
Contains xtd::string alias.