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
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"
}Google Gemini TTS API POST
Generates speech audio from the provided text using Google's Gemini Text-to-Speech generation (https://ai.google.dev/gemini-api/docs/speech-generation). Supports single- and multi-speaker output with natural-language style prompting and inline audio tags like [whispers] or [shouting]
LAPLACE TTS API POST
Generates speech audio from the provided text using LAPLACE Text-to-Speech service