Comments (4)
Hey @tkamaal
Right now play
is (somewhat opaquely) wrapped inside the preview()
method of the Transformer
and Combiner
classes.
A minimal example would be:
import sox
tfm = sox.Transformer()
tfm.preview("path_to_a_file.wav")
any number of effects can be applied and previewed as well:
import sox
tfm = sox.Transformer()
tfm.reverb()
tfm.reverse()
tfm.preview("path_to_a_file.wav")
If these examples doesn't work on your system, it's likely because the sox installation on Windows doesn't come with the play
binary. If so, please let me know!
from pysox.
Thank you @rabitt !
from pysox.
If these examples doesn't work on your system, it's likely because the sox installation on Windows doesn't come with the play binary. If so, please let me know!
Hi! I'm facing a similar problem where anytime I use preview
on Windows, I get the same error, even though the file path is correct:
"OSError: Play failed! [WinError 2] The system cannot find the file specified"
Is it possible to get the play
binary for Windows?
Thanks!
from pysox.
@jgmgoncalves can you check if you're able to run play filename.wav
from a terminal window on your system, or if this is a pysox specific problem?
Linking to this forum which is relevant: https://sourceforge.net/p/sox/mailman/message/28683080/
If this is a persistent problem for windows users, we can test swapping the shell to play
with sox
and the -d
flag.
from pysox.
Related Issues (20)
- Maybe a rounding error?
- SOX failed to get mp3 handling on CentOS
- Is there a faster way to read audio-information from files? HOT 2
- Convert an ulaw byte array to a wav array
- Transformer().build() throws an error for default value of output_path HOT 1
- TypeError: bandreject() got an unexpected keyword argument 'constant_skirt'
- set_output_format can not change the encoding type.
- sox.core.SoxiError: SoXI failed with exit code 1
- Add test support for linux aarch64
- Tagged releases are out of sync with PyPi HOT 7
- Debian 11 pip install error HOT 1
- file info doesn't currently support array input
- Extract a song into multitrack wav files HOT 3
- Specifying raw type to `build_array()` HOT 2
- Extract Mic Feed with pysox HOT 1
- Improve pysox by adding `static-sox` package to auto download sox binaries
- For this stretch factor, the stretch effect has better performance. HOT 1
- Replace deprecated imp module with importlib HOT 2
- sox.file_info.bitrate() Value error
- Pysox tries to import numpy during build-time, only declared as a run-time dependency
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 pysox.