OK, thanks, I think I've managed to achieve what's needed. 

Here's what I'm using, in case anyone is reading this issue looking for the 
same functionality. I'm using JACK audio here just because I can control what I 
pip into it better than the pulse / ALSA mic input.

Only downside to this is that I do have a trailing 5 sec of silence. If there's 
an easy way to get rid of this that would be handy. For now I have another 
background task that picks up the FLAC file and converts it to OPUS (because 
the Liquidsoap 1.1.1 has a bug with OPUS in Debian distros i think) and takes 
off the silence with FFMPEG
```
set('log.file.path', '/tmp/audio.log')
set('log.stdout', true)
sound = input.jack(id = 'input_audio', buffer_size = 2)
output.file(
  %ogg(%flac(channels = 1, samplerate = 48000)), %opus(mono, samplerate = 
16000, vbr = "unconstrained") # Does not work on 1.1.1
  'snippets/%Y-%m-%d_%H-%M-%S.flac.ogg',
  reopen_delay = 1.0,
  fallible = true,
  flush = true,
  strip_blank(max_blank = 5.0, sound)
)
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/savonet/liquidsoap/issues/651#issuecomment-437636305
_______________________________________________
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to