#NEWLINE# def __init__( self , filename_or_fileobject ) : #NEWLINE# #INDENT# if ( str is bytes ) : #NEWLINE# #INDENT# assert ( isinstance ( filename_or_fileobject , ( str , unicode ) ) or hasattr ( filename_or_fileobject , 'read' ) ) , 'Given audio file must be a filename string or a file-like object' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# assert ( isinstance ( filename_or_fileobject , str ) or hasattr ( filename_or_fileobject , 'read' ) ) , 'Given audio file must be a filename string or a file-like object' #NEWLINE# #UNINDENT# self . filename_or_fileobject = self #NEWLINE# self . stream = None #NEWLINE# self . DURATION = None