Skip to content

Commit

Permalink
Create test.php
Browse files Browse the repository at this point in the history
  • Loading branch information
kamshory authored Sep 29, 2017
1 parent 2ce2830 commit b4501b0
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php
include "AudioToImage.php";
$wave2png = new AudioToImage("suara.wav");
$image = $wave2png->generate_png();
header("Content-Type: image/png");
imagepng($image);

// You can also save image to a file
// i.e.
// imagepng($image, "suara.png");

?>

0 comments on commit b4501b0

Please sign in to comment.