ThioJoe / Auto-Synced-Translated-Dubs

Automatically translates the text of a video based on a subtitle file, and also uses AI voice to dub the video, and synced using the subtitle's timings
GNU General Public License v3.0
1.53k stars 152 forks source link

Cloud IAM permission 'cloudtranslate.generalModels.predict' denied. " #44

Open a-russkikh opened 1 year ago

a-russkikh commented 1 year ago

Hi, I`m getting this error even after I was successfully logged in to my google account and 'token.pickle' got created.

    raise HttpError(resp, content, uri=self.uri)
googleapiclient.errors.HttpError: <HttpError 403 when requesting https://translation.googleapis.com/v3beta1/projects/sasa:translateText?alt=json returned "Cloud IAM permission 'cloudtranslate.generalModels.predict' denied.". Details: "Cloud IAM permission 'cloudtranslate.generalModels.predict' denied. "

image

Thank you.

TharunDharmaraj commented 1 year ago

Hey...Same here...Can you tell me how to overcome this?

TharunDharmaraj commented 1 year ago

image

TharunDharmaraj commented 1 year ago

Fixed.

I formatted my SRT file to the correct format and it fixed.

a-russkikh commented 1 year ago

Could you tell me what`s wrong with mine?

1
00:00:07,000 --> 00:02:06,000
Martin Luther King Jr.

2
00:02:08,000 --> 00:05:07,000
Day is a federal holiday in the United States,

3
00:05:07,000 --> 00:11:01,000
observed on the third Monday of January each year, in
honor of Martin Luther King Jr.
ThioJoe commented 1 year ago

Could you tell me what`s wrong with mine?

@a-russkikh It actually looks like he had a totally different error than your initial one

Alokkumar8 commented 10 months ago

i solved it by signing in with same account that i created google cloud project with