Skip to content

Comparison with PowerShell Audio

Jeremy Herbison edited this page Dec 21, 2018 · 17 revisions

This is a list of API changes and improvements versus PowerShell Audio.

Cmdlet Changes

For simplicity, we reduced the number of cmdlets by focusing on those that consume and emit AudioFile objects.

Removed or Replaced Cmdlets

  • Clear-AudioFileMetadata (replaced with Clear-AudioMetadata)
  • Convert-AudioCoverArt
  • Convert-AudioFileCoverArt
  • Copy-AudioFile
  • Export-AudioFileCoverArt
  • Get-AudioFileCoverArt
  • Get-AudioFileMetadata (replaced with Get-AudioMetadata)
  • Save-AudioFileMetadata
  • Set-AudioFileCoverArt
  • Set-AudioFileMetadata (replaced with Set-AudioMetadata)

API Changes

  • Replaced Export-AudioFile's -Settings parameter with encoder-specific dynamic parameters
  • Replaced Save-AudioMetadata's -Settings' parameter with dynamic parameters you can access by setting the -Format` switch
  • Measure-AudioFile now does ReplayGain 2.0 (EBU R.128-based) by default; ReplayGain 1.0 is no longer available.
  • Bitmap cover art is now automatically converted to lossless (PNG) format.
  • Cover art is automatically converted to lossy (JPEG) when exporting to a lossy audio format.
  • Apple's SoundCheck tags are no longer recognized by iTunes. Therefore, this feature has been removed.

General Improvements

  • Runs on PowerShell Core 6.1+ (Windows, MacOS and Linux), in addition to Windows PowerShell 5.1
  • Simpler installation and updates via PowerShellGet
    • No dependency on Microsoft Visual C++ Runtime
    • Can be installed in the user profile (no administrator rights required)
    • Extensions are automatically updated at runtime
  • Tab completion and dynamic parameters enhance discoverability
  • Pre-allocation for most encoding formats (to avoid file fragmentation)
  • Fine-grained progress reporting
  • Uses less memory
  • Faster encoding (particularly to Ogg Vorbis and to/from Wave):
from to Wave to FLAC to ALAC to MP3 to AAC to Vorbis
Wave 966% 109% 48% 24% 20% 59%
FLAC 184% 47% 27% 15% 13% 44%
ALAC 93% 25% 20% 34% 15% 53%
  • Faster analysis:
from ReplayGain 2.0
Wave 239%
FLAC 49%
ALAC 33%

Performance comparison is AudioWorks on PowerShell Core 6.1 versus PowerShell Audio on Windows PowerShell 5.1. All tests performed on Windows 10 build 17763, with an Intel Core i7-4770, 16 GB of RAM and SSD storage.

Bug Fixes

  • Corrected ReplayGain 2.0 album results