Update voice.js

Add changes by ashwinks for fix.