#gemini tts

1 messages · Page 1 of 1 (latest)

grave finch
#

I was looking in the documentation and can't find where this block would go within the openclaw.json:

{
messages: {
tts: {
auto: "always",
provider: "google",
providers: {
google: {
model: "gemini-3.1-flash-tts-preview",
voiceName: "Kore",
},
},
},
},
}

tropic mirageBOT
primal fractalBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

sharp siloBOT
#

It goes at the top level of openclaw.json, under messages.

So if you already have other top-level sections like gateway, models, or channels, it would look like:

{
  gateway: {
    // ...
  },

  models: {
    // ...
  },

  messages: {
    tts: {
#
      auto: "always",
      provider: "google",
      providers: {
        google: {
          model: "gemini-3.1-flash-tts-preview",
          voiceName: "Kore",
        },
      },
    },
  },

  channels: {
    // ...
  },
}
grave finch
#

everything in my openclaw.json has keys quoted, can it be either way?

sharp siloBOT
#

Yep, either way is fine.

openclaw.json is parsed as JSON5, so these are both valid:

{
  messages: {
    tts: {
      auto: "always"
    }
  }
}

and

#
{
  "messages": {
    "tts": {
      "auto": "always"
    }
  }
}

If your file already uses quoted keys, I’d just keep it consistent and use quotes everywhere.

A few handy JSON5 extras:

  • trailing commas are okay
  • comments are okay
  • unquoted keys are okay when they’re simple identifiers
#

So your block with quotes would be:

{
  "messages": {
    "tts": {
      "auto": "always",
      "provider": "google",
      "providers": {
        "google": {
          "model": "gemini-3.1-flash-tts-preview",
          "voiceName": "Kore"
        }
      }
    }
  }
#
}