Page 1118 - 3-2
P. 1118

screen.blit(face1, (0,0))
                            ser.write('d')
                            end = 1
                        elif re.search(u' 켜', transcribe_streaming_module.word, re.I):
                            TTS_Play(' 선풍기를 작동합니다..')
                            if start_play:
                                screen.blit(face2, (0,0))


                             else:
                                screen.blit(face1, (0,0))
                            ser.write('c')
                            end = 1


                            else :
                            TTS_Play(' 다시 한번 말씀 해 주세요.')
                            screen.blit(face4, (0,0))
                            pygame.display.flip()
                            voice_insert()


                      elif re.search(u' 불', transcribe_streaming_module.word, re.I) or re.search(u' 불',
                                         transcribe_streaming_module.word, re.I):
                        if re.search(u' 침실', transcribe_streaming_module.word, re.I):
                            if re.search(u' 꺼', transcribe_streaming_module.word, re.I):
                                TTS_Play(' 침실 불을 끕니다.')
                                if start_play:
                                    screen.blit(face2, (0,0))


                             else:
                                    screen.blit(face1, (0,0))
                                ser.write('h')
                                end = 1
                            elif re.search(u' 켜', transcribe_streaming_module.word, re.I):
                                TTS_Play(' 침실 불을 킵니다.')
                                if start_play:
                                    screen.blit(face2, (0,0))


                            else:
                                    screen.blit(face1, (0,0))
                                ser.write('g')
                                end = 1


                            else :
                                TTS_Play(' 다시 한번 말씀 해 주세요.')
                                screen.blit(face4, (0,0))
                                pygame.display.flip()


                                                        - 1118 -
   1113   1114   1115   1116   1117   1118   1119   1120   1121   1122   1123