{
  "id": "04ac1edd-ea0c-4b50-aa6c-558507dabc3e",
  "revision": 0,
  "last_node_id": 3,
  "last_link_id": 1,
  "nodes": [
    {
      "id": 1,
      "type": "GeminiTextToDialog",
      "pos": [
        600,
        40
      ],
      "size": [
        400,
        352
      ],
      "flags": {},
      "order": 0,
      "mode": 0,
      "properties": {
        "Node name for S&R": "GeminiTextToDialog"
      },
      "inputs": [
        {
          "localized_name": "model",
          "name": "model",
          "type": "COMBO",
          "widget": {
            "name": "model"
          },
          "link": null
        },
        {
          "localized_name": "text",
          "name": "text",
          "type": "STRING",
          "widget": {
            "name": "text"
          },
          "link": null
        },
        {
          "localized_name": "speaker_1_name",
          "name": "speaker_1_name",
          "type": "STRING",
          "widget": {
            "name": "speaker_1_name"
          },
          "link": null
        },
        {
          "localized_name": "speaker_1_language",
          "name": "speaker_1_language",
          "type": "COMFY_DYNAMICCOMBO_V3",
          "widget": {
            "name": "speaker_1_language"
          },
          "link": null
        },
        {
          "localized_name": "voice",
          "name": "speaker_1_language.voice",
          "type": "COMBO",
          "widget": {
            "name": "speaker_1_language.voice"
          },
          "link": null
        },
        {
          "localized_name": "speaker_1_style",
          "name": "speaker_1_style",
          "type": "STRING",
          "widget": {
            "name": "speaker_1_style"
          },
          "link": null
        },
        {
          "localized_name": "speaker_2_name",
          "name": "speaker_2_name",
          "type": "STRING",
          "widget": {
            "name": "speaker_2_name"
          },
          "link": null
        },
        {
          "localized_name": "speaker_2_language",
          "name": "speaker_2_language",
          "type": "COMFY_DYNAMICCOMBO_V3",
          "widget": {
            "name": "speaker_2_language"
          },
          "link": null
        },
        {
          "localized_name": "voice",
          "name": "speaker_2_language.voice",
          "type": "COMBO",
          "widget": {
            "name": "speaker_2_language.voice"
          },
          "link": null
        },
        {
          "localized_name": "speaker_2_style",
          "name": "speaker_2_style",
          "type": "STRING",
          "widget": {
            "name": "speaker_2_style"
          },
          "link": null
        },
        {
          "localized_name": "seed",
          "name": "seed",
          "type": "INT",
          "widget": {
            "name": "seed"
          },
          "link": null
        }
      ],
      "outputs": [
        {
          "localized_name": "AUDIO",
          "name": "AUDIO",
          "type": "AUDIO",
          "links": [
            1
          ]
        }
      ],
      "widgets_values": [
        "gemini-3.8-flash-tts",
        "Ellis: The forecast said clear skies all week.\nMara (dry): The forecast also said the generator was fine.\nEllis: <short pause> Give me the flashlight.\nMara (quietly, close to the mic): It is already in your hand.",
        "Ellis",
        "English (US)",
        "Iapetus (male, clear)",
        "Tired, matter-of-fact, low volume.",
        "Mara",
        "English (US)",
        "Sulafat (female, warm)",
        "Dry and unimpressed, with a hint of amusement.",
        42,
        "randomize"
      ],
      "widgets_values_named": {
        "model": "gemini-3.8-flash-tts",
        "text": "Ellis: The forecast said clear skies all week.\nMara (dry): The forecast also said the generator was fine.\nEllis: <short pause> Give me the flashlight.\nMara (quietly, close to the mic): It is already in your hand.",
        "speaker_1_name": "Ellis",
        "speaker_1_language": "English (US)",
        "speaker_1_language.voice": "Iapetus (male, clear)",
        "speaker_1_style": "Tired, matter-of-fact, low volume.",
        "speaker_2_name": "Mara",
        "speaker_2_language": "English (US)",
        "speaker_2_language.voice": "Sulafat (female, warm)",
        "speaker_2_style": "Dry and unimpressed, with a hint of amusement.",
        "seed": 42,
        "control_after_generate": "randomize"
      },
      "color": "#432",
      "bgcolor": "#653"
    },
    {
      "id": 2,
      "type": "SaveAudioAdvanced",
      "pos": [
        1080,
        40
      ],
      "size": [
        270,
        160
      ],
      "flags": {},
      "order": 2,
      "mode": 0,
      "properties": {},
      "inputs": [
        {
          "localized_name": "audio",
          "name": "audio",
          "type": "AUDIO",
          "link": 1
        },
        {
          "localized_name": "filename_prefix",
          "name": "filename_prefix",
          "type": "STRING",
          "widget": {
            "name": "filename_prefix"
          },
          "link": null
        },
        {
          "localized_name": "format",
          "name": "format",
          "type": "COMFY_DYNAMICCOMBO_V3",
          "widget": {
            "name": "format"
          },
          "link": null
        },
        {
          "localized_name": "quality",
          "name": "format.quality",
          "type": "COMBO",
          "widget": {
            "name": "format.quality"
          },
          "link": null
        },
        {
          "localized_name": "audioUI",
          "name": "audioUI",
          "type": "AUDIO_UI",
          "widget": {
            "name": "audioUI"
          },
          "link": null
        }
      ],
      "outputs": [
        {
          "localized_name": "audio",
          "name": "audio",
          "type": "AUDIO",
          "links": null
        }
      ],
      "widgets_values": [
        "api_gemini_38_flash_text_to_dialog",
        "mp3",
        "V0"
      ],
      "widgets_values_named": {
        "filename_prefix": "api_gemini_38_flash_text_to_dialog",
        "format": "mp3",
        "format.quality": "V0"
      }
    },
    {
      "id": 3,
      "type": "MarkdownNote",
      "pos": [
        40,
        40
      ],
      "size": [
        520,
        660
      ],
      "flags": {},
      "order": 1,
      "mode": 0,
      "properties": {},
      "inputs": [],
      "outputs": [],
      "widgets_values": [
        "# Google Gemini 3.8 · Text to Dialog\n\nTwo speakers, one audio track. Every line in `text` is a turn, and both voices are mixed in order.\n\n## How to use this template\n\n- `text` holds one line per turn, written `Name: line`. The names must match `speaker_1_name` and `speaker_2_name`.\n- `Name (whispering): line` gives that one line its own delivery; `speaker_1_style` / `speaker_2_style` set the default for all of that speaker's lines.\n- A line without a name continues the turn above it, so a paragraph can sit under one speaker.\n- `speaker_1_language` / `speaker_2_language` pick each voice independently — two different languages in one dialog is allowed.\n- The whole script is capped at 5,000 characters. `model` switches between **Flash TTS** and **Flash-Lite TTS**.\n- `seed` only decides whether the node re-runs; the same seed is not the same take.\n- `Save Audio (Advanced)` writes mp3 at V0 by default — change `format` to wav or flac to keep the untouched file.\n\n## Writing the lines\n\n- Interruptions: end one line with a dash and open the next turn with a dash.\n- Put direction in the parenthesised style, not in the line: `Mara (dry, almost bored): ...`.\n- Keep each turn to one breath; prosody restarts on every speaker change.\n\n\n## Report Issue\n\nNote: Please update ComfyUI first ([guide](https://docs.comfy.org/installation/update_comfyui)) and prepare required models. Desktop/Cloud updates follow stable releases, so some nightly-supported models may not be available yet.\n\n- Cannot run / runtime errors: [ComfyUI/issues](https://github.com/comfyanonymous/ComfyUI/issues)\n- UI / frontend issues: [ComfyUI_frontend/issues](https://github.com/Comfy-Org/ComfyUI_frontend/issues)\n- Workflow issues: [workflow_templates/issues](https://github.com/Comfy-Org/workflow_templates/issues)\n"
      ],
      "widgets_values_named": {
        "text": "# Google Gemini 3.8 · Text to Dialog\n\nTwo speakers, one audio track. Every line in `text` is a turn, and both voices are mixed in order.\n\n## How to use this template\n\n- `text` holds one line per turn, written `Name: line`. The names must match `speaker_1_name` and `speaker_2_name`.\n- `Name (whispering): line` gives that one line its own delivery; `speaker_1_style` / `speaker_2_style` set the default for all of that speaker's lines.\n- A line without a name continues the turn above it, so a paragraph can sit under one speaker.\n- `speaker_1_language` / `speaker_2_language` pick each voice independently — two different languages in one dialog is allowed.\n- The whole script is capped at 5,000 characters. `model` switches between **Flash TTS** and **Flash-Lite TTS**.\n- `seed` only decides whether the node re-runs; the same seed is not the same take.\n- `Save Audio (Advanced)` writes mp3 at V0 by default — change `format` to wav or flac to keep the untouched file.\n\n## Writing the lines\n\n- Interruptions: end one line with a dash and open the next turn with a dash.\n- Put direction in the parenthesised style, not in the line: `Mara (dry, almost bored): ...`.\n- Keep each turn to one breath; prosody restarts on every speaker change.\n\n\n## Report Issue\n\nNote: Please update ComfyUI first ([guide](https://docs.comfy.org/installation/update_comfyui)) and prepare required models. Desktop/Cloud updates follow stable releases, so some nightly-supported models may not be available yet.\n\n- Cannot run / runtime errors: [ComfyUI/issues](https://github.com/comfyanonymous/ComfyUI/issues)\n- UI / frontend issues: [ComfyUI_frontend/issues](https://github.com/Comfy-Org/ComfyUI_frontend/issues)\n- Workflow issues: [workflow_templates/issues](https://github.com/Comfy-Org/workflow_templates/issues)\n"
      },
      "color": "#222",
      "bgcolor": "#000"
    }
  ],
  "links": [
    [
      1,
      1,
      0,
      2,
      0,
      "AUDIO"
    ]
  ],
  "groups": [],
  "config": {},
  "extra": {
    "ds": {
      "scale": 0.5419847328244275,
      "offset": [
        33.80281690140845,
        22.732394366197184
      ]
    }
  },
  "version": 0.4
}