GoogleCloudPlatform / firebase-extensions

Apache License 2.0
71 stars 35 forks source link

Can not run speech to text extension locally #506

Closed pascalbe-dev closed 1 week ago

pascalbe-dev commented 1 month ago

[REQUIRED] Step 2: Describe your configuration

COLLECTION_PATH=transcriptions
ENABLE_AUTOMATIC_PUNCTUATION=true
EXTENSION_BUCKET=project-stage.appspot.com
LANGUAGE_CODE=de-DE
LOCATION=europe-west3
MODEL=default

I replaced the real project name.

[REQUIRED] Step 3: Describe the problem

Steps to reproduce:

"firestore": {
    "rules": "firestore/firestore.rules",
    "indexes": "firestore/firestore.indexes.json"
  },
  "storage": {
    "rules": "storage/storage.rules"
  },
  "extensions": {
    "speech-to-text": "googlecloud/speech-to-text@0.1.5"
  },
Expected result
Actual result

My thoughts

-> how can I get it working with my storage locally?

pr-Mais commented 4 weeks ago

Thanks for reporting, I can reproduce the issue locally, looking into it!

cabljac commented 1 week ago

I dont think this is possible, it's blocked as the speech to text API is a long-running operation, which writes to a production bucket.

cabljac commented 1 week ago

see https://github.com/GoogleCloudPlatform/firebase-extensions/issues/299 for example

pascalbe-dev commented 1 week ago

I see. If that's how it is, then it's a pity. Would be great to really work with the extension also locally.

Keeping this one open. Let me know, if you do for sure not plan to change it. Then we could close it.

cabljac commented 1 week ago

I think let's close this as it's essentially a duplicate of #299

I think we can do something here, but unfortunately it won't be changed in the near future. I'm open to suggestions/a PR though :) I don't know how we'd get around the long-running operation though

cabljac commented 1 week ago

closing as dupe of #299