0.1.35 • Published 2 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
2 years ago
0.1.34
2 years ago
0.1.33
2 years ago
0.1.32
2 years ago
0.1.31
2 years ago
0.1.30
2 years ago
0.1.29
2 years ago
0.1.28
2 years ago
0.1.26
2 years ago
0.1.25
2 years ago
0.1.24
2 years ago
0.1.23
2 years ago
0.1.20
2 years ago
0.1.19
2 years ago
0.1.18
2 years ago
0.1.17
2 years ago
0.1.16
2 years ago
0.1.15
2 years ago
0.1.14
2 years ago
0.1.13
2 years ago
0.1.12
2 years ago
0.1.9
2 years ago
0.1.7
2 years ago
0.1.6
2 years ago