Vous avez reçu un message "Your GitLab account has been locked ..." ? Pas d'inquiétude : lisez cet article https://docs.gricad-pages.univ-grenoble-alpes.fr/help/unlock/

Commit 872ea56c authored by Sylvain Coulange's avatar Sylvain Coulange
Browse files

mise à jour synthèse vocale (locuteur, voix)

parent f954541c
......@@ -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
......
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
};
......
Markdown is supported
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