1 2 3 4 5 6 7 8 |
Add-Type -AssemblyName Microsoft.VisualBasic $audio = [Microsoft.VisualBasic.Devices.Audio]::new() $audio.Play("C:\Users\juan\saludo.wav",[Microsoft.VisualBasic.AudioPlayMode]::BackgroundLoop) Start-Sleep -Seconds 5 $audio.Stop() |