/src/main/java/uk/ac/cam/ch/ami/AmiVoice.java
https://bitbucket.org/jat45/ami · Java · 28 lines · 14 code · 7 blank · 7 comment · 1 complexity · 411d73944eed21e7aa1f95ea5feeef60 MD5 · raw file
- package uk.ac.cam.ch.ami;
-
- import java.util.List;
-
- /**
- * Created by IntelliJ IDEA.
- * User: Matthew
- * Date: 13-Dec-2010
- * Time: 17:02:14
- * To change this template use File | Settings | File Templates.
- */
- public class AmiVoice {
-
- private Boolean voiceEnabled;
-
-
- public AmiVoice(Boolean voiceEnabled) {
- this.voiceEnabled = voiceEnabled;
-
- }
-
- public void speak(String textToBeSpoken){
- if(voiceEnabled){
- Thread thread = new SpeechThread(textToBeSpoken);
- thread.start();
- }
- }
- }