Extension Icon

Say - Text to Speech

Use the macOS built-in TTS (Spoken Content) to say the text you provide.
AvatarLitoMore
347 Installs
Overview

Say - Text to Speech

This extension uses the macOS built-in TTS (Spoken Content) feature to say the text you provide. No network connection is needed.

raycast-cross-extension-badge

Features

  • Type to Say - Quick type your text and say
  • Text to Say - Input your text or paragraph and say
  • Selected Text to Say - Say the selected text on any application

Configurations

Currently, the Configure Say command we provided does not alter you system settings. You can go to your macOS System Settings to download new voices and get more advanced configurations.

See https://support.apple.com/en-us/guide/mac-help/spch638/mac.

Recommended Voices

Siri is the closest thing to a real human voice. You can go to System Settings -> Accessibility -> Spoken Content. Pick your favorite Siri voice for the best experience.

API

With this extension, users can use this extension's configuration page for more settings within Raycast.

Use raycast-cross-extension

This is the most recommended way, raycast-corss-extension will verify the corssExtensions field in the package.json. This helps your upstream extension provider to get to know who is using their extension. For more details, see Raycast Cross Extension Conventsions.

import { crossLaunchCommand } from "raycast-cross-extension";

crossLaunchCommand({
  name: "typeToSay",
  type: LaunchType.Background,
  extensionName: "say",
  ownerOrAuthorName: "litomore",
  arguments: {
    content: "Hello, world!",
  },
  context: {
    sayOptions: {
      voice: "Cellos",
    },
  },
});

Use launchCommand

import { launchCommand } from "@raycast/api";

launchCommand({
  name: "typeToSay",
  type: LaunchType.Background,
  extensionName: "say",
  ownerOrAuthorName: "litomore",
  arguments: {
    content: "Hello, world!",
  },
  context: {
    sayOptions: {
      voice: "Cellos",
    },
  },
});

Use mac-say

Get it from https://github.com/LitoMore/mac-say.

It's the macOS built-in say interface for JavaScript. You can use this if want some advanced API usage.

License

MIT