gemorroj/file-wav

wav files parser

2.2.0 2023-07-03 17:05 UTC

This package is auto-updated.

Last update: 2024-11-27 12:37:08 UTC


README

Continuous Integration

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
)
 */