Closed georgiee closed 11 years ago
Good deal. Thanks for the pull request.
hi @georgiee,
are you able posting the source code of your MicrophoneRecorder class?
I'm having trouble to get my own implementation to play nice with AudioPlayer
cheers
Hi kenvunz, I used my fork of standwingwave to provide you with all classes related to recording. You have to use standwingwave master which includes my pull request. I also included as3 signals in folder /lib. AS3 Signals is used in some classes.
Here you can find my recorder https://github.com/georgiee/standingwave3/tree/master/recording
record/AbstractMicrophoneRecorder is the core to record record/StandardMicrophoneRecorder is the concrete implementation record/VoiceRecorder is using StandardMicrophoneRecorder
all other classes are related to record/EndlessMicrophoneRecorder. This class incorporates a circular buffer which is used to override earlier samples recorded. So you can create a recorder for 5 seconds and record as long as you want. when you stop you get the latest 5 seconds. It's working but was done quick and dirty.
And forgive me for using TweenMax in AbstractRecorder :) I think you can safely remove all occurrences as this dirty dirty delay mechanism is only used in TalkBackRecorder.
I hope this will help you.
@georgiee yes it does help and yes you are forgiven :)
thanks heaps
I read that standingwave3 was developed before we were able to access the microphone bytes. That was a problem for me so I fixed it- which was easy as the microphone returns plain sample data just like a WAVE/RIFF file which is already included in the current SW3 source.
As the class Sample is final I had to directly modify the source to be able to read in samples collected from a microphone. Now there is no need to convert you mic samples first to a WAV format anymore. Here a scenario which is possible now: