feat(external_api) add event with transcription chunks

This commit is contained in:
Saúl Ibarra Corretgé
2023-11-07 12:30:24 +01:00
committed by Saúl Ibarra Corretgé
parent 29dbcb309d
commit c530bdd107
3 changed files with 24 additions and 4 deletions

View File

@@ -1987,6 +1987,20 @@ class API {
});
}
/**
* Notify external application (if API is enabled) that the user received
* a transcription chunk.
*
* @param {Object} data - The event data.
* @returns {void}
*/
notifyTranscriptionChunkReceived(data) {
this._sendEvent({
name: 'transcription-chunk-received',
data
});
}
/**
* Notify external application (if API is enabled) whether the used browser is supported or not.
*