Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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 1 month 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.
- Host: GitHub
- URL: https://github.com/j3lte/macos-say
- Owner: j3lte
- License: mit
- Created: 2024-07-22T20:04:44.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-07-22T22:22:26.000Z (5 months ago)
- Last Synced: 2024-10-14T08:20:47.418Z (3 months ago)
- Topics: bun, deno, macos, nodejs, say
- Language: TypeScript
- Homepage: https://jsr.io/@j3lte/macos-say
- Size: 23.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
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)