News for hackers. Stuff that matters.
Re:Updates to Cloud Speech-to-Text and general availability ... by danShumway on Friday August 31, 2018 @12:53AM (#17883038)
Google's speech-to-text is powerful, but I'd be pretty skeptical about tying a project to it given how services like Maps have been handled recently. There are companies like Mozilla trying to build more open solutions, but to the best of my knowledge (please correct me if I'm wrong) any pre-trained services Mozilla offers will also still involve you connecting to their servers.

Maybe I'm just paranoid, but I just can't imagine using a speech-to-text system for anything serious that I can't self-host. It feels like we've just seen example and example over and over again why this is a bad idea -- to the point that when I hear a company like Google talk about a locked-down cloud platform as "making AI accessible to everyone" it feels almost dishonest.

Especially once we start talking about text-to-speech. We can already do a lot of that locally - we should be pretty hesitant about coupling new text-to-speech techniques to strategies that require us to move logic away from local devices onto the cloud.

Re:Updates to Cloud Speech-to-Text and general availability ... by moconnor on Friday August 31, 2018 @01:03AM (#17883076)
Mozilla’s DeepSpeech is available as an offline pre-trained system for English.

The quality is far below Google’s speech API as the model is somewhat out of date and more importantly the training data set is much smaller and less general.

The best pretrained speech to text model I’ve seen is from Baidu’s DeepSpeech 2 repository. They provide pretrained models for English and Chinese based on their internal data. The quality is astonishingly good!

Edit: both of these models can be comfortably run in real-time on a desktop. At Arm I recently worked on a project to run <5% word error rate models in real-time on a mobile phone.

Re:Updates to Cloud Speech-to-Text and general availability ... by dan0- on Friday August 31, 2018 @05:41AM (#17884187)
Any links to Baidu's DeepSpeech 2 pretrained model? I'm likely looking right past it, spent the past few days playing around with Mozilla DeepSpeech and their pretrained model, building a simple little API and webpags to feed it files: https://github.com/AccelerateNetworks/DeepSpeech_Frontend

I really want to put DeepSpeech 2 with Baidu's model up against Mozilla's model and see which is better, seems like it could be quite interesting!

Re:Updates to Cloud Speech-to-Text and general availability ... by aseipp on Friday August 31, 2018 @06:28AM (#17884381)
Re:Updates to Cloud Speech-to-Text and general availability ... by dan0- on Friday August 31, 2018 @05:45PM (#17888784)
Any chance there is a mirror of the BaiduEN8k Model that isn't in China? I'm getting about 20KB/s when trying to download it, and using a DNS override to 180.76.189.142 for cloud.dlnel.org gets me what looks to be a partial file at slightly less than 200MB in size.
Re:Updates to Cloud Speech-to-Text and general availability ... by danShumway on Friday August 31, 2018 @01:13AM (#17883117)
I'm happy to be wrong about that; I was under the impression that DeepSpeech was available as a data set for training, but not as a trained system in and of itself.

My impression is that a lot of the hardware costs from modern AI comes from training and updating the model.

So (speaking as a non-expert) it doesn't seem like there's any technological problem with running a model locally on a private network -- you just need access to the model and you need someone else to generate it. And that's exactly what Google isn't providing. It's like they found a way to turn modern AI into even more of a black box.

At the point where I'm OK consuming someone else's model and not being able to control how it gets updated, then I'm probably also OK with using a compressed, static model and needing to occasionally download and deploy new versions.

Re:Updates to Cloud Speech-to-Text and general availability ... by dan0- on Friday August 31, 2018 @05:29AM (#17884131)
DeepSpeech is not a voice corpus, that would be Mozilla's Common Voice project that Mycroft users are also contributing to.

DeepSpeech offers trained models that are about 70% right, but none of them use the Common Voice corpus yet. I think that plus recent changes to the codebase should produce a much better transcription, but I don't have the GPU resources to go and train a model sadly, Mozilla will hopefully release another trained model soon though!

I am working on a basic web frontend and API for DeepSpeech: https://github.com/AccelerateNetworks/DeepSpeech_Frontend

Also, here is Common Voice: https://voice.mozilla.org/en

Re:Updates to Cloud Speech-to-Text and general availability ... by singularity2001 on Friday August 31, 2018 @05:49AM (#17884225)
Keep up the good work ++
Re:Updates to Cloud Speech-to-Text and general availability ... by singularity2001 on Friday August 31, 2018 @04:58AM (#17884020)
> can be comfortably run in real-time on a desktop

that's progress. how long did it take you to get these things running (including downloads and dependency installation)?

Re:Updates to Cloud Speech-to-Text and general availability ... by dan0- on Friday August 31, 2018 @05:22AM (#17884102)
The downloads total a bit above 2GB for Mozilla Deepspeech 0.1.1, but besides that DeepSpeech is quick to set up and pretty performant on my i5-4200U (half realtime transcription) and its even better on my Ryzen box. Going to do some GPU testing tomorrow, need to clean up the docs on the little web frontend/API I've been trying to get ready for production use: https://github.com/AccelerateNetworks/DeepSpeech_Frontend
Re:Updates to Cloud Speech-to-Text and general availability ... by singularity2001 on Friday August 31, 2018 @05:33AM (#17884152)
I was more interested in 'astonishingly good' Baidu solution. will that install chinese spyware thou? sorry, very cautious about Baidu et al.
Re:Updates to Cloud Speech-to-Text and general availability ... by dan0- on Friday August 31, 2018 @12:22PM (#17886802)
Not sure, but the results and info OP linked to are quite interesting: https://github.com/PaddlePaddle/DeepSpeech#released-models
Re:Updates to Cloud Speech-to-Text and general availability ... by dan0- on Friday August 31, 2018 @05:42AM (#17884196)
Ah, I just asked a similar question of the person you initially replied to. The Baidu DeepSpeech 2 model seems appealing, but from my brief look on Github I haven't found the model files...
Re:Updates to Cloud Speech-to-Text and general availability ... by ramraj07 on Friday August 31, 2018 @08:12AM (#17884837)
Not sure why it would be a worthwhile endeavor to roll up your own text to speech system when basically all major cloud providers give that service for a price, unless this cost would make a significant fraction of your total costs. Unless that's the case, why not use this service until the day comes when Google might raise prices and then we could decide what to do about it? It's still an API call, afterall.

While I agree that Google maps price increase was a bit much, I'm sure Google realizes they can't offer services to businesses and viably keep doing this kind of 180 too ofren, especially if they offer it as part of their Google cloud. So it's not very likely they will pull the rug under this service again.

Re:Updates to Cloud Speech-to-Text and general availability ... by saas_co_de on Friday August 31, 2018 @05:04AM (#17884046)
It is also extremely expensive ($1.44/hr of audio) which really limits its potential. I looked at it for a project but it just didn't make sense.
Re:Updates to Cloud Speech-to-Text and general availability ... by londons_explore on Friday August 31, 2018 @06:20AM (#17884349)
I can't imagine many use cases where $1.44/hr is a significant cost.

If you sell audiobooks, then a one off cost of a few dollars to convert the book to audio form is tiny compared to the authorship of the text.

If you are doing something like turn by turn navigation, clips are typically only a few seconds long, so very cheap, and again, many of your users will be needing the same clip, so no need to pay for it twice.

Re:Updates to Cloud Speech-to-Text and general availability ... by anonymous5133 on Friday August 31, 2018 @05:32AM (#17884149)
I've been using it for one of my projects but it just requires one-time use of the audio. As in, I use the text to speech to create audio files which I just recycle. Overall, it is more effective compared to using my own voice or hiring a voice over person to do it.