Coder Social home page Coder Social logo

Comments (8)

BrianMwas avatar BrianMwas commented on July 20, 2024 1

Thank you, I have been trying to use it with docker but I get your point, thanks

from opus.

Modestying avatar Modestying commented on July 20, 2024 1

This wrapper works with any 1.x version of opus, which for all intents and purposes is all of opus. When they release libopus2 then I'll add a notice, but for now there is no point because all of opus is compatible with the 1.x API.

As to apt-get: I consider it standard enough that if your system doesn't have it, you're probably also skilled enough to fork this repo and adapt it as you see fit. It's MIT licensed so by all means feel free and go wild :)

thx for your answer

from opus.

hraban avatar hraban commented on July 20, 2024

It sounds like you might be using an old version of opus. GET_IN_DTX was introduced in 1.3.1: https://opus-codec.org/docs/opus_api-1.3.1/group__opus__genericctls.html#ga9af68dcfb4f136dd91b1050658d559ca . Try updating your alpine base image. If that doesn't work you'll have to wait for a new alpine release, or install the latest libopus yourself.

from opus.

BrianMwas avatar BrianMwas commented on July 20, 2024

@hraban what is the correct version to use, I thought the go-get should pick the most recent version. Is there a specific version I should use, also are there any examples I can review? Because this has bothered me since Friday any help would be appreciated

from opus.

hraban avatar hraban commented on July 20, 2024

The package you're commenting on right now is a wrapper package; just a translation layer between Go and C. You still need a C library, which you install using apt-get install .... (or whatever package manager you use). That is not provided by this package, which (again) is just a wrapper, so it doesn't provide actual opus decoding of any kind: just a translation from Go to the actual native library that does the actual decoding. And that library must be the right version (1.3.1).

You can also try and dig into this package's history and find an older version that didn't use GET_IN_DTX yet, maybe that can work with your older library.

I can't help you any further because, fundamentally, you're asking the wrong person; I don't control your OS, or your package manager, or the libraries you install. That's kinda the whole point: this is just an independent wrapper which allows / requires you to bring your own library. For actual support with this you'll have to ask somewhere like StackOverflow, or a relevant discord or IRC channel, for help on how to install the latest version of the opus library on your system.

from opus.

Modestying avatar Modestying commented on July 20, 2024

The package you're commenting on right now is a wrapper package; just a translation layer between Go and C. You still need a C library, which you install using apt-get install .... (or whatever package manager you use). That is not provided by this package, which (again) is just a wrapper, so it doesn't provide actual opus decoding of any kind: just a translation from Go to the actual native library that does the actual decoding. And that library must be the right version (1.3.1).

You can also try and dig into this package's history and find an older version that didn't use GET_IN_DTX yet, maybe that can work with your older library.

I can't help you any further because, fundamentally, you're asking the wrong person; I don't control your OS, or your package manager, or the libraries you install. That's kinda the whole point: this is just an independent wrapper which allows / requires you to bring your own library. For actual support with this you'll have to ask somewhere like StackOverflow, or a relevant discord or IRC channel, for help on how to install the latest version of the opus library on your system.

Please add right version (1.3.1) in Readme.md. @hraban

The link in Readme.md -- https://opus-codec.org/docs/opus_api-1.1.3/group__opus__encoder.html is really confusing.

Besides, consider deployment without network, i'd like to compile source code without apt ,so that I can run like

CGO_FLAGS="-I${PWD}/include/opus" \
CGO_LDFLAGS="-L${PWD}/libs/opus -Wl,rpath=${PWD}/libs/opus" \
go run talk.go` 

LIbs I compile:

  • ogg-1.3.5
  • opus-1.3.1
  • opusfile-0.12

Hope it can be helpful for you

from opus.

hraban avatar hraban commented on July 20, 2024

good point on the doc link @Modestying , although I'm a bit confused as to your second point: what do you mean by "deployment without network"? I don't think I currently do any kind of network, or do I? Do you mean removing the requirement on pkg-config?

from opus.

hraban avatar hraban commented on July 20, 2024

This wrapper works with any 1.x version of opus, which for all intents and purposes is all of opus. When they release libopus2 then I'll add a notice, but for now there is no point because all of opus is compatible with the 1.x API.

As to apt-get: I consider it standard enough that if your system doesn't have it, you're probably also skilled enough to fork this repo and adapt it as you see fit. It's MIT licensed so by all means feel free and go wild :)

from opus.

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.