This extension uses the system built-in text-to-speech engine on macOS and Windows to say the text you provide. No network connection is needed.
Currently, the Configure Say command we provided does not alter your system settings.
You can go to macOS System Settings or Windows Settings to download new voices and get more advanced configurations.
On macOS, see https://support.apple.com/en-us/guide/mac-help/spch638/mac.
On Windows, open Windows Settings -> Time & language -> Speech.
Siri is the closest thing to a real human voice. You can go to System Settings -> Accessibility -> Live Speech. Pick your favorite Siri voice for the best experience.
With this extension, users can use this extension's configuration page for more settings within Raycast.
raycast-cross-extensionThis is the most recommended way, raycast-cross-extension will verify the crossExtensions 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",
},
},
});
launchCommandimport { launchCommand } from "@raycast/api";
launchCommand({
name: "typeToSay",
type: LaunchType.Background,
extensionName: "say",
ownerOrAuthorName: "litomore",
arguments: {
content: "Hello, world!",
},
context: {
sayOptions: {
voice: "Cellos",
},
},
});
arguments=$(jq -rR @uri <<< '{"content":"Hello from Deeplinks!"}')
launchContext=$(jq -rR @uri <<< '{"sayOptions":{"voice":"Cello"}}')
deeplink="raycast://extensions/litomore/say/typeToSay?launchType=background&arguments=$arguments&launchContext=$launchContext"
open $deeplink
mac-say or @litomore/win-sayGet them from https://github.com/LitoMore/mac-say and https://github.com/LitoMore/win-say.
They provide JavaScript interfaces for the built-in text-to-speech engines on macOS and Windows. You can use them if you want some advanced API usage.
You could type a space or any other new contents to the Type to Say command to abort current speaking agent.
Yes. Not all voices are listed in the Configure Say command, because it's limited by the OS. But you can choose those voices from system settings.
MIT