Fix google audio profile

master
Talon 2021-07-12 20:20:51 +02:00
parent ca8f3a4be2
commit 9b83cdd21a
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ module.exports = class GoogleCloudTTS extends BaseEngine {
const request = {
input: { text: text },
voice: { name: this.voices[voice].name, languageCode: this.voices[voice].lang },
audioConfig: { audioEncoding: 'OGG_OPUS', effectsProfileId: ['medium-bluetooth-speaker-class-device'] },
audioConfig: { audioEncoding: 'LINEAR16' },
};
let [response] = await this.client.synthesizeSpeech(request);
const writeFile = util.promisify(fs.writeFile);