mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 16:50:39 +00:00
feat: add tts on account level (#366)
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user