python - TypeError: Required argument 'flags' (pos 2) not found

0

My code is for a program that is activated by facial recognition to add two numbers, and shows the result with my voice, but on the line of an audio that appears the following message TypeError: Required argument 'flags' (pos 2) not found

if count == True:

            if result >= 0 and result < 10:
              winsound.PlaySound('result.wav')
                                ^error aqui(ayuda pls)                 
              winsound.PlaySound(num[result],winsound.SND_FILENAME)
              print(result)

            elif result > 9 and result < 100:
              d0 = (result // 10)
              d1 = (result % 10)
              winsound.PlaySound("result.wav",winsound.SND_FILENAME)                   
              winsound.PlaySound(num[d0],winsound.SND_FILENAME)
              winsound.PlaySound(num[d1],winsound.SND_FILENAME)
              print(result)
    
asked by victor 09.07.2018 в 04:29
source

0 answers