Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/j3lte/macos-say

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.
https://github.com/j3lte/macos-say

bun deno macos nodejs say

Last synced: about 13 hours ago
JSON representation

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.

Awesome Lists containing this project

README

        

# @j3lte/macos-say

[![JSR](https://jsr.io/badges/@j3lte/macos-say)](https://jsr.io/@j3lte/macos-say)
[![GitHub Release](https://img.shields.io/github/v/release/j3lte/macos-say)](https://github.com/j3lte/macos-say/releases/latest)
[![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/j3lte/macos-say/ci.yml)](https://github.com/j3lte/macos-say/actions)
[![codecov](https://codecov.io/gh/j3lte/macos-say/graph/badge.svg?token=153r6NsbQw)](https://codecov.io/gh/j3lte/macos-say)

## Overview

This is a simple module to use the `say` command in MacOS, which is a [text-to-speech command in MacOS](https://ss64.com/mac/say.html).

## Basic Usage

```typescript
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](./LICENSE.md)