openvidu-testapp: provide lang parameter to subscribeToSpeechToText method

pull/748/head
pabloFuente 2022-10-21 11:20:28 +02:00
parent 38a8681d17
commit 9a5cf628d0
1 changed files with 1 additions and 1 deletions

View File

@ -339,7 +339,7 @@ export class VideoComponent implements OnInit, OnDestroy {
async speechToText() {
if (this.captionIcon === 'closed_caption') {
await this.streamManager.stream.session.subscribeToSpeechToText(this.streamManager.stream);
await this.streamManager.stream.session.subscribeToSpeechToText(this.streamManager.stream, 'es');
} else {
await this.streamManager.stream.session.unsubscribeFromSpeechToText(this.streamManager.stream);
}