-
Notifications
You must be signed in to change notification settings - Fork 0
/
capture.launch
27 lines (25 loc) · 1.09 KB
/
capture.launch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<launch>
<!-- arecord -l will show available input devices, use the car number as
the first number and the subdevice number as the second in a string
like hw:1,0 -->
<arg name="dst" default="appsink"/>
<arg name="device" default="plughw:1,0"/>
<arg name="format" default="wave"/>
<arg name="bitrate" default="128"/>
<arg name="channels" default="1"/>
<arg name="depth" default="16"/>
<arg name="sample_rate" default="16000"/>
<arg name="sample_format" default="S16LE"/>
<arg name="audio_topic" default="audio"/>
<node name="audio_capture" pkg="audio_capture" type="audio_capture" output="screen">
<remap from="audio" to="$(arg audio_topic)" />
<param name="dst" value="$(arg dst)"/>
<param name="device" value="$(arg device)"/>
<param name="format" value="$(arg format)"/>
<param name="bitrate" value="$(arg bitrate)"/>
<param name="channels" value="$(arg channels)"/>
<param name="depth" value="$(arg depth)"/>
<param name="sample_rate" value="$(arg sample_rate)"/>
<param name="sample_format" value="$(arg sample_format)"/>
</node>
</launch>