Skip to content

iCub microphone + YARP interface #461

Answered by randaz81
Sohaib448506 asked this question in Q&A
Discussion options

You must be logged in to vote

Some examples are provided in: https://yarp.it/latest/group__AudioDoc.html
On the PC104 (icub head:)

yarpdev --device audioRecorderWrapper --subdevice portaudioRecorder --start --min_samples_over_network 3200 --max_samples_over_network 3200 --AUDIO_BASE::rate 16000 --AUDIO_BASE::samples 6400 --AUDIO_BASE::channels 1

On the receiver laptop:

yarpdev --device audioPlayerWrapper --subdevice portaudioPlayer --start --playback_network_buffer_size 0.1 --AUDIO_BASE::samples 32000
connect /audioRecorderWrapper/audio:o /audioPlayerWrapper/audio:i

The exact values of the parameters to use may depend on your network configuration (e.g. ethernet/wifi).
The larger is the buffer, the higher is the delay.

Replies: 4 comments 7 replies

Comment options

You must be logged in to vote
1 reply
@Sohaib448506
Comment options

Comment options

You must be logged in to vote
3 replies
@randaz81
Comment options

@farooqUsman
Comment options

@Sohaib448506
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@farooqUsman
Comment options

@randaz81
Comment options

@farooqUsman
Comment options

Answer selected by randaz81
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants