Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Speech: 404 Unable to find PhraseSet from project

I have a little project with google speech-to-text module that works fine without adaptation. Now I want to add a phrase set for it. For this I have created one in web UI:

google1.png

But for some reason the python lib says it is unable to find it (instead of ellipsis there is project id) :

 

from google.cloud.speech_v2 import (
    GetPhraseSetRequest,
    SpeechClient,
)


client = SpeechClient()
request = GetPhraseSetRequest(name='projects/.../locations/global/phraseSets/meow')
phrase_set = client.get_phrase_set(request)
google.api_core.exceptions.NotFound: 404 Unable to find PhraseSet meow from project ...

 

 I run the project under my account using gcloud auth login, I own the project, so I guess I have all the rights. Similar procedure of getting recognizer succeeded. What's worng?

0 2 901
2 REPLIES 2