@@ -23,21 +23,22 @@ namespace HFA {
2323 return a >= b - EPS;
2424 }
2525
26- Phoneme::Phoneme (const float start , const float end , const std::string &text)
27- : start(std::max(0 .0f , start )), end(std::max(0 .0f , end )), text(text) {
26+ Phoneme::Phoneme (const float p_start , const float p_end , const std::string &text)
27+ : start(std::max(0 .0f , p_start )), end(std::max(0 .0f , p_end )), text(text) {
2828 if (!(0 <= start && start < end)) {
29- std::cerr << " Warning: Phoneme Invalid: text=" << text << " start =" << start << " , end =" << end
29+ std::cerr << " Warning: Phoneme Invalid: text=" << text << " p_start =" << start << " , p_end =" << end
3030 << std::endl;
3131 }
3232 }
3333
34- Word::Word (float start , float end , const std::string &text, const bool init_phoneme)
35- : start(std::max(0 .0f , start )), end(std::max(0 .0f , end )), text(text) {
34+ Word::Word (float w_start , float w_end , const std::string &text, const bool init_phoneme)
35+ : start(std::max(0 .0f , w_start )), end(std::max(0 .0f , w_end )), text(text) {
3636 if (!(0 <= start && start < end)) {
37- std::cerr << " Warning: Word Invalid: text=" << text << " start=" << start << " , end=" << end << std::endl;
37+ std::cerr << " Warning: Word Invalid: text=" << text << " w_start=" << start << " , w_end=" << end
38+ << std::endl;
3839 }
3940 if (init_phoneme) {
40- phonemes.emplace_back (start, end , text);
41+ phonemes.emplace_back (w_start, w_end , text);
4142 }
4243 }
4344
0 commit comments