Rcording Audio At a certain level visual c++ 2008(32 bit) -
i'm trying make program record audio input audio device (expample: microphone) when signal active (means when 1 talking in mic) , save mp3 format , tried hard please me
i know of way accomplish this, although i'm not sure if best way it: not easy if not familiar directshow requires learn many aspects of technology. use directshow set media pipeline looks follows:
capture source -> samplegrabber -> audio renderer
this simple playback graph. in sample grabber can intercept samples pass through pipeline. here example process sample see whether silence or not. when you've got right, try setting graph looks
capture source -> samplegrabber -> mp3 encoder -> filewriter
not sure filewriter (if works mp3 encoded data): more homework you.
then using gmfbridge set multiple graphs.
1) capture source -> samplegrabber -> gmfbridgesink 2) gmfbridgesource -> mp3 encoder -> filewriter 3) gmfbridgesource -> renderer (or something)
gmfbridge allows switch between graphs dynamically during playback. 1) typically connected 3) until detect level of audio, bridges 2). once audio level drops 3).
i don't know if best solution, a solution or starting point. perhaps else can suggest way. luck.
Comments
Post a Comment