Google Speech To Text implementation
vadymstadnyk
HOBBYOP

a year ago

Cannot initialize env variable GOOGLE_CREDENTIALS in railway, how can i do it? What the variable should contain?

11 Replies

vadymstadnyk
HOBBYOP

a year ago

N/A


maddsua
HOBBY

a year ago

Wdym? Is this an issue where you cannot add the variable to your service or do you not have that variable in the first place


vadymstadnyk
HOBBYOP

a year ago

I dont know how to name the variable and what should it conatain as a key…


maddsua
HOBBY

a year ago

I would speculate that GOOGCLE_CREDENTIALS is the key (which is also the variable's name). The question is: what should be inside it? An API token? What sort of token?


vadymstadnyk
HOBBYOP

a year ago

Yes, GOOGLECREDENTIALS is a name of variable and as a value (key) is a data from json file which was given by creating service account in google speech api, in local maschine all working, in railway not, obviously something wrong with the variable initialization GOOGLECREDENTIALS.


maddsua
HOBBY

a year ago

You're saying "initialization" like if it isn't literally a text string. What kind of error are you facing?


vadymstadnyk
HOBBYOP

a year ago

the error 500, internal server error, railway cannot reach the google credentials to use google speech to text service.


maddsua
HOBBY

a year ago

How do you set this variable?


vadymstadnyk
HOBBYOP

a year ago

In project variables have created new service variable with Name-GOOGLE_CREDENTIALS, and value is content of json file given from google speech to text service account.


maddsua
HOBBY

a year ago

ok that's weird, because that should definitely work


vadymstadnyk
HOBBYOP

a year ago

I have replaced value of variable on path to the json file, now it works.


Loading...