Streaming audio data¶
Lacks documentation!
Created on Sun Jun 28 21:12:12 2020
@author: João Vitor Gutkoski Paes
-
class
ossom.
Recorder
(id: int = None, samplerate: int = 48000, blocksize: int = 512, channels: List[int] = [0, 1], buffersize: int = 480000, dtype: numpy.dtype = dtype('float32'), loopback: bool = False)[source]¶ Recorder class.
-
__init__
(id: int = None, samplerate: int = 48000, blocksize: int = 512, channels: List[int] = [0, 1], buffersize: int = 480000, dtype: numpy.dtype = dtype('float32'), loopback: bool = False)[source]¶ Record audio from input device directly into shared memory.
Parameters: - id (int or str, optional) – DESCRIPTION. The default is None.
- samplerate (int, optional) – DESCRIPTION. The default is config.samplerate.
- blocksize (int, optional) – DESCRIPTION. The default is config.blocksize.
- channels (List[int], optional) – DESCRIPTION. The default is config.channels.
- buffersize (int, optional) – DESCRIPTION. The default is config.buffersize.
- dtype (_np.dtype, optional) – DESCRIPTION. The default is config.dtype.
- loopback (bool, optional) – DESCRIPTION. The default is False.
Returns: Return type: None.
-
channels
¶ The device channels to record from. Zero indexed.
-