Hello,
I'm new to the forum. I'm using Livecode version 7 on Windows 10. I am trying to record audio files for an experiment that I am creating. Here is the code I am using:Everything seems to work, the microphone turns on and then turns off when I stop the recording with a different button.
I added the codeIn order to figure out why it didn't work and I got this error: error -231 starting recording
How can I fix this error?
I'm new to the forum. I'm using Livecode version 7 on Windows 10. I am trying to record audio files for an experiment that I am creating. Here is the code I am using:
CODE:
global gSubjectIDglobal recordcounton mouseUpset the recordFormat to "wave" -- or "wave" or "ulaw" set the recordCompression to "raw "set the itemDelimiter to "/"get the effective fileName of this stackset the defaultFolder to item 1 to -2 of itif not (the hilite of me) then if recordcount is 1 then put gSubjectID & space & "Question 1 . wav" into fld "recordFileName" put fld "recordFileName" into sndName # make sure there's a name if sndName is empty then exit mouseUp end if set the hilite of me to true record sound file sndName add 1 to recordcount end if end if end mouseUp
I added the code
CODE:
put the result
How can I fix this error?
Statistics: Posted by ashleyrobles — Thu Jan 09, 2025 8:07 am