Skip to content

This is a simple module to use the `say` command in MacOS. It is a wrapper around the `say` command, which is a text-to-speech command in MacOS.

License

Notifications You must be signed in to change notification settings

j3lte/macos-say

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@j3lte/macos-say

JSR GitHub Release GitHub Actions Workflow Status codecov

Overview

This is a simple module to use the say command in MacOS, which is a text-to-speech command in MacOS.

Basic Usage

import { MacOsSay } from '@j3lte/macos-say';

// Create a new instance of MacOsSay
const sayer = new MacOsSay();
const output = await sayer.say('Hello, World!').exec();

// You can also use a static method
MacOsSay.say('Hello, World!');

// Use options
const sayer = new MacOsSay({ voice: 'Alex', rate: 200 });
const output = await sayer.say('Hello, World!').exec();

// Chain options
const sayer = new MacOsSay().setVoice('Alex').setRate(200);
const output = await sayer.say('Hello, World!').exec();

License

MIT License

About

This is a simple module to use the `say` command in MacOS. It is a wrapper around the `say` command, which is a text-to-speech command in MacOS.

Topics

Resources

License

Stars

Watchers

Forks