Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Pédagogies Multimodales
PhonoDrop
Commits
aaf8bd68
Commit
aaf8bd68
authored
Nov 06, 2022
by
Sylvain Coulange
🌼
Browse files
debug synthesevocale js
parent
1b6794d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
public/scripts/syntheseVocale.js
View file @
aaf8bd68
...
...
@@ -52,8 +52,8 @@ async function playIpa(line="") {
}
else
if
(
thisAppli
==
"
phonodrop
"
)
{
var
thisPageLang
=
lang
;
if
(
l
ang
==
"
enbr
"
)
l
ang
=
"
en
"
;
if
(
thisPageL
ang
==
"
enbr
"
)
{
thisPageL
ang
=
"
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
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment