audio recording
-
My requirement is to record a voice file from a web apllocation in the following format.., "PCM 8kHz, 16 bit, mono" 1) I imported the winmm.dll
DLLImport("winmm.dll", Entrypint:="mciExecute", charset:=charse,ansi, set last error:=true, Exact spelling:=true) private shared function mciExecute(byVal lpStrCommand as string) as boolean end function
2) opened the audio device mciExecute("open new Type waveaudio recSound") 3) setting the format of voice file mciExecute("set recsoud time format ms bitspersample 16 channels 1 samplespersec 8000") ----> after executing this last statement, I faced the following error "The specified parameter is out of range for the specified command". I am able to record voice file at 11.25 khz fq, and even at higher fq. with the same above mentioned steps. is there any other way to meet my requirement, for the last 10days I was browsig, no where I found proper solution, thank u all, with regards, kiran -
My requirement is to record a voice file from a web apllocation in the following format.., "PCM 8kHz, 16 bit, mono" 1) I imported the winmm.dll
DLLImport("winmm.dll", Entrypint:="mciExecute", charset:=charse,ansi, set last error:=true, Exact spelling:=true) private shared function mciExecute(byVal lpStrCommand as string) as boolean end function
2) opened the audio device mciExecute("open new Type waveaudio recSound") 3) setting the format of voice file mciExecute("set recsoud time format ms bitspersample 16 channels 1 samplespersec 8000") ----> after executing this last statement, I faced the following error "The specified parameter is out of range for the specified command". I am able to record voice file at 11.25 khz fq, and even at higher fq. with the same above mentioned steps. is there any other way to meet my requirement, for the last 10days I was browsig, no where I found proper solution, thank u all, with regards, kiranI haven't used MCI in a looong time, but are you sure all your strings are right? mciExecute("open new type waveaudio alias recSound") mciExecute("set recSound time format milliseconds bitspersample 16 channels 1 samplespersec 8000")
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
My requirement is to record a voice file from a web apllocation in the following format.., "PCM 8kHz, 16 bit, mono" 1) I imported the winmm.dll
DLLImport("winmm.dll", Entrypint:="mciExecute", charset:=charse,ansi, set last error:=true, Exact spelling:=true) private shared function mciExecute(byVal lpStrCommand as string) as boolean end function
2) opened the audio device mciExecute("open new Type waveaudio recSound") 3) setting the format of voice file mciExecute("set recsoud time format ms bitspersample 16 channels 1 samplespersec 8000") ----> after executing this last statement, I faced the following error "The specified parameter is out of range for the specified command". I am able to record voice file at 11.25 khz fq, and even at higher fq. with the same above mentioned steps. is there any other way to meet my requirement, for the last 10days I was browsig, no where I found proper solution, thank u all, with regards, kiran -
Actually, I am able to save my voice file in 11.25kHz fq, and above fqs just by changing the set parameter values. It works fine. But I need to save it in 8000 hz format. Yes I am using these statements in VBScript.