Giter Site home page Giter Site logo

Comments (4)

dtext avatar dtext commented on June 10, 2024

I found the sounddevice package, which might make this task quite easy. Maybe we can add this to 0.2?

from instantshare.

dtext avatar dtext commented on June 10, 2024

There is also this gist by 3demax for recording opus, which seems even more appealing to me.

from instantshare.

dtext avatar dtext commented on June 10, 2024

Regarding the considerations:

I don't know of a simple way to switch between two audio devices. There is pull request #34, but that only implements recording from the attached microphone.

PyAudio's input stream, by default, uses the standard audio device. I don't know of a simple way to switch devices. Even if I did, they can all have different names, and I'd imagine there needs to be some kind of interface to the platform's sound device implementation.

And this is just for existing devices. For recording from standard output device, we would need to do some mixing, which could be very complex (without having looked to deep into it). All that for the added benefit of being able to record and share sound you are already playing. I'm not even sure if that is a sensible use case for a tool like instantshare.

from instantshare.

florianluediger avatar florianluediger commented on June 10, 2024

I agree on the fact that there is not much use for sharing audio which is being played by your computer and there certainly would be a lot of effort needed to make this work.
I would suppose to reduce the goals of this issue to only be able to record audio from the microphone, which is already being addressed in pull request #34. (at least for the assigned milestone "Version 0.2")

from instantshare.

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.