Convert an audio file into raw binary data in javascript
How to convert an audio开发者_运维百科 file into raw binary data in javascript?
Use the File API.
With Blob data, you can get a Uint8Array or whatever other typed array you like. Here's a link to more info about Uint8Arrays.
You might also be interested in this.
You need to create handler that will do the job the javascript will only call the handler with the right parameters according to what you need look at jquery ajax call: http://api.jquery.com/jQuery.ajax/
精彩评论