Skip to content

Commit 5d7e4a3

Browse files
committed
skip mute microphone
1 parent 2517094 commit 5d7e4a3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

components/PushToTalkButton.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export function PushToTalkButton() {
2020
useEffect(() => {
2121
// start with microphone disabled for PTT agents
2222
if (agent && localParticipant) {
23-
localParticipant.setMicrophoneEnabled(false);
23+
// localParticipant.setMicrophoneEnabled(false);
2424
}
2525
}, [localParticipant, agent]);
2626

@@ -32,7 +32,7 @@ export function PushToTalkButton() {
3232

3333
console.log("starting turn");
3434
try {
35-
await localParticipant.setMicrophoneEnabled(true);
35+
// await localParticipant.setMicrophoneEnabled(true);
3636
await localParticipant.performRpc({
3737
destinationIdentity: agent.identity,
3838
method: "start_turn",
@@ -72,7 +72,7 @@ export function PushToTalkButton() {
7272

7373
console.log(`ending turn with method: ${method}`);
7474
try {
75-
await localParticipant.setMicrophoneEnabled(false);
75+
// await localParticipant.setMicrophoneEnabled(false);
7676
await localParticipant.performRpc({
7777
destinationIdentity: agent.identity,
7878
method: method,

0 commit comments

Comments
 (0)