Page 1115 - 3-2
P. 1115

time.sleep(0.3)
                                bath = 0
                        elif action == "bed":
                            if bed is 0:
                                ser.write('g')
                                time.sleep(0.3)
                                bed = 1


                            else:
                                ser.write('h')
                                time.sleep(0.3)
                                bed = 0
                        elif action == "curtain":
                            if curtain is 0:
                                ser.write('i')
                                time.sleep(0.3)
                                curtain = 1


                             else:
                                ser.write('j')
                                time.sleep(0.3)
                                curtain = 0


                            else:
                               pygame.draw.rect(screen, ic,(x,y,w,h))


                smallText = pygame.font.SysFont("comicsansms",20)
                textSurf, textRect = text_objects(msg, smallText)
                textRect.center = ( (x+(w/2)), (y+(h/2)) )
                screen.blit(textSurf, textRect)




            TTS_Play(' 안녕하세요 오늘도 즐거운 하루 보내시기 바랍니다아.                     .')


            # 음성 인식 명령어 설정
            def voice_insert():
                global err
                end = 0


                     try:
                    transcribe_streaming_module.send_transcribe()
                    if   re.search(u' 번',  transcribe_streaming_module.word,     re.I)   or    re.search(u' 분',
            transcribe_streaming_module.word, re.I):
                        #output.put('next')
                        number_play(transcribe_streaming_module.word)


                                                        - 1115 -
   1110   1111   1112   1113   1114   1115   1116   1117   1118   1119   1120