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:
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?