I've been through many stackoverflow pages and forums trying to find the answer I want. I created a virtual microphone and I'm trying to pipe to it some wav sounds created using FFMPEG.
When I want to pipe a keyboard noise I pipe the sound to my virtual sound capture device like this:
ffmpeg -fflags +discardcorrupt -i <Keyboard sound Path> -f s16le -ar 44100 -ac 1 - > /tmp/gapFakeMic
And when I want to pipe some synthetized voice sound using Espeak to my virtual microphone, I do this:
espeak -vbrazil-mbrola-4 <some random text> --stdout | ffmpeg -fflags +discardcorrupt -i pipe:0 -f s16le -ar 44100 -ac 1 - > /tmp/gapFakeMic
The problem is my capture device doesn't record the sound like a normal recorder that still records even when there's no sound being transmited to it. So I'm trying to append the silence to the wav which is being created while my application is running. Always when I try to send the silence to buffer, FFMPEG returns the following response:
[NULL @ 0x5579f7921a00] Unable to find a suitable output format for 'pipe:'
FFMPEG is a powerful tool but its documentation lacks to be useful for newbies like me. So, I'd appreciate if anyone could answer this or at least give me any direction or some resource where I could find a way of achieving this.
https://stackoverflow.com/questions/66880317/create-silent-wav-and-pipe-it March 31, 2021 at 09:07AM
没有评论:
发表评论