def play(self):
    ' Play entire file '
    utils.displayInfoMessage('Playing Audio')
    pathparts = self.file.rsplit('.', 1)
    fileformat = pathparts[1]
    song = AudioSegment.from_file(self.file, format=fileformat)
    play(song)
    utils.displayInfoMessage('')
    utils.displayErrorMessage('')
Play entire file
def play(self):
    '  '
    utils.displayInfoMessage('Playing Audio')
    pathparts = self.file.rsplit('.', 1)
    fileformat = pathparts[1]
    song = AudioSegment.from_file(self.file, format=fileformat)
    play(song)
    utils.displayInfoMessage()
    utils.displayErrorMessage()