diff --git a/deps.ts b/deps.ts index 95c91ff..8f1a918 100644 --- a/deps.ts +++ b/deps.ts @@ -1,3 +1,3 @@ export { writeAll } from "https://deno.land/std@0.170.0/streams/write_all.ts"; export { assert } from "https://deno.land/std@0.170.0/testing/asserts.ts"; -export { parse } from "https://deno.land/std@0.168.0/flags/mod.ts"; +export { parse } from "https://deno.land/std@0.170.0/flags/mod.ts"; diff --git a/mod.ts b/mod.ts index 6a499bc..e8ed16a 100644 --- a/mod.ts +++ b/mod.ts @@ -13,10 +13,20 @@ function tokenize(text: string) { ); } +/** + * The options for TTS + */ export interface SaveOptions { language: keyof typeof LANGUAGES; } +/** + * Convert text to speech and save to a .wav file + * @example + * ```typescript + * await save("./demo.wav", "hello text to speech", { language: "en-us" }); + * ``` + */ export async function save( path: string, text: string,