Package echonest :: Module audio :: Class LocalAudioFile
[hide private]
[frames] | no frames]

Class LocalAudioFile

source code


Like AudioFile, but with conditional upload: recommended. If a file is already known to the Analyze API, then it does not bother uploading the file.
Instance Methods [hide private]
 
__init__(self, filename)
Given an input ndarray, import the sample values and shape (if none is specified) of the input numpy.array.
source code
call graph 

Inherited from AudioData: __add__, __getitem__, __len__, append, encode, encode_mp3, encode_wav, getsample, getslice

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, filename)
(Constructor)

source code 
call graph 

Given an input ndarray, import the sample values and shape (if none is specified) of the input numpy.array.

Given a filename (and no input ndarray), load the MP3, WAVE or AIFF file into the data, auto-detecting the file extension, sample rate, and number of channels.

Parameters:
  • filename - path to a local MP3 file
Overrides: object.__init__