videosphere
    Preparing search index...

    Function synthesizeSpeechWithGcp

    • Synthesizes speech for translated text using the owner's GCP credentials.

      Parameters

      • params: {
            serviceAccountJson: string;
            voiceName: string;
            languageCode: string;
            text: string;
            speakingRate?: number;
        }

        Service account JSON, voice name, language code, text, and optional rate.

        • serviceAccountJson: string
        • voiceName: string
        • languageCode: string
        • text: string
        • OptionalspeakingRate?: number

          Speaking rate / pace in [0.25, 2.0]. 1.0 is the voice's native speed. Supported for Chirp 3 HD via AudioConfig (not SSML). Defaults to 1.0.

      Returns Promise<Buffer<ArrayBufferLike>>

      MP3 audio bytes.