Page 1 of 1

Recorded Audio Playback Quality Issue

Posted: Fri Jul 31, 2009 4:46 pm
by edljr
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

Posted: Fri Jul 31, 2009 5:04 pm
by Klaus
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

Recorded Audio Playback Quality Issue

Posted: Mon Aug 10, 2009 4:45 am
by edljr
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