[routing] Log all turn notifications TTS

Signed-off-by: David Martinez <47610359+dvdmrtnz@users.noreply.github.com>
This commit is contained in:
David Martinez
2025-08-17 23:24:51 +02:00
committed by Konstantin Pastbin
parent 1a6bbd756a
commit 1b04524d68
2 changed files with 6 additions and 3 deletions

View File

@@ -147,6 +147,11 @@ void NotificationManager::GenerateTurnNotifications(std::vector<TurnItemDist> co
return;
turnNotifications.emplace_back(std::move(secondNotification));
// Log turn notifications TTS
if (!turnNotifications.empty())
for (auto const & notification : turnNotifications)
LOG(LINFO, ("TTS:", notification));
// Turn notification with word "Then" (about the second turn) will be pronounced.
// When this second turn become the first one the first notification about the turn
// shall be skipped.

View File

@@ -229,8 +229,6 @@ std::string GetTtsText::GetTurnNotification(Notification const & notification) c
// trim leading spaces
strings::Trim(cleanOut);
LOG(LINFO, ("TTSn", thenStr + cleanOut));
return thenStr + cleanOut;
}
@@ -247,7 +245,7 @@ std::string GetTtsText::GetTurnNotification(Notification const & notification) c
{
out = thenStr + dirStr;
}
LOG(LINFO, ("TTS", out));
return out;
}