This is a showcase of the Simli Lipsync API in action. The demo works by getting an mp3 radio stream, converting it to pcm16 using ffmpeg and sending the pcm16 frames to the Simli Lipsync API over websockets.
For the response spec, check Websockets.md
- OpenCVRenderer.py: Uses OpenCV and PyAudio to render the video and audio on the screen.
- Use python 3.11, anything lower is not guaranteed to work Fast enough.
- Install FFMPEG
- Create a virtual environment and install the requirements:
on Linux/MacOS
python3 -m venv .venv
source .venv/bin/activateOn Windows
python -m venv .venv
.venv\Scripts\activatepip install -r requirements.txt! Disclaimer: Moving the OpenCV window around can cause the audio to be out of sync with the video.
python OpenCVRenderer.pyTo close just enter ctrl+c in the terminal.