you can also add a (sleep) timer to any audio app with Clock - Timer set to Stop Playing (bottom option)