Coder Social home page Coder Social logo

Comments (6)

achembarpu avatar achembarpu commented on May 28, 2024

Possible file-conversion API - CloudConvert
It has a Python Wrapper, as well - python-cloudconvert

However, the py-wrapper is licensed under GPLv2, while textract is under the MIT license.
They are partially incompatible, so that might be an issue.

from textract.

deanmalmgren avatar deanmalmgren commented on May 28, 2024

I'm open to any of those options. Whatever is the most effective and functionally correct is great as far as I'm concerned.

I'm not as familiar with audio, but the convert unix command is great for converting images between various formats. Is there an equivalent command for audio so we don't have to hit a cloud API for conversion?

As far as having a dependency on a GPLv2 library, I don't think that's a problem. Just include it in requirements/python and we should be good to go. Things get messy when you actively distribute the source of the GPL-ed code with your package, which we aren't doing.

from textract.

achembarpu avatar achembarpu commented on May 28, 2024

Not exactly equivalent, but I think a combo of ffmpeg, flac, etc..., could do the trick.
Won't be as portable as a cloud-solution, but definitely faster.

I'll test both solutions out, and see how it goes.

Exactly, that's the problem - it isn't hosted on PyPi/other, so we'd have to include the source.

from textract.

deanmalmgren avatar deanmalmgren commented on May 28, 2024

Exactly, that's the problem - it isn't hosted on PyPi/other, so we'd have to include the source.

Ahh, I see. I'd recommend taking a similar approach as in #17 then and starting a PR that includes a setup.py to install the library as a python package. It doesn't have to be hosted on PyPi for us to include it so long as it has a setup.py. For example, we can add something like this to our requirements/python as soon as you get something working:

-e git+http://github.com/arvindch/python-cloudconvert@setup-branch#egg=CloudConvert

from textract.

achembarpu avatar achembarpu commented on May 28, 2024

Ah, alright then. Sounds good.

I'll explore our options, and finalize something after some testing.

from textract.

achembarpu avatar achembarpu commented on May 28, 2024

I found a cool cmdline tool - sox.

sox audio.x temp.wav
textract temp.wav

Looks straightforward, and easy to implement.
Works really well on my end.
I'll have some initial code up in a while.

edit - Code is up - PR #62.

from textract.

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.