Ok folks,
I think I got it work but I don't know why... Is this a bug in node-red ?
I took the command pactl load-module module-loopback latency_msec=1 source=1 sink=0 | multimon-ng -a DTMF /dev/stdin
and created a pulse.sh script as follows:
#!/bin/sh
pactl load-module module-loopback latency_msec=1 source=1 sink=0 | multimon-ng -a DTMF /dev/stdin
In the node-red exec node, I am calling the pulse.sh as follows:
/home/pi/Documents/pulse.sh
Guess what ? It works!
I really don't know why... That's worrying actually... Does anyone have any idea?