Google · Capability

Google Gemini API — Speech Generation

Google Gemini API — Speech Generation. 1 operations. Lead operation: Google Generate Speech (Text-to-Speech). Self-contained Naftiko capability covering one Google business surface.

Run with Naftiko GoogleSpeech Generation

What You Can Do

POST
Generatespeech — Google Generate Speech (Text-to-Speech)
/v1/models/ttsmodel-generatecontent

MCP Tools

google-generate-speech-text-speech

Google Generate Speech (Text-to-Speech)

Capability Spec

gemini-speech-generation.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Google Gemini API — Speech Generation
  description: 'Google Gemini API — Speech Generation. 1 operations. Lead operation: Google Generate Speech (Text-to-Speech).
    Self-contained Naftiko capability covering one Google business surface.'
  tags:
  - Google
  - Speech Generation
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GOOGLE_API_KEY: GOOGLE_API_KEY
capability:
  consumes:
  - type: http
    namespace: gemini-speech-generation
    baseUri: https://generativelanguage.googleapis.com/v1beta
    description: Google Gemini API — Speech Generation business capability. Self-contained, no shared references.
    resources:
    - name: models-ttsModel}:generateContent
      path: /models/{ttsModel}:generateContent
      operations:
      - name: generatespeech
        method: POST
        description: Google Generate Speech (Text-to-Speech)
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: ttsModel
          in: path
          type: string
          description: The TTS model to use for speech generation
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: apikey
      key: x-goog-api-key
      value: '{{env.GOOGLE_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: gemini-speech-generation-rest
    port: 8080
    description: REST adapter for Google Gemini API — Speech Generation. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/models/ttsmodel-generatecontent
      name: models-ttsmodel-generatecontent
      description: REST surface for models-ttsModel}:generateContent.
      operations:
      - method: POST
        name: generatespeech
        description: Google Generate Speech (Text-to-Speech)
        call: gemini-speech-generation.generatespeech
        with:
          ttsModel: rest.ttsModel
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: gemini-speech-generation-mcp
    port: 9090
    transport: http
    description: MCP adapter for Google Gemini API — Speech Generation. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: google-generate-speech-text-speech
      description: Google Generate Speech (Text-to-Speech)
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: gemini-speech-generation.generatespeech
      with:
        ttsModel: tools.ttsModel
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.