Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi ,
I am creating an audio file in the server with exported blob data from Recorder.js
steps I have done:
1. recorded audio in chrome using recorder.js and recorderWorker.js
2.blob data is converted to base64 data.
3.I created .wav file in the controller with data .
Here data is added to file successfully , but audio play time is 2 seconds only.
C#
byte[] dummyAudioData= Convert.FromBase64String(audioData);
var fname = "D:\\suri\\UseEveryTime.wav";
FileStream stream = new FileStream(fname, FileMode.Append, FileAccess.Write);
System.IO.BinaryWriter br = new System.IO.BinaryWriter(stream);
br.Write(dummyAudioData);
 br.Close();


Please help me .
Posted
Comments
Syed Moula Ali 1-Jul-13 8:09am    
Did u found the solution, let me know?
Member 13493741 31-Oct-17 2:39am    
Did you found any solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900