Gemini-2.5-pro-preview-tts newbie testing error

Hello, I’m a newbie so pls be pacient :slight_smile:

I’m trying to test the referred model but hitting this error I cannot overcome, any ideas welcome.

# Enable the Vertex AI API 
gcloud services enable aiplatform.googleapis.com

(Wait some mins)

# Run the test curl 
curl -X POST \
-H "Authorization: Bearer $(gcloud auth print-access-token)" \
-H "Content-Type: application/json; charset=utf-8" \
-d '{
  "contents": [
    {
      "role": "user",
      "parts": [
        {
          "text": "The 2.5 Pro model is now active and generating high quality audio."
        }
      ]
    }
  ],
  "generationConfig": {
    "responseModalities": ["AUDIO"],
    "speechConfig": {
      "voiceConfig": {
        "prebuiltVoiceConfig": {
          "voiceName": "Phoebe"
        }
      }
    }
  }
}' \
"https://us-central1-aiplatform.googleapis.com/v1/projects/$(gcloud config get-value project)/locations/us-central1/publishers/google/models/gemini-2.5-pro-preview-tts:streamGenerateContent"

# 5. Error response I cannot understand nor overcome
Your active configuration is: [cloudshell-5496]
[{
  "error": {
    "code": 400,
    "message": "Request contains an invalid argument.",
    "status": "INVALID_ARGUMENT"
  }
}

Thanks,

L

Ok, please ignore, I think I found the problem now. The code was not super clear about the issue, it is now:

  "error": {
    "code": 400,
    "message": "Voice name Phoebe is not supported. Allowed voice names are: achernar, achird, algenib, algieba, alnilam, aoede, autonoe, callirrhoe, charon, despina, enceladus, erinome, fenrir, gacrux, iapetus, kore, laomedeia, leda, orus, puck, pulcherrima, rasalgethi, sadachbia, sadaltager, schedar, sulafat, umbriel, vindemiatrix, zephyr, zubenelgenubi",
    "status": "INVALID_ARGUMENT"
  }
}