Change frequency to frequency value in Piezo Speaker API