PHP code example of jade / pcm-to-wav

1. Go to this page and download the library: Download jade/pcm-to-wav library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

jade / pcm-to-wav example snippets

bash
use PcmToWave\PcmToWave;

$input_file = './file/test.pcm'; // 准备输入的文件
$output_file = './file/test.wav'; // 预计输出的文件
$data = PcmToWave::init($pcm_file, $wav_file); // 调用转换

bash
进入扩展包目录
cd vendor/jade/pcm-to-wav
composer install
cd test
php Test.php