mirror of https://github.com/OpenVidu/openvidu.git
openvidu-testapp: provide lang parameter to subscribeToSpeechToText method
parent
38a8681d17
commit
9a5cf628d0
|
@ -339,7 +339,7 @@ export class VideoComponent implements OnInit, OnDestroy {
|
||||||
|
|
||||||
async speechToText() {
|
async speechToText() {
|
||||||
if (this.captionIcon === 'closed_caption') {
|
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 {
|
} else {
|
||||||
await this.streamManager.stream.session.unsubscribeFromSpeechToText(this.streamManager.stream);
|
await this.streamManager.stream.session.unsubscribeFromSpeechToText(this.streamManager.stream);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue