|
@@ -32,6 +32,12 @@ namespace snowboy_wakeup
|
|
|
ROS_ERROR("Mandatory parameter 'model_filename' not present on the parameter server");
|
|
|
return false;
|
|
|
}
|
|
|
+
|
|
|
+ std::string beep_filename;
|
|
|
+ if (!nh_p_.getParam("beep_filename", beep_filename))
|
|
|
+ {
|
|
|
+ ROS_WARN("Mandatory parameter 'beep_filename' not present on the parameter server");
|
|
|
+ }
|
|
|
|
|
|
std::string asr_topic;
|
|
|
if (!nh_p_.getParam("asr_topic", asr_topic))
|
|
@@ -110,10 +116,10 @@ namespace snowboy_wakeup
|
|
|
int result = detector_.runDetection( &sample_array[0], msg->data.size()/2);
|
|
|
if (result == 1)
|
|
|
{
|
|
|
- ROS_INFO("Hotword 1 detected!");
|
|
|
+ ROS_DEBUG("wakeUp detected!");
|
|
|
hotword_msg.data = result;
|
|
|
hotword_pub_.publish(hotword_msg);
|
|
|
- system("play -q --multi-threaded ~/Music/ding.wav");
|
|
|
+ system("play -q --multi-threaded " + beep_filename);
|
|
|
}
|
|
|
else if (result == -3)
|
|
|
{
|