Page 1119 - 3-2
P. 1119

voice_insert()


                            elif 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('f')
                                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('e')
                                end = 1


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


                            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):
                            TTS_Play(' 커튼을 칩니다.')
                            if start_play:
                                screen.blit(face2, (0,0))


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


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