Text to Speech
Paul (PARTek)
NativePHP^3.0 || ^4.0iOS18.0+Android26+
On-device text-to-speech using the OS's own speech engine — iOS uses AVSpeechSynthesizer, Android uses android.speech.tts.TextToSpeech. No cloud TTS, no network dependency, no extra permissions.
Features
TextToSpeech::speak($text, $locale, $rate, $pitch)— start speakingstop(),pause(),resume(),isSpeaking()controls- BCP-47 locale support (e.g.
en-US,en-GB) - Rate (0.1–1.0) and pitch (0.5–2.0) control
- Events —
SpeechStarted,SpeechFinished,SpeechFailed - Works with Livewire, Blade, and JavaScript (Vue/React/Inertia)
- No permissions required on either platform
Installation
composer config repositories.nativephp-plugins composer https://plugins.nativephp.com
composer config http-basic.plugins.nativephp.com your@email.com your-license-key
php artisan vendor:publish --tag=nativephp-plugins-provider
composer require partek/text-to-speech
php artisan native:plugin:register partek/text-to-speech