gemorroj/file-wav

wav files parser


Keywords
wav, wave, Waveform Audio File Format
License
Other

Documentation

Wav files parser

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