The simplest way to play audio in your Framer prototype is to use a package from the Store. 

Audio Player is a package you can download and use to play mp3 files.

Because Framer X supports Javascript natively, you can use this to handle playing audio if you're looking for a more custom solution.

The best way to do this would be to include the following snippet into a code component:

var audio = new Audio("");

From here, you can then use:

To play the specified audio.

Pro Tip:
It would be best to add the method to a handleClick function to control when the audio will play. Here’s a quick example that will let you play audio onClick:

import * as React from "react";

var audio = new Audio("");

export class AudioPlayer extends React.Component {
  constructor(props) {
    this.handleClick = this.handleClick.bind(this);

  handleClick() {

  render() {
    return <div onClick={this.handleClick} />;

Did this answer your question?