From: vincent@cubedesigners.com Date: Tue, 7 Mar 2023 15:56:48 +0000 (+0000) Subject: wait #5784 @0:20 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=2819fe4933251f0addd4b92874aa17ffc012031d;p=cubeextranet.git wait #5784 @0:20 --- diff --git a/inc/ws/Util/html5/master/class.ws.html5.compiler.php b/inc/ws/Util/html5/master/class.ws.html5.compiler.php index 327820c94..8aac88c5e 100644 --- a/inc/ws/Util/html5/master/class.ws.html5.compiler.php +++ b/inc/ws/Util/html5/master/class.ws.html5.compiler.php @@ -1517,7 +1517,7 @@ height="0" width="0" style="display:none;visibility:hidden"> $text = str_replace(array_keys($replace), array_values($replace), $text); $text = CubeIT_Text::cleanUTF8($text, ''); - $voiceInfos = $data['voice'] ?: $this->book->parametres->audiodescriptionVoice; + $voiceInfos = $data['voice'] ?? $this->book->parametres->audiodescriptionVoice; if ($voiceInfos) { $hash = hash('sha256', $voiceInfos . '_^_' . $text); @@ -1579,7 +1579,7 @@ height="0" width="0" style="display:none;visibility:hidden"> $api = new \Cubist\Azure\TTS\Api('28fdfcdcc7f141b29cd9db4afc5779c5'); $api->textToSpeech($text, $locale, $gender, $voiceName, $output); } catch (Exception $e) { - dd($e); + } } @@ -2659,10 +2659,10 @@ height="0" width="0" style="display:none;visibility:hidden"> if ($ext === 'txt') { $file = $this->wdir . '/' . $link['to']; if (file_exists($file)) { - $this->audioDescriptionTextsList[$link['page']] = file_get_contents($file); + $this->audioDescriptionTextsList[$link['page']] = ['text' => file_get_contents($file)]; } } else { - $this->config->audiodescription[$link['page']] = $link['to']; + $this->config->audiodescription[$link['page']] = ['text' => $link['to']]; $this->copyLinkFile($link['to'], 'data/audiodescription/'); } } @@ -3658,7 +3658,7 @@ height="0" width="0" style="display:none;visibility:hidden"> } } - $res=['dir' => $dir, 'fdir' => $fdir]; + $res = ['dir' => $dir, 'fdir' => $fdir]; return $res; }