uwacan.recordings.AudioFileRecording#
- class AudioFileRecording(files, assume_sorted=False, **kwargs)[source]#
Bases:
FileRecordingClass for audio file recordings.
This class handles reading audio files using the
soundfilepython package. This is a fully functional class, but reading data requires astart_time_parserfunction passed to theread_folderclassmethod. A more convenient approach is to subclass this class and customize theread_folderclassmethod.Methods
read_folder(folder, start_time_parser[, ...])Read all matching files in a folder and parse their start times.
rolling([duration, step, overlap])Generate rolling frames of data.
Read stored time data.
Inherited methods
check_file_continuity([start_time, ...])Check the continuity of recorded data.
raw_data([start_time, stop_time])Read raw data from files on disk.
raw_frames([start_time, stop_time, framesize])Generate frames of raw data from files on disk.
select_file_name(name)Get a recording for a specific file, by name.
select_file_time(time)Get a recording for a specific file, by time.
subwindow([time, start, stop, center, ...])Select a subset of the recording.
Attributes
adc_rangeThe voltage peak range of the adc in this recording.
allowable_interruptHow long gap is allowed between files when reading.
file_rangeThe input range of the read files.
gainThe gain of this recording.
num_channelsThe number of channel in the recording, and the read data.
samplerateThe samplerate of the recording, in Hz.
time_windowA
TimeWindowthat covers the recording.