# Transmit audio recording

**URL:** <https://forum.makecode.com/t/transmit-audio-recording/30456>\
**Category:** micro:bit\
**Created:** [September 6, 2024, 6:11pm UTC](https://forum.makecode.com/t/transmit-audio-recording/30456 "2024-09-06T18:11:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gblessed](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/gblessed/32/17070_2.png) [@gblessed](https://forum.makecode.com/u/gblessed)\
**Post date:** [September 6, 2024, 6:11pm UTC](https://forum.makecode.com/t/transmit-audio-recording/30456/1 "2024-09-06T18:11:45Z")

</div>

Hi I am able to record and play audio recordings using the record extension.

```auto
def on_button_pressed_a():
    record.set_sample_rate(10000, record.AudioSampleRateScope.RECORDING)
    basic.show_icon(IconNames.SMALL_SQUARE)
    record.start_recording(record.BlockingState.BLOCKING)
    basic.clear_screen()
input.on_button_pressed(Button.A, on_button_pressed_a)

def on_button_pressed_b():
    record.set_sample_rate(20000, record.AudioSampleRateScope.PLAYBACK)
    basic.show_leds("""
        . # . . .
        . # # . .
        . # # # .
        . # # . .
        . # . . .
        """)
    record.play_audio(record.BlockingState.BLOCKING)
    basic.clear_screen()
input.on_button_pressed(Button.B, on_button_pressed_b)

```

But I cant find a way to access the audio buffer to transmit the audio sample values over serial. Please any guide?

---

<div class="post-metadata">

**Author:** ![idamato](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/idamato/32/17696_2.png) [@idamato](https://forum.makecode.com/u/idamato)\
**Post date:** [October 21, 2024, 2:34pm UTC](https://forum.makecode.com/t/transmit-audio-recording/30456/2 "2024-10-21T14:34:03Z")

</div>

Hello, I have the same need. Did you find a solution in the meantime?

---

<div class="post-metadata">

**Author:** ![gblessed](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/gblessed/32/17070_2.png) [@gblessed](https://forum.makecode.com/u/gblessed)\
**Post date:** [October 21, 2024, 9:30pm UTC](https://forum.makecode.com/t/transmit-audio-recording/30456/3 "2024-10-21T21:30:46Z")

</div>

Yes, I eventually found a solution

Check it out: [https://github.com/martinwork/pxt-audio-recording](https://github.com/martinwork/pxt-audio-recording)
