首页 > 解决方案 > 谷歌云文本到语音的质量更好

问题描述

我正在为我的 Adalo 应用程序使用 Integromat 中的 Google Cloud Text to Speech 模块。我想要更好的音频质量,所以我已经切换到 WaveNet 并将采样率提高到 48000 赫兹,但它的质量仍然很差。我能做些什么?非常感谢每个想法,在此先感谢!

最好的问候,本

标签: google-cloud-platformtext-to-speechgoogle-text-to-speechintegromat

解决方案


您可能需要根据https://cloud.google.com/text-to-speech/docs/audio-profileseffectsProfileId上的文档指定

const effectsProfileId = ['telephony-class-application'];

const request = {
  input: {text: text},
  voice: {languageCode: languageCode, ssmlGender: ssmlGender},
  audioConfig: {audioEncoding: 'MP3', effectsProfileId: effectsProfileId},
};

语音的质量会根据您所说的播放结果音频的设备类型而起伏不定。


推荐阅读