refactor in segmentByAudioOffset in book.coffee