Try using panel write after setting the sound and the volume.
AC