This extension uses the macOS built-in TTS (Spoken Content) 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 -> Spoken Content
. 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-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",
},
},
});
launchCommand
import { launchCommand } from "@raycast/api";
launchCommand({
name: "typeToSay",
type: LaunchType.Background,
extensionName: "say",
ownerOrAuthorName: "litomore",
arguments: {
content: "Hello, world!",
},
context: {
sayOptions: {
voice: "Cellos",
},
},
});
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.
MIT