Commit aaf8bd68 authored by Sylvain Coulange's avatar Sylvain Coulange 🌼
Browse files

debug synthesevocale js

parent 1b6794d0
......@@ -52,8 +52,8 @@ async function playIpa(line="") {
} else if (thisAppli == "phonodrop") {
var thisPageLang = lang;
if (lang=="enbr") lang = "en";
if (thisPageLang=="enbr") {thisPageLang = "en";}
// Si quelque chose est écrit...
if (group.length > 1) {
group = sortGroup(group)
......@@ -119,7 +119,7 @@ async function playIpa(line="") {
};
// ENVOI
const response = await fetch('/_playIpa/', options)
const response = await fetch('https://phonographe.alem-app.fr/_playIpa/', options)
const data = await response.json();
readResponse(data["audio"], line);
} else {
......@@ -128,7 +128,9 @@ async function playIpa(line="") {
sv_audio.play();
}
saveTrace(`playIpa [${ipa}] ${colis.voix} ${colis.lang} ${document.getElementById('debitParole'+line.toString()).value} rep${line}`)
if (typeof saveTrace !== "undefined") {
saveTrace(`playIpa [${ipa}] ${colis.voix} ${colis.lang} ${document.getElementById('debitParole'+line.toString()).value} rep${line}`)
}
}
function readResponse(response, line) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment