Slashdot Mirror


Breakthroughs In HTML Audio Via Manipulation With JavaScript

jamienk writes "Imagine if you could grab and manipulate audio with JavaScript just like you can images with Canvas. Firefox experimental builds let you do just that: crazy audio visualizations, a graphic equalizer, even text-to-speech, all in JavaScript! Work in progress; you need a special build of Firefox (videos available), being worked on via W3C."

141 comments

  1. Firefox, eh? by Anonymous Coward · · Score: 0, Troll

    So I'm guessing it only supports FLAC and Ogg Vorbis?

    1. Re:Firefox, eh? by masterwit · · Score: 0, Offtopic

      Yes it would seem still no native mp3 support.
      The real fundamental question is, however, do we really want to use java for audio?

      --
      We should start a new Slashdot and return control to the geeks. It actually wouldn't be that hard to get some users to
    2. Re:Firefox, eh? by TheReal_sabret00the · · Score: 1

      Isn't mp3 set to be free soon?

    3. Re:Firefox, eh? by Eudial · · Score: 1

      Yes it would seem still no native mp3 support.
      The real fundamental question is, however, do we really want to use java for audio?

      mp3 is a patent-encumbered standard. We don't want any of that in your open standards, now do we? Also, javascript is not java; it really has nothing to do with java, except the ill-chosen name.

      --
      GAAH! MY PRINTER IS ON FIRE!!! PUT IT OUT! PUT IT OUT!
    4. Re:Firefox, eh? by masterwit · · Score: 1

      I thought at first that themp3 standard was already "free":

      Open standard. Developed by the Motion Pictures Expert Group (MPEG), Coding of audio, picture, multimedia and hypermedia information.

      However, mp3 is not free...yet. Some of these patents are set to expire on their 20 year time frame in a couple of years it would seem.

      --
      We should start a new Slashdot and return control to the geeks. It actually wouldn't be that hard to get some users to
    5. Re:Firefox, eh? by masterwit · · Score: 1

      Also, javascript is not java; it really has nothing to do with java, except the ill-chosen name.

      Valid point...I see where the 'Offtopic' tag came from now, thanks :)

      --
      We should start a new Slashdot and return control to the geeks. It actually wouldn't be that hard to get some users to
    6. Re:Firefox, eh? by Compenguin · · Score: 2, Informative

      > However, mp3 is not free...yet. Some of these patents are set to expire on their 20 year time frame in a couple of years it would seem.

      Yes, the next MP3 patent expires this Sunday. The longest patent seems to expire in 2018 but that appears to be MPEG-2 LSF and only required for low sample rate MP3s. So the next furthest date looks like April 2017 but it may be worth double checking the dates on those around 2014/2015.

      http://wiki.multimedia.cx/index.php?title=MP3_Patents

    7. Re:Firefox, eh? by marcansoft · · Score: 4, Informative

      Third, unlike Theora and H.264, Vorbis is actually much better than MP3.

    8. Re:Firefox, eh? by mick232 · · Score: 1

      We use Flash for video. I see no reason to not use JavaScript (or Java) for audio.

    9. Re:Firefox, eh? by Anonymous Coward · · Score: 0

      Flash as it exists now was built with video in mind. Javascript as it exists now..is an amalgamation of junk that is semi-functional in the hands of the incompetent and only MOSTLY functional in the hands of professionals. wtfjs.com explains this a bit better.

    10. Re:Firefox, eh? by icebraining · · Score: 1

      Actually, wtfjs.com is all about syntax quirks and nothing about the current APIs being an "amalgamation of junk" - and some of them are just "proof of concepts", not real problems, like using a reserved keyword as a variable name.

      Besides, who is doing videoElement.play() or videoElement.pause() bad? It's a very clean API, imho.

    11. Re:Firefox, eh? by Anonymous Coward · · Score: 0

      And I'm guessing that there is absolutely no point to this audio manipulation via "JavaScript" when it only works with one specific build of one specific browser's particular JavaScript implementation.

    12. Re:Firefox, eh? by Eraesr · · Score: 1

      Sorry to be pendantic, but it's JavaScript we're talking about here, not Java. Both are quite different things.

    13. Re:Firefox, eh? by VJ42 · · Score: 1

      And I'm guessing that there is absolutely no point to this audio manipulation via "JavaScript" when it only works with one specific build of one specific browser's particular JavaScript implementation.

      It's called a proof of concept.

      --
      If I have nothing to hide, you have no reason to search me
  2. I'm all for this by bmecoli · · Score: 0, Troll

    The quicker we can get away from our reliance on that god awful Quicktime, the better.

    1. Re:I'm all for this by Yvan256 · · Score: 2, Insightful

      FYI, Quicktime is not awful at all on Mac OS X, nor is Safari and iTunes. And almost everything from Microsoft and Adobe sucks on Mac OS X.

      I don't know why you associate Quicktime with online audio, so what you probably meant to say was "The quicker we can get away from our reliance on that god awful Flash, the better."

      Be prepared for another "Firefox vs the World" with this, however: Vorbis vs MP3/AAC.

    2. Re:I'm all for this by bky1701 · · Score: 0

      "Be prepared for another "Firefox vs the World" with this, however: Vorbis vs MP3/AAC."

      We beat Microsoft and Apple once before. Open Source can do it again.

    3. Re:I'm all for this by 42forty-two42 · · Score: 2, Informative

      Be prepared for another "Firefox vs the World" with this, however: Vorbis vs MP3/AAC.

      Not really. Vorbis has about the same quality per bit as AAC (unlike theora vs h264), and it's established long enough to not have patent issues. There's no reason not to implement support for Vorbis, and it's plenty good enough to be the default codec. What's more, Youtube's behind Vorbis (it's part of the WebM spec), and since Flash has pledged support for WebM, they'll have it too.

    4. Re:I'm all for this by Monkeedude1212 · · Score: 0

      Mod this up. I can't remember the last time I used quicktime since flash came along.

    5. Re:I'm all for this by Yvan256 · · Score: 1

      And from what I've read, there is no-floating-point software decoders that don't require much CPU power either, so software-only solutions won't drain the battery significantly. I don't doubt for a second that Opera would also support Ogg Vorbis. The problem would be to get Microsoft and Apple to add support to their products.

      However, if we look at the past:

      - Microsoft: BMP screen captures (Microsoft format)
      - Apple: PNG screen captures (Open format)

      - Microsoft: Windows Media Audio/Video (two Microsoft formats)
      - Apple: H.264/AAC and MP3 support (non-Apple formats, already established industry standards formats)

      Apple would probably go with MP3, AAC and Vorbis audio files in Safari 5.
      Microsoft would probably go with MP3 and WMA in Internet Explorer 12.

    6. Re:I'm all for this by Yvan256 · · Score: 0, Troll

      What do you mean by "We beat Microsoft and Apple once before"? The market share for both Firefox and Opera is stable but the marketshare for Safari and Chrome is going up.

      Firefox is bloated, I for one don't want to use it. It's either Safari, Chrome or Opera for me.

    7. Re:I'm all for this by TheSync · · Score: 1

      Vorbis has about the same quality per bit as AAC (unlike theora vs h264), and it's established long enough to not have patent issues.

      Age is not an issue, MPEG-2 still has patent issues! The issue is that Vorbis has not been adopted by enough deep pockets for the patent trolls to come out yet. Already they are licking their lips over VP8.

    8. Re:I'm all for this by 42forty-two42 · · Score: 2, Informative

      Vorbis has been used by a number of major game publishers for game audio, precisely because it has no license fees. I think WoW would be a big enough target for the patent trolls, how about you?

    9. Re:I'm all for this by KuNgFo0 · · Score: 2, Informative

      Example case - trailers from trailers.apple.com - the ones hosted at apple typically demand that you have Quicktime installed (obviously since Quicktime is their technology). Quicktime might be dandy on the Mac but is most definitely god awful on the PC - much worse than Flash, in fact I'd put it in the same category as Adobe Reader or Real Player plugins.

      Further more, Quicktime's browser plugin assigns itself as the default player for many types of media - including mp3 files. So every time I click on an .mp3 link in Firefox, the Quicktime plugin fires up and starts playing it - and its player sucks. Also, since it's impossible to install iTunes without Quicktime, every time I install or upgrade iTunes I have to go through and decrap-ify all the mime associations for Quicktime.

      Yes I will be happy when Quicktime dies.

    10. Re:I'm all for this by maxume · · Score: 1

      Why would you even bring up BMP in this context?

      It is barely a format. It is not encumbered by patents.

      --
      Nerd rage is the funniest rage.
    11. Re:I'm all for this by valros · · Score: 1

      I'm not sure of the speech packs but I remember seeing in the older MPQ's for WoW that the shorter sound effects were in WAV and longer songs in MP3.

    12. Re:I'm all for this by PopeRatzo · · Score: 1

      but the marketshare for Safari and Chrome is going up.

      The marketshare for Safari is only going when new iPhones or iPads come out. If you look at the w3schools.com listings, you'll see that when new Apple products aren't coming out, the marketshare for Safari actually went down from 3.8% to 3.7%, whereas the number a year ago was a little over 3%. Considering the number of Apple handhelds entering the market, you'd think the number would be going up faster than that.

      In the same period that Safari went from 3.1 to 3.8 percent, Chrome went from 4.9 to 13.6 percent.

      --
      You are welcome on my lawn.
    13. Re:I'm all for this by Anonymous Coward · · Score: 0

      really? When did you beat Apple and Microsoft? And if you did such a good job of beating them, why do you need to beat them again?

    14. Re:I'm all for this by TrancePhreak · · Score: 1

      Microsoft is not blocking WebM (just not shipping with it). And they have always allowed whatever codec installs for WMP/IE in the past. Contrast this with Safari and Apple's stance on Theora.

      --

      -]Phreak Out[-
    15. Re:I'm all for this by PopeRatzo · · Score: 1

      - Microsoft: Windows Media Audio/Video (two Microsoft formats)
      - Apple: H.264/AAC and MP3 support (non-Apple formats, already established industry standards formats)

      Apple would probably go with MP3, AAC and Vorbis audio files in Safari 5.

      Do you have reason to believe that Apple will include Vorbis support for Safari but MS will not support it for IE12?

      As a content creator, I really like Ogg Vorbis. The limited number of devices and apps that support it is a drag. I hope it becomes more widely accepted. I like FLAC too, especially as an archiving format, but it can be an even bigger pain to get people to accept because support is so poor (especially on Apple). There are lots of Windows apps that support FLAC, but precious few for Apple. Fortunately, Sansa has been pretty friendly to both formats, so I recommend those players to my clients. Now if Sansa would only come out with a large storage device that has a screen at least as big as a Zune (and hopefully as big as an iPod Touch). I haven't heard anything about them coming out with such a device, though. Android devices look hopeful for the better formats.

      --
      You are welcome on my lawn.
    16. Re:I'm all for this by BenoitRen · · Score: 2, Informative

      If you look at the w3schools.com listings

      For fuck's sake, when will people understand that the listings on w3schools.com ARE ONLY FOR THAT SITE AND NOT REPRESENTATIVE OF THE GLOBAL MARKET SHARE?!

    17. Re:I'm all for this by Yvan256 · · Score: 1

      I brought it up to show that when Apple needed a file format for the screenshots of Mac OS X, they went with PNG (which is open like Vorbis) while Microsoft created BMP.

    18. Re:I'm all for this by Yvan256 · · Score: 1

      My reason to believe this is the two lines you didn't quote from my post:

      - Microsoft: BMP screen captures (Microsoft format)
      - Apple: PNG screen captures (Open format)

      If Apple was so anti-open-formats, they would never have picked PNG as the default format for screenshots. Microsoft has a history of always creating their own formats even when a multitude of alternatives already exist (kind of like Sony with their half a dozen Memory Stick types).

      But I guess Apple could have used FLAC instead of creating Apple Lossless. There may be some technical or legal details we're not aware of. For corporations, it's not always the best technical solution that gets used because of legal reasons, licensing costs, etc.

      Since the patents for MPEG Layer III audio have expired/are about to expire, shouldn't we use that instead of Vorbis or AAC?

    19. Re:I'm all for this by Yvan256 · · Score: 1

      Aren't trailers from that website encoded in H.264 video, AAC audio in a standard MP4 container? Shouldn't that play on anything from Windows Media Player to VLC?

    20. Re:I'm all for this by maxume · · Score: 1

      Uh-huh, it just doesn't work very well as an example, what, with there being a 10+ year gap between the selections of the formats and png not existing when Microsoft "created" bmp (it would be reasonable to say that they specified bmp, it is not very complex, it is basically a way of organizing raw bitmap data, with no support for any compression, so most of the bits in the file map directly to the display).

      Especially considering that the paint.exe that shipped with Windows XP has (at least some) support for Jpeg, GIF, PNG and TIFF.

      Using stupid examples doesn't really add any weight to your argument.

      --
      Nerd rage is the funniest rage.
    21. Re:I'm all for this by chromas · · Score: 1

      BMP was around long before OSX. What was Apple using before OSX?

    22. Re:I'm all for this by h3 · · Score: 1
    23. Re:I'm all for this by sabernet · · Score: 2, Interesting

      Apple picked PNG because Microsoft didn't. And screencap image formats were hardly going to be an industry deal breaker. BMP files are so obvious as to really not give any leverage to Microsoft. Any patent on the silly thing would be overturned("Method for displaying a picture by lining up the colored pixels in order?").

      Apple is pro-open-formats only if there's no way to get a lock-in. Apple is a patent holder with MPEG-LA, hence their preference for H.264.

      Remember that there's nothing preventing you from installing Theora and Matroska codecs on your Windows box, same as with your Mac. Sure, media player will push you towards wma, but Apple will push you towards Apple Lossless.

      "Microsoft has a history of always creating their own formats even when a multitude of alternatives already exist"

      - iPad USB dongle
      - iPhone/Pod connector
      - Their old practice(no longer the case) of locking their RAM so only their RAM would work on their hardware
      - The stupid one button mouse(yes, it's no longer the case, but it was).

      Not saying MS is good. They're not. But neither of them are. Trying to say "At least Apple..." these days is a tricky game.

      Also, MS has stated that IE8+ will handle WebM just fine as it can be installed via Media Player. Opera stated support. Mozilla breathed a sigh of relief and quickly said the same. Apple(or at least Turtleneck Prime) is the only one that seemingly indicated they wouldn't support it by throwing some lawsuit FUD around. They may yet, but the response wasn't exactly positive.

    24. Re:I'm all for this by TheSync · · Score: 1

      Indeed, Activision Blizzard, with revenues of $4 billion last year, is big enough for patent trolls....if they actually use Vorbis.

    25. Re:I'm all for this by shutdown+-p+now · · Score: 1

      Microsoft: Windows Media Audio/Video (two Microsoft formats)

      Microsoft has already pledged H.264 support (and AAC for audio) in IE9 out of the box, and WebM (VP8+Vorbis) if codecs are installed.

    26. Re:I'm all for this by evilviper · · Score: 1

      Vorbis has about the same quality per bit as AAC (unlike theora vs h264), and it's established long enough to not have patent issues.

      The current generation of AAC (HE-AAC/aacPlus/etc) is undeniably vastly better than Vorbis. In fact, the parallels with H.264 are stunning. HE-AAC is part of the MPEG-4 standard, it's not particularly impressive at high bitrates, but vastly superior at low bitrates, etc.

      The only difference is that people have been rushing to put H.264 everywhere, while they've been reluctant to put HE-AAC anywhere, limiting their devices and software to simple-profile AAC, so it doesn't (yet) have the same death-grip.

      --
      Slashdot gets worse every day... Pipedot: News for nerds, without the corporate slant
    27. Re:I'm all for this by Yvan256 · · Score: 1

      Why didn't Microsoft simply use TIFF or TGA for the graphic format? Why invent BMP at all?

    28. Re:I'm all for this by jorgevillalobos · · Score: 1

      The market share for Firefox is far from stable.

      Here. If you dig a little on that blog you'll find the actual sources, which are a mix of reliable web statistics providers.

    29. Re:I'm all for this by dave420 · · Score: 1

      They even play fine in Flash, funnily enough.

    30. Re:I'm all for this by Dr.Dubious+DDQ · · Score: 1

      Also worth pointing out that the majority of HTML5 browsers already supports both Vorbis and Theora. I think Safari is the ONLY HTML5-using browser that doesn't have support for Vorbis out of the box. I believe Chrome ALSO supports vorbis and theora (not just aac/h.264), and between Firefox and Chrome that's got to be at least, what, roughly 60-80% of HTML5-supporting browser traffic?

      Since Apple® Quicktime® can actually be taught to understand Vorbis, Theora, and all of the other Xiph codecs system-wide (i.e. not just inside the web browser) with the installation of a single component (XiphQT), I think support for Vorbis is already better than people give it credit for...

  3. Pac-Man by Rik+Sweeney · · Score: 0

    Pac-Man played sound on the Google homepage, wasn't that done in JavaScript?

    1. Re:Pac-Man by Anonymous Coward · · Score: 1, Insightful

      No, that was Flash, and it caused lots of ire, particularly in combination with Firefox plugin that loaded the Google homepage in the background. I hope there'll be a sound=off option, because I still remember the 90s and web pages with MIDI sounds.

    2. Re:Pac-Man by Yvan256 · · Score: 0

      It was done via Flash.

    3. Re:Pac-Man by scurker · · Score: 2, Informative

      The game and all the movements were Javascript. The sounds were done with flash.

    4. Re:Pac-Man by The+MAZZTer · · Score: 0

      I tried to save that thing locally (before they announced they weren't going to take it down). Strangely the Flash file fails to callback to JS if I save it locally, causing audio to be disabled. Not sure why this is... too bad, it would make an awesome Chrome Web App.

    5. Re:Pac-Man by Anonymous Coward · · Score: 0

      No. The audio was done via Flash. The rest was done in Javascript.

    6. Re:Pac-Man by dgatwood · · Score: 1

      Humorously, I actually thought the game was silent when I first viewed it. Once again, ClickToFlash delivers an improved user experience.

      --

      Check out my sci-fi/humor trilogy at PatriotsBooks.

    7. Re:Pac-Man by TheReal_sabret00the · · Score: 1

      Correction: That was HTML5 (JS, audio and Canvas) on whichever systems could hack it. Flash was the fall-back.

    8. Re:Pac-Man by Tacvek · · Score: 1

      Having worked very closely with the source, including walking through the entire audio subsystem, I can assure you that the audio was always flash, and the rest of the game was always JS and Canvas, at least for the first day or so. They may have changed things late in the game.

      --
      Stylish sheet to fix many problems in Slashdot's D3: https://gist.github.com/801524
  4. Dear Internet: Sorry. by B5_geek · · Score: 3, Funny

    All I can think of is <BLINK> </BLINK> turned into audio!

    Of course this has good uses (blind users with scripts available), but I can see how this will end badly for the rest of us.

    --
    "The price good men pay for indifference to public affairs is to be ruled by evil men." ~Plato (427-347 BC)
  5. Will it be used? by Darkness404 · · Score: 1

    All these breakthroughs in Canvas and Javascript are useful, but will they be used?

    Until IE implements even half these features, we will be stuck with "Quick"Time and Flash for quite some time...

    --
    Taxation is legalized theft, no more, no less.
    1. Re:Will it be used? by John+Hasler · · Score: 1

      > Until IE implements even half these features...

      Or until IE is dead...

      --
      Warning: this article may contain humor, sarcasm, parody, and perhaps even irony. Read at your own risk.
    2. Re:Will it be used? by mini+me · · Score: 1

      IE is already dead as far as developers should be concerned. Pages will work well enough that IE users can still limp along, if need be.

  6. That's just by pizzach · · Score: 1

    music to my ears. Finally I will be able to listen to midis without a plugin.

    --
    Once you start despising the jerks, you become one.
  7. The beginning of the end by Anonymous Coward · · Score: 0

    So... I won't be needing the Crescendo! plugin anymore for playing back great sounding MIDI music from people's gif-laden web pages?

  8. Screen readers... by dclozier · · Score: 2, Insightful

    This will be fantastic for aiding those that have vision impairments. The 503 compliance will end up including this if it is ever standardized. (w3c not known for speed)

  9. Re:Dear Internet: Sorry. by Yvan256 · · Score: 5, Funny

    You mean annoying like people who put their comments between <code> tags?

  10. HTML 5 is AMAZING!!! by Anonymous Coward · · Score: 1, Insightful

    awesome, you could do that in Flash 5 years ago.

    1. Re:HTML 5 is AMAZING!!! by hedwards · · Score: 1

      Not on any OS that Macromedia didn't bless with an implementation. Which is the reason why there's so much effort going into opening it up. You can't see Flash things if you don't have Flash.

    2. Re:HTML 5 is AMAZING!!! by wizardforce · · Score: 1

      The difference is that we want flash to die horribly for a number of reasons.

      --
      Sigs are too short to say anything truly profound so read the above post instead.
    3. Re:HTML 5 is AMAZING!!! by Anonymous Coward · · Score: 0

      Yeah, but that is a pretty big draw back. You HAD to use Flash. Flash can now be thought of as "How to do HTML 5 badly".

    4. Re:HTML 5 is AMAZING!!! by Kamineko · · Score: 1

      And one of these would be that it allowed you to have sound in web pages.

    5. Re:HTML 5 is AMAZING!!! by Anonymous Coward · · Score: 0, Insightful

      Are you serious? I didn't know that you couldn't see Flash things if you don't have Flash. Shoot, I didn't even think about that. I wonder how many browsers have flash 8 or better installed, oh 99%

      FYI, Flash is open, you can develop it for free, you could even write your own Flash player if you were so inclined. One more time FLASH IS OPEN! Adobe must be fucking crazy and closed for trying to make money by selling their version of an IDE and Player.

    6. Re:HTML 5 is AMAZING!!! by Anonymous Coward · · Score: 0

      Oh, right. All those HTML 5 sites are really kicking Flash to the curb. I'm sure developers will screw up HTML5 just like developers screw up Flash. Flash has a much more powerful and advanced feature set HTML 5. If HTML 5 ever catches up, you are going to be seeing the same annoying problems with it as you do Flash, except all those annoying problems will be slightly different across browsers. Can't wait.

    7. Re:HTML 5 is AMAZING!!! by marcansoft · · Score: 1

      With no way to fine-tune who is allowed sound and who isn't.

      With a browser implementation of an open standard, it would be easy to add features such as muting a page's audio when (*gasp*) it's not in the foreground tab. Besides, there will no doubt be plenty of ways to turn off audio, partially or completely. And plug-ins like greasemonkey work great to hack around website JS features, while you can't do anything with Flash SWF blobs other than turn them on and off.

    8. Re:HTML 5 is AMAZING!!! by Nadaka · · Score: 1

      html 5 is screwed from the start because it isn't xhtml2.

      If I was to design the future of the web, it would be xhtml2 with css3. Plus simple site based local storage (cookies that don't always get transmitted to the server would do if the storage size policy was a little less strict), the ability to transfer part of a model to the next page on submit without making a round trip to the server, and throw in some canvas/audio/video tags for everyone else enjoy.

    9. Re:HTML 5 is AMAZING!!! by mini+me · · Score: 1

      If I was to design the future of the web, HTML interpretation would be just one of the many applications the web browser would be able to process. The browser would provide a virtual machine environment, allowing applications to be executed (not unlike Javascript is today, but a richer environment). If you want to display HTML, you can write/link to an HTML rendering engine able to run within the environment.

      HTML has its place, but it is seems incredibly silly to write applications using HTML and CSS.

    10. Re:HTML 5 is AMAZING!!! by Simetrical · · Score: 1

      html 5 is screwed from the start because it isn't xhtml2.

      If I was to design the future of the web, it would be xhtml2 with css3.

      Thing is, people tried that, and it failed horribly. HTML5 is actually working, because it emphasizes compatibility. If you want to live in your utopian pipe dream and throw out everything to start from scratch instead of hacking on top of the mess we're stuck with, have fun, but the proof is in the pudding. XHTML2 died, HTML5 has won.

      Maybe it's because browser implementers are evil and not forward-thinking enough, but guess what? Step one to a successful standard is get implemented. No browser implementer bothered implementing XHTML2, and the authors apparently didn't care. It was dead before it started.

      You have a funny definition of "screwed" if you think HTML5 is screwed and XHTML2 is not, I've got to say.

      Plus simple site based local storage (cookies that don't always get transmitted to the server would do if the storage size policy was a little less strict)

      Like HTML5's localStorage, which has been implemented in all browsers (even IE8)?

      the ability to transfer part of a model to the next page on submit without making a round trip to the server

      I'm not sure what you mean, but this sounds like AJAX.

      and throw in some canvas/audio/video tags for everyone else enjoy.

      Which were introduced by HTML5, and which were conspicuously absent from XHTML2.

      --
      MediaWiki developer, Total War Center sysadmin
  11. I Can't Wait! by WrongSizeGlass · · Score: 1

    even text-to-speech, all in JavaScript!

    WooHoo! I'm gonna have hidden fields in my web pages so this "text to speech" will say one thing while the text on the screen will say another!

  12. Java script is actually good by Anonymous Coward · · Score: 0

    nice to see a language I've spent 10+ of my years working with taking over the field completely.

    How long will Java script reign?

    Long live Java script!

  13. don't say you weren't warned: by circletimessquare · · Score: 1, Interesting

    the future os is the browser

    the future os programming language is javascript

    enjoy!

    --
    intellectual property law is philosophically incoherent. it is your moral duty to ignore it or sabotage it
    1. Re:don't say you weren't warned: by John+Hasler · · Score: 0

      You need to put "enjoy" in quotes.

      --
      Warning: this article may contain humor, sarcasm, parody, and perhaps even irony. Read at your own risk.
    2. Re:don't say you weren't warned: by BJ_Covert_Action · · Score: 0

      Does that mean the future Linux is Lynx? =P

    3. Re:don't say you weren't warned: by gbjbaanb · · Score: 1

      sure, but that's because the marketplace for browser-based languages is immature. As it displaces al other forms of programming platforms, Microsoft will bring out javascript.net, mozilla will bring out xpjavascript, and Google will bring out javavik.

      See, the future will turn out to be just as good as today.

    4. Re:don't say you weren't warned: by Anonymous Coward · · Score: 0

      Is there any reason DOM manipulation couldn't be added to other scripting languages like Python or Ruby (or ... Perl)?-

    5. Re:don't say you weren't warned: by eulernet · · Score: 1

      The future sucks badly.

      Hopefully, the world will end in 2012.

    6. Re:don't say you weren't warned: by mb1 · · Score: 1

      ...the problem being that it's in "the future" that all these great things will exist in a way they can be easily and broadly used.

      right now it's a messy pile of emerging and aging standards and big corporates at each other about their respective tech-sandpits, so the lowest common denominator often seems to be the winner. Javascript browser API's help things along (they're great) but they can't perform black magic like making everything use some canvas or some video codec or audio implementation or 3d api.

      unfortunately, I'm guessing that "the future" will sort out lots of stuff but have all new fights over stuff everyone wants to use right then but has to wait for "the future's future".

      don't get me started on "the future's future's future" either :)

    7. Re:don't say you weren't warned: by Anonymous Coward · · Score: 0

      Nonsense!

      Operating system principles have been around for a long time (in computer time at least). There is no reason to think operating systems will morph into something totally different. If a browser starts adding all the features of an O.S, the browser won't be the O.S., you just won't have a browser anymore.

      This is like saying Microsoft Word is the O.S. of the future. Sure it has scripting support and can be hacked to create applications but it is nothing like an O.S.

    8. Re:don't say you weren't warned: by evilviper · · Score: 1

      the future os is the browser

      the future os programming language is javascript

      I don't buy it. It's too inherently limited to replace any large class of regular applications.

      I fully expect the web-app trend will be just that... every bit as short-lived as every other stupid trend. This time it's Flash and Javascript. Last time it was Java Applets. Next time... who knows?

      --
      Slashdot gets worse every day... Pipedot: News for nerds, without the corporate slant
    9. Re:don't say you weren't warned: by Anonymous Coward · · Score: 0

      Or Objective-C (err... I mean "Objective-J").

    10. Re:don't say you weren't warned: by Philip_the_physicist · · Score: 1

      Python already has a DOM manipulation library (in fact, I think it has 2 or 3 which could be used in the normal distribution), the problem is browser support. If browsers don't use it, then web devs can't use it.

  14. Re:Dear Internet: Sorry. by Darkness404 · · Score: 4, Insightful

    You mean that you expect this to actually be used?

    IE doesn't even have support for canvas, Firefox has had it from 3.0 at least, and I think even 2.0 had some support.

    If IE still has more than 30% worldwide marketshare, and doesn't have basic requirements for this, its not going to be used. Period.

    Canvas has been around for ages and is there even a single practical example on a site people use daily? Yeah, there are about a million tech demos but very little actual use because IE doesn't support it.

    --
    Taxation is legalized theft, no more, no less.
  15. Re:frosty by hedwards · · Score: 0

    Wow, Ned been hitting the sacramental wine again?

  16. ummmm by Anonymous Coward · · Score: 0

    welcome to flash 8.

  17. Re:Dear Internet: Sorry. by K.+S.+Kyosuke · · Score: 5, Funny

    Well, he's a disciplined programmer, he puts comments in his code.

    --
    Ezekiel 23:20
  18. Re:Dear Internet: Sorry. by Monkeedude1212 · · Score: 1, Funny

    You know, there are already PLENTY of applications out there that blind users can use to turn text on screen to speech? And that a lot of people prefer to disable javascript from running?

    Last thing we need is an "on Hover" Javascript ad, you mouse over, and audio gets maximized "FIND YOUR MATCH @ ADULTFINDER.COM!"

  19. Flash Helper; State of JS Audio by weston · · Score: 2, Interesting

    From what I've read, there was an off-screen flash helper playing the audio, and I'm not surprised. It's nigh impossible to get reliable audio with JavaScript only. People have been doing some experiments with stuffing data urls into , , and tags for a while now (heck, I've been doing it since last fall) in order to programmatically generate audio, but it generally suffers from performance issues and various glitches for a while now. You can mostly pull it off only if you stick with MIDI or you use Flash or Java to deliver the audio.

    Here's something I didn't get until recently: Audio is in some ways harder than video. It's more timing sensitive. With video, you're generally slinging a lot more data per frame, but you can get away with *much* lower frame rates... 24 fps works, 60's not bad, and you don't have to get much higher than that to pass the threshold of perception. With audio, very small "frames"/samples will hold adequately resolved data from one point in the signal, but you have to move a lot *more* of them (44,100 of 'em per second for CD quality audio) and move them *reliably* in order to get sound fidelity. JavaScript timing might be millisecond reliable except in IE, but it's not microsecond reliable. Totally realtime programmatic sound is probably out of the question for a while.

    But, programmatic generation of the audio *data* is possible now, and you can probably precompute enough things ahead of time that if they can work the bugs out of the audio tag or something else to enable microsecond level starting/stoping/looping of playback, then pure JavaScript audio would get real wings.

    1. Re:Flash Helper; State of JS Audio by Anonymous Coward · · Score: 0

      There's a useful JQuery plugin called JPlayer that checks for compatibility, and loads an based player, if viewed on HTML5 capable browser, else it loads a Flash-based and lightweight one.
      Here the home of the project http://www.happyworm.com/jquery/jplayer/

    2. Re:Flash Helper; State of JS Audio by AndrewStephens · · Score: 1

      Have you published your experiments anywhere? I have done some experiments with the audio tag and have been disappointed with the way it handles short programatically triggered sounds. It works (baring bug, like in Chrome) but I would love to see a better way.

      --
      sheep.horse - does not contain information on sheep or horses.
    3. Re:Flash Helper; State of JS Audio by roca · · Score: 2, Informative

      There is no Flash involved here, you read wrong. I wonder why you got modded up.

    4. Re:Flash Helper; State of JS Audio by weston · · Score: 1

      There is no Flash involved here, you read wrong.

      In the topic of the linked article, or in Google's Pac-man?

      I wonder why you got modded up.

      Possibly because even if it turns out what I've read about GPac is incorrect, most of what I've written besides is correct.

    5. Re:Flash Helper; State of JS Audio by Anonymous Coward · · Score: 0

      To be pedantic, totally realtime sound is impossible unless you can see into the future (like when playing a file) and know your playback latency. Otherwise there will always be a delay. And you don't actually need microsecond resolution. A 10ms lag is perfectly acceptable even for professional audio settings. In games it can be larger, say up to a 100ms. You need to be able to reliably refill the buffer every time before the N ms run out, but this is nowhere close to realtime.

  20. Comment removed by account_deleted · · Score: 1

    Comment removed based on user account deletion

  21. Tap tap tap, is this thing on? by scottwilkins · · Score: 0

    Can you hear me now?

  22. Re:Attention Mod point WHORES by Yvan256 · · Score: 0

    Sounds like the lyrics for a future Weird Al Yankovic song.

  23. Re:Dear Internet: Sorry. by jfengel · · Score: 0, Offtopic

    Goddamn it, why don't I ever have mod points when I need them?

  24. Blast from the past by Anonymous Coward · · Score: 0

    Ummm, I've got an idea! Lets go back 10 years in web standards and technologies..... I find the current HTML5 craze silly. You want wicked audio tools in your browser, try this: http://www.audiotool.com/ Oh its Flash and it kicks the HTML5 audio tag's ass.

    1. Re:Blast from the past by Anonymous Coward · · Score: 0

      Sorry, no can't do. It's too slow on my phone.

  25. irrelevant by Locutus · · Score: 0

    it does not help me one bit with building a beowulf cluster of javascript engines.

    LoB

    --
    "Anyone who stands out in the middle of a road looks like roadkill to me." --Linus
  26. Should've Previewed by weston · · Score: 1

    This:

    have been doing some experiments with stuffing data urls into , , and tags for a while now

    was meant to be

    have been doing some experiments with stuffing data urls into <bgsound>, <embed>, <object>, and <audio> tags for a while now

  27. Oblig. Insenstive Clod posts inside by Anonymous Coward · · Score: 0

    *I'm deaf, you insensitive clod
    *I have my sound off, you insensitive clod

    Please add more....

  28. wisdom by The+Clockwork+Troll · · Score: 2, Insightful

    It was Chris Rock, who said, "You can do it, but that don't mean it's to be done."

    --

    There are no karma whores, only moderation johns
    1. Re:wisdom by Johann+Lau · · Score: 1

      and why in this case is it "not to be done"?

    2. Re:wisdom by thijsh · · Score: 1

      One thing that *can* be done, and thus is *meant* to be done once this JS audio hits the web: SilentFox plug-in, it kills all sound from all sites (except the white listed ones)... Never an annoying ad that unexpectedly gives you a heart attack when the speakers are still set to 11.

  29. Re:Dear Internet: Sorry. by Anonymous Coward · · Score: 0

    If internet explorer implemented something like this, then we would be complaining about the lack of web standards, but when Mozilla does it, then it is a breakthrough.

  30. Flash is AMAZING!!! by ThrowAwaySociety · · Score: 1

    awesome, you could do that in Flash 5 years ago.

    awesome, you could do that in a Win32 app 15 years ago.

    1. Re:Flash is AMAZING!!! by Anonymous Coward · · Score: 0

      I think we are talking web stuff on this one, but awesome, I could do that at NORAD 50 years ago.

  31. Re:Dear Internet: Sorry. by Anonymous Coward · · Score: 0

    Of course this has good uses (blind users with scripts available)

    I'm confused. You think blinding users with scripts is a good use? And yet you speak ill of <BLINK>, which was often used for that very purpose.

  32. Re:Dear Internet: Sorry. by xOneca · · Score: 1

    Last thing we need is an "on Hover" Javascript ad, you mouse over, and audio gets maximized "FIND YOUR MATCH @ ADULTFINDER.COM!"

    Can't that be done now with Flash?

  33. Vorbis vs MP3 by zooblethorpe · · Score: 1

    Vorbis is actually much better than MP3.

    In all honest ignorance and curiosity, how so, aside from the patent legal issues? Are the file sizes smaller? Is playback processor load less? Is playback quality at a set sampling rate audibly better? Etc., etc.

    Cheers,

    --
    "What in the name of Fats Waller is that?"
    "A four-foot prune."
    1. Re:Vorbis vs MP3 by Randle_Revar · · Score: 4, Informative

      Vorbis has smaller file sizes for the same quality or better quality for the same file size (q1 (~80kbps) is easily comparable to 128kbps MP3).
      Vorbis also supports up to 255 channels with official channel ordering specs up to 8 channels (7.1), while MP3 only supports mono and stereo.

  34. Re:Dear Internet: Sorry. by sfcat · · Score: 1

    Actually, I'm building an enterprisy application right now that uses the canvas tag to emulate a 3D environment. We support IE via the Google Chrome Frame. So there's one way around your problem and one example of people using canvas in the real world.

    --
    "Those that start by burning books, will end by burning men."
  35. Re:Dear Internet: Sorry. by TheRaven64 · · Score: 1

    No, if IE implemented it we'd be complaining that it's proprietary technology, when Mozilla implements it we just complain that it's a stupid idea.

    --
    I am TheRaven on Soylent News
  36. Re:Dear Internet: Sorry. by jyx · · Score: 1

    If IE still has more than 30% worldwide marketshare, and doesn't have basic requirements for this, its not going to be used. Period.

    People who use "Period" to end their sentences are close minded absolutists with no capacity for argument, contrary views or the small possibility that they may just be completely wrong. Period.

    Seriously dude, this is a technology news site. Period. A good proportion of readers will see this as being cool and may knock up a few 'tech demo' pages to do some tricky stuff. Period. That means the technology has been used. Period. Someone may come up with 'the next big thing' that the commercial sites decide they cant live without. Period. MS will eventually patch in canvas support and you can go and declare your authoritative prophecies on other ideas. Period.

    Next time, try the following, less inflammatory statement and watch the world explode into smiles, cuddles and happiness:

    If IE still has more than 30% worldwide marketshare, and doesn't have basic requirements for this, its probably not going to be used on any significant or commercial scale.

  37. Re:Dear Internet: Sorry. by Randle_Revar · · Score: 1

    IE9 will have Canvas

  38. Re:Dear Internet: Sorry. by timeOday · · Score: 1

    Any chance google will help Microsoft along again? (Heh, I'll bet MS *loves* that!)

  39. js-audio Google Group by weston · · Score: 1

    Have you published your experiments anywhere?

    I talked about them a little bit at the December BayJax Meetup, and I've been meaning to turn that presentation into a web page since then, but I haven't.

    However... I've also been meaning to create an audio-focused JavaScript mailing list so that when I do put it up, I'd have somewhere to announce it. And thanks to your comment, I just got off my butt and created the js-audio Google Group. :)

    http://groups.google.com/group/js-audio

    I'd love to have you or anyone else join and share what you've observed and experimented with yourself, and I'll be posting my experiments there in due time.

  40. Off-Topic: Fix the Blog Search Form by tyrione · · Score: 1

    The boundary is being breached by the form field on your right column. One's eye just jumps right to it. I'm using Firefox 3.6.4.

  41. The last missing piece... by SanityInAnarchy · · Score: 1

    ...that was needed to be able to actually make a decent 3D game in JavaScript. Sure, I'd prefer OpenAL bindings, but this'll work.

    --
    Don't thank God, thank a doctor!
    1. Re:The last missing piece... by SlappyBastard · · Score: 1

      Define decent. Let me know when we're talking about hardware acceleration.

      --
      I scream. You scream. I assume that means we're both acquainted with the problem. We proceed.
    2. Re:The last missing piece... by SanityInAnarchy · · Score: 1

      WebGL is hardware-accelerated video. Audio benefits from hardware acceleration, but doesn't need it. It does, however, need some amount of software control, something more than "Play this file at roughly this time."

      --
      Don't thank God, thank a doctor!
  42. Android Pod Touch by tepples · · Score: 1

    Now if Sansa would only come out with a large storage device that has a screen at least as big as a Zune (and hopefully as big as an iPod Touch).

    If you want an "Android Pod Touch", get an Archos tablet.

  43. Administrators group by tepples · · Score: 1

    awesome, you could do that in a Win32 app 15 years ago.

    You have to be a member of the Administrators group to install a native app. You do not have to be a member of the Administrators group to run a Flash object, a JavaScript program, or a Java applet, because the web developer can safely assume that every PC already has players for one or more of these.

    1. Re:Administrators group by scrod · · Score: 1

      A music visualizer needs to be installed? When did Windows prevent normal users from just running executables?

  44. As bad as patent law is now by SlappyBastard · · Score: 1

    I'm amazed someone hasn't just entered a patent for "Stuff that does shit. Fuck yeah." Cause, given the state of the USPTO, it would probably hold up.

    --
    I scream. You scream. I assume that means we're both acquainted with the problem. We proceed.
  45. Saving bandwidth by batistuta · · Score: 1

    >> even text-to-speech

    This is great. Now porn websites can save bandwidth by sending dialogs and love sounds as text, and letting them the T2S engine speak them out on your side.

  46. Re:Dear Internet: Sorry. by Anonymous Coward · · Score: 0

    Do even 1% of IE users have chrome frame?

  47. Re:Dear Internet: Sorry. by chris.alex.thomas · · Score: 0

    why not just use it and live with the consequences, if you're site needs this, then obviously it needs it and you'll have to live without people using IE. why does everyone think that because it's not supported in IE, you can't do it. fuck IE, if they don't want to play ball, then screw them and do what you want anyway, if my site requires firefox to view it, then you open it in firefox, if it requires safari v3.0+ then it requires safari. if you want to see what i've done, reopen in the browser required and see what I've done. if you're not interested, then ok, no problem, the site can't help you, bye bye, have a nice day. no biggie, no problems, no fuss, just, that..

  48. Wow! by ElusiveJoe · · Score: 1

    Demoscene in my browser!

  49. Re:Dear Internet: Sorry. by kavin · · Score: 1

    : If IE still has more than 30% worldwide marketshare, and doesn't have basic requirements for this, its not going to be used. Period.

    IE is being retrofitted:

    ~ Canvas: http://code.google.com/p/explorercanvas/
    ~ HTML, CSS, PNG: http://code.google.com/p/ie7-js/

  50. Windows can also mount /home noexec by tepples · · Score: 1

    When did Windows prevent normal users from just running executables?

    Software Restriction Policies started in Windows XP. This is similar to the UNIX feature of mounting /home noexec.

  51. Worth it to transcode library of MP3 files? by zooblethorpe · · Score: 1

    Good to know, thank you for the reply.

    I have a sizable existing library of MP3 files. Would it be worth the trouble to transcode these into Ogg? Would this process be problematically lossy? And will iPods will play Ogg files? (This last is curiosity; I don't use iTunes, so it's not too much trouble to wipe my iPod and put something in it that plays Oggs.)

    Cheers,

    --
    "What in the name of Fats Waller is that?"
    "A four-foot prune."
    1. Re:Worth it to transcode library of MP3 files? by MobyDisk · · Score: 1

      IMHO, it is never worth converting audio files from one lossy format to another. Suppose you do that, and your files are now half the size but 1% noisier. But by the time you have re-encoded your 5 bzillion gigs of data, storage prices have dropped in half. So you could have had better results by sitting around doing nothing.