diff --git a/3rdparty/voice_text/launch/voice_text.launch b/3rdparty/voice_text/launch/voice_text.launch index 8e12b5ba4..95e7d781f 100644 --- a/3rdparty/voice_text/launch/voice_text.launch +++ b/3rdparty/voice_text/launch/voice_text.launch @@ -9,7 +9,8 @@ - diff --git a/3rdparty/voice_text/src/voice_text.cpp.in b/3rdparty/voice_text/src/voice_text.cpp.in index 24716ecea..f52955098 100644 --- a/3rdparty/voice_text/src/voice_text.cpp.in +++ b/3rdparty/voice_text/src/voice_text.cpp.in @@ -74,7 +74,13 @@ public: } return false; } + VT_GetTTSInfo_JPN(VT_VERIFY_CODE, NULL, &ret, sizeof(int)); + if (ret != 0) { + ROS_FATAL_STREAM("Verification failed (VT_VERIFY_CODE " << ret << ")"); + return false; + } + // Print voice text info char szTmp[PATH_MAX]; char szTmp2[PATH_MAX]; VT_GetTTSInfo_JPN(VT_BUILD_DATE, NULL, szTmp, PATH_MAX);