| document type | cmdlet |
|---|---|
| external help file | linuxtools-Help.xml |
| HelpUri | https://github.com/Skatterbrainz/linuxtools/blob/master/docs/Get-YouTubeAudio.md |
| Locale | en-US |
| Module Name | linuxtools |
| ms.date | 11/09/2025 |
| PlatyPS schema version | 2024-05-01 |
| title | Get-YouTubeAudio |
Downloads audio from a YouTube video using yt-dlp.
Get-YouTubeAudio [-URL] <string> [[-OutputPath] <string>] [[-NewName] <string>]
[[-ytdlpPath] <string>] [[-ytdlpOptions] <string>] [<CommonParameters>]
This cmdlet has the following aliases, {{Insert list of aliases}}
Downloads audio from a YouTube video using yt-dlp. The audio is saved as an MP3 file in the specified output path.
Get-YouTubeAudio -URL "https://www.youtube.com/watch?v=video_id" Downloads the audio from the YouTube video with the specified video ID.
Get-YouTubeAudio -URL "https://www.youtube.com/watch?v=video_id" -OutputPath "~/Music" Exported list of pending updates for non-AVD machines. Only two items appear this week. Both are related to ASP.NET core, or .NET framework, and both are on machine WVMAFSQ01.
Get-YouTubeAudio -URL "https://www.youtube.com/watch?v=video_id" -OutputPath "~/Music" -NewName "my_audio" Downloads the audio from the YouTube video with the specified video ID and saves it as "my_audio.m4a" in the specified output path.
Get-YouTubeAudio -URL "https://www.youtube.com/watch?v=video_id" -OutputPath "~/Music" -ytdlpOptions "-f 139" Downloads the audio from the YouTube video with the specified video ID using the specified yt-dlp options.
The new name of the audio file. The default value is the original name of the audio file.
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 2
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''The path where the audio file will be saved. The default value is ~/Downloads.
Type: System.String
DefaultValue: ~/Downloads
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 1
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''The URL of the YouTube video.
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 0
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''The options to pass to yt-dlp. The default value is "-f bestaudio --extract-audio --audio-format m4a".
Type: System.String
DefaultValue: -f bestaudio --extract-audio --audio-format m4a
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 4
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''The path to the yt-dlp executable. The default value is /usr/bin/yt-dlp.
Type: System.String
DefaultValue: /usr/bin/yt-dlp
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 3
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.