Guest User

Untitled

a guest
May 27th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.48 KB | None | 0 0
  1. <!-- roslaunch julius_ros julius.launch -->
  2.  
  3. <launch>
  4. <arg name="conf_file" default="$(find julius_ros)/conf/main.jconf" />
  5. <arg name="hmm_def_file" default="$(find julius)/model/phone_m/jnas-tri-3k16-gid.hmmdefs" />
  6. <arg name="hmm_list_file" default="$(find julius)/model/phone_m/logicalTri" />
  7. <arg name="word_file" default="$(find julius_ros)/data/udon.dic" />
  8. <arg name="module_port" default="10500" />
  9. <arg name="audio_port" default="10501" />
  10. <arg name="max_connection_retry" default="0" />
  11. <arg name="default_threshold" default="0.9" />
  12. <arg name="start_signal_action_timeout" default="0.3" />
  13. <arg name="respawn" default="false" />
  14.  
  15. <arg name="launch_audio_capture" default="true" />
  16. <arg name="launch_sound_play" default="true" />
  17. <arg name="sound_play_topic" default="sound_play" />
  18. <arg name="speech_to_text_topic" default="speech_to_text" />
  19.  
  20. <arg name="device" default=""/>
  21. <arg name="machine" default="localhost" />
  22. <arg name="sample_rate" default="16000"/>
  23. <!-- <arg name="sample_rate" default="8000"/> -->
  24. <arg name="use_machine" default="true" />
  25. <arg name="format" default="wave"/>
  26. <arg name="channels" default="2"/>
  27. <!-- <arg name="bitrate" default="256000"/> -->
  28. <arg name="bitrate" default="768000"/>
  29. <!-- <arg name="depth" default="16"/> -->
  30. <arg name="depth" default="24"/>
  31.  
  32. <machine name="localhost" address="localhost" if="$(arg use_machine)" />
  33.  
  34. <!-- run julius (isolated word) -->
  35. <node name="julius_isolated" pkg="julius_ros" type="run_julius.sh"
  36. machine="$(arg machine)" respawn="$(arg respawn)"
  37. args="-C $(arg conf_file)
  38. -adport $(arg audio_port)
  39. -module $(arg module_port)
  40. -h $(arg hmm_def_file)
  41. -hlist $(arg hmm_list_file)
  42. -w $(arg word_file)" />
  43.  
  44. <!-- audio capture from microphone -->
  45. <node name="audio_capture" pkg="audio_capture" type="audio_capture"
  46. if="$(arg launch_audio_capture)"
  47. machine="$(arg machine)"
  48. respawn="$(arg respawn)"
  49. output="screen"
  50. clear_params="true">
  51. <!-- <param name="bitrate" value="$(arg bitrate)"/> -->
  52. <!-- <param name="device" value="$(arg device)"/> -->
  53. <!-- <param name="format" value="$(arg format)" /> -->
  54. <!-- <param name="channels" value="$(arg channels)" /> -->
  55. <!-- <param name="depth" value="$(arg depth)" /> -->
  56. <!-- <param name="sample_rate" value="$(arg sample_rate)" /> -->
  57.  
  58. <param name="device" value="$(arg device)"/>
  59. <param name="format" value="wave" />
  60. <param name="channels" value="2" />
  61. <param name="depth" value="24" />
  62. <param name="sample_rate" value="8000" />
  63.  
  64. </node>
  65.  
  66. <!-- sound play -->
  67. <node name="sound_play" pkg="sound_play" type="soundplay_node.py"
  68. machine="$(arg machine)"
  69. respawn="$(arg respawn)"
  70. if="$(arg launch_sound_play)" />
  71.  
  72. <!-- ros / julius interface -->
  73. <node name="julius_client_isolated"
  74. pkg="julius_ros" type="julius_client.py"
  75. machine="$(arg machine)"
  76. respawn="$(arg respawn)"
  77. output="screen">
  78. <remap from="sound_play" to="$(arg sound_play_topic)" />
  79. <remap from="speech_to_text" to="$(arg speech_to_text_topic)" />
  80. <rosparam subst_value="true">
  81. use_isolated_word: true
  82. audio_port: $(arg audio_port)
  83. module_port: $(arg module_port)
  84. max_connection_retry: $(arg max_connection_retry)
  85. threshold: $(arg default_threshold)
  86. start_signal_action_timeout: $(arg start_signal_action_timeout)
  87. </rosparam>
  88. </node>
  89. </launch>
Add Comment
Please, Sign In to add comment