Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.0k views
in Technique[技术] by (71.8m points)

python - i got this error winsound.PlaySoundwinsoundSNDFILENAME TypeError: PlaySound and missing required argument flags pos 2

while(1):
    winsound.PlaySound(winsound.SND_FILENAME)

    voice_data = record_audio (winsound.PlaySoun("robot sound.wav", winsound.SND_FILENAME)) # get the voice input
    print("Done")
    print("Q:", voice_data)
    respond(voice_data) # respond
question from:https://stackoverflow.com/questions/65941015/i-got-this-error-winsound-playsoundwinsoundsndfilename-typeerror-playsound-and

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...