Comments (8)
Thank you, I have been trying to use it with docker but I get your point, thanks
from opus.
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.
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.
@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.
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.
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.
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.
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)
- run error HOT 2
- Forward error correction flag in decode (decode_fec flag) HOT 9
- How to find sample rate of a stream? HOT 2
- How can I play opus codec audio by using portaudio? HOT 1
- Opus 1.3 release,would we update to new version? HOT 1
- There is a difference between an opus stream (which is an ogg/opus stream) and raw opus data. .opus files are really .ogg files with opus data, which this package doesn't provide a way to write. It does have a reader for it (Stream type), but no writer yet (never bothered to because I haven't needed it so far, but feel free to submit a PR). HOT 2
- transfer pcm to raw opus HOT 7
- "checkptr: unsafe pointer arithmetic" when using go race detector HOT 1
- How to complie in cross platform? HOT 5
- Inconsistent types in README HOT 1
- encoder: invalid argument HOT 1
- Amplify ogg stream? HOT 2
- Byte slice to int16 slice. HOT 2
- How to destroy en(de)coder state? HOT 2
- Get audio from microphone and encode to ogg HOT 1
- Strange distortion when decoding HOT 6
- wasm env HOT 2
- Question: is it possible to build against libopus v1.5.(2) to be able to use the new features #108 HOT 1
- Issues with Audio Transmission in Golang WebRTC Application Using PortAudio and OPUS Encoding HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opus.