Gcloud beta text-to-speech custom-voices train

I’m trying to train a custom voice model for a personal project and have run into a persistent error that I can’t solve. The command gcloud beta text-to-speech custom-voices train consistently fails with the error: ERROR: (gcloud.beta) Invalid choice: 'text-to-speech'.

I believe I have exhausted all standard troubleshooting steps, and I’m hoping someone can provide insight into what might be wrong.

Here is my setup and what I’ve tried:

  • Project ID: (PII Removed by Staff)

  • Command: gcloud beta text-to-speech custom-voices train --project="clonepexe" --location="us-central1" --name="Voz-Ronaldo-Pexe" --description="Modelo de voz treinado para o projeto clonepexe." --dataset-gcs-uri="gs://clonepexe/manifest.csv"

Troubleshooting steps performed:

  1. Verified API is Enabled: I have confirmed multiple times in the Google Cloud Console that the “Cloud Text-to-Speech API” is active and enabled for my project clonepexe.

  2. Updated gcloud Components: I have run gcloud components update. The tool reports that “All components are up to date.”

  3. Reinstalled gcloud Beta Components: The beta components were installed when first running the command.

  4. Reinstalled All gcloud Components: I have run gcloud components reinstall, but the error persists.

  5. Performed a Full Clean Reinstallation: I have completely uninstalled the Google Cloud CLI, deleted the %APPDATA%\gcloud configuration directory, and performed a fresh installation of the latest version. The error still occurs after a fresh gcloud init.

Even after a completely clean installation and verifying the API is enabled, the gcloud tool does not seem to recognize the text-to-speech command group. I am on a basic support plan and cannot open a formal support case.

Is there any other reason why the gcloud CLI would fail to recognize a valid command group? Could this be an account-specific issue?

Thank you for any help you can provide.

ERROR: (gcloud.beta) Invalid choice: ‘text-to-speech’.
Maybe you meant:
gcloud beta interactive
gcloud beta ai-platform explain
gcloud beta anthos apply
gcloud beta anthos export
gcloud beta app gen-config
gcloud beta app repair
gcloud beta beyondcorp operations
gcloud beta builds approve
gcloud beta builds reject
gcloud beta code clean-up

To search the help text of gcloud commands, run:
gcloud help – SEARCH_TERMS