0
How can I extract only the audio from the YouTube video in my code
2 odpowiedzi
+ 4
First you should really research the current terms and conditions of the Youtube service, and make sure you do not do anything illegal.
For example, separating the video and audio content is against YT TOS.
It is actually in Youtube's own commercialization strategy that they offer you to play audio only, if you pay for their Youtube Music premium service.
https://support.google.com/youtubemusic/answer/6313574
And I suggest to check this thread to see how others are trying to tackle this problem. Be aware that it is an old topic and many of the tools and methods mentioned, may not be available any more.
https://stackoverflow.com/questions/26548884/is-there-a-youtube-api-that-gives-only-audio
+ 1
I think it's better to leave it in video format 😕