Download the PHP package vikas5914/fluidaudio without Composer

On this page you can find all versions of the php package vikas5914/fluidaudio. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package fluidaudio

FluidAudio Plugin for NativePHP Mobile

On-device speech recognition via FluidAudio (Apple Core ML).

iOS 18+ only — the Android bridge functions answer UNSUPPORTED_PLATFORM.

Two modes:

  1. Batch file ASR — initializeAsr() downloads/loads the model pack, then transcribeFile($path) transcribes an audio file.
  2. Mic streaming — startStreaming() loads a Parakeet EOU model and streams partial transcripts from the microphone until stopStreaming().

All calls are non-blocking: they return {accepted, requestId} immediately and deliver results through events correlated by requestId.

Installation

Usage (PHP)

initializeAsr() defaults to AsrModel::MultilingualV3 (v3); the other option is AsrModel::EnglishV2 (v2). startStreaming() defaults to StreamingModel::Eou160ms; Eou320ms and Eou1280ms trade latency for accuracy. Invalid values throw InvalidArgumentException, as does an empty path passed to transcribeFile().

Off-device (web/preview, no nativephp_call), the *Accepted methods return a fabricated {accepted: true, requestId} envelope; getSystemInfo() and cleanup() return null, isAsrAvailable() returns false.

Listening for Events

ModelLoadProgress carries status (downloading / compiling / ready), progress (0–100) and type (asr / streaming). StreamingUpdate carries partial text with confirmed empty until the final update (isFinal: true).

Choosing and Downloading Models

The plugin ships two separate model packs. List them with models() and let the user pick one of each:

Both downloads report through ModelLoadProgress (type is asr or streaming) and stay cached on-device, so each pack downloads once.

Model Download Progress

Two ways to read progress:

  1. Live events — listen for ModelLoadProgress as above. Best for progress bars while a download runs.
  2. Snapshot function — FluidAudio::modelLoadProgress() returns the last known state without waiting for an event. Best on mount(), e.g. when the user navigates back mid-download:

Each entry carries status (idle / downloading / compiling / ready), progress (0–100) and the requestId it belongs to (absent when idle). Returns null off-device.

Usage (JavaScript)

For Inertia + Vue/React apps, import the client from resources/js/index.js (published to npm as @vikas5914/fluidaudio):

Every function mirrors a FluidAudio.* bridge call and resolves with the {accepted, requestId} envelope (or the sync payload for reads). Results arrive via native events correlated by requestId.

Permissions

iOS declares NSMicrophoneUsageDescription and the audio background mode in the manifest. No Android permissions are needed: the Android bridge is an explicit stub until a future release adds on-device support.

Environment Variables

None. The plugin needs no API keys or secrets.

Support

Report issues at github.com/Vikas5914/fluidaudio/issues or mail [email protected].

License

MIT


All versions of fluidaudio with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
nativephp/mobile Version ^3.0 || ^4.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package vikas5914/fluidaudio contains the following files

Loading the files please wait ...