|
|||
|
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!
|
|
|||
|
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");
|
|
|||
|
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"; |
|
|||
|
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". |
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|