From 7b2566fdfba7632a6963a099309624c48d78cd77 Mon Sep 17 00:00:00 2001 From: AboveAverageTomato <83777757+AboveAverageTomato@users.noreply.github.com> Date: Thu, 5 May 2022 17:34:27 -0400 Subject: [PATCH] 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. --- Hi_Chewy/Hi_Chewy.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Hi_Chewy/Hi_Chewy.ino b/Hi_Chewy/Hi_Chewy.ino index 2637a18..f13b3e4 100644 --- a/Hi_Chewy/Hi_Chewy.ino +++ b/Hi_Chewy/Hi_Chewy.ino @@ -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;"));