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:
parent
ba7be0935f
commit
7b2566fdfb
|
@ -14,7 +14,7 @@ void loop() {
|
||||||
DigiKeyboard.sendKeyStroke(KEY_ENTER);
|
DigiKeyboard.sendKeyStroke(KEY_ENTER);
|
||||||
DigiKeyboard.delay(500);
|
DigiKeyboard.delay(500);
|
||||||
DigiKeyboard.print(F("start-sleep 300;"));
|
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("Add-Type -AssemblyName presentationCore;"));
|
||||||
DigiKeyboard.print(F("$filepath = [uri] \"$env:temp\\play.wav\";"));
|
DigiKeyboard.print(F("$filepath = [uri] \"$env:temp\\play.wav\";"));
|
||||||
DigiKeyboard.print(F("$wmplayer = New-Object System.Windows.Media.MediaPlayer;"));
|
DigiKeyboard.print(F("$wmplayer = New-Object System.Windows.Media.MediaPlayer;"));
|
||||||
|
|
Loading…
Reference in New Issue