diff options
Diffstat (limited to 'audio')
-rw-r--r-- | audio/listener/listener.1 | 139 | ||||
-rw-r--r-- | audio/listener/listener.SlackBuild | 68 | ||||
-rw-r--r-- | audio/listener/listener.info | 10 | ||||
-rw-r--r-- | audio/listener/listener.rst | 112 |
4 files changed, 292 insertions, 37 deletions
diff --git a/audio/listener/listener.1 b/audio/listener/listener.1 new file mode 100644 index 000000000000..0bd99c7cd830 --- /dev/null +++ b/audio/listener/listener.1 @@ -0,0 +1,139 @@ +.\" Man page generated from reStructuredText. +. +.TH LISTENER 1 "2017-08-13" "2.2" "SlackBuilds.org" +.SH NAME +listener \- listen for sound and record it +. +.nr rst2man-indent-level 0 +. +.de1 rstReportMargin +\\$1 \\n[an-margin] +level \\n[rst2man-indent-level] +level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] +- +\\n[rst2man-indent0] +\\n[rst2man-indent1] +\\n[rst2man-indent2] +.. +.de1 INDENT +.\" .rstReportMargin pre: +. RS \\$1 +. nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] +. nr rst2man-indent-level +1 +.\" .rstReportMargin post: +.. +.de UNINDENT +. RE +.\" indent \\n[an-margin] +.\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] +.nr rst2man-indent-level -1 +.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] +.in \\n[rst2man-indent\\n[rst2man-indent-level]]u +.. +.\" RST source for listener(1) man page. Convert with: +. +.\" rst2man.py listener.rst > listener.1 +. +.\" rst2man.py comes from the SBo development/docutils package. +. +.SH SYNOPSIS +.sp +listener [\fI\-options\fP] +.SH DESCRIPTION +.sp +Listener listens for sound. If it detects any, it starts recording +automatically and also automatically stops when things become silent +again. +.SH OPTIONS +.sp +Most options can be set in the config file. +.INDENT 0.0 +.TP +.BI \-c\fB <configfile> +Config file to use (default is \fB/etc/listener.conf\fP). +.TP +.BI \-l\fB <detect_level> +Detect level. +.TP +.BI \-m\fB <min_duration> +Minimum duration to record (samples). +.TP +.BI \-b\fB <rec_silence> +How many seconds to keep recording after no sound is heard. +.TP +.BI \-x\fB <max_duration> +Maximum duration to record (seconds). +.TP +.BI \-S\fB <pars> +Sets the sample rate, number of channels, output file type, etc. +e.g.: \fB44100,1,wav\fP +or: \fB2,ima_adpcm,10khz\fP\&. +See below for a list of fileformats and subtypes. +.TP +.B \-F +Use a fixed amplification factor. +.TP +.B \-o +Exit after 1 recording. +.TP +.BI \-w\fB <wav_path> +Where to write outfile files. +.TP +.B \-p +Read from pipe (together with splitaudio). +.TP +.BI \-y\fB <command> +Script to call as soon as the recording starts. +.TP +.BI \-e\fB <command> +Script to call after recording. +.TP +.B \-f +Fork into the background. +.TP +.BI \-a\fB <pidfile> +File to write the pid in. +.TP +.B \-s +Be silent. +.TP +.B \-h +Print help text and exit. +.UNINDENT +.sp +Supported file formats: wav, aiff, au, raw, paf, svx, nist, voc, ircam, w64, mat4, mat5, pvf, xi, htk, sds, avr, wavex, sd2, flac, caf, wve, ogg, mpc2k, rf64 +.sp +Supported sub\-types: pcm_s8, pcms8, pcm8, pcm_16, pcm16, pcm_24, pcm24, pcm_32, pcm32, pcm_u8, pcmu8, float, double, ulaw, alaw, ima_adpcm, ms_adpcm, gsm610, vox_adpcm, g721_32, g723_24, g723_40, dwvw_12, dwvw_16, dwvw_24, dwvw_n, dpcm_8, dpcm_16, vorbis +.SH FILES +.sp +/etc/listener.conf The default config file (when \fB\-c\fP not used). +.\" ENVIRONMENT +. +.\" =========== +. +.\" EXIT STATUS +. +.\" =========== +. +.\" BUGS +. +.\" ==== +. +.\" EXAMPLES +. +.\" ======== +. +.SH COPYRIGHT +.sp +See the file /usr/doc/listener\-2.2/license.txt for license information. +.SH AUTHORS +.sp +listener was written by \fI\%folkert@vanheusden.com\fP\&. +.sp +This man page written for the SlackBuilds.org project +by B. Watson, and is licensed under the WTFPL. +.SH SEE ALSO +.sp +The listener homepage: \fI\%https://www.vanheusden.com/listener/\fP +.\" Generated by docutils manpage writer. +. diff --git a/audio/listener/listener.SlackBuild b/audio/listener/listener.SlackBuild index 63d6176c2839..622464b13ff9 100644 --- a/audio/listener/listener.SlackBuild +++ b/audio/listener/listener.SlackBuild @@ -15,8 +15,15 @@ # Updated to version 2.0.1 09/10/2011 # +# 20170813 bkw: +# - take over maintenance. If you want to buy me a beer too, I won't stop you! +# - update for v2.2 (which has been out for 4+ years now) +# - include filter plugins in package +# - add man page +# - script cleanups + PRGNAM=listener -VERSION=${VERSION:-2.0.1} +VERSION=${VERSION:-2.2} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -56,40 +63,37 @@ rm -rf $PRGNAM-$VERSION tar -xvf $CWD/$PRGNAM-$VERSION.tgz cd $PRGNAM-$VERSION chown -R root:root . -find -L . \ - \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ - -o -perm 511 \) -exec chmod 755 {} \; -o \ - \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; - -find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ - | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true - -# make the destination directories for the Makefile, otherwise it keels over. -mkdir -p $PKG/{usr/bin,etc} - -# fix Makefile so install path to /usr/bin, not /bin -sed -i 's@(INSTALL_PREFIX)/bin@(INSTALL_PREFIX)/usr/bin@g' Makefile - -# fix listener.h hardcoded config file path -sed -i 's@/usr/local/etc/listener.conf@/etc/listener.conf@' listener.h - -# fix the documentation reference to the config file too -sed -i 's@/usr/local/etc/listener.conf@/etc/listener.conf@' manual.html - -CFLAGS="$SLKCFLAGS" \ -make install INSTALL_PREFIX=$PKG - -find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ - | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true +find . -type f -exec chmod 644 {} + +find . -type d -exec chmod 755 {} + + +# fix hardcoded config file path +sed -i 's,/usr/local/etc,/etc,g' $PRGNAM.h manual.html + +# search for filter plugins here: +FILTERDIR=/usr/lib$LIBDIRSUFFIX/$PRGNAM +sed -i "s|-ldl|-Wl,-rpath,$FILTERDIR &|" Makefile + +# build the main program +CFLAGS="$SLKCFLAGS" make + +# build (some of) the example filters +mkdir -p $PKG/$FILTERDIR +for i in deglitch highpass lowpass unspike; do + cd filter_lib_examples/$i + sed -i "s,^CFLAGS=,&$SLKCFLAGS ," Makefile + CFLAGS="$SLKCFLAGS" make + install -s *.so.* $PKG/$FILTERDIR + cd - +done + +# easier to install manually than coerce 'make install' to play nice. +mkdir -p $PKG/usr/bin $PKG/etc +install -s -m0755 $PRGNAM set$PRGNAM $PKG/usr/bin +cat $PRGNAM.conf > $PKG/etc/$PRGNAM.conf.new mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -( cp -a license.txt manual.html $PKG/usr/doc/$PRGNAM-$VERSION ) +cp -a license.txt manual.html $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -find $PKG/usr/doc/$PRGNAM-$VERSION -type f -exec chmod 644 {} \; - -# Don't clobber existing .conf files in /etc -mv $PKG/etc/listener.conf $PKG/etc/listener.conf.new mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc diff --git a/audio/listener/listener.info b/audio/listener/listener.info index 667cbf40d4ba..81ea95f60e6a 100644 --- a/audio/listener/listener.info +++ b/audio/listener/listener.info @@ -1,10 +1,10 @@ PRGNAM="listener" -VERSION="2.0.1" +VERSION="2.2" HOMEPAGE="http://www.vanheusden.com/listener/" -DOWNLOAD="http://www.vanheusden.com/listener/listener-2.0.1.tgz" -MD5SUM="c793da01635e25ec04b87d3ed83d359d" +DOWNLOAD="http://www.vanheusden.com/listener/listener-2.2.tgz" +MD5SUM="7f8bc7e4c01025cbe2dc03230ab7336b" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="portaudio" -MAINTAINER="Gerardo Zamudio" -EMAIL="gerardo@gerardozamudio.net" +MAINTAINER="B. Watson" +EMAIL="yalhcru@gmail.com" diff --git a/audio/listener/listener.rst b/audio/listener/listener.rst new file mode 100644 index 000000000000..83ca3bd94a19 --- /dev/null +++ b/audio/listener/listener.rst @@ -0,0 +1,112 @@ +.. RST source for listener(1) man page. Convert with: +.. rst2man.py listener.rst > listener.1 +.. rst2man.py comes from the SBo development/docutils package. + +.. |version| replace:: 2.2 +.. |date| date:: + +======== +listener +======== + +------------------------------ +listen for sound and record it +------------------------------ + +:Manual section: 1 +:Manual group: SlackBuilds.org +:Date: |date| +:Version: |version| + +SYNOPSIS +======== + +listener [*-options*] + +DESCRIPTION +=========== + +Listener listens for sound. If it detects any, it starts recording +automatically and also automatically stops when things become silent +again. + +OPTIONS +======= + +Most options can be set in the config file. + +-c<configfile> Config file to use (default is **/etc/listener.conf**). + +-l<detect_level> + Detect level. + +-m<min_duration> + Minimum duration to record (samples). + +-b<rec_silence> How many seconds to keep recording after no sound is heard. + +-x<max_duration> Maximum duration to record (seconds). + +-S<pars> Sets the sample rate, number of channels, output file type, etc. + e.g.: **44100,1,wav** + or: **2,ima_adpcm,10khz**. + See below for a list of fileformats and subtypes. + +-F Use a fixed amplification factor. + +-o Exit after 1 recording. + +-w<wav_path> Where to write outfile files. + +-p Read from pipe (together with splitaudio). + +-y<command> Script to call as soon as the recording starts. + +-e<command> Script to call after recording. + +-f Fork into the background. + +-a<pidfile> File to write the pid in. + +-s Be silent. + +-h Print help text and exit. + +Supported file formats: wav, aiff, au, raw, paf, svx, nist, voc, ircam, w64, mat4, mat5, pvf, xi, htk, sds, avr, wavex, sd2, flac, caf, wve, ogg, mpc2k, rf64 + +Supported sub-types: pcm_s8, pcms8, pcm8, pcm_16, pcm16, pcm_24, pcm24, pcm_32, pcm32, pcm_u8, pcmu8, float, double, ulaw, alaw, ima_adpcm, ms_adpcm, gsm610, vox_adpcm, g721_32, g723_24, g723_40, dwvw_12, dwvw_16, dwvw_24, dwvw_n, dpcm_8, dpcm_16, vorbis + +FILES +===== + +/etc/listener.conf The default config file (when **-c** not used). + +.. ENVIRONMENT +.. =========== + +.. EXIT STATUS +.. =========== + +.. BUGS +.. ==== + +.. EXAMPLES +.. ======== + +COPYRIGHT +========= + +See the file /usr/doc/listener-|version|/license.txt for license information. + +AUTHORS +======= + +listener was written by folkert@vanheusden.com. + +This man page written for the SlackBuilds.org project +by B. Watson, and is licensed under the WTFPL. + +SEE ALSO +======== + +The listener homepage: https://www.vanheusden.com/listener/ |