Ybalrid / PST4-TeleRoom

Room based online telepresence project for ESIEA
0 stars 0 forks source link

implement voip via UDP + speex compression #4

Open Ybalrid opened 7 years ago

Ybalrid commented 7 years ago

This is currently half working. The encoding and sending works. The recording too. There's a bit of code that works for plaing back buffer in "streaming mode" by suffeling around an array of 4 openal buffers.

Need to get the decoding working and put audio sources in the position of the remote's heads.

Ybalrid commented 7 years ago

I could slim down 4 bytes from the voice packets and lock the size of everything.

I'm not sure, but it seems like the length of a compressed audio frame treated by speex can vary,

Yet in practice 160 samples at 8khz is 38 bytes, (instead of 320, so it's down to just 12% of it's size 😮 )