From a2af87e96f9ad3a8cb4fff8c58c7984a4669856d Mon Sep 17 00:00:00 2001 From: LitoMore Date: Fri, 17 May 2024 20:44:57 +0800 Subject: [PATCH] Fix rate parameter --- source/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/index.ts b/source/index.ts index 8feb54c..efb078a 100644 --- a/source/index.ts +++ b/source/index.ts @@ -18,7 +18,7 @@ export async function say(text: string, options: SayOptions = {}) { [ text, voice && ['--voice', voice], - rate && ['--rate', 'rate'], + rate && ['--rate', rate], audioDevice && ['--audio-device', audioDevice], quality && ['--quality', quality], inputFile && ['--input-file', inputFile],