9 input_sample_rate=16000,
12 n_channel=1, target_channel=0,
13 get_latest_data=False,
18 topic_name=topic_name,
19 expr_to_get_data=
'm.data',
20 input_sample_rate=input_sample_rate,
21 window_size=window_size,
26 target_channel=target_channel,
27 get_latest_data=get_latest_data,
28 discard_data=discard_data,
29 auto_start=auto_start,
34 n_channel = rospy.get_param(
'~n_channel', 1)
35 target_channel = rospy.get_param(
'~target_channel', 0)
36 mic_sampling_rate = rospy.get_param(
'~mic_sampling_rate', 16000)
37 bitdepth = rospy.get_param(
'~bitdepth', 16)
38 return AudioBuffer(input_sample_rate=mic_sampling_rate,
41 target_channel=target_channel,