Home
Blogs
Questions
Jobs
Monetize

Home

About Us

Blogs

Questions

Jobs

Monetize

Post Job

banner

Questions about winsound

Read more about winsound

python (65.2k questions)

javascript (44.3k questions)

reactjs (22.7k questions)

java (20.8k questions)

c# (17.4k questions)

html (16.3k questions)

r (13.7k questions)

android (13k questions)

Questions - winsound

Save beep sound in a .wav file

I generaed a beep sound in Python, that exists for 5ms, and repeats after every 1s, for next 10s. The codes are as such: ## Import modules import time import sys import winsound import soundfile as sf...
test-img

LearnerABC

python-3.x

wav

winsound

soundfile

Votes: 0

Answers: 1

Latest Answer

The error is this: write() missing 1 required positional argument: 'samplerate' from the docs here: https://pysoundfile.readthedocs.io/en/latest/ we can see that the function requires 3 arguments: sf...
test-img

D.L

Need help exporting game that plays sound file

I was making a Tetris-like game, and I would like my friends to try it so I'm going to export it as an .exe file, but I'm playing the track in the background this way: winsound.PlaySound('C:/Users/Use...
test-img

Mr. Goose

python

winsound

Votes: 0

Answers: 1

Latest Answer

Try putting a ./ before the filename. winsound.Playsound('./tetrismusic.wav', winsound.SND_LOOP + winsound.SND_ASYNC)) Or — alternatively — add the SND_FILENAME flag. winsound.Playsound('tetrismusic.w...
test-img

Ali Samji

Posts

Questions

Blogs

Jobs

The ultimate platform for coders and IT specialists

About

  • Company
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved