Here's how to install the PyTgCalls lib, the commands are given below:
cd pytgcalls/ && \
npm install && \
npm run prepare && \
cd pytgcalls/js && \
npm install && \
cd ../../ && \
pip install -r requirements.txt
ffmpeg -i {INPUT_FILE} -f s16le -ac 1 -acodec pcm_s16le -ar {BITRATE} {OUTPUT_FILE}
Big thanks to @evgeny-nadymov for allowing us to use their code from telegram-react
This library is based on tgcallsjs developed @AndrewLaneX and pyservercall by @Laky-64