News for hackers. Stuff that matters.
Re:Google Cloud Text-To-Speech Powered by DeepMind WaveNet T... by slaymaker1907 on Tuesday March 27, 2018 @03:53PM (#16692148)
For any Google devs lurking out there, it doesn't seem to work at all in Firefox on Windows. It looks like it has something to do with custom web components with the following message:

ReferenceError: customElements is not defined

Also apparently some assertion errors with webcomponents (minified so line numbers not useful).

Re:Google Cloud Text-To-Speech Powered by DeepMind WaveNet T... by matthewmacleod on Tuesday March 27, 2018 @04:58PM (#16692668)
Doesn't work in Safari. Doesn't work in Firefox. Doesn't work in Edge.

I don't want to be unreasonable, but Google used to at least generally support the idea of the open web. There are a bunch of different UAs out there; while I accept it's more challenging to support some than others, it doesn't seem unreasonable to expect a product launch from a large-scale web company should at the very least give us an error message.

The web is deteriorating right in front of us, and a big contributor to that is Google's continued failure to realise that the web isn't all-Chrome, all the time. The attitude displayed here—a minor thing when compared to the overall problem—has strengthened my resolve to avoid Chrome at all costs.

Re:Google Cloud Text-To-Speech Powered by DeepMind WaveNet T... by halfteatree on Tuesday March 27, 2018 @09:32PM (#16694436)
> I don't want to be unreasonable, but Google used to at least generally support the idea of the open web.

This is a Machine Learning product, I don't think anyone at Google, at least as part of this team, is trying to "get you" or destroy the open web or something. This isn't even a case of Google using something non-standard -- WebComponents is part of the standard, you can even see it in Mozilla's MDN [0]. Firefox, Safari, Edge, et al simply haven't implemented it yet (or landed in stable). Is that somehow also Chrome's fault?

Filing a bug report is good, but ranting on HN about how this is a sign of Google trying to steal the open Internet is at best unnecessary, and absolutely unreasonable.

Coincidently, I'm working on an application that uses complicated SVG with CSS animations, and I've spent a ton of time optimizing it. I've never tested it outside of Chrome before today. To my surprise, while everything works fast in Chrome, in Safari it's bearable, but in FF it's simply too laggy to use. Now, I probably won't ever get to fix the performance issues in FF and Safari, simply because I don't have the time. Am I also out there trying to destroy the open web? Maybe I'm just bad, not evil.

[0]: https://developer.mozilla.org/en-US/docs/Web/Web_Components

Re:Google Cloud Text-To-Speech Powered by DeepMind WaveNet T... by matthewmacleod on Wednesday March 28, 2018 @02:41AM (#16695887)
No, I don’t agree with you.

This is a basic audio playback widget on the web. The web is nominally an open platform. Whichever team built this decided to build it in a way that it would only support Google’s own web browser. It’s not unreasonable to expect a massive web company to build cross-browser support for their user-facing demos, especially in cases where there is obviously no reason that it needs to be incompatible.

Like I said, I appreciate that building cross-browser is not always possible. The difference between you and Google is that you aren’t one of the largest companies in the world, and you don’t publish your own browser.

Re:Google Cloud Text-To-Speech Powered by DeepMind WaveNet T... by manigandham on Tuesday March 27, 2018 @11:26PM (#16695006)
True, but clearly the marketing page of a feature service for a major cloud vendor should be accessible to as many as possible. There's no real reason something as simple as an audio player to play samples doesn't work well on all browsers.
Re:Google Cloud Text-To-Speech Powered by DeepMind WaveNet T... by Gatsky on Tuesday March 27, 2018 @05:42PM (#16692998)
Come on now, it's a cloud machine learning product, you can access it using purely open source tools all running on an open source operating system if you like. No need to pronounce doom because the demo doesn't work in your browser.
Re:Google Cloud Text-To-Speech Powered by DeepMind WaveNet T... by freehunter on Tuesday March 27, 2018 @08:07PM (#16693976)
That'd be a reasonable response if Google didn't have a history of deliberately making things incompatible with other browsers for no discernible reason.

https://mashable.com/2013/01/05/google-maps-windows-phone

Re:Google Cloud Text-To-Speech Powered by DeepMind WaveNet T... by est on Tuesday March 27, 2018 @09:28PM (#16694407)
> making things incompatible with other browsers for no discernible reason

The reason is simple, Chrome is Google's bitch just like IE was Microsoft's bitch.

Re:Google Cloud Text-To-Speech Powered by DeepMind WaveNet T... by matthewmacleod on Tuesday March 27, 2018 @05:59PM (#16693132)
I appreciate the quality of the offering, and indeed I'm excited because I am currently building a product that uses Google's synthesis!

But it's the lack of care displayed here that's really disappointing. It's like nobody involved with this demo went "Hey, maybe people aren't using Chrome and we should at least not totally fail when that happens". It's disappointing; as a mostly front-end dev at a small company, I put a lot of time into making sure that things work cross-platform, even if I don't always get it right. It's disappointing that Google's culture doesn't rate that highly enough.

Re:Google Cloud Text-To-Speech Powered by DeepMind WaveNet T... by StavrosK on Tuesday March 27, 2018 @06:12PM (#16693254)
The solution is simple: Get as many people as you can to migrate to Firefox!
Re:Google Cloud Text-To-Speech Powered by DeepMind WaveNet T... by paulryanrogers on Tuesday March 27, 2018 @09:03PM (#16694270)
Then it works in two browsers: most popular and their own. Ideally there would be such a large number of in-use standards compliant browsers that companies had to comply.
Re:Google Cloud Text-To-Speech Powered by DeepMind WaveNet T... by StavrosK on Wednesday March 28, 2018 @05:51AM (#16696562)
The problem isn't so much that browser vendors don't adhere to standards, it's that they make their own additional features and then make webpages that work with those. Having standards won't do anything for that, unless the standard says "you must not implement extra functionality".
Re:Google Cloud Text-To-Speech Powered by DeepMind WaveNet T... by matthewmacleod on Wednesday March 28, 2018 @02:44AM (#16695898)
There are four or five out there. I would expect the average modern web app to be compatible with Chrome, Safari, Firefox, Edge, and possibly IE11 if that’s appropriate for the particular use case.
Re:Google Cloud Text-To-Speech Powered by DeepMind WaveNet T... by shdh on Tuesday March 27, 2018 @07:41PM (#16693823)
Just needs a WebComponents polyfill.

Other browser vendors don't support WebComponents out of the box (yet).

Re:Google Cloud Text-To-Speech Powered by DeepMind WaveNet T... by rhizome on Tuesday March 27, 2018 @05:16PM (#16692783)
Google used to at least generally support the idea of the open web

Yes, but history teaches us that they are terrible at product management. I mean, they could at least just call it "Chrome TTS" or something until they put the whole thing together.

Re:Google Cloud Text-To-Speech Powered by DeepMind WaveNet T... by thesandlord on Tuesday March 27, 2018 @05:45PM (#16693026)
The demo might only work in Chrome, but the API is just a standard REST API. Most people will be using this API on the server side to generate an MP3 which is streamed to the user.

Chrome actually has its own TTS engine (as does FF, Safari, etc), though the quality obviously isn't as good.

https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynth...

(I work for GCP)

Re:Google Cloud Text-To-Speech Powered by DeepMind WaveNet T... by matthewmacleod on Tuesday March 27, 2018 @06:01PM (#16693147)
As I understand it, Chrome does indeed use the Google cloud platform to do its speech synthesis behind the scenes – I suppose we'll see improvements in the quality of those voices soon, too.
Re:Google Cloud Text-To-Speech Powered by DeepMind WaveNet T... by matthewmacleod on Tuesday March 27, 2018 @05:56PM (#16693112)
That's not entirely fair – it does work over relatively standard protocols behind the scenes. I'm just annoyed at the lack of care displayed here.
Re:Google Cloud Text-To-Speech Powered by DeepMind WaveNet T... by thesandlord on Tuesday March 27, 2018 @05:54PM (#16693099)
GCP person here. We are aware and are working on a fix!

(Should be as "simple" as a polyfill for webcomponents, but I don't want to put words in the team's mouth)

Re:Google Cloud Text-To-Speech Powered by DeepMind WaveNet T... by thesandlord on Wednesday March 28, 2018 @09:06PM (#16703682)
Update: Should be fixed now!
Re:Google Cloud Text-To-Speech Powered by DeepMind WaveNet T... by pietroglyph on Tuesday March 27, 2018 @04:17PM (#16692330)
That's probably because custom elements aren't supported in Firefox yet, unless you set "dom.webcomponents.enabled" and "dom.webcomponents.customelements.enable" to true. It's supposed to be fully enabled in Firefox 60/61 according to MDN [0].

[0]: https://developer.mozilla.org/en-US/docs/Web/Web_Components/...

Re:Google Cloud Text-To-Speech Powered by DeepMind WaveNet T... by the8472 on Tuesday March 27, 2018 @04:29PM (#16692450)
Best viewed with Chrome Explorer™ 5.0, Optimized for 1024x786 truecolor screens.
Re:Google Cloud Text-To-Speech Powered by DeepMind WaveNet T... by ehsankia on Tuesday March 27, 2018 @06:51PM (#16693558)
Sure, but should they not be either using polyfills, or not use code that is only supported by one browser? I understand how a project like Allo Web would want to use latest streaming api tech, but a documentation/product launch page doesn't need crazy new web tech.
Re:Google Cloud Text-To-Speech Powered by DeepMind WaveNet T... by shdh on Tuesday March 27, 2018 @07:42PM (#16693829)
They should be using the polyfills, but looks like someone missed the mark and forgot to add them.
Re:Google Cloud Text-To-Speech Powered by DeepMind WaveNet T... by kuschku on Tuesday March 27, 2018 @07:51PM (#16693877)
They didn't even test on anything other than Chrome, because they don't care. That's the problem. Not that it was missed, but that they didn't even test in Firefox.
Re:Google Cloud Text-To-Speech Powered by DeepMind WaveNet T... by gcb0 on Tuesday March 27, 2018 @07:08PM (#16693662)
> something from google not working on firefox.

Call me paranoid all you want, but that is their plan. just like it was microsoft's plan for nothing on IE4/6 to work on netscape. Heck, a third of my corporate sites have DHTML popups saying "Use chrome" when i reach them with firefox already.