The speaker switch only switches off ‘system sounds’ - i.e. new email - but not music etc. It’s designed to stop the iPad interrupting meetings etc unintentionally. To turn off music etc you have to turn the volume all the way down.
Tim
Scotland