class_docstr: Aubio Silence detection analyzer
class_docstr_tok: ["Aubio","Silence","detection","analyzer"]
code: def post_process(self):
      silence = self.new_result(data_mode="label", time_mode="segment")
      silence.data_object.time = (
          np.arange(
              0,
              len(self.silence) * self.input_stepsize,
              self.input_stepsize,
          )
          / self.input_samplerate
      )
      silence.data_object.label = np.array(self.silence, dtype=int)
      duration = self.input_blocksize / float(self.input_samplerate)
      silence.data_object.duration = (
          np.ones(silence.data_object.label.shape) * duration
      )
      silence.data_object.label_metadata.label = {
          0: "Silence",
          1: "Not Silence",
      }
      silence.data_object.merge_segment()
  
      self.add_result(silence)
  
file_path: TimeSide/timeside/plugins/analyzer/externals/aubio_silence.py
imports: from __future__ import absolute_import
  from timeside.core import implements, interfacedoc
  from timeside.core.analyzer import Analyzer
  from timeside.core.api import IAnalyzer
  from timeside.core.preprocessors import downmix_to_mono, frames_adapter
  from timeside.core.tools.parameters import Float, HasTraits
  from timeside.core.tools.parameters import store_parameters
  from aubio import silence_detection
  import numpy
  from timeside.core.grapher import DisplayAnalyzer
label_desc: Use image node_id 8 for calling the AubioSilence obj's underlying member method code with example usage: obj.post_process() without return types