xtd 0.2.0
prompt.h
Go to the documentation of this file.
1 #pragma once
5 #include "../../object.h"
6 #include "../../ustring.h"
7 
9 namespace xtd {
11  namespace speech {
13  namespace synthesis {
15  class speech_synthesizer;
17 
34  class core_export_ prompt : public xtd::object {
35  friend class speech_synthesizer;
36  struct data;
37 
38  public:
40 
44  explicit prompt(const xtd::ustring& text_to_speak);
46 
48  prompt();
49  prompt(const prompt&) = default;
50  prompt(prompt&&) = default;
51  prompt& operator =(const prompt&) = default;
53 
55 
57  bool is_completed() const noexcept;
59 
60  private:
61  xtd::ustring& text_to_speak() noexcept;
62  void synthesizer(const speech_synthesizer* synthesizer) noexcept;
63  std::shared_ptr<data> data_;
64  };
65  }
66  }
67 }
Represents information about what can be rendered, either text or an audio file, by the xtd::speech::...
Definition: prompt.h:34
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
Represents text as a sequence of UTF-8 code units.
Definition: ustring.h:46
Provides access to the functionality of an installed speech synthesis engine.
Definition: speech_synthesizer.h:33
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes...
Definition: object.h:32