Index
Events Methods
Other Methods
Constructors
constructor
-
Parameters
-
identifier: string
-
token: string
-
Events Methods
onClose
- onClose(callback: () => void): Uhlive
onError
- onError(callback: () => void): Uhlive
Other Methods
join
-
Parameters
-
conversationId: string
-
Default value options: ConversationOptions = {country: this.getCountryFromBrowser(),ignoreDecodingEvents: [],ignoreEntities: [],interim_results: true,model: this.getLocaleFromBrowser(),origin: 0,readonly: false,rescoring: true,speaker: Uhlive.generateSpeakerId(),wrapper: "uhlive",}
leave
- leave(conversationId: string): Uhlive
leaveAllConversations
- leaveAllConversations(): Uhlive
Create an Uhlive instance by passing your private token and identifier.
const uhlive = new Uhlive("my-identifier", "my-token", { timeout: 3, url: "wss://api.uh.live", });