mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-17 03:18:07 +00:00
Audio transcription: update sdk. Change output in console to write the current sentence on the same line.
This commit is contained in:
parent
e586fa4369
commit
539fbd5406
2 changed files with 9 additions and 2 deletions
|
|
@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
2
external/linphone-sdk
vendored
2
external/linphone-sdk
vendored
|
|
@ -1 +1 @@
|
||||||
Subproject commit a577b40f32b8e5c4317321159284a214d5d1c25f
|
Subproject commit 64f0a4e42a9c520d3a7ba5903ae3ced650c0b806
|
||||||
Loading…
Add table
Reference in a new issue