diff --git a/webfrontend/html/tts.php b/webfrontend/html/tts.php index 35524cb..e81f902 100644 --- a/webfrontend/html/tts.php +++ b/webfrontend/html/tts.php @@ -90,6 +90,10 @@ $t2s_langfile = "t2s-text_".substr($config['TTS']['messageLang'],0,2).".ini"; // language file for text-speech LOGGING("All variables has been collected",6); $soundcard = $config['SYSTEM']['card']; + if(isset($_GET['json'])) { + $soundcard = 'json'; + } + # prüfen ob Volume in syntax, wenn nicht Std. von Config if (!isset($_GET["volume"])) { $volume = $config['TTS']['volume']; @@ -151,6 +155,8 @@ exit; } switch ($soundcard) { + case 'json': + break; case '001': // NULL exit; break; @@ -467,7 +473,7 @@ function create_tts() { LOGGING("Expected filename: $resultmp3", 7); if(file_exists($resultmp3) && empty($_GET['nocache'])) { LOGGING("Text in cache: $text", 6); - next; + continue; } LOGGING("T2S will be called with '$text'", 7);