audiostream2py.reader¶
BufferReader specific to AudioSegment
-
class
audiostream2py.reader.
AudioBufferReader
(buffer: stream2py.utility.locked_sorted_deque.RWLockSortedDeque, source_reader_info: dict, stop_event: threading.Event, *, read_size=1, peek=False, strict_n=False, ignore_no_item_found=False)[source]¶ -
get_slice
(s: slice) → audiostream2py.data.AudioSegment[source]¶ Slice starting from start_date and stopping at end_date. Trims first and last AudioSegment based on timestamps. Then joins all the AudioSegment objects.
- Parameters
s – slice object
- Returns
concatenated AudioSegment
-