Code Monkey home page Code Monkey logo

node-rtp's Issues

Help with Audio Conversions

Hello @mscdex,

I'm trying to follow your example (sendg711.js) on streaming RTP-based audio to a Cisco phone. I used https://g711.org/ to convert one of my .wav using the "Standard Definition 16-bit WAV (8Khz, Mono, 16-Bit PCM)" option. This produced the clearest audio on the phone, whereas the rest of the conversions were intercombined with static or completely unintelligible.

However, I'm having some issues with receiving the audio on my phone. Using the default code:

intvl = setInterval(writeData, 20);

yields the audio streaming for about 2 seconds, no audio for 2 seconds, and the audio continuing intermittently so on. If I decrease the param of 20 to 8 (for example), there are no more gaps of silence but the audio appears to 'overlap' during the streaming process. Increasing past 20 also respectively increases the gaps.

Do you have any tips on what the problem might be or how I should better convert my audio file?

Absolutely LOVE the code, great job! Help with RFC-2250

This code is super readable, to the point, and encapsulated perfectly..

The whole implementation is just an object with getters and setters...

sender uses setters, receiver uses getters & the constructor --

so i literally just read the datagram from the socket and throw it to the constructor...

AWESOME..

But my question is, what changes would I need to make to support rfc-2250.

Which getters and setters would need to change to support 2250?

Thanks!!

example is not right

every 20 ms
intvl = setInterval(writeData, 20);
but if ((bytesRead = fs.readSync(fd, buf, 0, buf.length)) > 0) {
i think it all read 0 - 160 bytes

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.