Fix/gladia multi sessions (#1487)

* support gladia transcribe multi channels

* wip
This commit is contained in:
Hoan Luu Huu
2026-01-07 22:46:33 +07:00
committed by GitHub
parent ba275ef547
commit e4ec0025c3
4 changed files with 20 additions and 25 deletions

View File

@@ -459,6 +459,14 @@ class TaskTranscribe extends SttTask {
else if (this.data.recognizer?.hints?.length > 0) {
prompt = this.data.recognizer?.hints.join(', ');
}
} else if (this.vendor === 'gladia') {
// gladia require unique url for each session
const {host, path} = await this.createGladiaLiveSession();
await ep.set({
GLADIA_SPEECH_HOST: host,
GLADIA_SPEECH_PATH: path,
})
.catch((err) => this.logger.info(err, 'Error setting channel variables'));
}
await ep.startTranscription({