From 8c36bbd908d687f7cd02392099c3d9619e839dcd Mon Sep 17 00:00:00 2001 From: Pylogmon Date: Fri, 28 Jun 2024 10:31:23 +0800 Subject: [PATCH] Update README.md --- README.md | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index aa56fa5..760765f 100644 --- a/README.md +++ b/README.md @@ -29,11 +29,23 @@ 编辑 `main.js` 实现 `tts` 函数 #### 输入参数 - ```javascript +// config: config map +// detect: detected source language +// setResult: function to set result text +// utils: some tools +// http: tauri http module +// readBinaryFile: function +// readTextFile: function +// Database: tauri Database class +// CryptoJS: CryptoJS module +// cacheDir: cache dir path +// pluginDir: current plugin dir +// osType: "Windows_NT" | "Darwin" | "Linux" async function tts(text, lang, options = {}) { const { config, utils } = options; - const { tauriFetch } = utils; + const { http, readBinaryFile, readTextFile, Database, CryptoJS, run, cacheDir, pluginDir, osType } = utils; + const { fetch, Body } = http; } ```