1. Go to this page and download the library: Download zachleigh/pronounce-php library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
zachleigh / pronounce-php example snippets
composer
pronounce-php command [argument] [options]
pronounce-php all --destination=file --file=my_file.txt
./pronounce-php all --fields=word,ipa,spelling
Lines in file will look like this:
accepting / æksɛ'ptɪŋ / akse'pting /