Record Micro

  1. 5 years ago

    Sascha M

    19 Jun 2015 Europe (Germany)
    Edited 5 years ago

    Hey there,

    is it possible with Xojo on Windows to record a microphone to a wave File?

  2. Will S

    19 Jun 2015 Santa Cruz 

    For the recording part you can use the BASS library. Simple demo here https://forum.xojo.com/conversation/post/183708

    The download bassRecGL should work on Windows but you'll also need to find and install libbass.dll (or whatever it's called).

    The demo just records to a short, temporary buffer for drawing. For long, indefinite recordings I use an array of 10MB Memoryblocks. As new data comes in copy it to the current Memoryblock and when it fills up append another Memoryblock and begin writing there.

    But there may be functions in BASS that record directly to a file.

    If you do need to write the file yourself see here https://forum.xojo.com/23110-how-to-write-wav-or-aiff-data-from-binary-stream

    For some € the MBS plugins have functions for audio recording (and writing I assume).
    The PortAudio library is another possibility but I haven't used it.
    There should be functions built into Windows you can declare to but I don't know them.

    In short you'll need declares or a plugin to get audio recordings.

  3. Axel S

    is not verified 20 Jun 2015 Europe (Germany, Erfurt)

    another possibility is to record with Sox, a commandline utility (OSX, Win, Linux)

    This Example is made for OSX
    (the path to sox would have to be adapted for Windows)

    -image-

  4. 2 weeks ago

    Hello Axel,
    Can't open archive. Can you help me to get your Example ?

    Regards,

  5. Emile S

    Jan 12 Europe (France, Strasbourg)

    Of course, it holds an html file, not PK (zip) data.

    It opens a DropBox tab, but shows nothing (here).

  6. Jean-Yves P

    Jan 12 Pre-Release Testers, Xojo Pro Europe (France, Besançon)

    here is the good archive link
    https://www.dropbox.com/s/ppagh1jmqdy9us7/RecordAudio2.zip

  7. Christian S

    Jan 12 Pre-Release Testers, Xojo Pro, XDC Speakers, Third Party Store Germany
    Edited 2 weeks ago

    MBS Xojo Audio Plugin has PortAudioMBS class (and subclasses) to record and SndFileMBS class to write wav file.

  8. Javier M

    Jan 12 Xojo Inc, Pre-Release Testers, Xojo Pro, XDC Speakers, Third Party Store AprendeXojo - Europe, Spain

    I can tell you that the BASS (and related) Libraries are a beast! You can do really awesome things with them! (macOS / Windows). The only thing: you'll be dealing with declares.

or Sign Up to reply!