Just a research to check PHPy with some models.
git clone https://github.com/egorsmkv/speech-to-text-using-php
cd speech-to-text-using-php# my clone has changes in Dockerfile that install some additional packages
git clone https://github.com/egorsmkv/phpy
cd phpy
podman build -t phpy .podman run -it --rm -v ./app:/app -w /app phpy bash
# further commands are executed inside the container
git clone w2v-bert-uk-v2.1_onnx-gpu_op20_fp32
# install python dependencies
pip install librosa transformers
# install composer
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php composer-setup.php
php -r "unlink('composer-setup.php');"
# install php dependencies
php composer.phar install
# run the script
php speech_to_text_w2v2.php