Discussions

Ask a Question
Back to all

Getting NO Audio , NO LipSync

(edited)

I have created Full mode and joined room , Video is not visible just static image is visible and can't head audio that i am sending

After joining room we are calling handleSpeak.

async handleSpeak() {
if (!this.room) return;

console.log('Sending speak command');

const message = {
type: "command",
command: {
name: "avatar.speak_text",
args: {
text: "This is a demo text"
}
}
};

const payload = new TextEncoder().encode(
JSON.stringify(message)
);
await this.room.localParticipant.publishData(
payload,
DataPacket_Kind.RELIABLE,

);
}