Recorder

Erel

B4X founder
Staff member
Licensed User
Longtime User
Using this library you can record and create audio files.
The desktop library is a "dummy" library.
The recording functionality is only available on the device.
The three important methods are:

Start(LengthMS As Int32) - The maximum length of the record file (milliseconds).
Stop - Stops the recording.
Save (File As String) - Saves the last record.

An example is included in the zip file.
 

Attachments

  • Recorder.zip
    7.7 KB · Views: 319
Last edited:

alfcen

Well-Known Member
Licensed User
Longtime User
Hi Erel
Less work, but great effect. The idea alone is fantastic!
BTW, what is the valid range for WaveIn.Start(x)?
'0' and '200000' throw exception errors.
Thanks a lot.
Robert
 

Louis

Active Member
Licensed User
Longtime User
Hi timsteeman
If you want to use this library on the desktop, add a reference to RecorderDesktop.dll. If you want this to run on the device, just add a reference to Recorde.dll. The sample B4PPC app is meant for the device, so i you want erel's sample to run on the Desktop, remove Recorder.dll and add RecorderDesktop.dll from the Tools - Conponents dialog.
 

alfcen

Well-Known Member
Licensed User
Longtime User
Hi Erel,
Just a thought. The Recorder saves PCM at 11,025kHz sampling, 8 bit, stereo.
I feel that monoaural would be sufficient for voice memos recorded with the device,
whilst saving 50% memory. I don't know exactly how the Recoder works and
what it wraps, therefore unable to judge whether switching to mono is possible or not.
Cheers
Robert
 

linum

Active Member
Licensed User
What would be the correct command to Stop a Wave file during playback?

I know that Sound() is the command to play it. Is there a command to stop it while it's playing? Would Wave.Stop work?


Thank you...
 
Top