diff --git a/src/phoneExtraction.cpp b/src/phoneExtraction.cpp index e028e57..ab358a5 100644 --- a/src/phoneExtraction.cpp +++ b/src/phoneExtraction.cpp @@ -18,6 +18,7 @@ #include "ContinuousTimeline.h" #include "audio/processing.h" #include "parallel.h" +#include extern "C" { #include @@ -322,6 +323,9 @@ Timeline utteranceToPhones( if (wordIds.empty()) return Timeline(); // Align the words' phones with speech +#if BOOST_VERSION < 105600 // Support legacy syntax +#define value_or get_value_or +#endif Timeline segmentPhones = getPhoneAlignment(wordIds, *clipSegment, decoder, alignmentProgressSink) .value_or(ContinuousTimeline(clipSegment->getTruncatedRange(), Phone::Noise)); segmentPhones.shift(utterance.getStart());