Creates an audio player that can be used to play audio files.

  • Parameters

    • params: IParams

      The parameters for the audio player.

    Returns {
        audioRef: RefObject<HTMLAudioElement>;
        play: () => void;
        render: () => Element;
    }

    An object with properties and functions for controlling the audio player.