"; $done=false; $prefix=""; if (file_exists("/usr/local/bin/ffmpeg")) { $fprefix="/usr/local/bin/"; } else if (file_exists("/bin/ffmpeg")) { $fprefix="/bin/"; } else if (file_exists("/usr/bin/ffmpeg")) { $fprefix="/usr/bin/"; } $lastexec=""; $fswitch=" -vn -map_metadata -1 -c:a libmp3lame -b:a 192k "; $fswitch=" -vn -map_metadata -1 -ar 44100 -ac 2 -c:a libmp3lame -b:a 192k "; $omore=""; if (!$argc) { $audioname=$_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . 'tmp' . DIRECTORY_SEPARATOR . 'diffident_audio_' . rand(674,67788995) . '.aiff'; if (isset($_SERVER['HTTP_ORIGIN'])) { $origin = $_SERVER['HTTP_ORIGIN']; //file_put_contents('xx.xx', $origin); // Allow any port on localhost or 127.0.0.1 if (preg_match('/^https?:\/\/(w\.w\.w\.rjmprogramming\.com\.au|rjmprogramming\.com\.au\)(:\d+)?$/', $origin)) { header("Access-Control-Allow-Origin: " . $origin); header("Access-Control-Allow-Credentials: true"); } } header("Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONS"); // GET, POST, PUT, DELETE, OPTIONS header("Access-Control-Allow-Headers: Content-Type, Authorization, X-Requested-With"); if ($_SERVER['REQUEST_METHOD'] === 'OPTIONS') { http_response_code(200); exit(); } //file_put_contents('xxx.xxx', ''); $durl=""; if (isset($_POST['execname']) && isset($_POST['execcont'])) { if (isset($_POST['audioname'])) { //file_put_contents('xxxx.xxx', ''); $audioname=str_replace('+',' ',urldecode($_POST['audioname'])); //file_put_contents('xxxxx.xxx', ''); } if (strtoupper(PHP_OS) == "DARWIN") { if (!file_exists($_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . 'tmp')) { mkdir($_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . 'tmp'); } if (strpos($audioname, 'tmp') !== false && strpos($audioname, $_SERVER['DOCUMENT_ROOT']) === false) { $audioname=$_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . 'tmp' . DIRECTORY_SEPARATOR . basename($audioname); } //exec('say ' . (trim(str_replace('+',' ',urldecode($_POST['execname']))) == '' ? '' : ' -v ' . explode(' ',str_replace('+',' ',urldecode($_POST['execname'])))[-1 + sizeof(explode(' ',str_replace('+',' ',urldecode($_POST['execname']))))] . ' "' . str_replace('+',' ',str_replace("‘","'",urldecode($_POST['execcont']))) . '"')); //file_put_contents('xxxxxx.xxx', '' . 'say ' . (trim(str_replace('+',' ',urldecode($_POST['execname']))) == '' ? '' : ' -v ' . explode(' ',str_replace('+',' ',urldecode($_POST['execname'])))[-1 + sizeof(explode(' ',str_replace('+',' ',urldecode($_POST['execname']))))]) . ($audioname == '' ? '' : ' -o ' . str_replace('.mp3','.aiff',$audioname)) . ' "' . str_replace('"',"'",str_replace('+',' ',str_replace("‘","'",urldecode($_POST['execcont'])))) . '"' . ($audioname == '' ? '' : ' && afplay ' . $audioname . ' ; ' . $fprefix . 'ffmpeg -i ' . $audioname . $fswitch . ' ' . str_replace('.aiff','.mp3',$audioname))); $okay=true; $lastexec='say ' . (trim(str_replace('+',' ',urldecode($_POST['execname']))) == '' ? '' : ' -v ' . explode(' ',str_replace('+',' ',urldecode($_POST['execname'])))[-1 + sizeof(explode(' ',str_replace('+',' ',urldecode($_POST['execname']))))]) . ($audioname == '' ? '' : ' -o ' . str_replace('.mp3','.aiff',$audioname)) . ' "' . str_replace('"',"'",str_replace('+',' ',str_replace("‘","'",urldecode($_POST['execcont'])))) . '"' . ($audioname == '' ? '' : ' && afplay ' . $audioname . ' ; ' . $fprefix . 'ffmpeg -i ' . $audioname . $fswitch . ' ' . str_replace('.aiff','.mp3',$audioname)); if (file_exists($_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . 'tmp' . DIRECTORY_SEPARATOR . "last.exec")) { if (explode(';', $lastexec)[0] == explode(';', file_get_contents($_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . 'tmp' . DIRECTORY_SEPARATOR . "last.exec"))[0]) { $okay=false; } else { file_put_contents($_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . 'tmp' . DIRECTORY_SEPARATOR . "last.exec", $lastexec); } } else { file_put_contents($_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . 'tmp' . DIRECTORY_SEPARATOR . "last.exec", $lastexec); } if ($okay) { exec('say ' . (trim(str_replace('+',' ',urldecode($_POST['execname']))) == '' ? '' : ' -v ' . explode(' ',str_replace('+',' ',urldecode($_POST['execname'])))[-1 + sizeof(explode(' ',str_replace('+',' ',urldecode($_POST['execname']))))]) . ($audioname == '' ? '' : ' -o ' . str_replace('.mp3','.aiff',$audioname)) . ' "' . str_replace('"',"'",str_replace('+',' ',str_replace("‘","'",urldecode($_POST['execcont'])))) . '"' . ($audioname == '' ? '' : ' && afplay ' . $audioname . ' ; ' . $fprefix . 'ffmpeg -i ' . $audioname . $fswitch . ' ' . str_replace('.aiff','.mp3',$audioname))); } //exec('say ' . (trim(str_replace('+',' ',urldecode($_POST['execname']))) == '' ? '' : ' -v ' . explode(' ',str_replace('+',' ',urldecode($_POST['execname'])))[-1 + sizeof(explode(' ',str_replace('+',' ',urldecode($_POST['execname']))))]) . ($audioname == '' ? '' : '') . ' "' . str_replace('"',"'",str_replace('+',' ',str_replace("‘","'",urldecode($_POST['execcont'])))) . '"' . ($audioname == '' ? '' : '')); //file_put_contents('xxxxxx2.xxx', '' . 'say ' . (trim(str_replace('+',' ',urldecode($_POST['execname']))) == '' ? '' : ' -v ' . explode(' ',str_replace('+',' ',urldecode($_POST['execname'])))[-1 + sizeof(explode(' ',str_replace('+',' ',urldecode($_POST['execname']))))]) . ($audioname == '' ? '' : ' -o ' . str_replace('.mp3','.aiff',$audioname)) . ' "' . str_replace('"',"'",str_replace('+',' ',str_replace("‘","'",urldecode($_POST['execcont'])))) . '"' . ($audioname == '' ? '' : ' && afplay ' . $audioname . ' ; ' . $fprefix . 'ffmpeg -i ' . $audioname . $fswitch . ' ' . str_replace('.aiff','.mp3',$audioname))); if (file_exists(str_replace('.aiff','.mp3',$audioname))) { //file_put_contents('xxxxxx3.xxx', '' . 'say ' . (trim(str_replace('+',' ',urldecode($_POST['execname']))) == '' ? '' : ' -v ' . explode(' ',str_replace('+',' ',urldecode($_POST['execname'])))[-1 + sizeof(explode(' ',str_replace('+',' ',urldecode($_POST['execname']))))]) . ($audioname == '' ? '' : ' -o ' . str_replace('.mp3','.aiff',$audioname)) . ' "' . str_replace('"',"'",str_replace('+',' ',str_replace("‘","'",urldecode($_POST['execcont'])))) . '"' . ($audioname == '' ? '' : ' && afplay ' . $audioname . ' ; ' . $fprefix . 'ffmpeg -i ' . $audioname . $fswitch . ' ' . str_replace('.aiff','.mp3',$audioname))); $durl="data:audio/mpeg;base64," . base64_encode(file_get_contents(str_replace('.aiff','.mp3',$audioname))); //file_put_contents('xxxxxx4.xxx', '' . 'say ' . (trim(str_replace('+',' ',urldecode($_POST['execname']))) == '' ? '' : ' -v ' . explode(' ',str_replace('+',' ',urldecode($_POST['execname'])))[-1 + sizeof(explode(' ',str_replace('+',' ',urldecode($_POST['execname']))))]) . ($audioname == '' ? '' : ' -o ' . str_replace('.mp3','.aiff',$audioname)) . ' "' . str_replace('"',"'",str_replace('+',' ',str_replace("‘","'",urldecode($_POST['execcont'])))) . '"' . ($audioname == '' ? '' : ' && afplay ' . $audioname . ' ; ' . $fprefix . 'ffmpeg -i ' . $audioname . $fswitch . ' ' . str_replace('.aiff','.mp3',$audioname))); $audioname=str_replace('.aiff','.mp3',$audioname); //file_put_contents('xxxxxx5.xxx', '' . 'say ' . (trim(str_replace('+',' ',urldecode($_POST['execname']))) == '' ? '' : ' -v ' . explode(' ',str_replace('+',' ',urldecode($_POST['execname'])))[-1 + sizeof(explode(' ',str_replace('+',' ',urldecode($_POST['execname']))))]) . ($audioname == '' ? '' : ' -o ' . str_replace('.mp3','.aiff',$audioname)) . ' "' . str_replace('"',"'",str_replace('+',' ',str_replace("‘","'",urldecode($_POST['execcont'])))) . '"' . ($audioname == '' ? '' : ' && afplay ' . $audioname . ' ; ' . $fprefix . 'ffmpeg -i ' . $audioname . $fswitch . ' ' . str_replace('.aiff','.mp3',$audioname))); } //file_put_contents('xxxxxx6.xxx', '' . 'say ' . (trim(str_replace('+',' ',urldecode($_POST['execname']))) == '' ? '' : ' -v ' . explode(' ',str_replace('+',' ',urldecode($_POST['execname'])))[-1 + sizeof(explode(' ',str_replace('+',' ',urldecode($_POST['execname']))))]) . ($audioname == '' ? '' : ' -o ' . str_replace('.mp3','.aiff',$audioname)) . ' "' . str_replace('"',"'",str_replace('+',' ',str_replace("‘","'",urldecode($_POST['execcont'])))) . '"' . ($audioname == '' ? '' : ' && afplay ' . $audioname . ' ; ' . $fprefix . 'ffmpeg -i ' . $audioname . $fswitch . ' ' . str_replace('.aiff','.mp3',$audioname))); echo "said this @!@" . DIRECTORY_SEPARATOR . 'tmp' . DIRECTORY_SEPARATOR . basename($audioname) . $durl . ""; //file_put_contents('xxxxxx7.xxx', '' . 'say ' . (trim(str_replace('+',' ',urldecode($_POST['execname']))) == '' ? '' : ' -v ' . explode(' ',str_replace('+',' ',urldecode($_POST['execname'])))[-1 + sizeof(explode(' ',str_replace('+',' ',urldecode($_POST['execname']))))]) . ($audioname == '' ? '' : ' -o ' . str_replace('.mp3','.aiff',$audioname)) . ' "' . str_replace('"',"'",str_replace('+',' ',str_replace("‘","'",urldecode($_POST['execcont'])))) . '"' . ($audioname == '' ? '' : ' && afplay ' . $audioname . ' ; ' . $fprefix . 'ffmpeg -i ' . $audioname . $fswitch. ' ' . str_replace('.aiff','.mp3',$audioname))); exit; } else { echo " Text to Speech - RJM Programming - December, 2026 ... thanks to macOS say and/or Google Translate var zhr=null, zform=null, zret=false, hasbeencalled=false, execname='/tmp/" . basename($audioname) . "', execcont='" . $durl . "'; var lng=location.search.split('execname=')[1] ? decodeURIComponent(location.search.split('execname=')[1].split('&')[0]).substring(0,2) : (('' + navigator.language) != '' ? navigator.language.split('-')[0] : 'en'); " . (strtoupper(PHP_OS) == "DARWIN" ? " var port=':8888'; " : " var port=''; ") . " var apos=String.fromCodePoint(8216); // '‘'; function woit() { window.open('//translate.google.com/?sl=auto&tl=' + document.getElementById('execname').value.substring(0,2) + '&text=' + encodeURIComponent(document.getElementById('execcont').value.replace(/\'/g,apos)) + '%0A&op=translate', '_blank', 'left=' + eval(-1050 + screen.width) + ',top=100,width=500,height=700'); } function rethink() { //alert(345); document.getElementById('mysub').click(); } function mampshowStuff(evt) { if (zhr.readyState == 4) { if (zhr.status == 200) { //alert(zhr.responseText); if (zhr.responseText.indexOf('said this @!@') != -1) { if (zhr.responseText.indexOf('said this @!@<') == -1) { if (zhr.responseText.split('said this @!@')[1].indexOf('tmp') == 1) { execname=zhr.responseText.split('said this @!@')[1].split('')[0]; if (execname.indexOf('data:') != -1) { execcont='data:' + execname.split('data:')[1]; execname=execname.replace(execcont,''); } } else if (zhr.responseText.indexOf('said this @!@data:') != -1) { execcont=zhr.responseText.indexOf('said this @!@')[1].split('')[0]; } } hasbeencalled=true; zhr=zhr; } else { hasbeencalled=true; zret=true; document.getElementById('mysub').click(); } if (execname != '' && execcont != '') { document.getElementById('bupload').style.display='inline-block'; document.getElementById('aemail').style.display='inline-block'; document.getElementById('asms').style.display='inline-block'; document.getElementById('duria').style.display='inline-block'; document.getElementById('audioname').value=execname; document.getElementById('audioname').name='audioname'; if (1 == 1) { document.getElementById('durias').src=''; document.getElementById('duria').innerHTML=document.getElementById('duria').innerHTML.replace(' src=\"\"',' src=\"' + (execname != '' ? execname : execcont) + '\"'); } else { document.getElementById('durias').src=(execname != '' ? execname : execcont); } } } else { //alert('0bad1:' + zhr.status); hasbeencalled=true; zret=true; document.getElementById('mysub').name='mysub'; document.getElementById('audioname').value=execname; // '/tmp/" . basename($audioname) . "'; document.getElementById('audioname').name='audioname'; //window.open('//translate.google.com/?sl=auto&tl=' + document.getElementById('execname').value.substring(0,2) + '&text=' + encodeURIComponent(document.getElementById('execcont').value.replace(/\'/g,apos)) + '%0A&op=translate', '_blank', 'left=' + eval(-1050 + screen.width) + ',top=100,width=500,height=700'); //window.open('./local_say_help.php?mysub=+&execname=' + encodeURIComponent(document.getElementById('execname').value) + '&execcont=' + encodeURIComponent(document.getElementById('execcont').value.replace(/\'/g,apos)), '_blank', 'left=' + eval(-500 + screen.width) + ',top=100,width=500,height=700'); document.getElementById('myform').target='_blank'; document.getElementById('myform').action=document.getElementById('myform').action.replace('https://www.rjmprogramming.com.au/','./').replace('http://www.rjmprogramming.com.au/','./').replace('./', 'http://localhost' + (('' + navigator.platform).toLowerCase().indexOf('mac') == 0 ? ':8888' : '') + '/'); document.getElementById('mysub').click(); setTimeout(function(){ document.getElementById('myform').target='_self'; }, 10000); } } else if (1 == 4) { hasbeencalled=true; zret=true; document.getElementById('mysub').click(); } } function upload() { zhr = new XMLHttpRequest(); zform = new FormData(); if (execcont.indexOf('/aif') != -1) { zform.append('execname', execname); } else { zform.append('execname', execname.replace('.aiff','.mp3')); } zform.append('execcont', execcont); zhr.open('post', '//www.rjmprogramming.com.au/local_tmp_uploader.php', true); zhr.send(zform); } function onsb() { if (document.getElementById('execname').value.trim() == '') { document.getElementById('execname').value='en_US Alex'; } if (document.getElementById('execcont').value.trim() == '') { return false; } if (!zret) { zhr = new XMLHttpRequest(); zform = new FormData(); zform.append('execname', document.getElementById('execname').value); zform.append('execcont', document.getElementById('execcont').value.replace(/\'/g,apos)); zform.append('audioname', '" . $audioname . "'); zhr.open('post', 'http://localhost' + (('' + navigator.platform).toLowerCase().indexOf('mac') == 0 ? ':8888' : '') + '/local_say_help.php', true); hasbeencalled=false; setTimeout(function(){ if (!hasbeencalled) { hasbeencalled=true; zret=true; document.getElementById('mysub').click(); } }, 5000); zhr.onreadystatechange = mampshowStuff; zhr.send(zform); } //if (zret) { alert(356); } return zret; } var twois=window.open('//translate.google.com/?sl=auto&tl=' + lng + '&text=' + encodeURIComponent(\"" . str_replace('+',' ',str_replace("‘","'",urldecode($_POST['execcont']))) . "\") + '%0A&op=translate', '_blank', 'left=' + eval(-1050 + screen.width) + ',top=100,width=500,height=700'); //setTimeout(function(){ var recti=document.getElementById('execname').getBoundingClientRect(); document.getElementById('execcont').style.width='' + recti.width + 'px'; }, 8000); setTimeout(function(){ var recti=document.getElementById('execname').getBoundingClientRect(); document.getElementById('execcont').style.width='' + eval(eval(100 * recti.width) / screen.width) + '%'; document.getElementById('execname').style.width=document.getElementById('execcont').style.width; }, 8000);

Text to Speech

RJM Programming - December, 2026

Thanks to macOS say and/or Google Translate

" . $sayis . "




    

"; } exit; } } $more=""; $du=""; $fmvs=-1; $dup="data:audio/mpeg;base64,"; if (isset($_GET['execname']) && isset($_GET['execcont'])) { if (isset($_GET['audioname'])) { $audioname=str_replace('+',' ',urldecode($_GET['audioname'])); if (strtoupper(PHP_OS) == "DARWIN") { if (!file_exists($_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . 'tmp' . DIRECTORY_SEPARATOR . basename($audioname))) { $fdone=false; foreach(glob($_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . 'tmp' . DIRECTORY_SEPARATOR . 'diffident_*.aiff') as $fna) { //if (!$fdone) { //$fdone=true; if (filemtime($fna) > $fmvs) { $audioname=$fna; $fmvs=filemtime($fna); } //} } if (file_exists($_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . 'tmp' . DIRECTORY_SEPARATOR . basename(str_replace('.aiff','.mp3',$audioname)))) { $audioname=str_replace('.aiff','.mp3',$audioname); } else { $dup="data:audio/aiff;base64,"; } } } } if (strtoupper(PHP_OS) == "DARWIN") { $lastexec=""; $more=" && 5 == 6"; if (isset($_GET['mysub'])) { //sleep(16); //$audioname=str_replace('.aiff','.mp3',$audioname); if (file_exists($_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . 'tmp' . DIRECTORY_SEPARATOR . basename($audioname))) { $du=$dup . base64_encode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . 'tmp' . DIRECTORY_SEPARATOR . basename($audioname))); $omore=" onload=\"document.getElementById('bupload').style.display='inline-block'; document.getElementById('aemail').style.display='inline-block'; document.getElementById('asms').style.display='inline-block'; document.getElementById('duria').style.display='inline-block'; document.getElementById('audioname').value=execname; document.getElementById('audioname').name='audioname'; document.getElementById('execname').value='" . trim(str_replace('+',' ',urldecode($_GET['execname']))) . "'; document.getElementById('execcont').value=decodeURIComponent('" . $_GET['execcont'] . "'); execcont='" . $du . "'; if (1 == 1) { document.getElementById('durias').src=''; document.getElementById('duria').innerHTML=document.getElementById('duria').innerHTML.replace(' Text to Speech - RJM Programming - December, 2026 ... thanks to macOS say and/or Google Translate var zhr=null, zform=null, zret=false, hasbeencalled=false, execname='/tmp/" . basename($audioname) . "', execcont='" . $durl . "'; var lng=location.search.split('execname=')[1] ? decodeURIComponent(location.search.split('execname=')[1].split('&')[0]).substring(0,2) : (('' + navigator.language) != '' ? navigator.language.split('-')[0] : 'en'); " . (strtoupper(PHP_OS) == "DARWIN" ? " var port=':8888'; " : " var port=''; ") . " var apos=String.fromCodePoint(8216); // '‘'; function woit() { window.open('//translate.google.com/?sl=auto&tl=' + document.getElementById('execname').value.substring(0,2) + '&text=' + encodeURIComponent(document.getElementById('execcont').value.replace(/\'/g,apos)) + '%0A&op=translate', '_blank', 'left=' + eval(-1050 + screen.width) + ',top=100,width=500,height=700'); } function rethink() { //alert(2345); document.getElementById('mysub').click(); } function upload() { zhr = new XMLHttpRequest(); zform = new FormData(); //alert(execcont); //alert(execname); if (execcont.indexOf('/aif') != -1) { zform.append('execname', execname); } else { zform.append('execname', execname.replace('.aiff','.mp3')); } zform.append('execcont', execcont); zhr.open('post', '//www.rjmprogramming.com.au/local_tmp_uploader.php', true); zhr.send(zform); } function mampshowStuff(evt) { if (zhr.readyState == 4) { if (zhr.status == 200) { //alert('2:' + zhr.responseText); if (zhr.responseText.indexOf('said this @!@') != -1) { if (zhr.responseText.indexOf('said this @!@<') == -1) { if (zhr.responseText.split('said this @!@')[1].indexOf('tmp') == 1) { execname=zhr.responseText.split('said this @!@')[1].split('')[0]; if (execname.indexOf('data:') != -1) { execcont='data:' + execname.split('data:')[1]; execname=execname.replace(execcont,''); } } else if (zhr.responseText.indexOf('said this @!@data:') != -1) { execcont=zhr.responseText.indexOf('said this @!@')[1].split('')[0]; } } hasbeencalled=true; zhr=zhr; } else { hasbeencalled=true; zret=true; document.getElementById('mysub').click(); } if (execname != '' && execcont != '') { document.getElementById('bupload').style.display='inline-block'; document.getElementById('aemail').style.display='inline-block'; document.getElementById('asms').style.display='inline-block'; document.getElementById('duria').style.display='inline-block'; document.getElementById('audioname').value=execname; document.getElementById('audioname').name='audioname'; if (1 == 1) { document.getElementById('durias').src=''; document.getElementById('duria').innerHTML=document.getElementById('duria').innerHTML.replace(' src=\"\"',' src=\"' + (execname != '' ? execname : execcont) + '\"'); } else { document.getElementById('durias').src=(execname != '' ? execname : execcont); } } } else { //alert('0bad2:' + zhr.status); hasbeencalled=true; zret=true; document.getElementById('mysub').name='mysub'; document.getElementById('audioname').value=execname; // '/tmp/" . basename($audioname) . "'; document.getElementById('audioname').name='audioname'; //window.open('//translate.google.com/?sl=auto&tl=' + document.getElementById('execname').value.substring(0,2) + '&text=' + encodeURIComponent(document.getElementById('execcont').value.replace(/\'/g,apos)) + '%0A&op=translate', '_blank', 'left=' + eval(-1050 + screen.width) + ',top=100,width=500,height=700'); //window.open('./local_say_help.php?mysub=+&execname=' + encodeURIComponent(document.getElementById('execname').value) + '&execcont=' + encodeURIComponent(document.getElementById('execcont').value.replace(/\'/g,apos)), '_blank', 'left=' + eval(-500 + screen.width) + ',top=100,width=500,height=700'); document.getElementById('myform').target='_blank'; document.getElementById('myform').action=document.getElementById('myform').action.replace('https://www.rjmprogramming.com.au/','./').replace('http://www.rjmprogramming.com.au/','./').replace('./', 'http://localhost' + (('' + navigator.platform).toLowerCase().indexOf('mac') == 0 ? ':8888' : '') + '/'); document.getElementById('mysub').click(); setTimeout(function(){ document.getElementById('myform').target='_self'; }, 10000); } } else if (1 == 4) { hasbeencalled=true; zret=true; document.getElementById('mysub').click(); } } function onsb() { if (document.getElementById('execname').value.trim() == '') { document.getElementById('execname').value='en_US Alex'; } if (document.getElementById('execcont').value.trim() == '') { return false; } if (!zret) { zhr = new XMLHttpRequest(); zform = new FormData(); zform.append('execname', document.getElementById('execname').value); zform.append('execcont', document.getElementById('execcont').value.replace(/\'/g,apos)); zform.append('audioname', '" . $audioname . "'); zhr.open('post', 'http://localhost' + (('' + navigator.platform).toLowerCase().indexOf('mac') == 0 ? ':8888' : '') + '/local_say_help.php', true); hasbeencalled=false; setTimeout(function(){ if (!hasbeencalled) { hasbeencalled=true; zret=true; document.getElementById('mysub').click(); } }, 18000); zhr.onreadystatechange = mampshowStuff; zhr.send(zform); } //if (zret) { alert(56); } return zret; } if (('' + navigator.platform).toLowerCase().indexOf('mac') != 0" . $more . ") { var twois=window.open('//translate.google.com/?sl=auto&tl=' + lng + '&text=' + encodeURIComponent(\"" . str_replace('+',' ',str_replace("‘","'",urldecode($_GET['execcont']))) . "\") + '%0A&op=translate', '_blank', 'left=' + eval(-1050 + screen.width) + ',top=100,width=500,height=700'); } //setTimeout(function(){ var recti=document.getElementById('execname').getBoundingClientRect(); document.getElementById('execcont').style.width='' + recti.width + 'px'; }, 8000); setTimeout(function(){ var recti=document.getElementById('execname').getBoundingClientRect(); document.getElementById('execcont').style.width='' + eval(eval(100 * recti.width) / screen.width) + '%'; document.getElementById('execname').style.width=document.getElementById('execcont').style.width; }, 8000);

Text to Speech

RJM Programming - December, 2026

Thanks to macOS say and/or Google Translate

" . $sayis . "



  

    

"; exit; } } else { echo " Text to Speech - RJM Programming - December, 2026 ... thanks to macOS say and/or Google Translate var zhr=null, zform=null, zret=false, hasbeencalled=false, execname='/tmp/" . basename($audioname) . "', execcont='" . $durl . "'; var lng=location.search.split('execname=')[1] ? decodeURIComponent(location.search.split('execname=')[1].split('&')[0]).substring(0,2) : (('' + navigator.language) != '' ? navigator.language.split('-')[0] : 'en'); " . (strtoupper(PHP_OS) == "DARWIN" ? " var port=':8888'; " : " var port=''; ") . " var apos=String.fromCodePoint(8216); // '‘'; function woit() { window.open('//translate.google.com/?sl=auto&tl=' + document.getElementById('execname').value.substring(0,2) + '&text=' + encodeURIComponent(document.getElementById('execcont').value.replace(/\'/g,apos)) + '%0A&op=translate', '_blank', 'left=' + eval(-1050 + screen.width) + ',top=100,width=500,height=700'); } function rethink() { //alert(3345); document.getElementById('mysub').click(); } function upload() { zhr = new XMLHttpRequest(); zform = new FormData(); if (execcont.indexOf('/aif') != -1) { zform.append('execname', execname); } else { zform.append('execname', execname.replace('.aiff','.mp3')); } zform.append('execcont', execcont); zhr.open('post', '//www.rjmprogramming.com.au/local_tmp_uploader.php', true); zhr.send(zform); } function mampshowStuff(evt) { if (zhr.readyState == 4) { if (zhr.status == 200) { //alert(zhr.responseText); //alert('3:' + zhr.responseText); if (zhr.responseText.indexOf('said this @!@') != -1) { if (zhr.responseText.indexOf('said this @!@<') == -1) { if (zhr.responseText.split('said this @!@')[1].indexOf('tmp') == 1) { execname=zhr.responseText.split('said this @!@')[1].split('')[0]; if (execname.indexOf('data:') != -1) { execcont='data:' + execname.split('data:')[1]; execname=execname.replace(execcont,''); } } else if (zhr.responseText.indexOf('said this @!@data:') != -1) { execcont=zhr.responseText.indexOf('said this @!@')[1].split('')[0]; } } hasbeencalled=true; zhr=zhr; } else { hasbeencalled=true; zret=true; document.getElementById('mysub').click(); } if (execname != '' && execcont != '') { document.getElementById('bupload').style.display='inline-block'; document.getElementById('aemail').style.display='inline-block'; document.getElementById('asms').style.display='inline-block'; document.getElementById('duria').style.display='inline-block'; document.getElementById('audioname').value=execname; document.getElementById('audioname').name='audioname'; if (1 == 1) { document.getElementById('durias').src=''; document.getElementById('duria').innerHTML=document.getElementById('duria').innerHTML.replace(' src=\"\"',' src=\"' + (execname != '' ? execname : execcont) + '\"'); } else { document.getElementById('durias').src=(execname != '' ? execname : execcont); } } } else { //alert('0bad3:' + zhr.status); hasbeencalled=true; //alert(245); zret=true; //alert(document.getElementById('myform').action); document.getElementById('mysub').name='mysub'; document.getElementById('audioname').value=execname; // '/tmp/" . basename($audioname) . "'; document.getElementById('audioname').name='audioname'; //window.open('//translate.google.com/?sl=auto&tl=' + document.getElementById('execname').value.substring(0,2) + '&text=' + encodeURIComponent(document.getElementById('execcont').value.replace(/\'/g,apos)) + '%0A&op=translate', '_blank', 'left=' + eval(-1050 + screen.width) + ',top=100,width=500,height=700'); //window.open('./local_say_help.php?mysub=+&execname=' + encodeURIComponent(document.getElementById('execname').value) + '&execcont=' + encodeURIComponent(document.getElementById('execcont').value.replace(/\'/g,apos)), '_blank', 'left=' + eval(-500 + screen.width) + ',top=100,width=500,height=700'); document.getElementById('myform').target='_blank'; document.getElementById('myform').action=document.getElementById('myform').action.replace('https://www.rjmprogramming.com.au/','./').replace('http://www.rjmprogramming.com.au/','./').replace('./', 'http://localhost' + (('' + navigator.platform).toLowerCase().indexOf('mac') == 0 ? ':8888' : '') + '/'); document.getElementById('mysub').click(); setTimeout(function(){ document.getElementById('myform').target='_self'; }, 10000); } } else if (1 == 4) { hasbeencalled=true; //alert(1245); zret=true; document.getElementById('mysub').click(); } } function onsb() { if (document.getElementById('execname').value.trim() == '') { document.getElementById('execname').value='en_US Alex'; } if (document.getElementById('execcont').value.trim() == '') { return false; } if (!zret) { zhr = new XMLHttpRequest(); zform = new FormData(); zform.append('execname', document.getElementById('execname').value); zform.append('execcont', document.getElementById('execcont').value.replace(/\'/g,apos)); zform.append('audioname', '" . $audioname . "'); zhr.open('post', 'http://localhost' + (('' + navigator.platform).toLowerCase().indexOf('mac') == 0 ? ':8888' : '') + '/local_say_help.php', true); hasbeencalled=false; setTimeout(function(){ if (!hasbeencalled) { hasbeencalled=true; zret=true; document.getElementById('mysub').click(); } }, 18000); zhr.onreadystatechange = mampshowStuff; zhr.send(zform); } //f (zret) { alert(256); } return zret; } setTimeout(function(){ var recti=document.getElementById('execname').getBoundingClientRect(); document.getElementById('execcont').style.width='' + eval(eval(100 * recti.width) / screen.width) + '%'; document.getElementById('execname').style.width=document.getElementById('execcont').style.width; }, 8000);

Text to Speech

RJM Programming - December, 2026

Thanks to macOS say and/or Google Translate

" . $sayis . "



  

    

"; } exit; ?>