Skip to content

Commit

Permalink
Merge pull request #238 from Kanazawanaoaki/add-record-to-file-launch
Browse files Browse the repository at this point in the history
  • Loading branch information
knorth55 authored Sep 1, 2023
2 parents 836aa62 + 5c83237 commit f95f9c8
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions audio_play/launch/record_to_file.launch
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<launch>
<arg name="dst" default="/tmp/output_audio.mp3"/>
<arg name="device" default=""/>
<arg name="do_timestamp" default="false"/>
<arg name="format" default="mp3"/>
<arg name="channels" default="1"/>
<arg name="depth" default="16"/>
<arg name="sample_rate" default="16000"/>
<arg name="sample_format" default="S16LE"/>
<arg name="ns" default="audio"/>
<arg name="audio_topic" default="audio" />

<include file="$(find audio_play)/launch/play.launch">
<arg name="dst" value="$(arg dst)"/>
<arg name="device" value="$(arg device)"/>
<arg name="do_timestamp" value="$(arg do_timestamp)"/>
<arg name="format" value="$(arg format)"/>
<arg name="channels" value="$(arg channels)"/>
<arg name="depth" value="$(arg depth)"/>
<arg name="sample_rate" value="$(arg sample_rate)"/>
<arg name="sample_format" value="$(arg sample_format)"/>
<arg name="ns" value="$(arg ns)"/>
<arg name="audio_topic" value="$(arg audio_topic)" />
</include>
</launch>

0 comments on commit f95f9c8

Please sign in to comment.