call from ????? your business ????? accept press 1 to send a voicemail press 2
const wavesurfer = WaveSurfer.create({
container: document.getElementById(‘audioWave’),
waveColor: ‘#B6BACA’,
progressColor: ‘#010838’,
url: ‘https://storage.robocalls.ai/number-profile/recordings/873f2e73-ba33-474c-943f-2477dc8efafd.mp3’,
barWidth: 3,
barGap: 3,
barRadius: 3,
cursorWidth: 0,
})
const playAudioWave = () => {
wavesurfer.playPause();
}
wavesurfer.on(‘finish’, () => {
document.getElementById(‘pause-audio-transcript’).style.display = “none”;
document.getElementById(‘play-audio-transcript’).style.display = “block”;
})
wavesurfer.on(‘play’, () => {
document.getElementById(‘pause-audio-transcript’).style.display = “block”;
document.getElementById(‘play-audio-transcript’).style.display = “none”;
window.dataLayer = window.dataLayer || []
window.dataLayer.push({
‘event’: ‘gtag_event’,
‘event_action’: ‘play’,
‘event_category’: ‘Audio’,
‘event_label’: ‘Play Audio’
})
})
wavesurfer.on(‘pause’, () => {
document.getElementById(‘pause-audio-transcript’).style.display = “none”;
document.getElementById(‘play-audio-transcript’).style.display = “block”;
})