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 c9d87c42 authored by Sylvain Coulange's avatar Sylvain Coulange
Browse files

corrections bugs

parent b3866a7c
......@@ -23,7 +23,7 @@ def lambda_handler(ipa, loc):
# generate phoneme tag for polly to read
text = text.replace(' ', "'></phoneme><break/><phoneme alphabet='ipa' ph='")
# phoneme = "<prosody rate='"+debit+"%'><phoneme alphabet='ipa' ph='"+text+"'></phoneme></prosody>" #<prosody rate='85%'></prosody>
phoneme = "<phoneme alphabet='ipa' ph='"+text+"'></phoneme>" #<prosody rate='85%'></prosody>
phoneme = "<prosody rate='80%'><phoneme alphabet='ipa' ph='"+text+"'></phoneme></prosody>" #<prosody rate='85%'></prosody>
# send to polly, requesting mp3 back
response = polly.synthesize_speech(
......
......@@ -133,7 +133,7 @@ def playIpa(request):
colis = json.loads(request.body)
ipa = colis['ipa']
# debit = colis['debit']
print("Lecture de ["+ipa+"] débit 100%")
print("Lecture de ["+ipa+"] débit 80%")
audioBytes, lenssml = lambda_handler(ipa, "Celine")
......
......@@ -48,6 +48,29 @@ if (dataPage == 0) {
console.log("Langue non enregistrée ; default=fr")
selectLang("fr")
}
var cartesListe = Array.from(document.getElementsByClassName('carte'))
cartesListe.forEach( (carte) => {
carte.addEventListener("dblclick", function(e) {
var tgt = e.target
// on passe le curseurb sur la carte d'avant
curseurPos = tgt.previousElementSibling.id
tgt.previousElementSibling.classList.add('startPoint')
playEffect("delete")
tgt.remove()
// saveTrace('del phon '+rectId)
})
carte.addEventListener('dragstart', () => {
carte.classList.add('dragging')
console.log('DRAGGING ', carte.id)
})
carte.addEventListener('dragend', () => {
carte.classList.remove('dragging')
console.log('STOP DRAGGING ', carte.id)
})
})
}
......
......@@ -5,7 +5,7 @@
// https://www.youtube.com/watch?v=jfYWwQrtzzY&t=102s
// ajouter DragDropTouch.js pour compatibilité tactile
var rep = document.getElementById('textZone')
if (thisAppli == "phonographe") rep = document.getElementById('textZone')
rep.addEventListener('dragover', e => {
e.preventDefault()
......
......@@ -9,7 +9,7 @@ async function playIpa() {
if (thisPageLang == 'fr'){
// Si quelque chose est écrit...
var phonEllist = document.getElementsByClassName('text')
console.log('phonEllist = ',phonEllist)
if (phonEllist.length > 0) {
// on récupère tous les élément classe "text" et on récupère leur classe phon_*
var ipa = "";
......
......@@ -225,8 +225,8 @@
<script type="text/javascript" src="{% static 'js/interface.js' %}"></script>
<script type="text/javascript" src="{% static 'js/clavierCalques.js' %}"></script>
<script type="text/javascript" src="{% static 'js/popupAide.js' %}"></script>
<script type="text/javascript" src="{% static 'js/clavier.js' %}"></script>
<script type="text/javascript" src="{% static 'js/dragdrop.js' %}"></script>
<script type="text/javascript" src="{% static 'js/DragDropTouch.js' %}"></script>
<script type="text/javascript" src="{% static 'js/clavier.js' %}"></script>
<script type="text/javascript" src="{% static 'js/syntheseVocale.js' %}"></script>
{% endblock %}
\ No newline at end of file
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