Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Pédagogies Multimodales
Phonographe
Commits
872ea56c
Commit
872ea56c
authored
Mar 20, 2021
by
Sylvain Coulange
Browse files
mise à jour synthèse vocale (locuteur, voix)
parent
f954541c
Changes
2
Hide whitespace changes
Inline
Side-by-side
clavier/views.py
View file @
872ea56c
...
...
@@ -132,10 +132,17 @@ def openPlayerPhono(request, pk):
def
playIpa
(
request
):
colis
=
json
.
loads
(
request
.
body
)
ipa
=
colis
[
'ipa'
]
lang
=
colis
[
'lang'
]
voix
=
colis
[
'voix'
]
# debit = colis['debit']
print
(
"Lecture de ["
+
ipa
+
"] débit 80%"
)
audioBytes
,
lenssml
=
lambda_handler
(
ipa
,
"Celine"
)
if
lang
==
"fr"
:
loc
=
"Celine"
if
voix
==
"f"
else
"Mathieu"
elif
lang
==
"enbr"
:
loc
=
"Amy"
if
voix
==
"f"
else
"Brian"
print
(
"Lecture de ["
+
ipa
+
"] débit 80%"
)
audioBytes
,
lenssml
=
lambda_handler
(
ipa
,
loc
)
data
=
{
"audio"
:
audioBytes
...
...
static/js/syntheseVocale.js
View file @
872ea56c
var
currentIpa
=
""
;
var
currentDebit
=
80
;
var
voix
=
"
f
"
async
function
playIpa
()
{
...
...
@@ -47,6 +48,8 @@ async function playIpa() {
// ON EMBALLE TOUT ÇA
var
colis
=
{
ipa
,
lang
:
thisPageLang
,
voix
,
'
appli
'
:
thisAppli
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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