mardi 20 janvier 2015

Voice Recorder, Saving Blob file to server - C# , Mvc

I need a voice recorder in a project which I am working on and also the recorded voices must be listened later. That Project developed by c# and asp.net mvc.


http://ift.tt/1EkufEM


I am using a recorder system in that link above. When you click Download it gives you a file .wav format. It is downloaded to your computer but I want to save it to server.


This project’s source codes is available below the link.


http://ift.tt/1C0xL7U


I investigate jquery codes: When you click Download



$(document).on("click", "#download:not(.disabled)", function () {
$.voice.export(function (url) {
$("<a href='" + url + "'download='MyRecording.wav'></a>")[0].click();
}, "URL");
restore(); });


It is working in this function. Url parametre in function respond you that link as



blob:http%3A//localhost%3A1875/146432b2-8b1b-4eef-8d77-1fdbc8fc74c9


When you go that adres in player wav file is working but src in player stil has this code below



blob:http%3A//localhost%3A1875/146432b2-8b1b-4eef-8d77-1fdbc8fc74c9


Question:


How I can save sound file to server. I can not reach any solution from the questions in this web site and generally in internet :)


1 – Which parametre I have to send to controller with Jquery Ajax?


2 – How to convert that parametre to wav or mp3 format in controller side?


Thank yo so much from now :)


Aucun commentaire:

Enregistrer un commentaire