Download the PHP package glebsons4ntos/filament-voice-transcribe without Composer
On this page you can find all versions of the php package glebsons4ntos/filament-voice-transcribe. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package filament-voice-transcribe
Filament Voice Transcribe
Filament Voice Transcribe adds voice-powered components to Filament forms and infolists.
Use it to transcribe speech into form fields with the browser Speech Recognition API, or to read infolist text aloud with the browser Speech Synthesis API.
Requirements
- PHP 8.2+
- Laravel with Filament 5
- A browser with Web Speech API support
Installation
Install the package via Composer:
Publish the Filament assets:
You should run this command again after updating the package so Filament can publish the latest JavaScript and CSS assets.
Usage
Voice Input
Use VoiceInput when you need a regular text input with a voice button.
You may place the voice button before or after the input:
The button can also be rendered outside the input wrapper:
Voice Textarea
Use VoiceTextarea for longer text.
The voice button can be positioned around the textarea:
Available positions:
Voice Text Entry
Use VoiceTextEntry in infolists when you want to display text and let the user listen to it.
It extends Filament's TextEntry, so you can combine it with common text entry methods:
You may also move the voice button:
Language
Set the browser speech language with voiceLanguage():
The value should be a valid BCP 47 language tag supported by the browser and operating system.
Browser Support
This package uses the browser Web Speech API, so support depends on the user's browser and device.
- Speech recognition is not available in every browser.
- Voice transcription is automatically disabled when the browser does not support the Speech Recognition API.
- Speech synthesis voices depend on the operating system and installed voices.
- If a language voice is not installed, the browser may fall back to a default voice.
Credits
License
The MIT License (MIT). Please see License File for more information.
All versions of filament-voice-transcribe with dependencies
filament/forms Version ^4.0
filament/infolists Version ^4.0
spatie/laravel-package-tools Version ^1.15.0