Audio Video (ogg) Generation Using Javascript

Is it possible to generate / send video / audio using javascript?

for example, see jspdf - http://jspdf.googlecode.com/svn/trunk/examples/basic.htm generate a client-generated pdf file using the datauri encoded in the database and paste the data!

Can this approach be used to generate Ogg files?

This can be useful for text to speech in a browser.

+4
source share
4 answers

I believe that wave / PCM is supported as an audio format by all browsers that support multimedia elements, so pcm should be relatively trivial to create a data file.

Video is more complicated - there is no standard codec for video, and perhaps more importantly, I doubt that any js engine is fast enough, but it’s fast enough to generate encoded video (given that native implementations only relatively recently received> performance in real time)

+1
source

You can embed video and audio data in a data URI

themaninblue made javascript drum machine

look at the source code for an example

+1
source
+1
source

I just checked Audiolet https://github.com/oampo/Audiolet - it's pretty smooth

0
source

All Articles