support whisper instructions (#1198)

* support whisper instructions

* wip

* update speech utils and verb specification
This commit is contained in:
Hoan Luu Huu
2025-05-13 20:44:00 +07:00
committed by GitHub
parent d7884a837a
commit 9585018147
4 changed files with 73 additions and 72 deletions

View File

@@ -21,6 +21,7 @@ class TtsTask extends Task {
this.synthesizer = this.data.synthesizer || {};
this.disableTtsCache = this.data.disableTtsCache;
this.options = this.synthesizer.options || {};
this.instructions = this.data.instructions;
}
async exec(cs) {
@@ -262,6 +263,7 @@ class TtsTask extends Task {
const {filePath, servedFromCache, rtt} = await synthAudio(stats, {
account_sid,
text,
instructions: this.instructions,
vendor,
language,
voice,