biemster / gasr

Google Chrome SODA Offline Speech Recognition command line client
https://hackaday.io/project/164399-android-offline-speech-recognition-natively-on-pc
150 stars 18 forks source link

Where to get libsoda? #1

Closed sk- closed 3 years ago

sk- commented 3 years ago

@biemster Could you add a paragraph hinting at where one could get the compiled library and the data to run it. I looked everywhere in the repo, but it seems they haven't yet put any of the sources there, even though it's supposed to be on /third_party.

biemster commented 3 years ago

I doubt that SODA will ever be open sourced, as the speech team at google wants to keep there work close to the chest, as can be read on their review system:

The Speech team was concerned about unauthorized repurposing of their components,
so we initially implemented the client that called the SODA binary in an internal repo to
obfuscate the interface between Chrome and SODA.

The library is distributed as an extension, as you can see in soda_component_installer.cc. So you need to download this the same way as the chrome process would (or wait for Chrome 90, and find it on your hard drive somewhere). On top of that, the functionality is secured with an API key and stack verification, so when you get your hands on the blob, you'll need to get around that as well.

I intentionally did not provide any info on how to obtain libsoda, mainly because Google does not want any unauthorized repurposing. Which is understandable, a LOT of work went into it. But if you dig deep enough you'll get there for sure, and you can use the project page on hackaday to ask questions without info spilling public.

jacobweber commented 3 years ago

Looks like they've even removed the libsoda binaries and language pack files from Chrome 91. So better save your copy from Chrome 90. Not sure where they're stored now.

ftamburin commented 2 years ago

Could you please indicate me where to download Chrome v90 working on linux? I have downloaded version 90.0.4430.72-1, voice search works, but libsoda is not there. How can I get the extension or, maybe, an older version of Chome 90 containing libsoda? Many thanks for your help.

biemster commented 2 years ago

You don't need specifically v90, just a newer version than 90. Any latest chrome or chromium will do.

cppxaxa commented 2 years ago

Hi @biemster, my chrome version is 98.0.4758.102 (Official Build) (64-bit) windows. The accessibility option is present and enabled, I tried looking for the lib dll, but I'm unable to find it. Could you please guide me on the location? Thanks !

biemster commented 2 years ago

@cppxaxa It should be in your chrome profile directory, but I don't have any windows machines to check this on so I can't really help you here.

cppxaxa commented 2 years ago

Thanks for the reply @biemster , confirming my resolution I'm able to find out the "SODA.dll" and "SODALanguagePacks\en-US\1.0.2"

Although I moved a step forward, and I'm yet to try compiling and patching (currently facing issues though).