feat: add tts on account level (#366)

This commit is contained in:
Hoan Luu Huu
2023-06-02 20:31:28 +07:00
committed by GitHub
parent fdd8f7e743
commit d96712a8d6
3 changed files with 3 additions and 0 deletions

View File

@@ -222,6 +222,7 @@ class Dialogflow extends Task {
try { try {
const obj = { const obj = {
account_sid: cs.accountSid,
text: intent.fulfillmentText, text: intent.fulfillmentText,
vendor: this.vendor, vendor: this.vendor,
language: this.language, language: this.language,

View File

@@ -189,6 +189,7 @@ class Lex extends Task {
this.logger.debug(`tts with ${this.vendor} ${this.voice}`); this.logger.debug(`tts with ${this.vendor} ${this.voice}`);
// eslint-disable-next-line no-unused-vars // eslint-disable-next-line no-unused-vars
const {filePath, servedFromCache} = await synthAudio(stats, { const {filePath, servedFromCache} = await synthAudio(stats, {
account_sid: cs.accountSid,
text: msg, text: msg,
vendor: this.vendor, vendor: this.vendor,
language: this.language, language: this.language,

View File

@@ -120,6 +120,7 @@ class TaskSay extends Task {
}); });
try { try {
const {filePath, servedFromCache, rtt} = await synthAudio(stats, { const {filePath, servedFromCache, rtt} = await synthAudio(stats, {
account_sid: cs.accountSid,
text, text,
vendor, vendor,
language, language,