Recording Audio (Again)
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Livecode Opensource Backer
- Posts: 211
- Joined: Sun Oct 24, 2010 12:13 am
Recording Audio (Again)
About a year ago I asked if there was a way to record audio on iOS. I got a nice response from Dixie who referred me to the rreMicrophone extension. However, that only worked with LiveCode 4... even after installing the LiveCode SDK-R10 it wouldn't work.
So a year has gone by. I just downloaded and installed the LiveCodeSDK-10 (again), I am running LiveCode 5.0.2, OS 10.7.2, Xcode 4.2, and iOS5 SDK. I opened the rremicrophone LiveCode stack, launched it in the simulator, and it doesn't work - it won't record any audio.
My question is, has anyone got this working in LiveCode 5? If yes, did you have to do anything special to get it working? I don't want to bang my head against a wall if there's no point - I have a bunch of other things I can be doing.
SIDE NOTE - rrenarrator and rremicrophone stacks won't work, but rrecanvas works just fine.
So a year has gone by. I just downloaded and installed the LiveCodeSDK-10 (again), I am running LiveCode 5.0.2, OS 10.7.2, Xcode 4.2, and iOS5 SDK. I opened the rremicrophone LiveCode stack, launched it in the simulator, and it doesn't work - it won't record any audio.
My question is, has anyone got this working in LiveCode 5? If yes, did you have to do anything special to get it working? I don't want to bang my head against a wall if there's no point - I have a bunch of other things I can be doing.
SIDE NOTE - rrenarrator and rremicrophone stacks won't work, but rrecanvas works just fine.
Re: Recording Audio (Again)
Hi Richard,
Thank for that. I feel me less alone with this problem
Best regards
Jean-Marc
No. I use LC 5.0 and rremicrophone and rrenarrator don't work for me.My question is, has anyone got this working in LiveCode 5?
Thank for that. I feel me less alone with this problem

Best regards
Jean-Marc
https://alternatic.ch
-
- Livecode Opensource Backer
- Posts: 211
- Joined: Sun Oct 24, 2010 12:13 am
Re: Recording Audio (Again)
Glad to help! Being able to record audio seems like a pretty basic feature. I'm half tempted to find one in web format that uses javascript and then just open it up in my app in a browser object. I bet it'd work. But for the current project I don't need it quite that bad. If I do figure out how to do it via the web browser, I'll share. In the meantime, I guess we can just wait for the LiveCode folks to add it. That and the ability to do text to speech.jmburnod wrote:Hi Richard,No. I use LC 5.0 and rremicrophone and rrenarrator don't work for me.My question is, has anyone got this working in LiveCode 5?
Thank for that. I feel me less alone with this problem![]()
Best regards
Jean-Marc
Re: Recording Audio (Again)
Hi Richard,
All the best
Jean-Marc
Yes. I know Dixie work hard for that. We can help him for testingI guess we can just wait for the LiveCode folks to add it.
All the best
Jean-Marc
https://alternatic.ch
Re: Recording Audio (Again)
richardmac...
The rremicrophone external does allow you to record under liveCode.... and it works...
I first had it working under 4.6.4 and everything was fine... After reading your post, I have just tested my stack that was built using 4.6.4 and the liveCodeSDK- R8 external package, but now using 5.0.2, and it is working without changing anything.
If you would like to see the stack then mail me at : john@ihouse.on-rev.com
be well
Dixie
The rremicrophone external does allow you to record under liveCode.... and it works...

If you would like to see the stack then mail me at : john@ihouse.on-rev.com
be well
Dixie
-
- Livecode Opensource Backer
- Posts: 211
- Joined: Sun Oct 24, 2010 12:13 am
Re: Recording Audio (Again)
Dixie,
I have a copy of the Recording stack that you sent me last year, named "OnRecord.livecode." Is that the same stack? If it is, it will not work on my simulator or hardware. It will appear to start recording, and then you can't stop the recording and nothing is saved. Also, the rremicrophone.livecode stack does not work on the simulator or hardware. If you click the "Check Available" button, it reports "Microphone is available:true." When you click "Start," it thinks for a few seconds then reports "Recording started with result:" and nothing. Clicking "Stop" reports "Recording stopped with result:" and nothing. And nothing gets recorded.
Could it be that something about our environments is different, such as the Mac OS version? Here is exactly what I have:
LiveCode 5.0.2
OS 10.7.2
Xcode 4.2
iOS5 SDK
LiveCodeSDK-10
The SDK-10 ships with example stacks and as I said, the rremicrophone and rrenarrator do not work, but the rrecanvas does.
I have not gone directly through LiveCode support, because I know this is the fringe stuff, and I'm not desperate to get these features - and I am more than willing to try any and all suggestions to try to troubleshoot the issue, to report everything I find, to help in any way/shape/form that I can with this. But I don't know what to do or where to start in terms of troubleshooting.
I have a copy of the Recording stack that you sent me last year, named "OnRecord.livecode." Is that the same stack? If it is, it will not work on my simulator or hardware. It will appear to start recording, and then you can't stop the recording and nothing is saved. Also, the rremicrophone.livecode stack does not work on the simulator or hardware. If you click the "Check Available" button, it reports "Microphone is available:true." When you click "Start," it thinks for a few seconds then reports "Recording started with result:" and nothing. Clicking "Stop" reports "Recording stopped with result:" and nothing. And nothing gets recorded.
Could it be that something about our environments is different, such as the Mac OS version? Here is exactly what I have:
LiveCode 5.0.2
OS 10.7.2
Xcode 4.2
iOS5 SDK
LiveCodeSDK-10
The SDK-10 ships with example stacks and as I said, the rremicrophone and rrenarrator do not work, but the rrecanvas does.
I have not gone directly through LiveCode support, because I know this is the fringe stuff, and I'm not desperate to get these features - and I am more than willing to try any and all suggestions to try to troubleshoot the issue, to report everything I find, to help in any way/shape/form that I can with this. But I don't know what to do or where to start in terms of troubleshooting.
Re: Recording Audio (Again)
Bump.
I'm seeing the exact same behaviour on
LiveCode 5.0.2
OSX 10.6.8 SnowLeopard
XCode 4.2
iPad 2 64 3G
iOS5 SDK
No errors, but no response either.
-Ken
I'm seeing the exact same behaviour on
LiveCode 5.0.2
OSX 10.6.8 SnowLeopard
XCode 4.2
iPad 2 64 3G
iOS5 SDK
No errors, but no response either.
-Ken
-
- Livecode Opensource Backer
- Posts: 211
- Joined: Sun Oct 24, 2010 12:13 am
Re: Recording Audio (Again)
Bump again! 

Re: Recording Audio (Again)
Hi All,
"On Record" work well on my iPad
OSX 10.7.2, LiveCode 5.0.0,Xcode 4.2.1, LiveCodeSDK-R10, ios 5.0.1
On my iPad the list of the records was empty because there is a file "soundBitesList" and a file "soundbitesList" (the filename is case sensitive on IOS)
"On Record" save to file "soundBitesList" and read the list from file "soundbitesList"
I replaced "soundBitesList" with "soundbitesList" and it work
Best from geneva
Jean-Marc
"On Record" work well on my iPad

OSX 10.7.2, LiveCode 5.0.0,Xcode 4.2.1, LiveCodeSDK-R10, ios 5.0.1
On my iPad the list of the records was empty because there is a file "soundBitesList" and a file "soundbitesList" (the filename is case sensitive on IOS)
"On Record" save to file "soundBitesList" and read the list from file "soundbitesList"
I replaced "soundBitesList" with "soundbitesList" and it work
Best from geneva
Jean-Marc
https://alternatic.ch
Re: Recording Audio (Again)
I have been able to get rremicrophone to record and playback using LC 5.5 and an iPhone. My problem is that when I send the audio file to an iPhone, Mac or PC, they cannot play the file. What I need to know is how to make rremicrophone create an MP3 or ACC file.
I have been unable to isuue a rremicrophone command that will do it. I also would like to know what 'types' of files LiveCode can create. In order to create a variable with which to send a file as an attachment, you need to assign a 'type'. What 'type' of file is an audiofile.
UPDATE: I now have success. The default recording is WAV, so all you have to do is name the file you are sending as a .wav
I have had no luck with sending the audio file as an attachment using the path to the file, and have had to build a variuable with file type (using the MIME file type), pathe to the file and the name of the file ( with the wav extension). I have not had any luck with building 'AAC' files and I have been told that iOS devices will not record mp3. If anyone has had luck recorfding and playing 'ac3' (AAC) files I'd love to know how it is done.
I have been unable to isuue a rremicrophone command that will do it. I also would like to know what 'types' of files LiveCode can create. In order to create a variable with which to send a file as an attachment, you need to assign a 'type'. What 'type' of file is an audiofile.
UPDATE: I now have success. The default recording is WAV, so all you have to do is name the file you are sending as a .wav
I have had no luck with sending the audio file as an attachment using the path to the file, and have had to build a variuable with file type (using the MIME file type), pathe to the file and the name of the file ( with the wav extension). I have not had any luck with building 'AAC' files and I have been told that iOS devices will not record mp3. If anyone has had luck recorfding and playing 'ac3' (AAC) files I'd love to know how it is done.
Re: Recording Audio (Again)
rremicrohone.livecode can work (sort of) with LC 5.5.
The stack saves recordings as 'output.aud'. Try setting the file extension to match the codec.
global gFileExtension
on setFType pwhich
switch pWhich
case "Linear PCM" put ".wav" into gFileExtension
break
case "Apple Lossless" put ".m4a" into gFileExtension
break
case "MP4-AAC" put ".aac" into gFileExtension
break
case "MP3" put ".mp3" into gFileExtension
break
case "iLBC" put ".lbc" into gFileExtension
break
end switch
end setFType
This helps. Now you can record and play back PCM, Apple Lossless, and AAC in the simulator.
On my iPAD2 those three will also record, but only PCM and AAC play back.
MP3 and iLBC just don't work in the simulator honor the device. That's a shame because I could use iLBC in a project.
You can also set the file extension to simply ".caf", and get the same results.
Hope this helps.
It would be nice if audio recording were directly supported in LC on IOS and Android. In the meantime, it might help to get an updated externals SDK.
The stack saves recordings as 'output.aud'. Try setting the file extension to match the codec.
global gFileExtension
on setFType pwhich
switch pWhich
case "Linear PCM" put ".wav" into gFileExtension
break
case "Apple Lossless" put ".m4a" into gFileExtension
break
case "MP4-AAC" put ".aac" into gFileExtension
break
case "MP3" put ".mp3" into gFileExtension
break
case "iLBC" put ".lbc" into gFileExtension
break
end switch
end setFType
This helps. Now you can record and play back PCM, Apple Lossless, and AAC in the simulator.
On my iPAD2 those three will also record, but only PCM and AAC play back.
MP3 and iLBC just don't work in the simulator honor the device. That's a shame because I could use iLBC in a project.
You can also set the file extension to simply ".caf", and get the same results.
Hope this helps.
It would be nice if audio recording were directly supported in LC on IOS and Android. In the meantime, it might help to get an updated externals SDK.
Re: Recording Audio (Again)
And here's another gotcha.
I can only make one recording. Trying to make subsequent recordings produces a "recording failed' error.
One must quit the app and restart to make a new recording.
I can only make one recording. Trying to make subsequent recordings produces a "recording failed' error.
One must quit the app and restart to make a new recording.

-
- Posts: 125
- Joined: Sat Jan 31, 2009 12:01 am
Re: Recording Audio (Again)
Anyone has the "on record.livecode" stack that was mentioned that Dixie had created for rremicrophone?
Note that audio recording is also not support in 5.5. got the camera working well on the iPad, just want to record an audio for each picture taken.
Scott
Note that audio recording is also not support in 5.5. got the camera working well on the iPad, just want to record an audio for each picture taken.
Scott
Re: Recording Audio (Again)
Hi jiml
You can use the rename command to save a record with an other name
jml and Scott
Dixie said :
Best regards
Jean-Marc
Yes.I can only make one recording.
You can use the rename command to save a record with an other name
jml and Scott
Dixie said :
Code: Select all
If you would like to see the stack then mail me at : john@ihouse.on-rev.com
Jean-Marc
https://alternatic.ch
-
- Posts: 125
- Joined: Sat Jan 31, 2009 12:01 am
Re: Recording Audio (Again)
I know this may be a simpleton question....but how are those files listed in the rremicrophone folder, binaries, rremicrophone.ios, reemicrophone.lcidl....how are these external files eventually included into the standalone. I'm no external expert, but any tutorial on adding the rremicrophone and respective files into the standalone? I guess, I would just like to record a few sounds in a language program for autistic children attached to a picture.
Scott
Scott