News for hackers. Stuff that matters.
Re:Google opens access to its speech recognition API by blennon on Wednesday March 23, 2016 @05:00PM (#11348191)
This is HUGE in my opinion. Prior to this, in order to get near state-of-the-art speech recognition in your system/application you either had to have/hire expertise to build your own or pay Nuance a significant amount of money to use theirs. Nuance has always been a "big bad" company in my mind. If I recall correctly, they've sued many of their smaller competitors out of existence and only do expensive enterprise deals. I'm glad their near monopoly is coming to an end.

I think Google's API will usher in a lot of new innovative applications.

Re:Google opens access to its speech recognition API by BorisEm on Wednesday March 23, 2016 @05:38PM (#11348480)
Other "state-of-the-art" speech recognition solutions already exist. For example, Microsoft has been offering it through its Project Oxford service. https://www.projectoxford.ai/speech
Re:Google opens access to its speech recognition API by hardwaresofton on Wednesday March 23, 2016 @05:57PM (#11348594)
Also, CMUSphinx and Julius:

http://cmusphinx.sourceforge.net/

http://julius.osdn.jp/en_index.php

It is amazingly easy to create speech recognition without going out to any API these days.

Re:Google opens access to its speech recognition API by ytjohn on Wednesday March 23, 2016 @06:17PM (#11348713)
I first learned about CMUSphinx from the [Jasper Project](https://jasperproject.github.io/). While Jasper provided an image for the Pi, I decided to go ahead and make a scripted install of CMUSphinx. I spent something like 2 frustrating days attempting to get it installed by hand in a repeatable fashion before giving up.

This was 2 years ago, so maybe it's simple now, but I didn't find it "amazingly easy" back then.

I do have a number of projects where I could definitely use a local speech recognition library. I have used [Python SpeechRecognition](https://github.com/Uberi/speech_recognition/blob/master/exam...) to essentially record and transcribe from a scanner. I wanted to take it further, but google at the time limited the number of requests per day. Today's announcement seems to indicate they will be expanding their free usage, but a local setup would be much better. I'd like to deploy this in a place that might not have reliable Internet.

Re:Google opens access to its speech recognition API by uberi on Wednesday March 23, 2016 @11:46PM (#11350444)
In my experiences, the issues with building CMU Sphinx are mainly unspecified dependencies, undocumented version requirements, and forgetting to sacrifice the goat when the MSVC redistributable installer pops up.

We've written detailed, up-to-date instructions [1] for installing CMU Sphinx, and now also provide prebuilt binaries [2]!

If you're interested in not sending your audio to Google, CMU Sphinx and other libraries (like Kaldi and Julius), are definitely worth a second look.

[1] https://github.com/Uberi/speech_recognition/blob/master/refe... [2] https://github.com/Uberi/speech_recognition/tree/master/thir...

Re:Google opens access to its speech recognition API by dr_zoidberg on Thursday March 24, 2016 @11:28PM (#11358336)
Yeah I'm gonna leave a reply here just in case I need to find this again (already opened tabs, but you never know). This might be big for a stalled project at work. If this can un-stall that, I'll sure owe you a beer ;)
Re:Google opens access to its speech recognition API by hardwaresofton on Thursday March 24, 2016 @02:28PM (#11355143)
Would you mind submitting this documentation to CMU? I get the feeling they'd love to at least host a link to them or something to enhance their own documentation?
Re:Google opens access to its speech recognition API by ytjohn on Sunday March 27, 2016 @08:22PM (#11372081)
Thanks for providing this. Will definitely give it a fresh look.
Re:Google opens access to its speech recognition API by simcop2387 on Wednesday March 23, 2016 @07:42PM (#11349319)
That sounds like my experience with it from about 5 years ago or so. I gave up on it also. It also didn't help that CMUSphinx has had more than one version in development in different languages.
Re:Google opens access to its speech recognition API by hardwaresofton on Wednesday March 23, 2016 @09:51PM (#11350001)
I would note that as a positive... But yeah, 5 years ago things were much much rougher (which is partly why I didn't think it got so much press).

But these days, if you go all the way through their tutorial, and give it a proper read, it's very doable to set up.

Re:Google opens access to its speech recognition API by sebak on Thursday March 24, 2016 @05:14AM (#11351464)
Unfortunately, the situation hasn't improved much. Besides, even if you get it set up, the quality of the recognition isn't even close to the one from Google.
Re:Google opens access to its speech recognition API by chetatkinsdiet on Wednesday March 23, 2016 @09:42PM (#11349960)
As someone who's worked with a lot of these engines, Nuance and IBM are the only really high quality players in the space. CMUSphinx and Julius are fine for low volume operations where you don't need really accurate response rates, but if you want high accuracy neither comes close from my experience.
Re:Google opens access to its speech recognition API by hardwaresofton on Wednesday March 23, 2016 @09:50PM (#11349993)
Right, but they do offer you a fantastic starting point. If Nuance is 100%, I'd say CMUSphinx is at least 40%.

Also, they give you the tools and knowledge to build better models (and explain the theory), which is where most of the competitive advantage is IMHO.

Re:Google opens access to its speech recognition API by IshKebab on Thursday March 24, 2016 @05:24AM (#11351503)
As someone who has actually done objective tests, Google are by far the best, Nuance are a clear second. IBM Watson is awful though. Actually the worst I've tested.
Re:Google opens access to its speech recognition API by Pafnouti on Thursday March 24, 2016 @10:24AM (#11353013)
Do you have a report of your tests? I'm interested in using speech recognition, but there are many start-ups and big players that it would be quite time consuming to get a quality/price analysis.
Re:Google opens access to its speech recognition API by dr_zoidberg on Thursday March 24, 2016 @11:31PM (#11358343)
For the "dialect" of spanish that we speak in Argentina, Watson misses every single word. So, to me, CMUSphinx is valuable in that it allows me to tweak it, while IBM miserably fails at every word. Must've been trained with Spain or Mexican "neutral" spanish.

Googles engine also works fine (have been trying it with the phones), but the pricing may or may not be a deal breaker.

Re:Google opens access to its speech recognition API by blennon on Wednesday March 23, 2016 @07:35PM (#11349266)
Is Julius really state-of-the-art? Looks like they use n-gram and HMMs. Those were the methods that achieve SotA 5+ years ago. My understanding is that Google and Microsoft are using end-to-end (or nearly) neural network models; these outperformed the older methods a few years ago. Not sure how CMUSphinx works under the hood.
Re:Google opens access to its speech recognition API by hardwaresofton on Wednesday March 23, 2016 @09:54PM (#11350014)
They might not be considered state-of-the-art (if you consider both approaches in the same category), but they are definitely one valid approach to voice recognition, which works surprisingly well.

CMUSphinx is not a neural network based system, they do use language and acoustic modeling.

Re:Google opens access to its speech recognition API by dharma1 on Thursday March 24, 2016 @11:53AM (#11353796)
check out https://github.com/yajiemiao/eesen for LSTM and CTC based library instead of HMMs
Re:Google opens access to its speech recognition API by FranOntanaya on Wednesday March 23, 2016 @06:06PM (#11348647)
CMUSphinx is really easy to set up, and then being able to train it for one's specific domain probably beats state of the art with one-size-fits-all training.
Re:Google opens access to its speech recognition API by dheera on Thursday March 24, 2016 @10:27AM (#11353026)
> It is amazingly easy to create speech recognition without going out to any API these days.

Not really. The hard part is not the algorithm, it is the millions of samples of training data that have gone behind Google's system. They pretty much have every accent and way of speaking covered in their system which is what allows them to deliver such a high-accuracy speaker-independent system.

CMUSphinx is remarkable as an academic milestone, but in all honesty it's basically unusuable from a product standpoint. If your speech recognition is only 95% accurate, you're going to have a lot of very unhappy users. Average Joes are used to things like microwave ovens, which work 99.99% of the time, and expect new technology to "just work".

CMUSphinx is also an old algorithm; AFAIK Google is neural-network based.

Re:Google opens access to its speech recognition API by dharma1 on Thursday March 24, 2016 @11:52AM (#11353787)
Eesen looks promising, uses LSTM and CTC rather than older tech.

https://github.com/yajiemiao/eesen

Baidu open sourced their CTC implementation

https://github.com/baidu-research/warp-ctc

I think we will have an easy to install OSS speech recognition library and accurate pretrained networks not far off from Google/Alexa/Baidu, running locally rather than in the cloud, within 1-2 years. Can't wait.

Re:Google opens access to its speech recognition API by hackuser on Wednesday March 23, 2016 @07:53PM (#11349391)
From the Microsoft Project Oxford Speech API link:

Speech Intent Recognition

... the server returns structured information about the incoming speech so that apps can easily parse the intent of the speaker, and subsequently drive further action. Models trained by the Project Oxford LUIS service are used to generate the intent.

Do others offer something like this?

Re:Google opens access to its speech recognition API by jjwiseman on Thursday March 24, 2016 @01:42AM (#11350812)
Microsoft LUIS is almost identical to the intent classification and entity extraction in the Alexa Skills Kit, but it's easier to use because you can pipe in your own text from any source instead of having to use a specific speech recognition engine. LUIS also has a pretty nice web interface that prompts you to label utterances that it's seen that it had trouble with.
Re:Google opens access to its speech recognition API by IshKebab on Thursday March 24, 2016 @05:24AM (#11351504)
But Google's is by far the best.
Re:Google opens access to its speech recognition API by bossx on Thursday March 24, 2016 @08:01AM (#11352109)
Exactly, this is what people are missing when they are trying to compare Google's speech recognition to other services. Google uses deep neural-networks to continuously train and improve the quality of their speech recognition, they get their training data from the hundreds of millions of Android users around the world using speech-to-text every day. No other company has a comparable amount of training data, continuously being expanded. http://googleresearch.blogspot.ca/2015/09/google-voice-searc...
Re:Google opens access to its speech recognition API by afsina on Thursday March 24, 2016 @07:14AM (#11351908)
Kaldi is probably the best option now. https://github.com/kaldi-asr/kaldi
Re:Google opens access to its speech recognition API by ericflo on Wednesday March 23, 2016 @05:07PM (#11348246)
Interesting - I saw this as a defensive response to the rising number of developers using Amazon's Alexa APIs, rather than anything related to Nuance.
Re:Google opens access to its speech recognition API by dharma1 on Thursday March 24, 2016 @11:57AM (#11353827)
It's probably been on their roadmap for a while, before Alexa came out. Re: Alexa/echo - think there is an opportunity for someone to manufacture cheap USB array mics for far field capture.

Still, having this paid and cloud based puts a limit to types of things where you'd use it. I will use it in my own apps for now but will swap to a OSS speech recognition library running locally as soon as one emerges that is good enough.

Re:Google opens access to its speech recognition API by F_J_H on Thursday March 24, 2016 @06:21AM (#11351707)
You're right - this could lead to a lot of new innovation as a bunch of developers who wouldn't have bothered before can now start hacking away to see what they can do.

I've been thinking a lot lately about where the next major areas of technology-driven disruption might be in terms of employment impact, and things like this make me wonder how long it will be before call centers stacked wall to wall with customer service reps become a relic of the past...

Re:Google opens access to its speech recognition API by idiot99 on Wednesday March 23, 2016 @06:32PM (#11348790)
If it's anything like Googles other APIs, people will build applications on top of it, and then Google will decide to shut down the API with no notice.

Fun to play with, but don't expect it to last...

Re:Google opens access to its speech recognition API by boulos on Wednesday March 23, 2016 @08:06PM (#11349466)
That's incorrect. This is a Google Cloud Platform service and when it reaches General Availability (GA) it will be subject to our Deprecation Policy. Just like Compute Engine, Cloud Storage, etc. requires us to give at least a 1 year heads up.

Disclosure: I work on Compute Engine.

Re:Google opens access to its speech recognition API by oelmekki on Thursday March 24, 2016 @04:15AM (#11351300)
It's nice there's a policy around that, but I can understand the fears of someone considering using this to start a product - or even worse, a business.

Google has an history of shutting down useful products, why people should trust that one for long term integration?

Re:Google opens access to its speech recognition API by boulos on Thursday March 24, 2016 @06:29AM (#11351738)
Because we don't have a history of violating promises like this when done in writing? Seriously, I'd love to call us just "Cloud Platform" so you don't have to think "oh yeah, those guys cancelled reader on me" but if you look at the Cloud products we don't play games with this (partly because we hold ourselves to our binding Deprecation Policy, but mostly because we really care).
Re:Google opens access to its speech recognition API by zelcon on Thursday March 24, 2016 @07:14AM (#11351907)
Google Search API, Autocomplete, Finance, Voice all closed with tons of active users. I'm not blaming Google; they were acting in their best interest, but the consequence is less enthusiasm for building software that depends on their APIs.

IMO a better option for Google, when considering to close an API, is to enforce payment and hike the price enough to justify maintaining it. If and only if enough users drop out with the higher price, then shut it down for good.

Re:Google opens access to its speech recognition API by dragonwriter on Thursday March 24, 2016 @03:09AM (#11351106)
Even outside of services with a formal deprecation policy, Google rarely shuts anything down with no notice (their frequently cited shutdowns had long notice.)
Re:Google opens access to its speech recognition API by jamesdwilson on Wednesday March 23, 2016 @05:23PM (#11348382)
Has Google sued many of their smaller competitors out of business?
Re:Google opens access to its speech recognition API by TuringNYC on Wednesday March 23, 2016 @08:49PM (#11349704)
No, and they dont need to. They have too many other advantages -- low customer acquisition cost via already-present cloud customers, economies of scale, ease of hiring the best talent, natural integrations via their android platform...who needs nastiness when you have all these amazing benefits!
Re:Google opens access to its speech recognition API by grahamburger on Wednesday March 23, 2016 @05:42PM (#11348506)
Isn't Google's strategy typically to just start offering the same services as their smaller competitors but for free and then let them starve? ... Kind of like what's probably happening here? Sounds like this is terrible news for Nuance, for example.
Re:Google opens access to its speech recognition API by nl on Wednesday March 23, 2016 @06:16PM (#11348711)
No