Google Speech To Text implementation
vadymstadnyk
HOBBYOP

2 years ago

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

Closed

11 Replies

vadymstadnyk
HOBBYOP

2 years ago

N/A


maddsua
HOBBY

2 years 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

2 years ago

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


maddsua
HOBBY

2 years 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

2 years ago

Yes, GOOGLE_CREDENTIALS 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 GOOGLE_CREDENTIALS.


maddsua
HOBBY

2 years ago

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


vadymstadnyk
HOBBYOP

2 years ago

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


maddsua
HOBBY

2 years ago

How do you set this variable?


vadymstadnyk
HOBBYOP

2 years 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

2 years ago

ok that's weird, because that should definitely work


vadymstadnyk
HOBBYOP

2 years ago

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


Welcome!

Sign in to your Railway account to join the conversation.

Loading...