I played with this for a little while and had minimal success. I'm not sure it's worth pursuing. I was able to use RecordToFile to record short clips, but most times it recorded nothing and when it did record something it was very short (a second or less) and just cut off whenever it wanted to. I was able to receive events sometimes, but I never looked at the data.
What is the result of your "print mic.CanRecord()"? Sometimes I would get false and I think I'd have to reboot to get it back to returning true. Since m has different uses, you might want to create a message port just for your testing:
mic = createObject("roMicrophone") print mic.CanRecord() ' <- better print true or there's no sense in continuing port = CreateObject("roMessagePort") mic.SetMessagePort(port) mic.StartRecording()
It works and I received some event when I start recording even sometimes it still works as expected. Thanks, JT. Let me know if I need to accept the answer or anything to help you promote your level as I am new in the Forum.