 document.getElementById("id_logic_level_version").innerHTML = "Business level version: 2017.11.22.5"; 
 
 var synt = window.speechSynthesis;
 
 //---------------------------------------
 function get_voices()
 {
	 var voices = synt.getVoices();
	 for (var i = 0; i < voices.length; i++){
		 var e = document.createElement("option");
		 e.text = voices[i].lang;
		 document.getElementById ("id_voices").add(e);
	 }
 }
 //---------------------------------------
 function speak()
 {
	var enunt = new SpeechSynthesisUtterance();
	enunt.lang = "it-IT";
	enunt.text = document.getElementById("id_text").value;
	
	enunt.onerror = function(e){
		alert(e.error);
	}
	
	enunt.onend = function(e){
		document.getElementById("id_button_speak").disabled = false;
	}
	
	document.getElementById("id_button_speak").disabled = true;
	synt.speak(enunt);	
 }
  //---------------------------------------

@@ -96,9 +96,9 @@
 .22.
-5
+6
 %22; %0A
@@ -538,15 +538,51 @@
 g = 
-%22it-IT%22
+document.getElementById (%22id_voices%22).value
 ;%0A%09e

use selected voice