(function($) { $(document).ready(function(){ site = 'uk'; var mandatory_fields = ['prenom', 'nom', 'societe', 'email', 'telephone', 'code_postal', 'ville', 'adresse']; function toggle_service_type() { // $('.docTypeChild').hide(); $('.docTypeChildren').show(); $('.docTypeChild').hide(); var d = $('input[name="typeTraduction"]:checked').val(); toggle_voices_translation_languages(); if(d == 'document') { $(".blockDelai").show(); $("#blockTraductionDocument").show(); $(".blockLangue").show(); $(".blockFichier").show(); } else if(d == 'site') { $(".blockDelai").show(); $("#blockTraductionSite").show(); $(".blockLangue").show(); $(".blockFichier").show(); } else if(d == 'multimedia') { $(".blockDelai").show(); $("#blockTraductionMultimedia").show(); $(".blockFichier").show(); } else if(d == 'voixOff') { $("#blockTraductionVoixOff").show(); $("#blockVoiceOver").show(); $(".blockDelai").show(); $(".blockFichier").show(); } else if(d == 'interpretariat') { $("#blockInterpretariat").show(); } else if(d == 'relecture') { $("#blockRelecture").show(); $(".blockDelai").show(); $(".blockFichier").show(); } else if(d == 'subtitles') { $("#blockSubtitles").show(); $(".blockDelai").show(); $(".blockFichier").show(); } //console.log(d); }; function toggle_voices_translation_languages() { var languagesBlock = $("#translation-languages").detach(); var service = $('input[name="typeTraduction"]:checked').val(); if(service == 'voixOff') { if ($("#voiceover-translation").is(":checked")) { // move block to another place $('#voiceover-languages-placeholder').append(languagesBlock); languagesBlock.show(); } else { $('#default-languages-placeholder').append(languagesBlock); languagesBlock.hide(); } } else { $('#default-languages-placeholder').append(languagesBlock); languagesBlock.hide(); } } // Remove array value function arrayRemoveValue(a,v) { var n = new Array(); for(var i=0;i').parent().html(); // SERVICE TYPE SELECTION $('input[name="typeTraduction"]').click(function() { toggle_service_type(); }); toggle_service_type(); // Document translation > choose certified translation country $('input[name="assermentationDocument"]').click(function(){ if($(this).is(':checked')) { $('#blockCertifiedTranslationCountry').show(); } else { $('#blockCertifiedTranslationCountry').hide(); } }); $('select[name="certifiedTranslationCountry"]').change(function(){ if($(this).val() == 'other') { $('input[name="certifiedTranslationCountryOther"]').show(); } else { $('input[name="certifiedTranslationCountryOther"]').val('').hide(); } }); //Traduire multim├ędia $("#traduireMultimedia").click(function(){ if ( $(this).is(":checked") ){ $(".blockLangue").show(); } else{ $(".blockLangue").hide(); } }); //Traduire doublage - old version to be removed if($("#traduireVoisOff").length > 0) { $("#traduireVoisOff").click(function(){ if ( $(this).is(":checked") ){ $(".blockLangue").show(); } else{ $(".blockLangue").hide(); } }); } // Voiceover translation languages - new version $("#voiceover-translation").click(function(){ toggle_voices_translation_languages(); }); toggle_voices_translation_languages(); //Mise en page $("#blockMiseEnPageLogicielVersion").hide(); $("#miseEnPageCreation, #miseEnPageRepiquage").click(function(){ if ( $(this).is(":checked") ) $("#blockMiseEnPageLogicielVersion").show(); }); $("#miseEnPageAucune").click(function(){ if ( $(this).is(":checked") ) $("#blockMiseEnPageLogicielVersion").hide(); }); // Show field other language when Other is selected (language is not in the predefined list) $("#langueOrigine").change(function(){ if ( $(this).val() == "autre" ){ $("#langueOrigineAutre").show(); } else $("#langueOrigineAutre").hide(); }); $("#langueCible").change(function(){ if ( $(this).val() == "autre" ){ $("#langueCibleAutre").show(); } else $("#langueCibleAutre").hide(); }); $("#pays").change(function(){ if ( $(this).val() == "other" ){ $("#contact-country-other").show(); } else $("#contact-country-other").hide(); }); // Calendars jQuery( ".datepicker" ).datepicker({ language: 'en' }) .on('hide, changeDate', function(e) { $('#delaiSouhaite').val(e.format('yyyy-mm-dd')); }); (function($) { $('input[name="youSendIt"]').click(function(){ if($(this).is(':checked') == 1) { $('#dropbox-url').show(); } else { $('#dropbox-url').hide(); } }); })(jQuery); (function($) { 'use strict'; // Change this to the location of your server-side upload handler: var url = '/bo/quotation/v2/server/'; $('#fileupload').fileupload({ url: url, dataType: 'json', done: function (e, data) { $.each(data.result.files, function (index, file) { if(file.error) { var t = '' + file.name + ' ' + file.error + ''; $('

').html(t).attr('class','error not-uploaded').appendTo('#files'); } else { var t = ''; $('

').html(t).appendTo('#files'); } // console.log(file); }); }, progressall: function (e, data) { var progress = parseInt(data.loaded / data.total * 100, 10); $('#progress .progress-bar').css( 'width', progress + '%' ); } }).prop('disabled', !$.support.fileInput) .parent().addClass($.support.fileInput ? undefined : 'disabled'); // LANGUAGES $('#langueOrigine').SumoSelect({ }); var lc; lc = $('#langueCible').SumoSelect({ //triggerChangeCombined: false, csvDispCount: 4 }); $("#langueOrigine").on('change', function() { var val = $('#langueOrigine option:selected').val(); //var s = $.inArray('autre', val); if(val == 'autre') { $("#langueOrigineAutre").show(); } else { $("#langueOrigineAutre").hide(); } }); $("#langueCible").on('change', function() { var val = $('#langueCible').val(); var s = $.inArray('autre', val); if(s == -1) { $("#langueCibleAutre").hide(); } else { $("#langueCibleAutre").show(); $('#langueCible')[0].sumo.hideOpts(); } }); $("#typeTraduction_c input").on('change click', function() { $("#typeTraduction_c").find('label').removeClass('selected'); $("#typeTraduction_c").find('input:checked').parent().addClass('selected'); }); // LANGUAGES INTERPRETING if($('#blockInterpretariat').length > 0) { $('#langueDepartInterpretariat').SumoSelect({ csvDispCount: 4 }); $('#langueArriveeInterpretariat').SumoSelect({ csvDispCount: 4 }); $("#langueDepartInterpretariat").on('change', function() { var val = $('#langueDepartInterpretariat option:selected').val(); if(val == 'autre') { $("#langueDepartAutre").show(); } else { $("#langueDepartAutre").hide(); } }); $("#langueDepartInterpretariat").on('change', function() { var val = $('#langueDepartInterpretariat').val(); var s = $.inArray('autre', val); if(s == -1) { $("#langueDepartAutre").hide(); } else { $("#langueDepartAutre").show(); $('#langueDepartInterpretariat')[0].sumo.hideOpts(); } }); $("#langueArriveeInterpretariat").on('change', function() { var val = $('#langueArriveeInterpretariat').val(); var s = $.inArray('autre', val); if(s == -1) { $("#langueArriveeAutre").hide(); } else { $("#langueArriveeAutre").show(); $('#langueArriveeInterpretariat')[0].sumo.hideOpts(); } }); } else { } //}); })(jQuery);var selected_voices = new Array(); //This prototype function allows you to remove even array from array // Array.prototype.remove = function(x) { // var i; // for(i in this){ // if(this[i].toString() == x.toString()){ // this.splice(i,1); // } // } // } var player = $("#jquery-jplayer-1").jPlayer({ ready: function (event) { }, swfPath: "/sites/all/libraries/jPlayer-2.9.2/dist/jplayer", supplied: "mp3", wmode: "window", useStateClassSkin: true, autoBlur: false, smoothPlayBar: true, keyEnabled: true, remainingDuration: true, toggleDuration: true }); path = "/bo/files/audio/voices/"; all_voices = {"es-es":[{"id":"126","file_name":"46779.mp3","language":"es-es","gender":"f","voice_name":"REF-46779","reference":"46779","order":null,"status":"1"},{"id":"123","file_name":"45416.mp3","language":"es-es","gender":"m","voice_name":"REF-45416","reference":"45416","order":null,"status":"1"},{"id":"122","file_name":"45278.mp3","language":"es-es","gender":"m","voice_name":"REF-45278","reference":"45278","order":null,"status":"1"},{"id":"109","file_name":"ref-40729.mp3","language":"es-es","gender":"m","voice_name":"REF-40729","reference":"40729","order":null,"status":"1"},{"id":"69","file_name":"ES_m_Rafael.mp3","language":"es-es","gender":"m","voice_name":"REF-20056","reference":"20056","order":"0","status":"1"},{"id":"38","file_name":"ES_m_Aitor.mp3","language":"es-es","gender":"m","voice_name":"REF-20055","reference":"20055","order":"0","status":"1"},{"id":"13","file_name":"ES_m_Enrique.mp3","language":"es-es","gender":"m","voice_name":"REF-20054","reference":"20054","order":"0","status":"1"},{"id":"12","file_name":"ES_m_Daniel.mp3","language":"es-es","gender":"m","voice_name":"REF-20053","reference":"20053","order":"0","status":"1"},{"id":"9","file_name":"ES_m_Pau.mp3","language":"es-es","gender":"m","voice_name":"REF-20052","reference":"20052","order":"0","status":"1"},{"id":"19","file_name":"ES_f_Sofia.mp3","language":"es-es","gender":"f","voice_name":"REF-20051","reference":"20051","order":"0","status":"1"},{"id":"17","file_name":"ES_f_Ana Maria.mp3","language":"es-es","gender":"f","voice_name":"REF-20050","reference":"20050","order":"0","status":"1"},{"id":"4","file_name":"ES_f_Luisa.mp3","language":"es-es","gender":"f","voice_name":"REF-20049","reference":"20049","order":"0","status":"1"}],"es-mx":[{"id":"16","file_name":"ES-MX_m_Pepe.mp3","language":"es-mx","gender":"m","voice_name":"REF-20058","reference":"20058","order":"0","status":"1"},{"id":"21","file_name":"ES-MX_f_Marisol.mp3","language":"es-mx","gender":"f","voice_name":"REF-20057","reference":"20057","order":"0","status":"1"}],"es-co":[{"id":"124","file_name":"es_co_m_ref_46322.mp3","language":"es-co","gender":"m","voice_name":"REF-46322","reference":"46322","order":null,"status":"1"}],"en-gb":[{"id":"87","file_name":"BE_m_Matthew.mp3","language":"en-gb","gender":"m","voice_name":"REF-20021","reference":"20021","order":"0","status":"1"},{"id":"58","file_name":"BE_m_Robert.mp3","language":"en-gb","gender":"m","voice_name":"REF-20020","reference":"20020","order":"0","status":"1"},{"id":"41","file_name":"BE_m_Luca.mp3","language":"en-gb","gender":"m","voice_name":"REF-20019","reference":"20019","order":"0","status":"1"},{"id":"40","file_name":"BE_m_Daniel.mp3","language":"en-gb","gender":"m","voice_name":"REF-20018","reference":"20018","order":"0","status":"1"},{"id":"33","file_name":"BE_m_Oliver.mp3","language":"en-gb","gender":"m","voice_name":"REF-20017","reference":"20017","order":"0","status":"1"},{"id":"1","file_name":"BE_m_Finley.mp3","language":"en-gb","gender":"m","voice_name":"REF-20016","reference":"20016","order":"0","status":"1"},{"id":"89","file_name":"BE_f_Rebecca.mp3","language":"en-gb","gender":"f","voice_name":"REF-20015","reference":"20015","order":"0","status":"1"},{"id":"84","file_name":"BE_f_Alice.mp3","language":"en-gb","gender":"f","voice_name":"REF-20014","reference":"20014","order":"0","status":"1"},{"id":"81","file_name":"BE_f_Emily.mp3","language":"en-gb","gender":"f","voice_name":"REF-20013","reference":"20013","order":"0","status":"1"},{"id":"77","file_name":"BE_f_Hannah.mp3","language":"en-gb","gender":"f","voice_name":"REF-20012","reference":"20012","order":"0","status":"1"},{"id":"76","file_name":"BE_f_Emma.mp3","language":"en-gb","gender":"f","voice_name":"REF-20011","reference":"20011","order":"0","status":"1"}],"en-us":[{"id":"42","file_name":"AE_m_Scott.mp3","language":"en-us","gender":"m","voice_name":"REF-20094","reference":"20094","order":"0","status":"1"},{"id":"37","file_name":"AE_m_Timothy.mp3","language":"en-us","gender":"m","voice_name":"REF-20093","reference":"20093","order":"0","status":"1"},{"id":"26","file_name":"AE_m_Kenneth.mp3","language":"en-us","gender":"m","voice_name":"REF-20092","reference":"20092","order":"0","status":"1"},{"id":"52","file_name":"AE_f_Melissa.mp3","language":"en-us","gender":"f","voice_name":"REF-20091","reference":"20091","order":"0","status":"1"},{"id":"23","file_name":"AE_f_Samantha.mp3","language":"en-us","gender":"f","voice_name":"REF-20090","reference":"20090","order":"0","status":"1"}],"fr":[{"id":"108","file_name":"ref-39741.mp3","language":"fr","gender":"m","voice_name":"REF-39741","reference":"39741","order":null,"status":"1"},{"id":"102","file_name":"REF-39322.mp3","language":"fr","gender":"m","voice_name":"REF-39322","reference":"39322","order":null,"status":"1"},{"id":"96","file_name":"REF-39118.mp3","language":"fr","gender":"f","voice_name":"REF-39118","reference":"39118","order":"1","status":"1"},{"id":"95","file_name":"REF-39110.mp3","language":"fr","gender":"m","voice_name":"REF-39110","reference":"39110","order":"1","status":"1"},{"id":"97","file_name":"REF-39106.mp3","language":"fr","gender":"f","voice_name":"REF-39106","reference":"39106","order":"1","status":"1"},{"id":"83","file_name":"FR_m_Pascal.mp3","language":"fr","gender":"m","voice_name":"REF-20041","reference":"20041","order":"0","status":"1"},{"id":"82","file_name":"FR_m_Joel.mp3","language":"fr","gender":"m","voice_name":"REF-20040","reference":"20040","order":"0","status":"1"},{"id":"72","file_name":"FR_m_Marius.mp3","language":"fr","gender":"m","voice_name":"REF-20039","reference":"20039","order":"0","status":"1"},{"id":"70","file_name":"FR_m_Fabrice.mp3","language":"fr","gender":"m","voice_name":"REF-20038","reference":"20038","order":"0","status":"1"},{"id":"54","file_name":"FR_m_Pierre.mp3","language":"fr","gender":"m","voice_name":"REF-20037","reference":"20037","order":"0","status":"1"},{"id":"48","file_name":"FR_m_Dominic.mp3","language":"fr","gender":"m","voice_name":"REF-20036","reference":"20036","order":"0","status":"1"},{"id":"28","file_name":"FR_m_Olivier.mp3","language":"fr","gender":"m","voice_name":"REF-20035","reference":"20035","order":"0","status":"1"},{"id":"20","file_name":"FR_m_Vince.mp3","language":"fr","gender":"m","voice_name":"REF-20034","reference":"20034","order":"0","status":"1"},{"id":"15","file_name":"FR_m_Yves.mp3","language":"fr","gender":"m","voice_name":"REF-20033","reference":"20033","order":"0","status":"1"},{"id":"8","file_name":"FR_m_Aurel.mp3","language":"fr","gender":"m","voice_name":"REF-20032","reference":"20032","order":"0","status":"1"},{"id":"91","file_name":"FR_f_Louisa.mp3","language":"fr","gender":"f","voice_name":"REF-20031","reference":"20031","order":"0","status":"1"},{"id":"88","file_name":"FR_f_Valerie.mp3","language":"fr","gender":"f","voice_name":"REF-20030","reference":"20030","order":"0","status":"1"},{"id":"66","file_name":"FR_f_Desiree.mp3","language":"fr","gender":"f","voice_name":"REF-20029","reference":"20029","order":"0","status":"1"},{"id":"51","file_name":"FR_f_Marie.mp3","language":"fr","gender":"f","voice_name":"REF-20028","reference":"20028","order":"0","status":"1"},{"id":"50","file_name":"FR_f_Elaine.mp3","language":"fr","gender":"f","voice_name":"REF-20027","reference":"20027","order":"0","status":"1"},{"id":"49","file_name":"FR_f_Leonie.mp3","language":"fr","gender":"f","voice_name":"REF-20026","reference":"20026","order":"0","status":"1"},{"id":"36","file_name":"FR_f_Anouk.mp3","language":"fr","gender":"f","voice_name":"REF-20025","reference":"20025","order":"0","status":"1"},{"id":"35","file_name":"FR_f_Selina.mp3","language":"fr","gender":"f","voice_name":"REF-20024","reference":"20024","order":"0","status":"1"},{"id":"34","file_name":"FR_f_Felicia.mp3","language":"fr","gender":"f","voice_name":"REF-20023","reference":"20023","order":"0","status":"1"},{"id":"2","file_name":"FR_f_Denise.mp3","language":"fr","gender":"f","voice_name":"REF-20022","reference":"20022","order":"0","status":"1"}],"de":[{"id":"129","file_name":"46774.mp3","language":"de","gender":"m","voice_name":"REF-46774","reference":"46774","order":null,"status":"1"},{"id":"110","file_name":"ref-41149.mp3","language":"de","gender":"m","voice_name":"REF-41149","reference":"41149","order":null,"status":"1"},{"id":"103","file_name":"REF-39444.mp3","language":"de","gender":"f","voice_name":"REF-39444","reference":"39444","order":null,"status":"1"},{"id":"99","file_name":"REF-37918.mp3","language":"de","gender":"m","voice_name":"REF-37918","reference":"37918","order":null,"status":"1"},{"id":"105","file_name":"37197.mp3","language":"de","gender":"m","voice_name":"REF-37197","reference":"37197","order":null,"status":"1"},{"id":"92","file_name":"DE_m_Eric.mp3","language":"de","gender":"m","voice_name":"REF-20088","reference":"20088","order":"0","status":"1"},{"id":"80","file_name":"DE_m_Lukas.mp3","language":"de","gender":"m","voice_name":"REF-20087","reference":"20087","order":"0","status":"1"},{"id":"75","file_name":"DE_m_Moritz.mp3","language":"de","gender":"m","voice_name":"REF-20086","reference":"20086","order":"0","status":"1"},{"id":"56","file_name":"DE_m_Stephan.mp3","language":"de","gender":"m","voice_name":"REF-20085","reference":"20085","order":"0","status":"1"},{"id":"53","file_name":"DE_m_Marco.mp3","language":"de","gender":"m","voice_name":"REF-20084","reference":"20084","order":"0","status":"1"},{"id":"10","file_name":"DE_m_Jonas.mp3","language":"de","gender":"m","voice_name":"REF-20083","reference":"20083","order":"0","status":"1"},{"id":"7","file_name":"DE_m_Maximilian.mp3","language":"de","gender":"m","voice_name":"REF-20082","reference":"20082","order":"0","status":"1"},{"id":"93","file_name":"DE_f_Annika.mp3","language":"de","gender":"f","voice_name":"REF-20081","reference":"20081","order":"0","status":"1"},{"id":"86","file_name":"DE_f_Laura.mp3","language":"de","gender":"f","voice_name":"REF-20080","reference":"20080","order":"0","status":"1"},{"id":"78","file_name":"DE_f_Jennifer.mp3","language":"de","gender":"f","voice_name":"REF-20079","reference":"20079","order":"0","status":"1"},{"id":"73","file_name":"DE_f_Leonie.mp3","language":"de","gender":"f","voice_name":"REF-20078","reference":"20078","order":"0","status":"1"},{"id":"67","file_name":"DE_f_Natalie.mp3","language":"de","gender":"f","voice_name":"REF-20077","reference":"20077","order":"0","status":"1"},{"id":"62","file_name":"DE_f_Vanessa.mp3","language":"de","gender":"f","voice_name":"REF-20076","reference":"20076","order":"0","status":"1"},{"id":"24","file_name":"DE_f_Sina.mp3","language":"de","gender":"f","voice_name":"REF-20075","reference":"20075","order":"0","status":"1"}],"nl":[{"id":"119","file_name":"42819.mp3","language":"nl","gender":"f","voice_name":"REF-42819","reference":"42819","order":null,"status":"1"},{"id":"117","file_name":"ref-41904.mp3","language":"nl","gender":"f","voice_name":"REF-41904","reference":"41904","order":null,"status":"1"},{"id":"64","file_name":"NL_m_Adriaan.mp3","language":"nl","gender":"m","voice_name":"REF-20067","reference":"20067","order":"0","status":"1"},{"id":"47","file_name":"NL_m_Bram.mp3","language":"nl","gender":"m","voice_name":"REF-20066","reference":"20066","order":"0","status":"1"},{"id":"39","file_name":"NL_m_Piet.mp3","language":"nl","gender":"m","voice_name":"REF-20065","reference":"20065","order":"0","status":"1"},{"id":"31","file_name":"NL_m_Ruben.mp3","language":"nl","gender":"m","voice_name":"REF-20064","reference":"20064","order":"0","status":"1"},{"id":"14","file_name":"NL_m_Thijs.mp3","language":"nl","gender":"m","voice_name":"REF-20063","reference":"20063","order":"0","status":"1"},{"id":"5","file_name":"NL_m_Luuk.mp3","language":"nl","gender":"m","voice_name":"REF-20062","reference":"20062","order":"0","status":"1"},{"id":"55","file_name":"NL_f_Janneke.mp3","language":"nl","gender":"f","voice_name":"REF-20061","reference":"20061","order":"0","status":"1"},{"id":"25","file_name":"NL_f_Marijke.mp3","language":"nl","gender":"f","voice_name":"REF-20060","reference":"20060","order":"0","status":"1"},{"id":"18","file_name":"NL_f_Linda.mp3","language":"nl","gender":"f","voice_name":"REF-20059","reference":"20059","order":"0","status":"1"}],"nl-be":[{"id":"79","file_name":"NL-FL_m_Detlef.mp3","language":"nl-be","gender":"m","voice_name":"REF-20074","reference":"20074","order":"0","status":"1"},{"id":"74","file_name":"NL-FL_m_Marinus.mp3","language":"nl-be","gender":"m","voice_name":"REF-20073","reference":"20073","order":"0","status":"1"},{"id":"71","file_name":"NL-FL_m_Geo.mp3","language":"nl-be","gender":"m","voice_name":"REF-20072","reference":"20072","order":"0","status":"1"},{"id":"46","file_name":"NL-FL_m_Fietje.mp3","language":"nl-be","gender":"m","voice_name":"REF-20071","reference":"20071","order":"0","status":"1"},{"id":"45","file_name":"NL-FL_m_Roel.mp3","language":"nl-be","gender":"m","voice_name":"REF-20070","reference":"20070","order":"0","status":"1"},{"id":"27","file_name":"NL-FL_m_Alan.mp3","language":"nl-be","gender":"m","voice_name":"REF-20069","reference":"20069","order":"0","status":"1"},{"id":"6","file_name":"NL-FL_m_Davy.mp3","language":"nl-be","gender":"m","voice_name":"REF-20068","reference":"20068","order":"0","status":"1"}],"it":[{"id":"125","file_name":"46964.mp3","language":"it","gender":"m","voice_name":"REF-46964","reference":"46964","order":null,"status":"1"},{"id":"127","file_name":"46923.mp3","language":"it","gender":"m","voice_name":"REF-46923","reference":"46923","order":null,"status":"1"},{"id":"128","file_name":"46922.mp3","language":"it","gender":"m","voice_name":"REF-46922","reference":"46922","order":null,"status":"1"},{"id":"118","file_name":"ref-42248.mp3","language":"it","gender":"f","voice_name":"REF-42248","reference":"42248","order":null,"status":"1"},{"id":"116","file_name":"ref-41974.mp3","language":"it","gender":"m","voice_name":"REF-41974","reference":"41974","order":null,"status":"1"},{"id":"115","file_name":"ref-41666.mp3","language":"it","gender":"m","voice_name":"REF-41666","reference":"41666","order":null,"status":"1"},{"id":"111","file_name":"ref-41166.mp3","language":"it","gender":"f","voice_name":"REF-41166","reference":"41166","order":null,"status":"1"},{"id":"98","file_name":"REF-33051.mp3","language":"it","gender":"m","voice_name":"REF-33051","reference":"33051","order":"1","status":"1"},{"id":"68","file_name":"IT_m_Luca.mp3","language":"it","gender":"m","voice_name":"REF-20048","reference":"20048","order":"0","status":"1"},{"id":"65","file_name":"IT_m_Mario.mp3","language":"it","gender":"m","voice_name":"REF-20047","reference":"20047","order":"0","status":"1"},{"id":"43","file_name":"IT_m_Marco.mp3","language":"it","gender":"m","voice_name":"REF-20046","reference":"20046","order":"0","status":"1"},{"id":"3","file_name":"IT_m_Mattia.mp3","language":"it","gender":"m","voice_name":"REF-20045","reference":"20045","order":"0","status":"1"},{"id":"63","file_name":"IT_f_Noemi.mp3","language":"it","gender":"f","voice_name":"REF-20044","reference":"20044","order":"0","status":"1"},{"id":"30","file_name":"IT_f_Carmen.mp3","language":"it","gender":"f","voice_name":"REF-20043","reference":"20043","order":"0","status":"1"},{"id":"22","file_name":"IT_f_Elena.mp3","language":"it","gender":"f","voice_name":"REF-20042","reference":"20042","order":"0","status":"1"}],"da":[{"id":"85","file_name":"DA_m_Jorgen.mp3","language":"da","gender":"m","voice_name":"REF-20003","reference":"20003","order":"0","status":"1"},{"id":"59","file_name":"DA_m_Magnus.mp3","language":"da","gender":"m","voice_name":"REF-20002","reference":"20002","order":"0","status":"1"},{"id":"29","file_name":"DA_m_Mikkel.mp3","language":"da","gender":"m","voice_name":"REF-20001","reference":"20001","order":"0","status":"1"}],"pt-pt":[{"id":"94","file_name":"PT-PT_m_Gil.mp3","language":"pt-pt","gender":"m","voice_name":"REF-20010","reference":"20010","order":"0","status":"1"},{"id":"90","file_name":"PT-PT_m_Tomas.mp3","language":"pt-pt","gender":"m","voice_name":"REF-20009","reference":"20009","order":"0","status":"1"},{"id":"61","file_name":"PT-PT_m_Rodrigo.mp3","language":"pt-pt","gender":"m","voice_name":"REF-20008","reference":"20008","order":"0","status":"1"},{"id":"60","file_name":"PT-PT_m_Tiago.mp3","language":"pt-pt","gender":"m","voice_name":"REF-20007","reference":"20007","order":"0","status":"1"},{"id":"44","file_name":"PT-PT_m_Martim.mp3","language":"pt-pt","gender":"m","voice_name":"REF-20006","reference":"20006","order":"0","status":"1"},{"id":"32","file_name":"PT-PT_m_Joao.mp3","language":"pt-pt","gender":"m","voice_name":"REF-20005","reference":"20005","order":"0","status":"1"},{"id":"11","file_name":"PT-PT_m_Diogo.mp3","language":"pt-pt","gender":"m","voice_name":"REF-20004","reference":"20004","order":"0","status":"1"}],"pt-br":[{"id":"107","file_name":"ref-40447.mp3","language":"pt-br","gender":"f","voice_name":"REF-40447","reference":"40447","order":null,"status":"1"},{"id":"57","file_name":"PT-BR_f_Larissa.mp3","language":"pt-br","gender":"f","voice_name":"REF-20089","reference":"20089","order":"0","status":"1"}],"ja":[{"id":"120","file_name":"41891.mp3","language":"ja","gender":"m","voice_name":"REF-41891","reference":"41891","order":null,"status":"1"},{"id":"104","file_name":"39866.mp3","language":"ja","gender":"f","voice_name":"REF-39866","reference":"39866","order":null,"status":"1"}],"hu":[{"id":"113","file_name":"ref-41654.mp3","language":"hu","gender":"m","voice_name":"REF-41654","reference":"41654","order":null,"status":"1"}],"zh-hans":[{"id":"121","file_name":"voice_dubbing_44161.mp3","language":"zh-hans","gender":"m","voice_name":"REF-44161","reference":"44161","order":null,"status":"1"}]}; all_voices_by_id = {"126":{"id":"126","language_name":"Spanish","language_code":"es-es","voice_name":"REF-46779","reference":"46779","gender":"f","file_name":"46779.mp3"},"123":{"id":"123","language_name":"Spanish","language_code":"es-es","voice_name":"REF-45416","reference":"45416","gender":"m","file_name":"45416.mp3"},"122":{"id":"122","language_name":"Spanish","language_code":"es-es","voice_name":"REF-45278","reference":"45278","gender":"m","file_name":"45278.mp3"},"109":{"id":"109","language_name":"Spanish","language_code":"es-es","voice_name":"REF-40729","reference":"40729","gender":"m","file_name":"ref-40729.mp3"},"69":{"id":"69","language_name":"Spanish","language_code":"es-es","voice_name":"REF-20056","reference":"20056","gender":"m","file_name":"ES_m_Rafael.mp3"},"38":{"id":"38","language_name":"Spanish","language_code":"es-es","voice_name":"REF-20055","reference":"20055","gender":"m","file_name":"ES_m_Aitor.mp3"},"13":{"id":"13","language_name":"Spanish","language_code":"es-es","voice_name":"REF-20054","reference":"20054","gender":"m","file_name":"ES_m_Enrique.mp3"},"12":{"id":"12","language_name":"Spanish","language_code":"es-es","voice_name":"REF-20053","reference":"20053","gender":"m","file_name":"ES_m_Daniel.mp3"},"9":{"id":"9","language_name":"Spanish","language_code":"es-es","voice_name":"REF-20052","reference":"20052","gender":"m","file_name":"ES_m_Pau.mp3"},"19":{"id":"19","language_name":"Spanish","language_code":"es-es","voice_name":"REF-20051","reference":"20051","gender":"f","file_name":"ES_f_Sofia.mp3"},"17":{"id":"17","language_name":"Spanish","language_code":"es-es","voice_name":"REF-20050","reference":"20050","gender":"f","file_name":"ES_f_Ana Maria.mp3"},"4":{"id":"4","language_name":"Spanish","language_code":"es-es","voice_name":"REF-20049","reference":"20049","gender":"f","file_name":"ES_f_Luisa.mp3"},"16":{"id":"16","language_name":"Mexican Spanish","language_code":"es-mx","voice_name":"REF-20058","reference":"20058","gender":"m","file_name":"ES-MX_m_Pepe.mp3"},"21":{"id":"21","language_name":"Mexican Spanish","language_code":"es-mx","voice_name":"REF-20057","reference":"20057","gender":"f","file_name":"ES-MX_f_Marisol.mp3"},"124":{"id":"124","language_name":"Colombian Spanish","language_code":"es-co","voice_name":"REF-46322","reference":"46322","gender":"m","file_name":"es_co_m_ref_46322.mp3"},"87":{"id":"87","language_name":"British English","language_code":"en-gb","voice_name":"REF-20021","reference":"20021","gender":"m","file_name":"BE_m_Matthew.mp3"},"58":{"id":"58","language_name":"British English","language_code":"en-gb","voice_name":"REF-20020","reference":"20020","gender":"m","file_name":"BE_m_Robert.mp3"},"41":{"id":"41","language_name":"British English","language_code":"en-gb","voice_name":"REF-20019","reference":"20019","gender":"m","file_name":"BE_m_Luca.mp3"},"40":{"id":"40","language_name":"British English","language_code":"en-gb","voice_name":"REF-20018","reference":"20018","gender":"m","file_name":"BE_m_Daniel.mp3"},"33":{"id":"33","language_name":"British English","language_code":"en-gb","voice_name":"REF-20017","reference":"20017","gender":"m","file_name":"BE_m_Oliver.mp3"},"1":{"id":"1","language_name":"British English","language_code":"en-gb","voice_name":"REF-20016","reference":"20016","gender":"m","file_name":"BE_m_Finley.mp3"},"89":{"id":"89","language_name":"British English","language_code":"en-gb","voice_name":"REF-20015","reference":"20015","gender":"f","file_name":"BE_f_Rebecca.mp3"},"84":{"id":"84","language_name":"British English","language_code":"en-gb","voice_name":"REF-20014","reference":"20014","gender":"f","file_name":"BE_f_Alice.mp3"},"81":{"id":"81","language_name":"British English","language_code":"en-gb","voice_name":"REF-20013","reference":"20013","gender":"f","file_name":"BE_f_Emily.mp3"},"77":{"id":"77","language_name":"British English","language_code":"en-gb","voice_name":"REF-20012","reference":"20012","gender":"f","file_name":"BE_f_Hannah.mp3"},"76":{"id":"76","language_name":"British English","language_code":"en-gb","voice_name":"REF-20011","reference":"20011","gender":"f","file_name":"BE_f_Emma.mp3"},"42":{"id":"42","language_name":"American English","language_code":"en-us","voice_name":"REF-20094","reference":"20094","gender":"m","file_name":"AE_m_Scott.mp3"},"37":{"id":"37","language_name":"American English","language_code":"en-us","voice_name":"REF-20093","reference":"20093","gender":"m","file_name":"AE_m_Timothy.mp3"},"26":{"id":"26","language_name":"American English","language_code":"en-us","voice_name":"REF-20092","reference":"20092","gender":"m","file_name":"AE_m_Kenneth.mp3"},"52":{"id":"52","language_name":"American English","language_code":"en-us","voice_name":"REF-20091","reference":"20091","gender":"f","file_name":"AE_f_Melissa.mp3"},"23":{"id":"23","language_name":"American English","language_code":"en-us","voice_name":"REF-20090","reference":"20090","gender":"f","file_name":"AE_f_Samantha.mp3"},"108":{"id":"108","language_name":"French","language_code":"fr","voice_name":"REF-39741","reference":"39741","gender":"m","file_name":"ref-39741.mp3"},"102":{"id":"102","language_name":"French","language_code":"fr","voice_name":"REF-39322","reference":"39322","gender":"m","file_name":"REF-39322.mp3"},"96":{"id":"96","language_name":"French","language_code":"fr","voice_name":"REF-39118","reference":"39118","gender":"f","file_name":"REF-39118.mp3"},"95":{"id":"95","language_name":"French","language_code":"fr","voice_name":"REF-39110","reference":"39110","gender":"m","file_name":"REF-39110.mp3"},"97":{"id":"97","language_name":"French","language_code":"fr","voice_name":"REF-39106","reference":"39106","gender":"f","file_name":"REF-39106.mp3"},"83":{"id":"83","language_name":"French","language_code":"fr","voice_name":"REF-20041","reference":"20041","gender":"m","file_name":"FR_m_Pascal.mp3"},"82":{"id":"82","language_name":"French","language_code":"fr","voice_name":"REF-20040","reference":"20040","gender":"m","file_name":"FR_m_Joel.mp3"},"72":{"id":"72","language_name":"French","language_code":"fr","voice_name":"REF-20039","reference":"20039","gender":"m","file_name":"FR_m_Marius.mp3"},"70":{"id":"70","language_name":"French","language_code":"fr","voice_name":"REF-20038","reference":"20038","gender":"m","file_name":"FR_m_Fabrice.mp3"},"54":{"id":"54","language_name":"French","language_code":"fr","voice_name":"REF-20037","reference":"20037","gender":"m","file_name":"FR_m_Pierre.mp3"},"48":{"id":"48","language_name":"French","language_code":"fr","voice_name":"REF-20036","reference":"20036","gender":"m","file_name":"FR_m_Dominic.mp3"},"28":{"id":"28","language_name":"French","language_code":"fr","voice_name":"REF-20035","reference":"20035","gender":"m","file_name":"FR_m_Olivier.mp3"},"20":{"id":"20","language_name":"French","language_code":"fr","voice_name":"REF-20034","reference":"20034","gender":"m","file_name":"FR_m_Vince.mp3"},"15":{"id":"15","language_name":"French","language_code":"fr","voice_name":"REF-20033","reference":"20033","gender":"m","file_name":"FR_m_Yves.mp3"},"8":{"id":"8","language_name":"French","language_code":"fr","voice_name":"REF-20032","reference":"20032","gender":"m","file_name":"FR_m_Aurel.mp3"},"91":{"id":"91","language_name":"French","language_code":"fr","voice_name":"REF-20031","reference":"20031","gender":"f","file_name":"FR_f_Louisa.mp3"},"88":{"id":"88","language_name":"French","language_code":"fr","voice_name":"REF-20030","reference":"20030","gender":"f","file_name":"FR_f_Valerie.mp3"},"66":{"id":"66","language_name":"French","language_code":"fr","voice_name":"REF-20029","reference":"20029","gender":"f","file_name":"FR_f_Desiree.mp3"},"51":{"id":"51","language_name":"French","language_code":"fr","voice_name":"REF-20028","reference":"20028","gender":"f","file_name":"FR_f_Marie.mp3"},"50":{"id":"50","language_name":"French","language_code":"fr","voice_name":"REF-20027","reference":"20027","gender":"f","file_name":"FR_f_Elaine.mp3"},"49":{"id":"49","language_name":"French","language_code":"fr","voice_name":"REF-20026","reference":"20026","gender":"f","file_name":"FR_f_Leonie.mp3"},"36":{"id":"36","language_name":"French","language_code":"fr","voice_name":"REF-20025","reference":"20025","gender":"f","file_name":"FR_f_Anouk.mp3"},"35":{"id":"35","language_name":"French","language_code":"fr","voice_name":"REF-20024","reference":"20024","gender":"f","file_name":"FR_f_Selina.mp3"},"34":{"id":"34","language_name":"French","language_code":"fr","voice_name":"REF-20023","reference":"20023","gender":"f","file_name":"FR_f_Felicia.mp3"},"2":{"id":"2","language_name":"French","language_code":"fr","voice_name":"REF-20022","reference":"20022","gender":"f","file_name":"FR_f_Denise.mp3"},"129":{"id":"129","language_name":"German","language_code":"de","voice_name":"REF-46774","reference":"46774","gender":"m","file_name":"46774.mp3"},"110":{"id":"110","language_name":"German","language_code":"de","voice_name":"REF-41149","reference":"41149","gender":"m","file_name":"ref-41149.mp3"},"103":{"id":"103","language_name":"German","language_code":"de","voice_name":"REF-39444","reference":"39444","gender":"f","file_name":"REF-39444.mp3"},"99":{"id":"99","language_name":"German","language_code":"de","voice_name":"REF-37918","reference":"37918","gender":"m","file_name":"REF-37918.mp3"},"105":{"id":"105","language_name":"German","language_code":"de","voice_name":"REF-37197","reference":"37197","gender":"m","file_name":"37197.mp3"},"92":{"id":"92","language_name":"German","language_code":"de","voice_name":"REF-20088","reference":"20088","gender":"m","file_name":"DE_m_Eric.mp3"},"80":{"id":"80","language_name":"German","language_code":"de","voice_name":"REF-20087","reference":"20087","gender":"m","file_name":"DE_m_Lukas.mp3"},"75":{"id":"75","language_name":"German","language_code":"de","voice_name":"REF-20086","reference":"20086","gender":"m","file_name":"DE_m_Moritz.mp3"},"56":{"id":"56","language_name":"German","language_code":"de","voice_name":"REF-20085","reference":"20085","gender":"m","file_name":"DE_m_Stephan.mp3"},"53":{"id":"53","language_name":"German","language_code":"de","voice_name":"REF-20084","reference":"20084","gender":"m","file_name":"DE_m_Marco.mp3"},"10":{"id":"10","language_name":"German","language_code":"de","voice_name":"REF-20083","reference":"20083","gender":"m","file_name":"DE_m_Jonas.mp3"},"7":{"id":"7","language_name":"German","language_code":"de","voice_name":"REF-20082","reference":"20082","gender":"m","file_name":"DE_m_Maximilian.mp3"},"93":{"id":"93","language_name":"German","language_code":"de","voice_name":"REF-20081","reference":"20081","gender":"f","file_name":"DE_f_Annika.mp3"},"86":{"id":"86","language_name":"German","language_code":"de","voice_name":"REF-20080","reference":"20080","gender":"f","file_name":"DE_f_Laura.mp3"},"78":{"id":"78","language_name":"German","language_code":"de","voice_name":"REF-20079","reference":"20079","gender":"f","file_name":"DE_f_Jennifer.mp3"},"73":{"id":"73","language_name":"German","language_code":"de","voice_name":"REF-20078","reference":"20078","gender":"f","file_name":"DE_f_Leonie.mp3"},"67":{"id":"67","language_name":"German","language_code":"de","voice_name":"REF-20077","reference":"20077","gender":"f","file_name":"DE_f_Natalie.mp3"},"62":{"id":"62","language_name":"German","language_code":"de","voice_name":"REF-20076","reference":"20076","gender":"f","file_name":"DE_f_Vanessa.mp3"},"24":{"id":"24","language_name":"German","language_code":"de","voice_name":"REF-20075","reference":"20075","gender":"f","file_name":"DE_f_Sina.mp3"},"119":{"id":"119","language_name":"Dutch (Netherlands)","language_code":"nl","voice_name":"REF-42819","reference":"42819","gender":"f","file_name":"42819.mp3"},"117":{"id":"117","language_name":"Dutch (Netherlands)","language_code":"nl","voice_name":"REF-41904","reference":"41904","gender":"f","file_name":"ref-41904.mp3"},"64":{"id":"64","language_name":"Dutch (Netherlands)","language_code":"nl","voice_name":"REF-20067","reference":"20067","gender":"m","file_name":"NL_m_Adriaan.mp3"},"47":{"id":"47","language_name":"Dutch (Netherlands)","language_code":"nl","voice_name":"REF-20066","reference":"20066","gender":"m","file_name":"NL_m_Bram.mp3"},"39":{"id":"39","language_name":"Dutch (Netherlands)","language_code":"nl","voice_name":"REF-20065","reference":"20065","gender":"m","file_name":"NL_m_Piet.mp3"},"31":{"id":"31","language_name":"Dutch (Netherlands)","language_code":"nl","voice_name":"REF-20064","reference":"20064","gender":"m","file_name":"NL_m_Ruben.mp3"},"14":{"id":"14","language_name":"Dutch (Netherlands)","language_code":"nl","voice_name":"REF-20063","reference":"20063","gender":"m","file_name":"NL_m_Thijs.mp3"},"5":{"id":"5","language_name":"Dutch (Netherlands)","language_code":"nl","voice_name":"REF-20062","reference":"20062","gender":"m","file_name":"NL_m_Luuk.mp3"},"55":{"id":"55","language_name":"Dutch (Netherlands)","language_code":"nl","voice_name":"REF-20061","reference":"20061","gender":"f","file_name":"NL_f_Janneke.mp3"},"25":{"id":"25","language_name":"Dutch (Netherlands)","language_code":"nl","voice_name":"REF-20060","reference":"20060","gender":"f","file_name":"NL_f_Marijke.mp3"},"18":{"id":"18","language_name":"Dutch (Netherlands)","language_code":"nl","voice_name":"REF-20059","reference":"20059","gender":"f","file_name":"NL_f_Linda.mp3"},"79":{"id":"79","language_name":"Dutch (Belgium)","language_code":"nl-be","voice_name":"REF-20074","reference":"20074","gender":"m","file_name":"NL-FL_m_Detlef.mp3"},"74":{"id":"74","language_name":"Dutch (Belgium)","language_code":"nl-be","voice_name":"REF-20073","reference":"20073","gender":"m","file_name":"NL-FL_m_Marinus.mp3"},"71":{"id":"71","language_name":"Dutch (Belgium)","language_code":"nl-be","voice_name":"REF-20072","reference":"20072","gender":"m","file_name":"NL-FL_m_Geo.mp3"},"46":{"id":"46","language_name":"Dutch (Belgium)","language_code":"nl-be","voice_name":"REF-20071","reference":"20071","gender":"m","file_name":"NL-FL_m_Fietje.mp3"},"45":{"id":"45","language_name":"Dutch (Belgium)","language_code":"nl-be","voice_name":"REF-20070","reference":"20070","gender":"m","file_name":"NL-FL_m_Roel.mp3"},"27":{"id":"27","language_name":"Dutch (Belgium)","language_code":"nl-be","voice_name":"REF-20069","reference":"20069","gender":"m","file_name":"NL-FL_m_Alan.mp3"},"6":{"id":"6","language_name":"Dutch (Belgium)","language_code":"nl-be","voice_name":"REF-20068","reference":"20068","gender":"m","file_name":"NL-FL_m_Davy.mp3"},"125":{"id":"125","language_name":"Italian","language_code":"it","voice_name":"REF-46964","reference":"46964","gender":"m","file_name":"46964.mp3"},"127":{"id":"127","language_name":"Italian","language_code":"it","voice_name":"REF-46923","reference":"46923","gender":"m","file_name":"46923.mp3"},"128":{"id":"128","language_name":"Italian","language_code":"it","voice_name":"REF-46922","reference":"46922","gender":"m","file_name":"46922.mp3"},"118":{"id":"118","language_name":"Italian","language_code":"it","voice_name":"REF-42248","reference":"42248","gender":"f","file_name":"ref-42248.mp3"},"116":{"id":"116","language_name":"Italian","language_code":"it","voice_name":"REF-41974","reference":"41974","gender":"m","file_name":"ref-41974.mp3"},"115":{"id":"115","language_name":"Italian","language_code":"it","voice_name":"REF-41666","reference":"41666","gender":"m","file_name":"ref-41666.mp3"},"111":{"id":"111","language_name":"Italian","language_code":"it","voice_name":"REF-41166","reference":"41166","gender":"f","file_name":"ref-41166.mp3"},"98":{"id":"98","language_name":"Italian","language_code":"it","voice_name":"REF-33051","reference":"33051","gender":"m","file_name":"REF-33051.mp3"},"68":{"id":"68","language_name":"Italian","language_code":"it","voice_name":"REF-20048","reference":"20048","gender":"m","file_name":"IT_m_Luca.mp3"},"65":{"id":"65","language_name":"Italian","language_code":"it","voice_name":"REF-20047","reference":"20047","gender":"m","file_name":"IT_m_Mario.mp3"},"43":{"id":"43","language_name":"Italian","language_code":"it","voice_name":"REF-20046","reference":"20046","gender":"m","file_name":"IT_m_Marco.mp3"},"3":{"id":"3","language_name":"Italian","language_code":"it","voice_name":"REF-20045","reference":"20045","gender":"m","file_name":"IT_m_Mattia.mp3"},"63":{"id":"63","language_name":"Italian","language_code":"it","voice_name":"REF-20044","reference":"20044","gender":"f","file_name":"IT_f_Noemi.mp3"},"30":{"id":"30","language_name":"Italian","language_code":"it","voice_name":"REF-20043","reference":"20043","gender":"f","file_name":"IT_f_Carmen.mp3"},"22":{"id":"22","language_name":"Italian","language_code":"it","voice_name":"REF-20042","reference":"20042","gender":"f","file_name":"IT_f_Elena.mp3"},"85":{"id":"85","language_name":"Danish","language_code":"da","voice_name":"REF-20003","reference":"20003","gender":"m","file_name":"DA_m_Jorgen.mp3"},"59":{"id":"59","language_name":"Danish","language_code":"da","voice_name":"REF-20002","reference":"20002","gender":"m","file_name":"DA_m_Magnus.mp3"},"29":{"id":"29","language_name":"Danish","language_code":"da","voice_name":"REF-20001","reference":"20001","gender":"m","file_name":"DA_m_Mikkel.mp3"},"94":{"id":"94","language_name":"Portuguese (Portugal)","language_code":"pt-pt","voice_name":"REF-20010","reference":"20010","gender":"m","file_name":"PT-PT_m_Gil.mp3"},"90":{"id":"90","language_name":"Portuguese (Portugal)","language_code":"pt-pt","voice_name":"REF-20009","reference":"20009","gender":"m","file_name":"PT-PT_m_Tomas.mp3"},"61":{"id":"61","language_name":"Portuguese (Portugal)","language_code":"pt-pt","voice_name":"REF-20008","reference":"20008","gender":"m","file_name":"PT-PT_m_Rodrigo.mp3"},"60":{"id":"60","language_name":"Portuguese (Portugal)","language_code":"pt-pt","voice_name":"REF-20007","reference":"20007","gender":"m","file_name":"PT-PT_m_Tiago.mp3"},"44":{"id":"44","language_name":"Portuguese (Portugal)","language_code":"pt-pt","voice_name":"REF-20006","reference":"20006","gender":"m","file_name":"PT-PT_m_Martim.mp3"},"32":{"id":"32","language_name":"Portuguese (Portugal)","language_code":"pt-pt","voice_name":"REF-20005","reference":"20005","gender":"m","file_name":"PT-PT_m_Joao.mp3"},"11":{"id":"11","language_name":"Portuguese (Portugal)","language_code":"pt-pt","voice_name":"REF-20004","reference":"20004","gender":"m","file_name":"PT-PT_m_Diogo.mp3"},"107":{"id":"107","language_name":"Portuguese (Brazil)","language_code":"pt-br","voice_name":"REF-40447","reference":"40447","gender":"f","file_name":"ref-40447.mp3"},"57":{"id":"57","language_name":"Portuguese (Brazil)","language_code":"pt-br","voice_name":"REF-20089","reference":"20089","gender":"f","file_name":"PT-BR_f_Larissa.mp3"},"120":{"id":"120","language_name":"Japanese","language_code":"ja","voice_name":"REF-41891","reference":"41891","gender":"m","file_name":"41891.mp3"},"104":{"id":"104","language_name":"Japanese","language_code":"ja","voice_name":"REF-39866","reference":"39866","gender":"f","file_name":"39866.mp3"},"113":{"id":"113","language_name":"Hungarian","language_code":"hu","voice_name":"REF-41654","reference":"41654","gender":"m","file_name":"ref-41654.mp3"},"121":{"id":"121","language_name":"Chinese","language_code":"zh-hans","voice_name":"REF-44161","reference":"44161","gender":"m","file_name":"voice_dubbing_44161.mp3"}}; languages = {"zh-hans":{"code":"zh-hans","name":"Chinese","flag":"China.png"},"da":{"code":"da","name":"Danish","flag":"Denmark.png"},"nl":{"code":"nl","name":"Dutch","flag":"Netherlands.png"},"en-us":{"code":"en-us","name":"English, American","flag":"United-States.png"},"en-gb":{"code":"en-gb","name":"English, British","flag":"United-Kingdom.png"},"nl-be":{"code":"nl-be","name":"Flemish","flag":"Belgium.png"},"fr":{"code":"fr","name":"French","flag":"France.png"},"de":{"code":"de","name":"German","flag":"Germany.png"},"hu":{"code":"hu","name":"Hungarian","flag":"Hungary.png"},"it":{"code":"it","name":"Italian","flag":"Italy.png"},"ja":{"code":"ja","name":"Japanese","flag":"Japan.png"},"pt-br":{"code":"pt-br","name":"Portuguese, Brazil","flag":"Brazil.png"},"pt-pt":{"code":"pt-pt","name":"Portuguese, Portugal","flag":"Portugal.png"},"es-co":{"code":"es-co","name":"Spanish, Colombia","flag":"Colombia.png"},"es-mx":{"code":"es-mx","name":"Spanish, Mexico","flag":"Mexico.png"},"es-es":{"code":"es-es","name":"Spanish, Spain","flag":"Spain.png"}}; html = $('#audio-lists .audio-list').detach(); //console.log(languages); function voice_is_selected(id) { for(var i = 0; i < selected_voices.length; i++) { if (selected_voices[i] == id) { return true; } } return false; } // Show the list of voices from which the user can select one or more voices to be added to the quotation request function populate_voices(list) { for (var key in list) { var htmlLang = html.clone(); htmlLang.attr('id', 'audio-list-'+key).attr('data-language', key).find('h2').addClass('voice-flag-'+key).html(languages[key]['name']); $('#audio-lists').append(htmlLang); } for (var key in list) { for (i=0;i'+o.voice_name+''); } } // play the file $('#audio-lists .controls').click(function() { var lang = $(this).parents('.audio-list').attr('data-language'); var gender = $(this).parents('.list-gender').attr('data-gender'); var id = $(this).parents('li').attr('rel'); var c = $(this).find('i'); if(c.hasClass('fa-pause')) { player.jPlayer("stop"); c.removeClass('fa-pause').addClass('fa-play'); } else { o = all_voices_by_id[id]; player.jPlayer("setMedia", { title: o["voice_name"], mp3: path + o["file_name"] }) .jPlayer("play"); // event for the end - remove pause $('.audio-list').find('.controls i').removeClass('fa-pause play-on').addClass('fa-play'); // show pause button c.removeClass('fa-play').addClass('fa-pause'); } }); // SELECT VOICES // Add voice to the selected voices box $('#audio-lists .select-voice').click(function() { var id = $(this).parents('li').attr('rel'); // remove error message if any $(this).parents('.required').find('.check_errors_msg').remove(); // check if item is already selected if(voice_is_selected(id)) { } else { selected_voices.push(id); $("#selected_voices_c").show(); $("#selected_voices").append('

  • ' + all_voices_by_id[id]['voice_name'] + '