Page 830 - 완) I MDP 프로젝트 작품 보고서(전체과 1학년)1.6
P. 830

Ⅳ.  CodeVision  Source  Code



                                             data_out  =  "";

                                             flag  =  0;





                                        }
                                        try  {
                                                             Thread.sleep(1200);
                                        }  catch  (InterruptedException  e)  {
                                             e.printStackTrace();

                                        }


                                  }

                             }  catch (IOException  e)  {
                                  e.printStackTrace();
                             }
                        }
                  }              //데이터를  전송하는  역할



                  public  class  Voice  extends  AppCompatActivity{
                        TextToSpeech _tts;



                        public  Voice(){


                        }



                        public  void  Start(Context  cc){
                             _tts = new TextToSpeech(cc,  new  TextToSpeech.OnInitListener()  {
                                  @Override

                                  public  void onInit(int  status)  {
                                        if(status  != TextToSpeech.ERROR){
                                             _tts.setLanguage(Locale.KOREAN);
                                        }
                                  }

                             });
                        }






                                                                                               정보통신기기과
                                                         -  823  -
   825   826   827   828   829   830   831   832   833   834   835