mirror of https://github.com/OpenVidu/openvidu.git
openvidu-browser: subscribeToSpeechToText param documentation
parent
9a5cf628d0
commit
c865b70c40
|
@ -648,6 +648,9 @@ export class Session extends EventDispatcher {
|
||||||
* Subscribe to the Speech-To-Text events for this [[Stream]]. The Session object will emit [[SpeechToTextEvent]] for the Stream
|
* Subscribe to the Speech-To-Text events for this [[Stream]]. The Session object will emit [[SpeechToTextEvent]] for the Stream
|
||||||
* when speech is detected in its audio track.
|
* when speech is detected in its audio track.
|
||||||
*
|
*
|
||||||
|
* @param stream - The Stream for which you want to start receiving [[SpeechToTextEvent]].
|
||||||
|
* @þaram lang - The language of the Stream's audio track. It must be a valid [BCP-47](https://tools.ietf.org/html/bcp47) language tag like "en-US" or "es-ES".
|
||||||
|
*
|
||||||
* @returns A Promise (to which you can optionally subscribe to) that is resolved if the speech-to-text subscription
|
* @returns A Promise (to which you can optionally subscribe to) that is resolved if the speech-to-text subscription
|
||||||
* was successful and rejected with an Error object if not.
|
* was successful and rejected with an Error object if not.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue