gemorroj / file-wav
wav files parser
2.2.0
2023-07-03 17:05 UTC
Requires
- php: >=8.0.2
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.0
- phpunit/phpunit: ^9.6
README
Based on classAudioFile (michael kamleitner (mika@ssw.co.at))
Requirements:
- PHP >= 8.0.2
Installation:
composer require gemorroj/file-wav
###Example:
<?php use FileWav\Wav; $wav = new Wav('path_to/file.wav'); print_r($wav->getInfo()); /* FileWav\Info Object ( [filesize:FileWav\Info:private] => 1073218 [filename:FileWav\Info:private] => path_to/file.wav [compression:FileWav\Info:private] => 1 [channels:FileWav\Info:private] => 2 [framerate:FileWav\Info:private] => 8000 [byterate:FileWav\Info:private] => 32000 [bits:FileWav\Info:private] => 16 [length:FileWav\Info:private] => 33.529625 ) */