공부/그외
[Java] Thread를 사용해, 음성인식처리
래울
2022. 5. 30. 03:18
메모.
new Thread(){
public void run(){
try {
Thread.sleep(3000);
} catch (InterruptedException e) {
throw new RuntimeException(e);
}
String[] kewards = {"test1", "test2", "test3"};
buttons[voiceRecognition(kewards)].doClick();
}
}.start();
//voiceRecognition(String[] kewards) : 음성인식 후 배열kewards 중 일치하는 값이 있다면 해당 인덱스 반환