Migrated audio functions to auxiliary script