Changed wav file URI to download properly

The previous wav file url would download the github html page instead of the actual wav file, causing Windows Media Player to fail to play it. Changing the URI to the raw content fixes this.
This commit is contained in:
AboveAverageTomato 2022-05-05 17:34:27 -04:00 committed by GitHub
parent ba7be0935f
commit 7b2566fdfb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ void loop() {
DigiKeyboard.sendKeyStroke(KEY_ENTER);
DigiKeyboard.delay(500);
DigiKeyboard.print(F("start-sleep 300;"));
DigiKeyboard.print(F("irm -uri \"https://github.com/apsecdev/DigiSpark-Scripts/blob/master/Hi_Chewy/Chewbacca.wav\" -OutFile \"$env:temp\\play.wav\";"));
DigiKeyboard.print(F("irm -uri \"https://github.com/apsecdev/DigiSpark-Scripts/blob/master/Hi_Chewy/Chewbacca.wav?raw=true\" -OutFile \"$env:temp\\play.wav\";"));
DigiKeyboard.print(F("Add-Type -AssemblyName presentationCore;"));
DigiKeyboard.print(F("$filepath = [uri] \"$env:temp\\play.wav\";"));
DigiKeyboard.print(F("$wmplayer = New-Object System.Windows.Media.MediaPlayer;"));