Git Product home page Git Product logo

audiobuffer-to-wav's People

Contributors

mattdesl avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

audiobuffer-to-wav's Issues

Wav file seems to always be 40 s long no matter how short or long the AudioBuffer is

Hi!
Just tried your plugin in my Angular 9 project.
My goal is to take a voice recording, run it though a couple of audio effects using Web Audio API and upload the result to my backend server that stores it.
This plugin comes in when I have my resulting AudioBuffer from the Web Audio API and I want to turn it into a ArrayBuffer and later a Blob/File for upload.

To my surprise, the uploaded recordings are always exactly 6.7 MB and 40s long. If you just recorded a short clip of 5 seconds the rest of the file plays filled out with silent. If I recorded a 50s clip the recording is clipped at 40 seconds.

Are anyone familiar with this problem?

Here's some of my code for reference:

const ctx = new OfflineAudioContext(2,44100*40,44100);
.... Code that adds the Web Audio API effects ....
const audioBuffer:AudioBuffer = await ctx.startRendering();
const wavArrayBuffer = toWav(audioBuffer);
const wavFile = new File([vocodedWavBuffer], 'Voice.wav', { type: 'audio/wav' });
... Code that uploads the file to server ....

Bower

Would be helpful for my project to have this on bower

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.