Code Monkey home page Code Monkey logo

Comments (3)

davidblewett avatar davidblewett commented on July 18, 2024

Here is a very simple implementation I was experimenting with: https://gist.github.com/davidblewett/7340369 . And using it: https://gist.github.com/davidblewett/7340385 . In my case, I will be also writing a web service to extract the necessary metadata to load the file (channels, sample rate, etc). I have to use the pure Python implementation of the FLAC decoder though, since the C one only looks at files on disk. The performance is acceptable, albeit high CPU usage (60-75% on my i7 Macbook Pro; ~30MB memory usage).

What would really make this easier is an abstraction of the object providing the FLAC data, combined with ways to set the necessary metadata attributes without interacting with the actual FLAC data.

from python-audio-tools.

tuffy avatar tuffy commented on July 18, 2024

I've just about finished overhauling the FlacDecoder object to take either files or file-like objects (with read() and close() methods) and decode them properly. Only actual on-disk files will support the FlacDecoder.seek() method, but everything else should work okay.

It's essentially changing from FlacDecoder(filename, channel_mask, [bytes_to_skip]) to just FlacDecoder(file) where channel mask will be determined by the decoder and skipped bytes (for ID3v2 tags) will be applied at the Python level.

from python-audio-tools.

PeteBleackley avatar PeteBleackley commented on July 18, 2024

I have also been trying to adapt audiotools to work with streaming media. My use case is to decode a podcast for transcription. My fork is at https://sourceforge.net/u/petebleackley/audiotools/ and I would welcome feedback on my efforts so far.

from python-audio-tools.

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.