mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-21 17:17:58 +00:00
minor change to prev commit
This commit is contained in:
@@ -43,9 +43,7 @@ class TaskSay extends Task {
|
|||||||
// synthesize all of the text elements
|
// synthesize all of the text elements
|
||||||
let lastUpdated = false;
|
let lastUpdated = false;
|
||||||
const filepath = (await Promise.all(this.text.map(async(text) => {
|
const filepath = (await Promise.all(this.text.map(async(text) => {
|
||||||
if (text.startsWith('silence://')) {
|
if (text.startsWith('silence_stream://')) return text;
|
||||||
return `silence_stream://${text.slice(10)}`;
|
|
||||||
}
|
|
||||||
const {filePath, servedFromCache} = await synthAudio(stats, {
|
const {filePath, servedFromCache} = await synthAudio(stats, {
|
||||||
text,
|
text,
|
||||||
vendor,
|
vendor,
|
||||||
|
|||||||
Reference in New Issue
Block a user