From 30b1b5e0491fd337e96abf6dea8bbb48be52ee91 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Thu, 23 Oct 2014 12:12:47 +0200 Subject: [PATCH] again --- README.rst | 71 +++++++++++++++++++++++++++++++++++++-- doc/source/processors.rst | 71 +++++++++++++++++++++++++++++++++++++-- timeside/core.py | 7 ++-- 3 files changed, 139 insertions(+), 10 deletions(-) diff --git a/README.rst b/README.rst index 01b3d38..b224b4b 100644 --- a/README.rst +++ b/README.rst @@ -65,14 +65,79 @@ News For older news, please visit: https://github.com/yomguy/TimeSide/blob/master/NEWS.rst -Processors +IProcessor ========== -IEncoder --------- + IEncoder + -------- * live_encoder : Gstreamer-based Audio Sink * flac_encoder : FLAC encoder based on Gstreamer + * aac_encoder : AAC encoder based on Gstreamer + * mp3_encoder : MP3 encoder based on Gstreamer + * vorbis_encoder : OGG Vorbis encoder based on Gstreamer + * opus_encoder : Opus encoder based on Gstreamer + * wav_encoder : WAV encoder based on Gstreamer + * webm_encoder : WebM encoder based on Gstreamer + + IDecoder + -------- + + * array_decoder : Decoder taking Numpy array as input + * file_decoder : File Decoder based on Gstreamer + * live_decoder : Live source Decoder based on Gstreamer + + IGrapher + -------- + + * grapher_aubio_pitch : Builds a PIL image representing Aubio Pitch + * grapher_onset_detection_function : Builds a PIL image representing Onset detection function + * grapher_waveform : Builds a PIL image representing Waveform from Analyzer + * grapher_irit_speech_4hz_segments : Builds a PIL image representing Irit 4Hz Speech Segmentation + * grapher_irit_speech_4hz_segments_median : Builds a PIL image representing Irit 4Hz Speech Segmentation with median filter + * grapher_monopoly_segments : Builds a PIL image representing Irit Monopoly Segmentation + * grapher_limsi_sad_etape : Builds a PIL image representing LIMSI SAD with ETAPE model + * grapher_limsi_sad_maya : Builds a PIL image representing LIMSI SAD with Mayan model + * grapher_irit_startseg : Builds a PIL image representing IRIT Start Noise + * spectrogram_log : Builds a PIL image representing a spectrogram of the audio stream + * spectrogram_lin : Builds a PIL image representing a spectrogram of the audio stream (level vs. frequency vs. time). + * waveform_simple : Builds a PIL image representing a simple waveform of the audio stream. + * waveform_centroid : Builds a PIL image representing a waveform of the audio stream. + * waveform_contour_black : Builds a PIL image representing an amplitude coutour (envelop) of the audio stream. + * waveform_contour_white : Builds a PIL image representing an amplitude coutour (envelop) of the audio stream. + * waveform_transparent : Builds a PIL image representing a transparent waveform + + IAnalyzer + --------- + + + IValueAnalyzer + -------------- + + * mean_dc_shift : Mean DC shift analyzer + * level : Audio level analyzer + * aubio_melenergy : Aubio Mel Energy analyzer + * aubio_mfcc : Aubio MFCC analyzer + * aubio_pitch : Aubio Pitch estimation analyzer + * aubio_specdesc : Aubio Spectral Descriptors collection analyzer + * aubio_temporal : Aubio Temporal analyzer + * yaafe : Yaafe feature extraction library interface analyzer + * irit_monopoly : Segmentor Monophony/Polyphony based on the analysis of yin confidence. + * irit_startseg : Segmentation of recording sessions into 'start' and 'session' segments + * irit_speech_4hz : Speech Segmentor based on the 4Hz energy modulation analysis. + * irit_speech_entropy : Speech Segmentor based on Entropy analysis. + * limsi_sad : Limsi Speech Activity Detection Systems + * spectrogram_analyzer : Spectrogram analyzer + * onset_detection_function : Onset Detection Function analyzer + * spectrogram_analyzer_2 : Spectrogram analyzer + * spectrogram_analyzer_3 : Spectrogram analyzer + * waveform_analyzer : Waveform analyzer + + IEffect + ------- + + * fx_gain : Gain effect processor + Dive in ======== diff --git a/doc/source/processors.rst b/doc/source/processors.rst index e1a6b93..3dd0ce1 100644 --- a/doc/source/processors.rst +++ b/doc/source/processors.rst @@ -1,9 +1,74 @@ -Processors +IProcessor ========== -IEncoder --------- + IEncoder + -------- * live_encoder : Gstreamer-based Audio Sink * flac_encoder : FLAC encoder based on Gstreamer + * aac_encoder : AAC encoder based on Gstreamer + * mp3_encoder : MP3 encoder based on Gstreamer + * vorbis_encoder : OGG Vorbis encoder based on Gstreamer + * opus_encoder : Opus encoder based on Gstreamer + * wav_encoder : WAV encoder based on Gstreamer + * webm_encoder : WebM encoder based on Gstreamer + + IDecoder + -------- + + * array_decoder : Decoder taking Numpy array as input + * file_decoder : File Decoder based on Gstreamer + * live_decoder : Live source Decoder based on Gstreamer + + IGrapher + -------- + + * grapher_aubio_pitch : Builds a PIL image representing Aubio Pitch + * grapher_onset_detection_function : Builds a PIL image representing Onset detection function + * grapher_waveform : Builds a PIL image representing Waveform from Analyzer + * grapher_irit_speech_4hz_segments : Builds a PIL image representing Irit 4Hz Speech Segmentation + * grapher_irit_speech_4hz_segments_median : Builds a PIL image representing Irit 4Hz Speech Segmentation with median filter + * grapher_monopoly_segments : Builds a PIL image representing Irit Monopoly Segmentation + * grapher_limsi_sad_etape : Builds a PIL image representing LIMSI SAD with ETAPE model + * grapher_limsi_sad_maya : Builds a PIL image representing LIMSI SAD with Mayan model + * grapher_irit_startseg : Builds a PIL image representing IRIT Start Noise + * spectrogram_log : Builds a PIL image representing a spectrogram of the audio stream + * spectrogram_lin : Builds a PIL image representing a spectrogram of the audio stream (level vs. frequency vs. time). + * waveform_simple : Builds a PIL image representing a simple waveform of the audio stream. + * waveform_centroid : Builds a PIL image representing a waveform of the audio stream. + * waveform_contour_black : Builds a PIL image representing an amplitude coutour (envelop) of the audio stream. + * waveform_contour_white : Builds a PIL image representing an amplitude coutour (envelop) of the audio stream. + * waveform_transparent : Builds a PIL image representing a transparent waveform + + IAnalyzer + --------- + + + IValueAnalyzer + -------------- + + * mean_dc_shift : Mean DC shift analyzer + * level : Audio level analyzer + * aubio_melenergy : Aubio Mel Energy analyzer + * aubio_mfcc : Aubio MFCC analyzer + * aubio_pitch : Aubio Pitch estimation analyzer + * aubio_specdesc : Aubio Spectral Descriptors collection analyzer + * aubio_temporal : Aubio Temporal analyzer + * yaafe : Yaafe feature extraction library interface analyzer + * irit_monopoly : Segmentor Monophony/Polyphony based on the analysis of yin confidence. + * irit_startseg : Segmentation of recording sessions into 'start' and 'session' segments + * irit_speech_4hz : Speech Segmentor based on the 4Hz energy modulation analysis. + * irit_speech_entropy : Speech Segmentor based on Entropy analysis. + * limsi_sad : Limsi Speech Activity Detection Systems + * spectrogram_analyzer : Spectrogram analyzer + * onset_detection_function : Onset Detection Function analyzer + * spectrogram_analyzer_2 : Spectrogram analyzer + * spectrogram_analyzer_3 : Spectrogram analyzer + * waveform_analyzer : Waveform analyzer + + IEffect + ------- + + * fx_gain : Gain effect processor + diff --git a/timeside/core.py b/timeside/core.py index 44f250a..2a4525e 100644 --- a/timeside/core.py +++ b/timeside/core.py @@ -282,19 +282,18 @@ def get_processor(processor_id): def list_processors(interface=IProcessor, prefix=""): - print prefix + interface.__name__ + print '\n' + prefix + interface.__name__ if len(prefix): underline_char = '-' else: underline_char = '=' - print prefix + underline_char * len(interface.__name__) + print prefix + underline_char * len(interface.__name__) + '\n' subinterfaces = interface.__subclasses__() for i in subinterfaces: list_processors(interface=i, prefix=prefix + " ") procs = processors(interface, False) for p in procs: - print prefix + " * %s" % p.id() - print prefix + " \t\t%s" % p.description() + print prefix + " * %s : %s" % (p.id(), p.description()) class ProcessPipe(object): -- 2.39.5