mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-19 04:53:36 +00:00
[routing] Log all turn notifications TTS
Signed-off-by: David Martinez <47610359+dvdmrtnz@users.noreply.github.com>
This commit is contained in:
committed by
Konstantin Pastbin
parent
1a6bbd756a
commit
1b04524d68
@@ -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.
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user