Skip to content

Commit

Permalink
chore: added jsdoc plus bump deps
Browse files Browse the repository at this point in the history
  • Loading branch information
lino-levan committed Dec 21, 2022
1 parent 5623734 commit 49c90a6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion deps.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export { writeAll } from "https://deno.land/[email protected]/streams/write_all.ts";
export { assert } from "https://deno.land/[email protected]/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";
10 changes: 10 additions & 0 deletions mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 49c90a6

Please sign in to comment.