# Beta extension: Audio Recording

**URL:** https://forum.makecode.com/t/beta-extension-audio-recording/19092
**Category:** micro:bit extensions
**Created:** [April 10, 2023, 6:01pm UTC](https://forum.makecode.com/t/beta-extension-audio-recording/19092 "2023-04-10T18:01:17Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![elephant\_beard227](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/elephant_beard227/32/20294_2.png) [@elephant\_beard227](https://forum.makecode.com/u/elephant_beard227)
#### Post date: [April 10, 2023, 6:01pm UTC](https://forum.makecode.com/t/beta-extension-audio-recording/19092/1 "2023-04-10T18:01:17Z")

</div>

I am trying hard to use the audio recording extension newly added to the beta micro:bit editor, and it gives me an error saying “Program error: e.fn is not a function”. 1. What does “e.fn” mean, and 2. How do I get my program to work?  
🆘Please send help.

---

<div class="post-metadata">

### Author: ![bsiever](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/bsiever/32/1032_2.png) [@bsiever](https://forum.makecode.com/u/bsiever)
#### Post date: [April 14, 2023, 4:47pm UTC](https://forum.makecode.com/t/beta-extension-audio-recording/19092/2 "2023-04-14T16:47:37Z")

</div>

Hi @elephant_beard227

It may help if you share your code so other people can look at it and try it out. Here are the instructions for sharing projects: [https://support.microbit.org/support/solutions/articles/19000086289-sharing-a-makecode-project](https://support.microbit.org/support/solutions/articles/19000086289-sharing-a-makecode-project)

---

<div class="post-metadata">

### Author: ![elephant\_beard227](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/elephant_beard227/32/20294_2.png) [@elephant\_beard227](https://forum.makecode.com/u/elephant_beard227)
#### Post date: [April 15, 2023, 1:54am UTC](https://forum.makecode.com/t/beta-extension-audio-recording/19092/3 "2023-04-15T01:54:33Z")

</div>

Ok. I will send it to you as JavaScript.

```auto
input.onButtonPressed(Button.A, function () {
    if (sens == 1) {
        music.playMelody("C - C - - - - - ", 120)
        sens = 2
    } else if (sens == 2) {
        sens = 3
        music.playMelody("C - C - C - - - ", 120)
    } else if (sens == 3) {
        sens = 1
        music.playMelody("C - - - - - - - ", 120)
    }
})
let sens = 0
sens = 1
music.playMelody("C - - - - - - - ", 120)
basic.forever(function () {
    record.startRecording()
    record.playAudio()
})
basic.forever(function () {
    led.plotBarGraph(
    input.soundLevel(),
    0
    )
})

```

\*Note: it isn’t crashing anymore but I can’t get it to record now.
