summary refs log tree commit diff stats
path: root/generator/pronunciation.h
diff options
context:
space:
mode:
Diffstat (limited to 'generator/pronunciation.h')
-rw-r--r--generator/pronunciation.h19
1 files changed, 18 insertions, 1 deletions
diff --git a/generator/pronunciation.h b/generator/pronunciation.h index 3190e6d..e6dc4b4 100644 --- a/generator/pronunciation.h +++ b/generator/pronunciation.h
@@ -13,7 +13,7 @@ namespace verbly {
13 13
14 // Constructor 14 // Constructor
15 15
16 explicit pronunciation(std::string phonemes); 16 pronunciation(std::string phonemes, int anaphone_set_id);
17 17
18 // Accessors 18 // Accessors
19 19
@@ -62,6 +62,21 @@ namespace verbly {
62 return stress_; 62 return stress_;
63 } 63 }
64 64
65 int getAnaphoneSetId() const
66 {
67 return anaphone_set_id_;
68 }
69
70 void setReverseId(int id)
71 {
72 reverse_id_ = id;
73 }
74
75 int getReverseId() const
76 {
77 return reverse_id_;
78 }
79
65 private: 80 private:
66 81
67 static int nextId_; 82 static int nextId_;
@@ -72,6 +87,8 @@ namespace verbly {
72 std::string prerhyme_; 87 std::string prerhyme_;
73 int syllables_ = 0; 88 int syllables_ = 0;
74 std::string stress_; 89 std::string stress_;
90 int anaphone_set_id_;
91 int reverse_id_ = -1;
75 92
76 }; 93 };
77 94