GoogleCloudDialogflowCxV3VoiceSelectionParams
import type { GoogleCloudDialogflowCxV3VoiceSelectionParams } from "https://googleapis.deno.dev/v1/dialogflow:v3.ts";
Description of which voice to use for speech synthesis.
interface GoogleCloudDialogflowCxV3VoiceSelectionParams {
name?: string;
ssmlGender?:
} | "SSML_VOICE_GENDER_UNSPECIFIED"
| "SSML_VOICE_GENDER_MALE"
| "SSML_VOICE_GENDER_FEMALE"
| "SSML_VOICE_GENDER_NEUTRAL";
§Properties
§
name?: string
[src]Optional. The name of the voice. If not set, the service will choose a voice based on the other parameters such as language_code and ssml_gender. For the list of available voices, please refer to Supported voices and languages.
§
ssmlGender?: "SSML_VOICE_GENDER_UNSPECIFIED" | "SSML_VOICE_GENDER_MALE" | "SSML_VOICE_GENDER_FEMALE" | "SSML_VOICE_GENDER_NEUTRAL"
[src]Optional. The preferred gender of the voice. If not set, the service will choose a voice based on the other parameters such as language_code and name. Note that this is only a preference, not requirement. If a voice of the appropriate gender is not available, the synthesizer substitutes a voice with a different gender rather than failing the request.