0.1.35 • Published 3 years ago
@snomiao/say v0.1.35
@snomiao/say
A cli wrapper for say
Usage Examples
npx -y -- @snomiao/say --list
# Microsoft David Desktop
# Microsoft Zira Desktop
npx -y -- @snomiao/say hello, world
npx -y -- @snomiao/say --voice "Microsoft David Desktop" --speed 0.5 hello, world
npx -y -- @snomiao/say --voice "Microsoft Zira Desktop" --speed 1.5 hello, world
npx -y -- @snomiao/say --voice "Microsoft Zira Desktop" --speed 1.5 --output ./hello-world.mp3 hello, world
# or
npm i -g @snomiao/say
say --list
say --voice "Microsoft David Desktop" --speed 0.5 hello, world
say --voice "Microsoft Zira Desktop" --speed 1.5 hello, world
say --voice "Microsoft Zira Desktop" --speed 1.5 --output ./hello-world.mp3 hello, world
# you can kill the process if you need to stop saying
Import as Library
import { speak } from "@snomiao/say";
await speak("test passed", undefined, 2);
Declares
export declare const speak: (
text: string,
voice?: string | undefined,
speed?: number | undefined,
) => Promise<void>;
export declare const stop: () => Promise<void>;
export declare const getInstalledVoices: () => Promise<string[]>;
export declare const exportFile: (
text: string,
voice?: string | undefined,
speed?: number | undefined,
filePath?: string | undefined,
) => Promise<void>;
Author & License
Author: snomiao snomiao@gmail.com LICENSE: GPLv3
ref
0.1.35
3 years ago
0.1.34
3 years ago
0.1.33
3 years ago
0.1.32
3 years ago
0.1.31
3 years ago
0.1.30
3 years ago
0.1.29
3 years ago
0.1.28
3 years ago
0.1.26
3 years ago
0.1.25
3 years ago
0.1.24
3 years ago
0.1.23
3 years ago
0.1.20
3 years ago
0.1.19
3 years ago
0.1.18
3 years ago
0.1.17
3 years ago
0.1.16
3 years ago
0.1.15
3 years ago
0.1.14
3 years ago
0.1.13
3 years ago
0.1.12
3 years ago
0.1.9
3 years ago
0.1.7
3 years ago
0.1.6
3 years ago