mdr2.dtb

Functions to query DAISY Talking Books

audio-channels

(audio-channels dtb)

Return the number of audio channels for a given DAISY Talking Book

audio-format

(audio-format dtb)

Return the format in which the audio files in the DTB file set are written for a given DAISY Talking Book

audio-length

(audio-length dtb)

Return the audio length for a given DAISY Talking Book in milliseconds

depth

(depth dtb)

Return the depth of a given DAISY Talking Book.

Unlike the other functions which mostly do not trust the meta data from the DTB and calculate the data based on the wav files, the depth is simply taken out of the meta data from the manifest.

file-sampling-rate

(file-sampling-rate file)

Return the sample rate for a given audio file

meta-data

(meta-data dtb)

Return a map containing all queried meta data for a given DAISY Talking Book

mono?

(mono? dtb)

Return true if a DAISY Talking Book is mono

multimedia-content

(multimedia-content dtb)

Return the multimedia content for a given DAISY Talking Book

multimedia-type

(multimedia-type dtb)

Return the multimedia type for a given DAISY Talking Book

sampling-rate

(sampling-rate dtb)

Return the sample rate for a given DAISY Talking Book. If there is a mix of sampling rates used the most frequently used is returned

size

(size dtb)

Return the size in kBytes of a given DAISY Talking Book

wav-file?

(wav-file? file)

Is the given file a wav file?