Skip to main content
Module

x/swissKnife/mod.ts>speak

Deno Swiss Knife tools
Go to Latest
function speak
import { speak } from "https://deno.land/x/swissKnife@1.5/mod.ts";

Speak a text using default configuration.

Examples

Example 1

import * as swissKnife from "https://deno.land/x/swissKnife/mod.ts"
let res = await swissKnife.speak("Hello from the other world")

Parameters

text: string

input string to speak

optional
options: SpeakOptions = [UNSUPPORTED]
  • { rate: 0, volume: 50 } set the rate and volume

Returns

Promise<number>

the process exit code