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:
-
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. -
Updated gcloud Components: I have run
gcloud components update. The tool reports that “All components are up to date.” -
Reinstalled gcloud Beta Components: The beta components were installed when first running the command.
-
Reinstalled All gcloud Components: I have run
gcloud components reinstall, but the error persists. -
Performed a Full Clean Reinstallation: I have completely uninstalled the Google Cloud CLI, deleted the
%APPDATA%\gcloudconfiguration directory, and performed a fresh installation of the latest version. The error still occurs after a freshgcloud 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.