[Pas2js] audio record to wav files

Michael Van Canneyt michael at freepascal.org
Wed Mar 1 00:02:36 CET 2023



On Tue, 28 Feb 2023, Mgr. Janusz Chmiel via Pas2js wrote:

> Dear Michael and other elite Pas2js units developers, Does somebody of us
> plan to release unit which will be able to record .wav file from
> microphone?  Does somebody of us plan to release unit, which will be able
> to play .wav files from harddisk?  Or no?

I have code to create an audio stream from the microphone, but it would need
some polishing.

If you want, you can try to code it yourself, for instance using this:

https://ralzohairi.medium.com/audio-recording-in-javascript-96eed45b75ee

To play a wav file, you can simply set the src element of an Audio tag to
the file.

Michael.



More information about the Pas2js mailing list