Git Product home page Git Product logo

Comments (5)

Israelojo avatar Israelojo commented on July 17, 2024

make_audio() and Audio() don't seem to work. Any help in solving this is highly appreciated!

from thinkdsp.

RonFredericks avatar RonFredericks commented on July 17, 2024

One problem is that the wav player included in this package called aplay is only available for linux boxes. If you have linux than make sure it is installed where ThinkDSP can find it. Otherwise you will need to find an alternative wav player. I am on Windows so I came up with this open source alternative that should work on linux or windows using the simpleaudio module - see attached.
audio_player2.zip

from thinkdsp.

AllenDowney avatar AllenDowney commented on July 17, 2024

In Chapter 1 I show two ways to play sound, one using an external player, aplay. If you can install aplay for your system, it should work. If not, you can try the second way, which uses the Audio object from Ipython.display. That should work on any system with a complete Jupyter installation.

I don't recommend running the notebooks in Spyder.

from thinkdsp.

AllenDowney avatar AllenDowney commented on July 17, 2024

Closing for now, but please reopen if you have questions.

from thinkdsp.

jwickard avatar jwickard commented on July 17, 2024

On Mac you can brew install sox and edit thinkdsp.py to use play instead of aplay as the cli command.

from thinkdsp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.