This extension uses the macOS built-in TTS (Live Speech) feature to say the text you provide. No network connection is needed.
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.
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-sayGet it from https://github.com/LitoMore/mac-say.
It's the macOS built-in say interface for JavaScript. You can use this 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