Why isn't the bot playing the audio

I'm using this code from the guide and the bot is joining the channel, but not playing any audio. How could I fix this?
Here's my code:
const connection = joinVoiceChannel({
            channelId: channel.id,
            guildId: interaction.guildId,
            adapterCreator: channel.guild.voiceAdapterCreator,
            selfDeaf: false
        });
const player = createAudioPlayer({
      behaviors: {noSubscriber: NoSubscriberBehavior.Pause},
});
connection.subscribe(player)
const resource = createAudioResource('music/Steps.mp3', { metadata: {channel: channel} });
player.play(resource);
interaction.editReply(`Playing ${channel.toString()}`)

I'm also not getting any errors
Was this page helpful?