Sujet : Sound Recording Script in Forth
De : krishna.myneni (at) *nospam* ccreweb.org (Krishna Myneni)
Groupes : comp.lang.forthDate : 16. Nov 2024, 16:09:04
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vhacih$2l05$1@dont-email.me>
User-Agent : Mozilla Thunderbird
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.4thIt 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