-
Hi, We have a bit of a different use of Liquidsoap. We use it to encode call recordings into a mixed mono file, and a stereo file with a speaker on left and right. This is then encoded into m4a. This happens non realtime, after the recording has been received. We are now implementing some new functionality, where we want to mute part of the file, during the encoding process. If for example we have a recording, where credit cards are accepted, we need to mute the parts where that is transferred. Total length: 49 seconds. The script would be generated dynamically, which is how we would add the different blocks, so basically I need to figure out what commands to use for creating the mute blocks. Thanks for a great project, it keeps impressing me as to what it can do. Kind Regards |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You can use
Here, |
Beta Was this translation helpful? Give feedback.
You can use
source.time
to get how many time has elapsed since the beginning of a source andamplify
to mute it when needed. I would thus do something like this, wheres
is your sourceHere,
amp
returns 0 or 1 depending on the time elapsed ins
and we amplifys
accordingly.