• Sound Recording Script in Forth

    From Krishna Myneni@21:1/5 to All on Sat Nov 16 09:09:04 2024
    I have a working version of my script for doing sound recording and
    playback for kForth: kstudio.4th

    https://github.com/mynenik/kForth-64/blob/master/forth-src/kstudio.4th

    It runs under kForth-64 on Linux, and, I think it should run under
    kForth-32 for Linux as well, but has not yet been tested on the latter.

    While it has a text interface which allows easy recording and playback
    (once configured for your audio capture source), my primary interface is through hardware, a 2-pushbutton switch box connected through a serial
    port. The hardware interface allows start and stop for a recording, and
    start and stop for playback of the last recorded file. These are the
    primary functions.

    The text interface is still missing a stop playback command, and at
    present, there is no feedback on when playback has stopped. The program launches the recording and playback as separate processes, so it is
    possible to do playback and recording simultaneously. In principle one
    can also launch multiple recording processes from different input
    sources, nearly simultaneously, but the present program is not set up to
    do that.

    It's a usable start, and much more convenient than trying to enter the
    arecord command from the command line under linux.

    --
    Krishna Myneni

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)