yarphear generates a flickering audio if it runs from yarpmanager #2500
-
Describe the bug
If I run the very same command from the terminal the application works as expected. yarp/src/yarphear/yarphear.cpp Lines 229 to 231 in af2a17d To Reproduce <!-- Copyright (C) 2020 Fondazione Istituto Italiano di Tecnologia (IIT) -->
<!-- All Rights Reserved. -->
<!-- Author: Giulio Romualdi <giulio.romualdi@iit.it> -->
<application>
<name>Audio for Retargeting</name>
<description>Audio application.</description>
<version>1.0</version>
<!-- Devices -->
<module>
<name>yarpdev</name>
<parameters> --device AudioRecorderWrapper --subdevice portaudioRecorder --name /icub/microphone --min_samples_over_network 4000 --max-samples_over_network 4000 --rate 160000 --samples 16000</parameters>
<node>icub-console-gui</node>
</module>
<module>
<name>yarpdev</name>
<parameters> --device AudioRecorderWrapper --subdevice portaudioRecorder --name /virtualizer/microphone --min_samples_over_network 4000 --max-samples_over_network 4000 --rate 160000 --samples 16000</parameters>
<node>icub-virtualizer</node>
</module>
<module>
<name>yarphear</name>
<parameters>--name /icub/yarphear:i</parameters>
<node>icub-console-gui</node>
</module>
<module>
<name>yarphear</name>
<parameters>--name /virtualizer/yarphear:i</parameters>
<node>icub-virtualizer</node>
</module>
<!-- Connections -->
<connection>
<from>/virtualizer/microphone/audio:o</from>
<to>/icub/yarphear:i</to>
</connection>
<connection>
<from>/icub/microphone/audio:o</from>
<to>/virtualizer/yarphear:i</to>
</connection>
</application> Here you can also find the complete log log_icub-console-gui_yarphear_18321.txt cc @S-Dafarra |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments
-
What is the output if you run it from the terminal? |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
I'm obtaining the same behavior if I press
Here I used |
Beta Was this translation helpful? Give feedback.
-
Can you try:
|
Beta Was this translation helpful? Give feedback.
-
In this direction you should also try to launch yarphear via the yarpmanager but not using the |
Beta Was this translation helpful? Give feedback.
-
Just a side comment: |
Beta Was this translation helpful? Give feedback.
-
I did not understand. What would be the module responsible to stream the audio to the speakers? What would be the resulting |
Beta Was this translation helpful? Give feedback.
-
Thank you @randaz81 your solution (#2388 (comment)) works for us. |
Beta Was this translation helpful? Give feedback.
Just a side comment:
Since you already have in your .xml
yarpdev --device AudioRecorderWrapper --subdevice portaudioRecorder
, the most obvious (and modern) choice to transfer audio is to useyarpdev --device AudioPlayerWrapper --subdevice portaudioPlayer
. You probably do not need yarphear at all (unless you want to save audio to disk)