# Issue is Call Recording and Call Voice using Java Script

**URL:** <https://community.sendbird.com/t/issue-is-call-recording-and-call-voice-using-java-script/1211>\
**Category:** JavaScript\
**Tags:** voice-call, sendbird-call, javascript\
**Created:** [October 29, 2020, 6:53am UTC](https://community.sendbird.com/t/issue-is-call-recording-and-call-voice-using-java-script/1211 "2020-10-29T06:53:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ShubhamKumawat](https://avatars.discourse-cdn.com/v4/letter/s/3ab097/32.png) [@ShubhamKumawat](https://community.sendbird.com/u/ShubhamKumawat)\
**Post date:** [October 29, 2020, 6:53am UTC](https://community.sendbird.com/t/issue-is-call-recording-and-call-voice-using-java-script/1211/1 "2020-10-29T06:53:55Z")

</div>

Issue in Call Recording and also Generate Ecco Voice Sound and Android User Cant hearing and also simultaneous Web User generate Ecco Sound . I am want only Voice Call

$(".call\_attend").click(function() {

const acceptParams = {  
callOption: {  
remoteMediaView: document.getElementById(‘remote\_audio\_element\_id’),  
localMediaView: document.getElementById(‘local\_audio\_element\_id’),  
audioEnabled: true,  
videoEnabled: false  
}  
};  
console.log(“Call Accepted Here By Astrologer”);  
call.accept(acceptParams);

});

call.onEstablished = (call) =\> {  
console.log(“Calling onEstablished”);  
console.log(call);  
console.log(SendBirdCall.setLoggerLevel(SendBirdCall.LoggerLevel.INFO));  
console.log(SendBirdCall.setLoggerLevel(SendBirdCall.LoggerLevel.WARNING));  
console.log(SendBirdCall.setLoggerLevel(SendBirdCall.LoggerLevel.ERROR));  
console.log(SendBirdCall.setLoggerLevel(SendBirdCall.LoggerLevel.NONE));  
document.getElementById(“my\_audio”).pause();

};

call.onConnected = (call) =\> {

console.log(“Calling onConnected”);  
console.log(call);  
console.log(SendBirdCall.setLoggerLevel(SendBirdCall.LoggerLevel.INFO));  
console.log(SendBirdCall.setLoggerLevel(SendBirdCall.LoggerLevel.WARNING));  
console.log(SendBirdCall.setLoggerLevel(SendBirdCall.LoggerLevel.ERROR));  
console.log(SendBirdCall.setLoggerLevel(SendBirdCall.LoggerLevel.NONE));

console.log(“Recording started”);  
call.setRemoteMediaView(document.getElementById(‘remote\_audio\_element\_id’));  
call.setLocalMediaView(document.getElementById(‘local\_audio\_element\_id’));

let FILE\_NAME=“Shubham.mp4”;

let options = new SendBirdCall.DirectCallRecordOption({  
recordingType: SendBirdCall.RecordingType.LOCAL\_REMOTE\_AUDIOS,  
callId: sessionStorage.getItem(“call\_id”),  
fileName: FILE\_NAME  
})

console.log(options);  
const recordingId = call.startRecording(options);  
console.log(recordingId);  
sessionStorage.setItem(“RecId”,recordingId);  
if(recordingId){  
console.log(“Recording start succeed.”);  
console.log("NEW " +recordingId);  
sessionStorage.setItem(“RecordingId”,recordingId);  
// Recording start succeed.  
} else {  
console.log(“Recording start failed.”);  
// Recording start failed.  
}

---

<div class="post-metadata">

**Author:** ![kckern](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/kckern/32/65_2.png) [@kckern](https://community.sendbird.com/u/kckern)\
**Post date:** [October 30, 2020, 1:58am UTC](https://community.sendbird.com/t/issue-is-call-recording-and-call-voice-using-java-script/1211/2 "2020-10-30T01:58:54Z")

</div>

To solve the echo issue, you need to prevent the local audio from playing back in the element (echoing) by including the attribute `muted` . Example: `<video id="viewer_local" autoPlay muted></video>` Make sure you only do this on the local element, because if you do it on the remote one also, you will not be able to hear the person you are calling.

To debug the Android user not being able to hear, please first try calling the Android user in the dashboard phonebooth. If it works there, then there is some implementation issue that needs to be solved.

---

<div class="post-metadata">

**Author:** ![ShubhamKumawat](https://avatars.discourse-cdn.com/v4/letter/s/3ab097/32.png) [@ShubhamKumawat](https://community.sendbird.com/u/ShubhamKumawat)\
**Post date:** [October 30, 2020, 8:50am UTC](https://community.sendbird.com/t/issue-is-call-recording-and-call-voice-using-java-script/1211/3 "2020-10-30T08:50:12Z")

</div>

**i want only voice call not a video call so it is use video tag element in audio voice call**  
**`<video id="viewer_local" autoPlay muted></video>`**  
\*\*Or I will use this` <audio id="local_audio_element_id" autoPlay muted></audio>**`
