
						  voicedata  = 'data:audio/wav;base64,' + base64str;
						  resolve(voicedata.replace('data:audio/wav;base64,', ''));	
						};
						reader.readAsBinaryString($('#data').get(0).files[0]);
					});
				
					promise.then(result =>{
						$('#loading').show();
						console.log(JSON.stringify({sound:result}));
						$.ajax({
							url : " ../predict",   //change url
							type: "post",
							mode: 'no-cors',
							crossdomain: true,
							withCredentials: false,
							credentials: 'same-origin'