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