-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wavplay example not working on Linux #77
Comments
Same:
|
I suspect the entire
to throw an The entire way in which I think the entire There should also be test cases for |
Same: julia> wavplay(y, fs)
ERROR: MethodError: no method matching wavplay(::Array{Float64,2}, ::Float32)
Closest candidates are:
wavplay(::Any) at /home/ronneesley/.julia/packages/WAV/T2P9V/src/WAV.jl:38
Stacktrace:
[1] top-level scope at REPL[19]:1 |
I have stumbled into this too.
|
Not working on my system either. Same error message as previously mentioned.
|
Not just a linux issue. Same problem on: julia> versioninfo()
Julia Version 1.4.0
Commit b8e9a9ecc6 (2020-03-21 16:36 UTC)
Platform Info:
OS: macOS (x86_64-apple-darwin18.6.0)
CPU: Intel(R) Core(TM) i5-8259U CPU @ 2.30GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-8.0.1 (ORCJIT, skylake)
Environment:
JULIA_NUM_THREADS = 4 |
For the last couple of hours I have been trying to fix this issue. A dirty fix is to directly include the |
In my testing But I think you are right about the |
I have not checked recently, but the tests used to blow up the online CI tools. The tests failed hard due to lacking audio hardware. |
It is entirely possible that this pattern is incompatible with modern Julia. The code was written a long time ago. I am open to different approaches. There might be other packages available today that render audio more portably. |
this does a great job at generating a player in Juno, Jupyter, but it reverts to WAV if WAV is installed, and then stops producing a player https://github.com/JuliaAudio/LibSndFile.jl also, WAV.jl is needed to easily load raw data from a |
It doesn't look like LibSndFile.jl can reproduce audio. Additionally, PortAudio is not working in Julia 1.4.2. Should I revert the runtime checking and assume that pulse audio is available @ntjess? @AshtonSBradley: What are you using to play the WAV file (in your last comment above)? I did not know about this long thread: https://discourse.julialang.org/t/how-to-play-an-audio-in-julia/31881/30 |
On macOS you should include the |
I see one possible resolution here is to remove The problem described above by @AshtonSBradley is an important one, and is due to both LibSndFile.jl and WAV.jl registering themselves with FileIO.jl. WAV.jl takes precedence (I'm still not sure why) and ends up being called for However, the To play audio in a browser-based UI when WAV.jl is installed, you can wrap the output of
|
Fixed by #85 |
Package documentation indicates I should be able to run the following code without issue, provided libpulse-simple is available on my machine:
However, I receive the following error after this attempt in the REPL:
Output of versionInfo():
The text was updated successfully, but these errors were encountered: