Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-24-2004, 09:48 PM
Junior Member
 
Join Date: Feb 2004
Posts: 7
Default Setting the quality of audio recordings

I've got a problem with audio recording in SWF Kit. When I record audio with my microphone the quality of the output file is pretty bad. Is there any way to improve the quality like setting the bitrate, recording in mono/stereo and the like? Please help!
Reply With Quote
  #2 (permalink)  
Old 02-27-2004, 02:08 PM
Junior Member
 
Join Date: Feb 2004
Posts: 14
Default Re:Setting the quality of audio recordings

Code:
//Recording
MCI.sendCmdString("open new type waveaudio alias myrecorder");
MCI.sendCmdString("set myrecorder bitspersample 8 channels 2 samplespersec 44100");
MCI.sendCmdString("record myrecorder");
Code:
//Stop and save to file

MCI.sendCmdString("stop myrecorder");
MCI.sendCmdString("save myrecorder c:\\1.wav");
MCI.sendCmdString("close myrecorder");
Reply With Quote
  #3 (permalink)  
Old 03-03-2004, 04:08 PM
Junior Member
 
Join Date: Feb 2004
Posts: 7
Default Re:Setting the quality of audio recordings

This worked fine! But how can I set the recording quality in a script like the following one?

//Delete previous recording
file = new File ("d:\\1.wav");
file.remove();

//Define new recording device
recorder = new MCI;
recorder.deviceType = "waveaudio";
recorder.fileName = "";
recorder.wait = true;
recorder.command = "open";

//Set time format to milliseconds
recorder.timeFormat = 0;

//Set the record length to 10 seconds
recorder.to = 10000;

//Set overwrite existing data
recorder.recordMode = true;

//Start recording
recorder.command = "record";

//Save the recording to file
recorder.fileName = "d:\\1.wav";
recorder.command = "save";
recorder.command = "close";
Reply With Quote
  #4 (permalink)  
Old 03-05-2004, 08:17 AM
Junior Member
 
Join Date: Feb 2004
Posts: 14
Default Re:Setting the quality of audio recordings

Hi,

sorry, it's very hard to set the recoding quality in this way. The mci object does return the device id, but when use the device id in the set command string, it just returns "unknown device".

Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 05:52 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.