These are chat archives for andyet/SimpleWebRTC

16th
Oct 2015
Type-40
@Type-40
Oct 16 2015 13:13
Hello, I was wondering if anyone knows how to integrate the Web Audio API with SimpleWebRTC ?
Specifically i need to do a pitch shift to the audio stream,
Type-40
@Type-40
Oct 16 2015 14:12
how can I access the source either remotely or locally ,
?
Xander Dumaine
@xdumaine
Oct 16 2015 14:23
@Type-40 I don't think WebAudio API works with remote streams at this time
Xander Dumaine
@xdumaine
Oct 16 2015 14:29
For locally, just use connection.webrtc.localStream
Type-40
@Type-40
Oct 16 2015 14:32
awesome! thank you !
connection is not defined... sorry, i am pretty new at this, is there a simple webrtc function i am supossed to plug this into ...
Type-40
@Type-40
Oct 16 2015 14:42
basically, at the end of the project i am working on, i need to get one users audio output filtered, where that happens in the process doesn't mater as it will only ever be a 2 person connection.
Xander Dumaine
@xdumaine
Oct 16 2015 15:39
I'm assuming connection is your SimpleWebRTC object created with new SimpleWebRTC(options)
Type-40
@Type-40
Oct 16 2015 15:42

ok, i see.

so the path to the stream might be connection.webrtc.localStreams[0] ?

because i can't seem to get the audio API to do anything ...
Xander Dumaine
@xdumaine
Oct 16 2015 15:43
I'm not very familiar with web audio api, so I can't be much help there.
Type-40
@Type-40
Oct 16 2015 15:44
fair enough, do you know if the object returned from connection.webrtc.localStreams[0] is the same type of object returned from getusermedia ?
Type-40
@Type-40
Oct 16 2015 15:48
alright, hmm
thank you for the info :)
Type-40
@Type-40
Oct 16 2015 17:29
If anyone has have managed to do this please give me a shout, because i have been fiddling with it all day and nothing I do seems to do much.
Type-40
@Type-40
Oct 16 2015 17:34
I know simpleWebRTC uses the web audio API + hark for manipulating gain ... where does this happen ?