while data != '':
    self.stream.write(data)
data = self.wf.readframes(self.chunk)

def close(self):
    """ Graceful shutdown """
self.stream.close()
self.p.terminate()
a = AudioFile('1.wav')
a.play()
a.close()
pyaudio помогите воспроизвести файл