connection.receiver.speaking.on('start', async (userId) => {
const receiverOptions = {
mode: 'mp3',
end: {
behavior: EndBehaviorType.AfterSilence,
duration: 500
}
};
connection.receiver.subscribe(userId, receiverOptions);
})
connection.receiver.speaking.on("end", async (data, data2) => {
console.log(data)
})
connection.receiver.speaking.on('start', async (userId) => {
const receiverOptions = {
mode: 'mp3',
end: {
behavior: EndBehaviorType.AfterSilence,
duration: 500
}
};
connection.receiver.subscribe(userId, receiverOptions);
})
connection.receiver.speaking.on("end", async (data, data2) => {
console.log(data)
})