package SpeechSynthesis
import Timer.SimulatedTimer
+//JPF's Verify API
+import gov.nasa.jpf.vm.Verify
+
public class SpeechSynthesises {
private int deviceNumbers
private List speechSynthesises
this.deviceNumbers = deviceNumbers
this.speechSynthesises = []
+ //def init = Verify.getIntFromList(30, 50, 70)
+ //this.level = init
+
speechSynthesises.add(new SpeechSynthesis(id, label, displayName, this.level))
}
}
def setLevel(int level) {
- speechSynthesises[0].setLevel(level)
- this.level = level
+ if (level != this.level) {
+ speechSynthesises[0].setLevel(level)
+ this.level = level
+ }
}
def speak(String message) {