OBS-captions-plugin icon indicating copy to clipboard operation
OBS-captions-plugin copied to clipboard

Google Speech-To-Text API

Open klevismino opened this issue 4 years ago • 17 comments

Hello

Congratulations on the great work you have done! I also checked your reddit post. Do you plan to support Google's official API for Speech-To-Text? You could add that as an option, where the user can provide his GCP API key.

Thanks and best regards Klevis

klevismino avatar Mar 05 '21 12:03 klevismino

Hi

Yeah I already implemented support for the GRPC API a while ago, there's a working (but now outdated) version in the #grpc-public branch and I've kept it up to date locally. I was planning to transition to that fully a while ago but things got held up, but it should happen eventually (hopefully).

ratwithacompiler avatar Mar 06 '21 16:03 ratwithacompiler

Is there any way we can help get this moved along a bit? I think the current API is rate-limiting or something as it keeps stopping. Is there a way we can contribute somehow?

PS Thanks for the excellent work though, it's superb.

WiredUK avatar Mar 06 '21 22:03 WiredUK

I have tried to build your GRPC branch but it relies on private projects in DevOps so I'm stuck. I wanted to give it a go and embed my own API key into it but I'm at a brick wall. I'm not kidding that we (https://sitp.online) would contribute some money to you if we could get this plugin to work reliably. We're a volunteer organisation but could spare a small amount of money to help.

WiredUK avatar Mar 09 '21 22:03 WiredUK

Yeah I've been working on that over the last couple days, updated version is now on the main branch here. Setting up working Windows builds involving GRPC is always quite the hassle unfortunately.

Windows builds are still not fully working yet and the current code also requires OBS functions for virtualcam support that aren't in any stable release yet so currently it only works with an OBS compiled with those changes until OBS 27 comes out.

But if you do really wanna run it you can get OBS builds from current master branch from their CI builds.

Latest one: https://github.com/obsproject/obs-studio/runs/2063443158 and just download the winbuild there https://dev.azure.com/obsjim/obsjim/_build/results?buildId=6251&view=artifacts&pathAsName=false&type=publishedArtifacts

Static build of the plugin with the GRPC API: obs_google_caption_plugin windows grpc static testing.zip which should in theory work with that (did on my machine at least but who knows). Just has a API Key value in the settings.

ratwithacompiler avatar Mar 10 '21 00:03 ratwithacompiler

Ohh actually nevermind about needing a brand new OBS version, this one should work in official OBS 26.1.1: obs_google_caption_plugin groc static 26.1.1.zip

Just commented out the virtucalcam stuff relying on new OBS real quick but should otherwise work fine.

ratwithacompiler avatar Mar 10 '21 01:03 ratwithacompiler

Works like a charm so far, will give it some more testing when I get a chance (maybe tonight) and report back. Thank you for being so responsive, it's really appreciated! Do you have a ko-fi or something like that set up? I'd like to, at the very least, buy you a coffee!

WiredUK avatar Mar 10 '21 09:03 WiredUK

Oh, and if you have the Linux version too, that would be fantastic!

WiredUK avatar Mar 10 '21 14:03 WiredUK

No problem! Yeah I kinda have a ko-fi https://ko-fi.com/ratuin but it's paypal only since I never got around to setting up stripe.

For Linux and Mac the CI builds for the GRPC versions should just work in theory: https://dev.azure.com/ratwithacompiler/OBS-captions-plugin/_build/results?buildId=677&view=artifacts&pathAsName=false&type=publishedArtifacts ,only Windows is a bit more annoying with loading in older versions of OBS.

ratwithacompiler avatar Mar 10 '21 21:03 ratwithacompiler

We could do a direct PayPal if you prefer that? Going to get you some money tonight, you've earned it!

WiredUK avatar Mar 11 '21 17:03 WiredUK

Thanks, not necessary but very much appreciated! I think Ko-Fi goes directly from paypal to paypal without them in the middle already to get the 0% fee thing they advertise so should be the same I believe.

ratwithacompiler avatar Mar 11 '21 19:03 ratwithacompiler

OK, you should have a bit of money in there now from SitPO. Enjoy, and many thanks for the hard work.

WiredUK avatar Mar 12 '21 14:03 WiredUK

@WiredUK Ohh wow. Got it. Thank you very much!! Helps a lot!

ratwithacompiler avatar Mar 13 '21 21:03 ratwithacompiler

Hi, Upgraded to OBS 27 this morning saw that there was also an update to this plugin. After updating it, my API field was removed. I then remembered this thread, and added the DLL back in. Everything works fine, but I wanted to query about whether we can get this as a packaged version for v27 with the API field intact?

Great plugin btw!

esteinborn avatar Jul 02 '21 15:07 esteinborn

You can get the GRPC builds with key input for all versions from the CI but it's a bit hard to navigate on Github, findable via the commits section and the green CI checkmarks and following the links to Azure CI.

But probably easiest to get them from here: https://dev.azure.com/ratwithacompiler/OBS-captions-plugin/_build?definitionId=7 Click the latest version and then Artifacts and then download the GRPC version for you platform.

Direct link for 27, you'll want[platform]_GRPC not the http ones, just download the .zip https://dev.azure.com/ratwithacompiler/OBS-captions-plugin/_build/results?buildId=712&view=artifacts&pathAsName=false&type=publishedArtifacts

ratwithacompiler avatar Jul 02 '21 19:07 ratwithacompiler

Are these GRPC builds still being offered? I'm not seeing artifacts for the latest versions in the links above.

APaulSys avatar Jan 24 '23 20:01 APaulSys

@APaulSys yeah GRPC versions are part of all builds still but looks like the artifacts expired after 3 months.

Ran new ones now https://dev.azure.com/ratwithacompiler/OBS-captions-plugin/_build/results?buildId=858&view=artifacts&type=publishedArtifacts

ratwithacompiler avatar Jan 24 '23 21:01 ratwithacompiler

Any possibility of getting another azure run?

theroboben avatar Dec 19 '23 19:12 theroboben