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

CustomPronunciationParams

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

Pronunciation customization for a phrase.

interface CustomPronunciationParams {
phoneticEncoding?:
| "PHONETIC_ENCODING_UNSPECIFIED"
| "PHONETIC_ENCODING_IPA"
| "PHONETIC_ENCODING_X_SAMPA"
| "PHONETIC_ENCODING_JAPANESE_YOMIGANA"
| "PHONETIC_ENCODING_PINYIN";
phrase?: string;
pronunciation?: string;
}

§Properties

§
phoneticEncoding?: "PHONETIC_ENCODING_UNSPECIFIED" | "PHONETIC_ENCODING_IPA" | "PHONETIC_ENCODING_X_SAMPA" | "PHONETIC_ENCODING_JAPANESE_YOMIGANA" | "PHONETIC_ENCODING_PINYIN"
[src]

The phonetic encoding of the phrase.

§
phrase?: string
[src]

The phrase to which the customization is applied. The phrase can be multiple words, such as proper nouns, but shouldn't span the length of the sentence.

§
pronunciation?: string
[src]

The pronunciation of the phrase. This must be in the phonetic encoding specified above.