From 9a5cf628d0dccba7bb3c875d99a522849a4203f6 Mon Sep 17 00:00:00 2001 From: pabloFuente Date: Fri, 21 Oct 2022 11:20:28 +0200 Subject: [PATCH] openvidu-testapp: provide lang parameter to subscribeToSpeechToText method --- openvidu-testapp/src/app/components/video/video.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openvidu-testapp/src/app/components/video/video.component.ts b/openvidu-testapp/src/app/components/video/video.component.ts index 4d04828b..dce634aa 100644 --- a/openvidu-testapp/src/app/components/video/video.component.ts +++ b/openvidu-testapp/src/app/components/video/video.component.ts @@ -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); }