If you want to download a YouTube video, you can use the VLC media player or YouTube's own Premium features. Here's how.
To turn a video into an audio file on your iPhone, you'll need to download a third-party app from the App Store.