Recorded Audio Playback Quality Issue

Visuals, audio, animation. Blended, not stirred. If LiveCode is part of your rich media production toolbox, this is the forum for you.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
edljr
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 56
Joined: Sun Oct 26, 2008 6:47 am
Contact:

Recorded Audio Playback Quality Issue

Post by edljr » Fri Jul 31, 2009 4:46 pm

Hi all,

I have an app that includes functionality for the user to record and playback their voice. The problem I am having is that the playback quality is very scratchy. I have had three different people try this and they have the same problem.

Here is the code for my Record button:

Code: Select all

on mouseUp
   global userSoundFile
   
   set the recordInput to "dflt" // default mic
   record sound file userSoundFile
end mouseUp
Here is the code for the Play button (of note, I stop the recording in case they click play before stopping the recording on their own):

Code: Select all

on mouseUp
   global userSoundFile
   
   set the recording to false
   play userSoundFile
end mouseUp
I have tried this with Rev Studio 3.0, 3.5, and Rev Media 4.0. I am using a MacBookPro, but have had it tested on multiple platforms.

Am I missing something? Any help would be appreciated.

Thanks,
Ed

Klaus
Posts: 14190
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Post by Klaus » Fri Jul 31, 2009 5:04 pm

Hi Ed,

the "play" command is very limited, not to say "nitpicky", when it comes to the used codecs!
In fact "play" will only give satisfying results when you use UNCOMPRESSED AIF or WAV files
or the (compressed) AU format!

Did you try to:
...
global userSoundFile
set the filename of player "your player object here..." to userSoundFile
start player "your player object here..."
...
???

I'm sure this will sound better :-)


Best

Klaus

edljr
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 56
Joined: Sun Oct 26, 2008 6:47 am
Contact:

Recorded Audio Playback Quality Issue

Post by edljr » Mon Aug 10, 2009 4:45 am

Hi Klaus,

Thank you for this note. I found that using the play command and a player object resulted in the same 'scratchy' effect. That let me to realize it was a record, not playback issue.

Using the answer record function fixed the problem. I just wish I could set the QT values (i.e. recordChannels) without having to call up the QT preferences pane. Setting the values in the script does not result in an error, but has no effect.

Thanks again for the post; you led me to the solution!

Ed

Post Reply