Audio transcription: update sdk. Change output in console to write the current sentence on the same line.

This commit is contained in:
flore.harle 2025-09-17 23:37:47 +02:00
parent e586fa4369
commit 539fbd5406
2 changed files with 9 additions and 2 deletions

View file

@ -53,5 +53,12 @@ void TranscriptionModel::onTranscriptionDisplay(const std::shared_ptr<linphone::
// } // }
auto name = transcription->getNameById(lastId); auto name = transcription->getNameById(lastId);
auto sentence = transcription->getSentenceById(lastId); auto sentence = transcription->getSentenceById(lastId);
lInfo() << log().arg("onTranscriptionDisplay: ID [%1] - NAME [%2]: %3").arg(lastId).arg(name).arg(sentence); if (system("clear")) std::cout << "DIDNT CLEAR!" << std::endl;
if (name.empty()) {
lInfo() << log().arg("onTranscriptionDisplay: ID [%1]: %2").arg(lastId).arg(sentence);
std::cout << "onTranscriptionDisplay ID [" << lastId << "]: " << sentence << std::endl;
} else {
lInfo() << log().arg("onTranscriptionDisplay: ID [%1] - NAME [%2]: %3").arg(lastId).arg(name).arg(sentence);
std::cout << "onTranscriptionDisplay ID [" << lastId << "] - NAME [" << name << "]: " << sentence << std::endl;
}
} }

@ -1 +1 @@
Subproject commit a577b40f32b8e5c4317321159284a214d5d1c25f Subproject commit 64f0a4e42a9c520d3a7ba5903ae3ced650c0b806