xtd
1.0.0
Toggle main menu visibility
Loading...
Searching...
No Matches
xtd.core
include
xtd
speech
synthesis
prompt.hpp
Go to the documentation of this file.
1
4
#pragma once
5
#include "
../../object.hpp
"
6
#include "
../../string.hpp
"
7
9
namespace
xtd
{
11
namespace
speech
{
13
namespace
synthesis
{
15
class
speech_synthesizer
;
17
36
class
core_export_
prompt
:
public
xtd::object
{
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
}
xtd::object
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition
object.hpp:45
xtd::speech::synthesis::prompt::prompt
prompt(const xtd::string &text_to_speak)
Initializes a new instance of the xtd::speech::synthesis::speech_synthesizer class.
xtd::speech::synthesis::speech_synthesizer
Provides access to the functionality of an installed speech synthesis engine.
Definition
speech_synthesizer.hpp:35
core_export_
#define core_export_
Define shared library export.
Definition
core_export.hpp:13
xtd::string
xtd::basic_string< char > string
Represents text as a sequence of UTF-8 code units.
Definition
__string_definitions.hpp:43
xtd::sptr
xtd::shared_ptr_object< type_t > sptr
The xtd::sptr object is a shared pointer.
Definition
sptr.hpp:25
xtd::speech::synthesis
Contains classes for initializing and configuring a speech synthesis engine, for creating prompts,...
Definition
prompt.hpp:13
xtd::speech
The xtd::speech namespace contains all classes and namespace to access speech technology.
Definition
prompt.hpp:11
xtd
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition
abstract_object.hpp:8
xtd::data
constexpr auto data() const noexcept -> const_pointer
Gets direct access to the underlying contiguous storage.
Definition
read_only_span.hpp:197
object.hpp
Contains xtd::object class.
string.hpp
Contains xtd::string alias.
Generated on
for xtd by
Gammasoft
. All rights reserved.