Record Audio for only 10 seconds?
Klaus Major
klaus at major.on-rev.com
Tue Apr 13 03:29:27 EDT 2010
Hi John,
> Hi All...
>
> I'm attempting to create a little stack that will allow the user to record audio, their voice, for a specific amount of time.
>
> I have the recording scripts down:
try this:
> put the long name of current stack into theTargetPath
> put the itemDel into tOrigItemDel
> set the itemDel to "/"
> delete last item of theTargetPath
> delete first item of theTargetPath
> put "/" & theTargetPath & "/Recordings/" into theRecordingTarget
> --create a unique name for the audio file
> convert the date && the long time to seconds
> put it into tFileName
> hide me
> show button "Stop Recording"
send "mouseup" to btn "Stop Recording" in 10 secs
> record sound file theRecordingTarget&tFilename
> put theRecordingTarget&tFileName into cd fld "recording name"
> set the itemDel to tOrigItemDel
>
> However I'm not sure how to add the timer component. I'm thinking I will need to use a "send" statement, something like, send "stop recording" after 10 seconds to current stack???
>
> Thank you!
>
> John Patten
Best
Klaus
--
Klaus Major
http://www.major-k.de
klaus at major.on-rev.com
More information about the use-livecode
mailing list