xtd 0.2.0
Loading...
Searching...
No Matches
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 auto operator =(const prompt&) -> prompt& = default;
54 auto operator =(prompt&&) -> prompt& = default;
56
58
60 [[nodiscard]] auto is_completed() const noexcept -> bool;
62
63 private:
64 [[nodiscard]] auto text_to_speak() noexcept -> xtd::string&;
65 auto synthesizer(const speech_synthesizer* synthesizer) noexcept -> void;
66 xtd::sptr<data> data_;
67 };
68 }
69 }
70}
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.hpp:45
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.