Skip to content

Audio saved by the module is slower than the original audio #2

Description

@fdalvi

If we use the following code:

c.on( 'audio', function( evt ) {
  // Audio from the local socket.
   // Write it to a file.
   stream.write( evt.data );
});

the output file(represented by stream here) plays back at 0.722 times the original audio.

This was confirmed by recording at the source(the machine with the browser), and comparing the recording with the output of node-peerconnection. If we use sox to increase the tempo(not the playback rate, so the pitch remains the same), we get the original audio back.

Why is the audio getting slowed down?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions