PronounceNames.com /uploads/meenakshi/$filepath/addNames.txt"; $handle = @fopen("./uploads/meenakshi/$filepath/addNames.txt", "r"); //$handle = @fopen("addNames.txt", "r"); if ($handle) { while (($buffer = fgets($handle, 4096)) !== false) { $i = $i + 1; if($i == $start-1) continue; $name = substr($buffer, 0, -2); if($name[0] === '') continue; $pr_arr = split("\t", $buffer); $name = trim($pr_arr [0]); $type = trim($pr_arr[1]); $reference = trim($pr_arr[2]); $from = trim($pr_arr[3]); $language = trim($pr_arr[4]); $desc= trim($pr_arr[5]); $gender = trim($pr_arr[6]); $native = trim($pr_arr[7]); $add_info = trim($pr_arr[8]); $filename = trim($pr_arr[9]); $comments = trim($pr_arr[10]); $pron_table = "0"; if(strcmp($gender,'m') == 0 ) $gender = 1; if(strcmp($gender,'Male') == 0 ) $gender = 1; else if(strcmp($gender,'f') == 0 ) $gender = 2; else if(strcmp($gender,'Female') == 0 ) $gender = 2; else if(strcmp($gender,'NA') == 0 ) $gender = -1; else if(strcmp($gender,'x') == 0 ) $gender = 3; else $gender = -1; //$gender = -1; //$type = "First Name"; $a = sprintf("%02d", $i); if(strlen($filename) == 0) { //$filename = "Indian-01-$a.mp3"; $filename = "Indian-$a.mp3"; } if (!file_exists("./uploads/meenakshi/$filepath/$filename")) { //echo "
$filename does not exists"; $filename = strtolower ($filename); if (!file_exists("./uploads/meenakshi/$filepath/$filename")) { $filename = strtoupper ($filename); if (!file_exists("./uploads/meenakshi/$filepath/$filename")) { $filename = "INDIAN-$a.mp3"; if (!file_exists("./uploads/meenakshi/$filepath/$filename")) continue; } } } /* $output = "./uploads/meenakshi/$filepath/".$filename; $output1 = "./uploads/meenakshi/$filepath/".$filename."-mus.mp3"; $command = "D:/ffmpeg-20151108-git-a5202bc-win64-static/ffmpeg-20151108-git-a5202bc-win64-static/bin/ffmpeg -i bg5.mp3 -i ".$output." -filter_complex amerge -c:a libmp3lame -q:a 4 ". $output1; echo ( "
*********************
"); echo ( "
".$command . "
"); exec($command); $base_vol = 256; $base_vol_05 = $base_vol/2 + $base_vol ; $base_vol_05 = $base_vol*3; $output2 = "./uploads/meenakshi/$filepath/".$filename."-mus2.mp3"; $command = "D:/ffmpeg-20151108-git-a5202bc-win64-static/ffmpeg-20151108-git-a5202bc-win64-static/bin/ffmpeg -i $output1 -vol $base_vol_05 $output2"; echo ( "
*********************
"); echo ( "
".$command . "
"); exec($command); */ //$filename = $filename."-mus2.mp3"; ?> 0) $color = "#FFFF00"; else $color = "#FFFFFF"; ?> .here"; if (!feof($handle)) { echo "
Error: unexpected fgets() fail
uploads/meenakshi/$filepath"."addNames.txt"; } fclose($handle); ?>

Name Audio File Action Type Submitted by User from Language Pronunciation Gender Native Pronunciation Additional Information Comments