From 1b04524d6813147563d265490a46faab536838e8 Mon Sep 17 00:00:00 2001 From: David Martinez <47610359+dvdmrtnz@users.noreply.github.com> Date: Sun, 17 Aug 2025 23:24:51 +0200 Subject: [PATCH] [routing] Log all turn notifications TTS Signed-off-by: David Martinez <47610359+dvdmrtnz@users.noreply.github.com> --- libs/routing/turns_notification_manager.cpp | 5 +++++ libs/routing/turns_tts_text.cpp | 4 +--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/libs/routing/turns_notification_manager.cpp b/libs/routing/turns_notification_manager.cpp index a7e785234..d5551b1a6 100644 --- a/libs/routing/turns_notification_manager.cpp +++ b/libs/routing/turns_notification_manager.cpp @@ -147,6 +147,11 @@ void NotificationManager::GenerateTurnNotifications(std::vector 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. diff --git a/libs/routing/turns_tts_text.cpp b/libs/routing/turns_tts_text.cpp index 04f05509b..e8bbb004b 100644 --- a/libs/routing/turns_tts_text.cpp +++ b/libs/routing/turns_tts_text.cpp @@ -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; }