{
  "schema": "verbative-test-record/1",
  "slug": "claude-code-text-to-speech",
  "test": "tts",
  "language": "en",
  "date": "2026-12-03",
  "startedAt": "2026-12-03T07:02:04.083Z",
  "durationSeconds": 48.8,
  "synthesized": true,
  "measured": "How long Verbative's voices take to start speaking a cue (time to first audio) and how many seconds of speech each engine makes per second of synthesis, for the short cues and the summaries Verbative Speak and the extension say.",
  "method": "On 2026-12-03 we had each engine speak the same 18 cues in the voices am_michael and af_heart, the Kokoro voices Verbative Speak and the extension speak with, at the extension's default rate of 1.3: the 15 sentences of the 3 fixed passages (email with names and numbers, technical paragraph and list with punctuation; 227 words) one by one, as Verbative speaks an approval or a short reply, and each passage as one cue, as it speaks a summary. Every cue was synthesized 3 times through the extension's own text-to-speech code (verbative-ext/assets/hooks/_tts.py, extension 2.3.5), the way it speaks: the text split into chunks of whole sentences of up to 30 words, the first chunk synthesized and made ready to play before the rest. Time to first audio is the median wait until that first chunk was ready (its synthesis and its loudness envelope); times real time is the seconds of speech made per second of synthesis over the whole cue. The engines: Kokoro-82M (MLX, Apple GPU). Each ran warm: its first synthesis after starting, the model load (Kokoro-82M (MLX, Apple GPU): 6.62 s), is not counted. Measured on a MacBookPro18,2 (Apple M1 Max, 64 GB) running macOS 27.0.1.",
  "caveats": [
    "The engine was warm: the first cue after the engine starts also waits for the model to load (engines[].loadSeconds), and the very first start on a Mac after an install or update compiles the GPU shaders once, which takes seconds more.",
    "The wait before a cue is heard adds the player's start (tens of milliseconds) and, for a hook, the hook's own start; neither is measured here.",
    "Measured at the extension's default speaking rate (1.3); a different rate changes the length of the speech, and with it the times real time.",
    "Synthesis time depends on the machine and on what else runs on it (hardware.loadAverage1mAtStart); the comparison between the two runtimes holds on any Apple-silicon Mac, the absolute numbers are this one's."
  ],
  "material": {
    "passagesVersion": 1,
    "passages": [
      {
        "id": "email",
        "kind": "An email with names and numbers",
        "sentences": [
          "Hi Mara, thank you for sending the draft contract yesterday evening.",
          "I spoke with Jonas Feldner and Priya Raman this morning, and both can meet on Tuesday at 10 in room 214.",
          "Please bring the 12 signed pages and the invoice for 480 euros, so we can close the order the same day.",
          "If Tuesday does not work, I can also offer Thursday, the 18th of December, in the afternoon.",
          "Best regards, Lena Okafor."
        ],
        "words": 74
      },
      {
        "id": "technical",
        "kind": "A technical paragraph",
        "sentences": [
          "The sync service retries a failed upload up to 20 times with exponential backoff.",
          "Each retry doubles the pause, starting at 200 milliseconds and capped at 30 seconds.",
          "If the server answers with status 429, the client reads the Retry-After header and waits that long instead.",
          "Uploads larger than 50 megabytes are split into chunks, and every chunk carries its own checksum.",
          "The whole process runs in a background worker, so the user interface never blocks while a file is in flight."
        ],
        "words": 82
      },
      {
        "id": "list",
        "kind": "A list with punctuation",
        "sentences": [
          "Before the release, check the following points:",
          "First, update the version number in the package file and in the version history.",
          "Second, run the full test suite, including the slow integration tests, on both platforms.",
          "Third, rebuild the installers for Mac and Windows; sign both; and upload them to the download server.",
          "Finally, write the release notes, with a link to each fixed issue, and tell the team in the channel."
        ],
        "words": 71
      }
    ],
    "synthesis": {
      "engine": "kokoro",
      "voices": [
        "am_michael",
        "af_heart"
      ],
      "speed": 1.3,
      "description": "The engines under test: Kokoro-82M through the extension's own text-to-speech code (verbative-ext/assets/hooks/_tts.py), Kokoro-82M (MLX, Apple GPU), 24 kHz; the speech is the test's output, not its input"
    },
    "cues": [
      {
        "id": "email-00",
        "passage": "email",
        "kind": "sentence",
        "words": 11,
        "chunks": 1,
        "audioSeconds": 4.1
      },
      {
        "id": "email-01",
        "passage": "email",
        "kind": "sentence",
        "words": 21,
        "chunks": 1,
        "audioSeconds": 7.075
      },
      {
        "id": "email-02",
        "passage": "email",
        "kind": "sentence",
        "words": 21,
        "chunks": 1,
        "audioSeconds": 6.775
      },
      {
        "id": "email-03",
        "passage": "email",
        "kind": "sentence",
        "words": 17,
        "chunks": 1,
        "audioSeconds": 5.65
      },
      {
        "id": "email-04",
        "passage": "email",
        "kind": "sentence",
        "words": 4,
        "chunks": 1,
        "audioSeconds": 2.25
      },
      {
        "id": "email-all",
        "passage": "email",
        "kind": "passage",
        "words": 74,
        "chunks": 4,
        "audioSeconds": 25.5
      },
      {
        "id": "technical-00",
        "passage": "technical",
        "kind": "sentence",
        "words": 14,
        "chunks": 1,
        "audioSeconds": 5.075
      },
      {
        "id": "technical-01",
        "passage": "technical",
        "kind": "sentence",
        "words": 14,
        "chunks": 1,
        "audioSeconds": 5.425
      },
      {
        "id": "technical-02",
        "passage": "technical",
        "kind": "sentence",
        "words": 18,
        "chunks": 1,
        "audioSeconds": 7.375
      },
      {
        "id": "technical-03",
        "passage": "technical",
        "kind": "sentence",
        "words": 16,
        "chunks": 1,
        "audioSeconds": 5.65
      },
      {
        "id": "technical-04",
        "passage": "technical",
        "kind": "sentence",
        "words": 20,
        "chunks": 1,
        "audioSeconds": 6.25
      },
      {
        "id": "technical-all",
        "passage": "technical",
        "kind": "passage",
        "words": 82,
        "chunks": 4,
        "audioSeconds": 29.425
      },
      {
        "id": "list-00",
        "passage": "list",
        "kind": "sentence",
        "words": 7,
        "chunks": 1,
        "audioSeconds": 2.65
      },
      {
        "id": "list-01",
        "passage": "list",
        "kind": "sentence",
        "words": 14,
        "chunks": 1,
        "audioSeconds": 4.5
      },
      {
        "id": "list-02",
        "passage": "list",
        "kind": "sentence",
        "words": 14,
        "chunks": 1,
        "audioSeconds": 5.425
      },
      {
        "id": "list-03",
        "passage": "list",
        "kind": "sentence",
        "words": 17,
        "chunks": 1,
        "audioSeconds": 6.225
      },
      {
        "id": "list-04",
        "passage": "list",
        "kind": "sentence",
        "words": 19,
        "chunks": 1,
        "audioSeconds": 5.125
      },
      {
        "id": "list-all",
        "passage": "list",
        "kind": "passage",
        "words": 71,
        "chunks": 4,
        "audioSeconds": 23.7
      }
    ],
    "audioSeconds": 158.2,
    "clips": []
  },
  "engines": [
    {
      "id": "kokoro-mlx",
      "kind": "tts",
      "label": "Kokoro-82M (MLX, Apple GPU)",
      "model": {
        "name": "Kokoro-82M (MLX weights)",
        "folder": "<extension storage>/kokoro-mlx",
        "files": [
          {
            "path": ".voice-ready",
            "bytes": 24
          },
          {
            "path": "config.json",
            "bytes": 2351
          },
          {
            "path": "kokoro-v1_0.safetensors",
            "bytes": 327115152
          },
          {
            "path": "voices/af_bella.safetensors",
            "bytes": 522320
          },
          {
            "path": "voices/af_heart.safetensors",
            "bytes": 522320
          },
          {
            "path": "voices/af_nicole.safetensors",
            "bytes": 522320
          },
          {
            "path": "voices/af_sarah.safetensors",
            "bytes": 522320
          },
          {
            "path": "voices/af_sky.safetensors",
            "bytes": 522320
          },
          {
            "path": "voices/am_adam.safetensors",
            "bytes": 522320
          },
          {
            "path": "voices/am_michael.safetensors",
            "bytes": 522320
          },
          {
            "path": "voices/bf_emma.safetensors",
            "bytes": 522320
          },
          {
            "path": "voices/bf_isabella.safetensors",
            "bytes": 522320
          },
          {
            "path": "voices/bm_george.safetensors",
            "bytes": 522320
          },
          {
            "path": "voices/bm_lewis.safetensors",
            "bytes": 522320
          }
        ],
        "bytes": 332863047,
        "source": "the extension's storage"
      },
      "binary": {
        "path": "<repo>/verbative-ext/assets/hooks/_tts.py",
        "bytes": 107969,
        "modified": "2026-12-03T00:06:31.154Z",
        "sha256": "70fa8be6cdfd4f39a4b4dccd174c0eecc07b51ae51b7cb642b2648069933e77f",
        "source": "verbative-ext/assets/hooks/_tts.py, run in the measurement python"
      },
      "settings": {
        "engine": "mlx",
        "device": "Apple GPU (Metal)",
        "weights": "<extension storage>/kokoro-mlx",
        "mlx": "0.32.0",
        "mlxAudio": "0.4.7",
        "python": {
          "path": "<extension storage>/kokoro-venv/bin/python3",
          "version": "3.11.15"
        },
        "speed": 1.3,
        "chunkWords": 30,
        "g2p": "misaki + _g2p.py (no espeak)",
        "sampleRate": 24000,
        "voices": [
          "am_michael",
          "af_heart"
        ],
        "code": "verbative-ext/assets/hooks/_tts.py"
      },
      "loadSeconds": 6.62
    }
  ],
  "versions": {
    "voiceApp": "1.0.6",
    "voiceAppInstalled": "1.0.6",
    "extension": "2.3.5",
    "repoCommit": "510aa73dfeaa1db05876be456d1e4f5e40ecb679",
    "repoCommitDate": "2026-12-03T02:55:50+01:00",
    "repoDirty": true,
    "passagesVersion": 1
  },
  "os": {
    "name": "macOS",
    "version": "27.0.1",
    "build": "26A434",
    "kernel": "27.0.0"
  },
  "hardware": {
    "model": "MacBookPro18,2",
    "chip": "Apple M1 Max",
    "memoryGB": 64,
    "cores": 10,
    "arch": "arm64",
    "loadAverage1mAtStart": 5.1
  },
  "raw": "https://verbative.de/tests/claude-code-text-to-speech.csv",
  "summary": {
    "kokoro-mlx": {
      "cues": 36,
      "timeToFirstAudio": {
        "medianS": 0.251,
        "p90S": 0.343,
        "maxS": 0.412,
        "meanS": 0.25
      },
      "timesRealTime": {
        "median": 22.4,
        "min": 10.3,
        "max": 27.5,
        "overall": 22
      },
      "audioSeconds": 302.2,
      "synthesisSeconds": 13.71,
      "words": {
        "min": 4,
        "max": 82
      },
      "shortCues": {
        "cues": 30,
        "timeToFirstAudio": {
          "medianS": 0.248,
          "p90S": 0.319,
          "maxS": 0.354,
          "meanS": 0.242
        },
        "timesRealTime": {
          "median": 21.9,
          "min": 10.3,
          "max": 27.5,
          "overall": 20.9
        },
        "audioSeconds": 151.8,
        "synthesisSeconds": 7.26,
        "words": {
          "min": 4,
          "max": 21
        }
      },
      "longCues": {
        "cues": 6,
        "timeToFirstAudio": {
          "medianS": 0.305,
          "p90S": 0.412,
          "maxS": 0.412,
          "meanS": 0.291
        },
        "timesRealTime": {
          "median": 23.3,
          "min": 19.6,
          "max": 27.1,
          "overall": 23.3
        },
        "audioSeconds": 150.4,
        "synthesisSeconds": 6.45,
        "words": {
          "min": 71,
          "max": 82
        }
      },
      "perVoice": {
        "am_michael": {
          "cues": 18,
          "timeToFirstAudio": {
            "medianS": 0.218,
            "p90S": 0.304,
            "maxS": 0.378,
            "meanS": 0.226
          },
          "timesRealTime": {
            "median": 25,
            "min": 21.2,
            "max": 27.5,
            "overall": 25.1
          },
          "audioSeconds": 158.2,
          "synthesisSeconds": 6.3,
          "words": {
            "min": 4,
            "max": 82
          }
        },
        "af_heart": {
          "cues": 18,
          "timeToFirstAudio": {
            "medianS": 0.281,
            "p90S": 0.354,
            "maxS": 0.412,
            "meanS": 0.275
          },
          "timesRealTime": {
            "median": 19,
            "min": 10.3,
            "max": 23.6,
            "overall": 19.4
          },
          "audioSeconds": 144,
          "synthesisSeconds": 7.41,
          "words": {
            "min": 4,
            "max": 82
          }
        }
      }
    }
  },
  "producedBy": {
    "kind": "runner",
    "node": "v22.23.4"
  }
}
