#NEWLINE# def load_wav( self , path ) : #NEWLINE# #INDENT# wav = wave . open ( path , 'r' ) #NEWLINE# if ( wav . getnchannels ( ) != 1 ) : #NEWLINE# #INDENT# raise Exception ( 'Input wave is not in mono' ) #NEWLINE# #UNINDENT# if ( wav . getsampwidth ( ) != self . default_sample_width ) : #NEWLINE# #INDENT# raise Exception ( ( 'Input wave is not in %d Bytes' % def_sample_width ) ) #NEWLINE# #UNINDENT# return path