Fix google audio profile
parent
ca8f3a4be2
commit
9b83cdd21a
|
@ -26,7 +26,7 @@ module.exports = class GoogleCloudTTS extends BaseEngine {
|
||||||
const request = {
|
const request = {
|
||||||
input: { text: text },
|
input: { text: text },
|
||||||
voice: { name: this.voices[voice].name, languageCode: this.voices[voice].lang },
|
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);
|
let [response] = await this.client.synthesizeSpeech(request);
|
||||||
const writeFile = util.promisify(fs.writeFile);
|
const writeFile = util.promisify(fs.writeFile);
|
||||||
|
|
Loading…
Reference in New Issue