Recording Audio

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
jsburnett
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 121
Joined: Fri Mar 09, 2007 9:47 pm

Recording Audio

Post by jsburnett »

Hi,

I am hoping to get some help with a hopefully simple problem. And I have tried to look for answers first in the dictonary and searching this forum.

I am trying to make a stack that allows you to record brief audio "comments" on a card associated with text (i.e., flash cards text notes and with audio notes).

I tried the 'record sound file (filePath)'. No file is created. The result is an error (I believe '-213', from my memory).
Quicktime is installed. I have a working microphone and I have set the input to external microphones per the documentation in the dictionary.

Any suggestions?

Does anyone know of or has a stack that I can look at the scripts to study?

Thank you in advance.

John
Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am

Re: Recording Audio

Post by Dixie »

John...

Attached a very basic stack that allows you to record and then play the created file.. It will hopefully point you in the right direction..

be well

Dixie
Attachments
basicRecord.livecode.zip
(1.04 KiB) Downloaded 437 times
jsburnett
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 121
Joined: Fri Mar 09, 2007 9:47 pm

Re: Recording Audio

Post by jsburnett »

Dixie,

Hi. Thanks for your prompt reply.

When I try to run basicRecord file, I get an error that "There was a problem opening that stack: file is not a stack".

Anything I am doing wrong?

I've 'extracted' the file.

Thanks.

John
jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2734
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: Recording Audio

Post by jmburnod »

Hi,
Anything I am doing wrong?
No this is probabily a file LC 5.5 version

Best regards

Jean-Marc
https://alternatic.ch
Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am

Re: Recording Audio

Post by Dixie »

John...

It was a 5.5 stack... here it is saved in legacy format

be well

Dixie
Attachments
basicRecordLegacy.livecode.zip
(1.05 KiB) Downloaded 419 times
jsburnett
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 121
Joined: Fri Mar 09, 2007 9:47 pm

Re: Recording Audio

Post by jsburnett »

Thanks again!

John
jsburnett
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 121
Joined: Fri Mar 09, 2007 9:47 pm

Re: Recording Audio

Post by jsburnett »

Dixie,

I looked at the scripts in your stack.

They are similar to what i tried.

The "start recording file "Test" - doesn't always consistently 'work'. No file is often 'created'. Was wondering if anyone else has had this issue and found a work around.

Thanks.

John
jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2734
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: Recording Audio

Post by jmburnod »

Hi John,

set the script of the "Start" btn to this script:

Code: Select all

on mouseUp
   ask file "save as:"
   if it = empty then exit mouseup
   put it into tFile
   record sound file tFile
end mouseUp
Best regards

Jean-Marc
https://alternatic.ch
WarrenW
Posts: 27
Joined: Tue Oct 02, 2012 4:26 pm

Re: Recording Audio

Post by WarrenW »

John,

I'm looking at how to record audio also with the iPhone. Were you successful with this?

Thanks,

Warren
Post Reply