def from_file(filename):
if filename.lower().endswith("<STR_LIT>"):<EOL><INDENT>return WaveAudioSource(filename)<EOL><DEDENT>raise Exception("<STR_LIT>" % (filename))<EOL>
Create an `AudioSource` object using the audio file specified by `filename`.
The appropriate :class:`AudioSource` class is guessed from file's extension.

:Parameters:

    `filename` :
        path to an audio file.

:Returns:

    an `AudioSource` object that reads data from the given file.