Subspace Institute
Background Decoration

Google Cloud Text-to-Speech (Gemini-TTS)

Generates speech audio using Google's Cloud Text-to-Speech API with Gemini-TTS models (https://docs.cloud.google.com/text-to-speech/docs/gemini-tts). Unlike the AI Studio Gemini path, this returns native MP3, OGG_OPUS, M4A, etc. without server-side conversion. Always uses the global endpoint so all four Gemini-TTS models are available

POST
/tts-google-cloud

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://edge-workers.laplace.cn/laplace/tts-google-cloud" \  -H "Content-Type: application/json" \  -d '{    "text": "感谢ドラゴンラプラスWeChat的SC:一发sc没被念到我就冷汗直流心跳加速头皮发麻双手痉挛两腿打颤,还不好意思刷弹幕说你漏了,我好怕你看到了装作没看到。我的sc通常很短只有一小时,只有短短的3600秒,但它存在的时候,我会用心跳来为它倒数。私のBANを解除してください。もう二度とスパムしません😭",    "projectId": "string",    "accessToken": "string"  }'
null
{
  "success": false,
  "message": "string",
  "code": 0,
  "status": "string"
}
{
  "success": false,
  "message": "string",
  "code": 0,
  "status": "string"
}
{
  "success": false,
  "message": "string",
  "code": 0,
  "status": "string"
}
{
  "success": false,
  "message": "string",
  "code": 0,
  "status": "string"
}
{
  "success": false,
  "message": "string",
  "code": 0,
  "status": "string"
}
{
  "success": false,
  "message": "string",
  "code": 0,
  "status": "string"
}
{
  "success": false,
  "message": "string",
  "code": 0,
  "status": "string"
}