Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Voice

import type { Voice } from "https://googleapis.deno.dev/v1/texttospeech:v1.ts";

Description of a voice supported by the TTS service.

interface Voice {
languageCodes?: string[];
name?: string;
naturalSampleRateHertz?: number;
ssmlGender?:
| "SSML_VOICE_GENDER_UNSPECIFIED"
| "MALE"
| "FEMALE"
| "NEUTRAL";
}

§Properties

§
languageCodes?: string[]
[src]

The languages that this voice supports, expressed as BCP-47 language tags (e.g. "en-US", "es-419", "cmn-tw").

§
name?: string
[src]

The name of this voice. Each distinct voice has a unique name.

§
naturalSampleRateHertz?: number
[src]

The natural sample rate (in hertz) for this voice.

§
ssmlGender?: "SSML_VOICE_GENDER_UNSPECIFIED" | "MALE" | "FEMALE" | "NEUTRAL"
[src]

The gender of this voice.