Sets a callback for receiving transcript data on the global client
This function is part of the singleton API. The callback is triggered when transcript data is received from the meeting.
The callback function to invoke
true if the callback was set successfully
rtms.onTranscriptData((buffer, size, timestamp, metadata) => { // Convert buffer to string (assuming UTF-8 encoding) const text = buffer.toString('utf8'); console.log(`Transcript from ${metadata.userName}: ${text}`);}); Copy
rtms.onTranscriptData((buffer, size, timestamp, metadata) => { // Convert buffer to string (assuming UTF-8 encoding) const text = buffer.toString('utf8'); console.log(`Transcript from ${metadata.userName}: ${text}`);});
Sets a callback for receiving transcript data on the global client
This function is part of the singleton API. The callback is triggered when transcript data is received from the meeting.