From dde91c0dfa93c9a1d35b90ee1c342b6980b8d9e4 Mon Sep 17 00:00:00 2001 From: zhongjin Date: Mon, 12 Dec 2022 19:13:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'src/Instrumentation/commr?= =?UTF-8?q?adio.cxx'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Instrumentation/commradio.cxx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Instrumentation/commradio.cxx b/src/Instrumentation/commradio.cxx index 2d975b1..b8313ce 100644 --- a/src/Instrumentation/commradio.cxx +++ b/src/Instrumentation/commradio.cxx @@ -97,9 +97,16 @@ void AtisSpeaker::valueChanged(SGPropertyNode * node) if (!fgGetBool("/sim/sound/working", false)) return; + SG_LOG("commradio:AtisSpeaker",SG_INFO,"node:" << node); + + string newText = node->getStringValue(); + + SG_LOG("commradio:AtisSpeaker",SG_INFO,"newText:" << newText); + if (_synthesizeRequest.text == newText) return; + _synthesizeRequest.text = newText; string voice = "cmu_us_arctic_slt";