---
title: Testing 10 languages with one macOS command
description: The macOS say command generates speech in ten languages. I used it to test a multilingual STT model without installing any audio tooling.
canonical: https://lukeocodes.dev/testing-10-languages-macos-say
type: article
locale: en_GB
published: 2026-05-22T00:00:00.000Z
modified: 2026-05-22T00:00:00.000Z
authors:
  - Luke Oliff
section: TIL
tags:
  - TIL
  - Engineering
  - Voice AI
feed: https://lukeocodes.dev/rss.xml
search: https://lukeocodes.dev/search.json?q={query}
schema:
  - "@context": https://schema.org
    "@graph":
      - "@type": Organization
        "@id": https://ably.com/#organization
        name: Ably
        url: https://ably.com
      - "@type": WebSite
        "@id": https://lukeocodes.dev/#website
        url: https://lukeocodes.dev
        name: Luke Oliff
        alternateName: lukeocodes
        inLanguage: en
        publisher:
          "@id": https://lukeocodes.dev/authors/luke#person
        description: Personal blog and writing by Luke Oliff — developer relations, voice AI, developer experience.
        potentialAction:
          - "@type": SearchAction
            target:
              "@type": EntryPoint
              urlTemplate: https://lukeocodes.dev/blog/search?q={search_term_string}
            query-input: required name=search_term_string
      - "@type": Person
        "@id": https://lukeocodes.dev/authors/luke#person
        name: Luke Oliff
        url: https://lukeocodes.dev/authors/luke
        description: Staff engineer and Staff Tech Lead for Developer Experience at Ably. Writing about developer relations, AI, and the voice industry, from the UK.
        mainEntityOfPage: https://lukeocodes.dev/authors/luke
        givenName: Luke
        familyName: Oliff
        image: https://lukeocodes.dev/authors/luke.jpg
        jobTitle: Staff Tech Lead, Developer Experience
        worksFor:
          "@id": https://ably.com/#organization
        sameAs:
          - https://www.linkedin.com/in/lukeocodes
          - https://github.com/lukeocodes
          - https://bsky.app/profile/lukeocodes.dev
          - https://x.com/lukeocodes
          - https://hashnode.com/@lukeocodes
          - https://dev.to/lukeocodes
        knowsAbout:
          - Developer Relations
          - Developer Experience
          - Voice AI
          - Text-to-Speech
          - Answer Engine Optimisation
          - Search Engine Optimisation
          - Open Source
          - Developer Tooling
          - API Design
          - Speech-to-Text
          - Voice Agents
          - Community Building
        knowsLanguage:
          - English
        nationality: British
        alumniOf:
          - "@type": Organization
            name: The Open University
  - "@context": https://schema.org
    "@graph":
      - "@type": Organization
        "@id": https://ably.com/#organization
        name: Ably
        url: https://ably.com
      - "@type": Person
        "@id": https://lukeocodes.dev/authors/luke#person
        name: Luke Oliff
        url: https://lukeocodes.dev/authors/luke
        description: Staff engineer and Staff Tech Lead for Developer Experience at Ably. Writing about developer relations, AI, and the voice industry, from the UK.
        mainEntityOfPage: https://lukeocodes.dev/authors/luke
        givenName: Luke
        familyName: Oliff
        image: https://lukeocodes.dev/authors/luke.jpg
        jobTitle: Staff Tech Lead, Developer Experience
        worksFor:
          "@id": https://ably.com/#organization
        sameAs:
          - https://www.linkedin.com/in/lukeocodes
          - https://github.com/lukeocodes
          - https://bsky.app/profile/lukeocodes.dev
          - https://x.com/lukeocodes
          - https://hashnode.com/@lukeocodes
          - https://dev.to/lukeocodes
        knowsAbout:
          - Developer Relations
          - Developer Experience
          - Voice AI
          - Text-to-Speech
          - Answer Engine Optimisation
          - Search Engine Optimisation
          - Open Source
          - Developer Tooling
          - API Design
          - Speech-to-Text
          - Voice Agents
          - Community Building
        knowsLanguage:
          - English
        nationality: British
        alumniOf:
          - "@type": Organization
            name: The Open University
      - "@type": BlogPosting
        "@id": https://lukeocodes.dev/testing-10-languages-macos-say#article
        headline: Testing 10 languages with one macOS command
        alternativeHeadline: Testing 10 languages with one macOS command
        description: The macOS say command generates speech in ten languages. I used it to test a multilingual STT model without installing any audio tooling.
        datePublished: 2026-05-22T00:00:00.000Z
        dateModified: 2026-05-22T00:00:00.000Z
        url: https://lukeocodes.dev/testing-10-languages-macos-say
        mainEntityOfPage: https://lukeocodes.dev/testing-10-languages-macos-say
        inLanguage: en
        author:
          - "@id": https://lukeocodes.dev/authors/luke#person
        isPartOf:
          "@id": https://lukeocodes.dev/#website
        keywords: TIL, Engineering, Voice AI
        articleSection: TIL
        about:
          - "@type": Thing
            name: Voice AI
        abstract: "Friday fun: the macOS say command supports voices in ten languages. I found this out by accident while looking for a quick way to generate test audio for Deepgram's Flux Multilingual model."
        speakable:
          "@type": SpeakableSpecification
          cssSelector:
            - .post-tldr
            - h1
        image: https://lukeocodes.dev/blog/testing-10-languages-macos-say/hero.png
        wordCount: 672
        timeRequired: PT4M
        publisher:
          "@id": https://ably.com/#organization
      - "@type": BreadcrumbList
        itemListElement:
          - "@type": ListItem
            position: 1
            name: Home
            item: https://lukeocodes.dev
          - "@type": ListItem
            position: 2
            name: Writing
            item: https://lukeocodes.dev/blog
          - "@type": ListItem
            position: 3
            name: Testing 10 languages with one macOS command
            item: https://lukeocodes.dev/testing-10-languages-macos-say
---

[Luke Oliff.](/)

- [Blog](/blog)
- [CV](/cv)
- [Uses](/uses)
- [User manual](/user-manual)
- [Living with ADHD](/living-and-working-with-adhd)
- [RSS](/rss.xml)

[Luke Oliff · Writing](/blog)

# Testing 10 languages with one macOS command

May 2026 · [TIL](/blog/category/til) · 4 min read · [Luke Oliff](/authors/luke)

Friday fun: the macOS `say` command supports voices in ten languages. I found this out by accident while looking for a quick way to generate test audio for Deepgram's Flux Multilingual model.

I was writing integration examples and needed audio samples in all ten supported languages. English, Spanish, French, German, Hindi, Russian, Portuguese, Japanese, Italian, Dutch. Installing ten different TTS SDKs felt like the wrong kind of project. Recording myself speaking ten languages felt even worse. I checked if the Mac already had something built in.

It does. `say` writes audio to a file with the `-o` flag. The `-v` flag picks the voice. The language locale is embedded in the voice name.

```bash
say -v 'Samantha' "Hello, testing one two three." -o test_en.aiff
say -v 'Mónica' "Hola, probando uno dos tres." -o test_es.aiff
say -v 'Thomas' "Bonjour, test un deux trois." -o test_fr.aiff
say -v 'Anna' "Hallo, Test eins zwei drei." -o test_de.aiff
```

I built a quick loop that generated audio for all ten languages, then piped each file through the STT connection to check whether the model detected the right language and produced a sensible transcript. It caught two bugs in my example code before I ever pushed a branch.

## What say gives you that other tools don't

The output is clean AIFF format audio. You can pipe it through ffmpeg to resample to whatever the API expects. No background noise, no mic artifacts, no variable bitrate surprises. Every test run starts from the same baseline.

The voices are synthetic and they sound synthetic. That's actually a feature, not a bug. If your STT model handles a clean synthetic voice without degrading, you've eliminated the audio quality variable from your debugging. When something breaks, you know it's the model or the integration, not the recording.

```bash
for lang in en es fr de hi ru pt ja it nl; do
  voice=$(get_voice_for_lang "$lang")
  say -v "$voice" "Test phrase in ${lang}" -o "test_${lang}.aiff"
  ffmpeg -y -i "test_${lang}.aiff" -ar 16000 -ac 1 "test_${lang}.wav" 2>/dev/null
done
```

## Why this mattered at the time

Deepgram had just shipped Flux Multilingual at the end of April. Ten languages in one streaming model with automatic language detection and code-switching. The documentation and integration examples needed to show real working code for each language. Not pseudo-code. Not a single English example with a note saying "this also works in other languages." Real connections, real transcripts, real language detection output.

That meant generating real audio in each language. The `say` command was already installed on every Mac in the team. Zero setup. No API keys. No rate limits. I spent more time writing the test loop than discovering the tool existed.

## What I learned about testing multilingual voice AI

The thing that surprised me most was how much variability comes from the text itself, not the audio. A short phrase in Japanese behaves differently from a long sentence in German. Different sentence structures create different timing patterns. Code-switching, a sentence that starts in one language and ends in another, exposes different parts of the pipeline than single-language audio.

A synthetic voice generator that covers all ten languages let me test these scenarios without needing native speakers on standby. Not a replacement for real voice data. But a much faster iterating loop for the documentation work.

### FAQ

#### How do I find available say voices on macOS?

Run `say -v '?'` in the terminal. It lists every voice with its locale and a sample sentence. Pipe it through `grep` to filter by language code.

#### What format does the say command output?

AIFF by default. Use `ffmpeg` to convert to 16-bit 16 kHz mono WAV for STT APIs, or pipe the raw audio through a resampling step in your test harness.

#### Can I use say for production audio testing?

For integration and documentation tests, yes. The synthetic output gives you a clean baseline. For accuracy benchmarks and production validation, use real human speech recordings. Synthetic voices don't capture the acoustic variability of real conversations.

[← Newer: 5 API design decisions that shape voice AI dev experience](/5-api-design-decisions-shape-voice-ai-devx)

[All posts](/blog) →

## Search this site

`GET https://lukeocodes.dev/search.json?q=<words>` returns matching posts as JSON, each with its page URL and its markdown URL. Add `&limit=<1-50>` for more than 10. How it works: [/blog/search](https://lukeocodes.dev/blog/search.md).

```sh
curl "https://lukeocodes.dev/search.json?q=developer+relations"
```

---

© 2026 Luke Oliff. Posts live at the root of this site.

- [GitHub](https://github.com/lukeocodes)
- [LinkedIn](https://www.linkedin.com/in/lukeocodes)
- [X](https://x.com/lukeocodes)
- [Bluesky](https://bsky.app/profile/lukeocodes.dev)
- [Email](mailto:luke@lukeoliff.com)
- [RSS](/rss.xml)

## Cookies

This site sets one analytics cookie, from Google Analytics, and only in a browser that accepts the cookie banner. A client that does not run scripts sets no cookies, so there is nothing to accept or decline here.

[Cookie policy](/cookies)
