aboutsummaryrefslogtreecommitdiff
path: root/samples/SpeechRecognition/include/Decoder.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'samples/SpeechRecognition/include/Decoder.hpp')
-rw-r--r--samples/SpeechRecognition/include/Decoder.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/samples/SpeechRecognition/include/Decoder.hpp b/samples/SpeechRecognition/include/Decoder.hpp
index 69d97ccf64..9dd484a5d1 100644
--- a/samples/SpeechRecognition/include/Decoder.hpp
+++ b/samples/SpeechRecognition/include/Decoder.hpp
@@ -46,8 +46,8 @@ namespace asr
rowVector.emplace_back(static_cast<int16_t>(contextToProcess[row * rowLength + j]));
}
- int max_index = std::distance(rowVector.begin(),std::max_element(rowVector.begin(), rowVector.end()));
- unfilteredText.emplace_back(this->m_labels.at(max_index)[0]);
+ int maxIndex = std::distance(rowVector.begin(), std::max_element(rowVector.begin(), rowVector.end()));
+ unfilteredText.emplace_back(this->m_labels.at(maxIndex)[0]);
}
std::string filteredText = FilterCharacters(unfilteredText);