#NEWLINE# def chunks( self ) : #NEWLINE# #INDENT# wav = wave . open ( '/opt/resources/test2.wav' , 'rb' ) #NEWLINE# while True : #NEWLINE# #INDENT# frames = wav . readframes ( 512 ) #NEWLINE# if ( len ( frames ) == 0 ) : #NEWLINE# #INDENT# break #NEWLINE# #UNINDENT# ( yield ( frames , self . resample_to_default_sample_rate ( frames ) ) )