}
def setLevel(int level) {
- println("The level of speech synthesis with id:$id is changed to $level")
- this.level = level
+ if (level != this.level) {
+ println("The level of speech synthesis with id:$id is changed to $level")
+ this.level = level
+ }
}
def speak(String message) {