raspberrypilearning/morse-code-virtual-radio

Sound file problems

LornaLynch opened this issue · 10 comments

I can't make the link to the sound file (slow morse code mp3) at line 39 work: I've put it back to what it was originally, but could anyone give me a hand?

The link was pointing to ./code/slow_morse.mp3, but the file is actually in 'sounds'. Have changed it and it should work now.

It's still a 404, I'm afraid: do you think it could be a problem with the sound file itself?

Sorry: the code thing was my fault, as I had been trying different ways to get the link to work.

Take the dot slash out. It's being caused by a bug in how the Raspberry Pi website translates file paths.
./sounds/slow_morse.mp3
should be
sounds/slow_morse.mp3

Thanks! I'll try that now.

This is still returning a 404 from the Raspberry Pi website. I can't work out how to fix it: sorry.

Dave's right - always remove ./ from the beginning of file paths.

Oh sorry missed the previous comment saying it's still broken. I'll take a look now.

Ah, ok, so I've fixed the link (it shouldn't start with a /) but I think the template is not allowing it to work. I'll look at it tomorrow.

Thanks!

Sorry: I misread Dave's message to take the dot slash out as just to take the dot out. I think I did also try it without the slash, though, and it still didn't work (I tried copying the format of other sound files).