Reading and executing wave file

Reading and executing wave file almost done. Need to find out why
sometimes a wrong number appears.