Comments (4)
Sorry to ask what might seem obvious, but is sound.wav
in the same directory?
from playsound.
from playsound.
Don't know what to say, works for me assuming you've initialised playsound like this
from playsound import playsound
before calling
playsound("sound.wav")
You can always ensure you're using the directory you want to read the file from like this
from os import chdir
from playsound import playsound
chdir("C:\path\to\file")
# then calling the playsound method
playsound("sound.wav")
This will always work
from playsound.
I assume this is fixed on master now. Please make a PR demonstrating the issue in test.py if this is not the case.
from playsound.
Related Issues (20)
- Not issue but what I did to fix a ton of errors HOT 1
- Releasing new Pypi version HOT 1
- tox fails with FileNotFoundError: [Errno 2] No such file or directory: '/System/Library/Frameworks/Python.framework/Versions/2.7/bin/python' HOT 3
- playsound can be simplified and made less buggy HOT 2
- Cannot specify extra characters after a string enclosed in quotation marks. HOT 5
- change the computer and give me a error
- stop playing sound
- Stops playing sound. Error 263 for command: HOT 2
- Pyodide support
- AttributeError: 'NoneType' object has no attribute 'props' HOT 2
- Installation error: error: subprocess-exited-with-error, OSError: could not get source code HOT 3
- playsound freezes while trying to play HOT 1
- Playground exit code: 1 when installing playground on python311 pip23.1.2 HOT 11
- The `playsound` library encountered an issue when attempting to use the temporary file path in Windows, resulting in an error during playback.
- Compliance with PEP 517 HOT 8
- pip install playsound no longer works HOT 19
- Playsound can't play several mp3 HOT 4
- i can't open a window and play an mp3 at the same time
- Install issues HOT 1
- Segmentation fault on macOS Python 3.12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from playsound.