title: Discord js Voice | How to use AudioResource
body: <p>I'm trying to create an <code>AudioResource</code> according to the <a href="https://discord.js.org/#/docs/voice/main/class/AudioResource" rel="nofollow noreferrer">documentation</a>, but I don't know what to fill in edges and streams. I only have <code>yt(youtube-url)</code> from <code>ytdl-core</code>. Please advise what information is required. I try create Audio Resource via <code>new Voice.AudioResource</code> on way documentation. I know about <code>createAudioResource</code>, but is there any possibility to do it differently?</p>
  <pre class="lang-js prettyprint-override"><code>client.on('messageCreate', (message) =&gt; {
      if(message.content == '!test'){
          
          const VoiceConnection = new Voice.VoiceConnection({
              channelId: message.member.voice.channel.id,
              guildId: message.guild.id,
              selfDeaf: true,
          }, {
              adapterCreator: message.guild.voiceAdapterCreator,
              debug: true
          })
  
          VoiceConnection.rejoin()
  
          const Player = new Voice.AudioPlayer()
          const Resource = new Voice.AudioResource([], [yt(youtube-url)]) // error
  
          VoiceConnection.subscribe(Player)
  
          Player.play(Resource)
      }
  })
  </code></pre>