I am using the the gcloud ml speech recognize command line tool to test speech to text transcriptions. I am looking for a way to set the boost level for phrases/hints that are supplied in the --hints argument - similar to what can be set in RecognitionConfig of the REST API.
The gcloud ml speech recognize command-line tool may not provide an option to set the boost level for hints or phrases. This is because the gcloud ml speech recognize tool uses the older *v1* version of the Speech-to-Text API, which doesn’t support setting boost levels for hints or phrases.
However, you can use the REST API directly to set boost levels for hints and phrases. You can do this by creating a RecognitionConfig JSON object with the appropriate boost levels, and passing it to the Speech-to-Text API via a POST request. You can use a program like *curl* or *httpie* to send a *POST* request to the Speech-to-Text API with this RecognitionConfigJSON object.To use the boost capability, you must activate the Speech-to-Text API’s v1p1beta1 version.