Giter Site home page Giter Site logo

rtp-ogg-opus's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

oldmtn

rtp-ogg-opus's Issues

Build is broken on Mac OS

When I try to build on Mac OS, I get the following errors:

../src/helpers.cc:130:9: error: cannot use 'throw' with exceptions disabled
        throw std::invalid_argument("Couldn't allocate data buffer.");
        ^
../src/helpers.cc:136:9: error: cannot use 'throw' with exceptions disabled
        throw std::invalid_argument("Couldn't allocate Ogg packet.");
        ^
../src/helpers.cc:160:20: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings]
    char *vendor = "rtp-ogg-opus using libopus";
                   ^
../src/helpers.cc:168:9: error: cannot use 'throw' with exceptions disabled
        throw std::invalid_argument("Couldn't allocate data buffer.");
        ^
../src/helpers.cc:174:9: error: cannot use 'throw' with exceptions disabled
        throw std::invalid_argument("Couldn't allocate Ogg packet.");
        ^
2 warnings and 4 errors generated.
make: *** [Release/obj.target/rtpoggopus/src/helpers.o] Error 1

I resolved this by adding the following to binding.gyp:

"conditions": [
    ['OS=="mac"', {
       "xcode_settings": {
          "GCC_ENABLE_CPP_EXCEPTIONS": "YES"
       }
   }]
],

I just grabbed this snippet from here, I'm not sure if it's actually a good fix or not. rla/fast-feed#8

I'm using your package to take an RTP stream from mediasoup and package an OGG-Opus stream to send to Google's speach-to-text API. So far it seems to be working great. Thanks!

Doesn't build on Apple Silicon Mac

Not sure if this repo is maintained anymore, I tried seeing if I could fix, but just reporting here that it does not seem to build on Mac arm64. Probably related to discordjs/opus#98, getting this error:

gyp info spawn make gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ] CC(target) Release/obj.target/libogg/deps/libogg/src/framing.o CC(target) Release/obj.target/libogg/deps/libogg/src/bitwise.o LIBTOOL-STATIC Release/ogg.a CC(target) Release/obj.target/libopus/deps/libopus/src/opus_multistream.o ../deps/libopus/src/opus_multistream.c:29:10: fatal error: 'config.h' file not found #include "config.h" ^~~~~~~~~~

I was able to copy over the config.h file from @discordjs/opus, but still got this error:

In file included from ../deps/libopus/silk/SigProc_FIX.h:51: ../deps/libopus/silk/arm/biquad_alt_arm.h:31:11: fatal error: 'celt/arm/armcpu.h' file not found # include "celt/arm/armcpu.h" ^~~~~~~~~~~~~~~~~~~

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.