sf.SoundBufferRecorder Class Reference
Specialized SoundRecorder which saves the captured audio data into a sound buffer.
Static methods
CanCapture()
Tell if the system supports sound capture. If not, this class won't be usable. Returns True if audio capture is supported.
Methods
GetBuffer()
Get the sound buffer containing the captured audio data. Returns a SoundBuffer object. Returns a sf.SoundBuffer instance.
GetSampleRate()
Get the sample rate. Returns the frequency, in samples per second.
Inherited
Start(SampleRate=44100)
Start the capture. Warning : only one capture can happen at the same time.
SampleRate : Sound frequency (the more samples, the higher the quality) (44100 by default = CD quality).
Inherited
Stop()
Stop the capture.
Inherited