Lyra on WebRTC
This sample shows Lyra on WebRTC MediaChannel.
Chrome can use L16 (16-bit PCM BigEndian) by changing SDP. In this sample, L16 is set in PeerConnection, and L16 is extracted in TransformStream of EncodedStream and encoded in Lyra by WASM.
Try It
https://meeting.dev/lab/lyra-webrtc/loopback.html
How to use
In this directory, run the following command. Lyra WASM uses SharedArrayBuffer. Therefore, you need to set specific HTTP Headers, which are included in server.py.
python3 server.py
And Open the following URL
http://localhost:8000/loopback.html
Acknowledgments
Thanks to the team that developed Lyra and to mayitayew for making it work with WASM.
We are using a modified Lyra WASM. It is available here.