Get the raw audio in getUserMedia success callback -
i'm trying raw audio in getusermedia() success callback , post server. success callback receives localmediastream object.
var onsuccess = function(s) { var m=s.getaudiotracks(s); //m[0] contains mediastreamtrack object audio //get raw audio , stuff } but there no attribute or method raw audio channels in mediastreamtrack. how can access raw audio callback called on success of getusermedia()?
i found recorder.js library-- https://github.com/mattdiamond/recorderjs recording blank audio in chrome: version 26.0.1410.64 m. works fine on chrome: version 29.0.1507.2 canary syzyasan.
i think there issue of web audio api used recorder.js
i'm looking solution without web audio api, should work @ least on chrome's official build.
check out mediastreamaudiosourcenode. can create 1 of (via audiocontext's createmediastreamsource method) , connect output recorderjs or plain old scriptprocessornode (which recorderjs built on).
edit: realized you're asking if can access raw audio samples without web audio api. far know, don't think that's possible.
Comments
Post a Comment