Can't huffduff a particular speechification mp3

  • Problem
  • Updated 5 years ago
  • Solved
went to http://speechification.com/2008/10/15... and used the huffduff it bookmarket only to be told "must be an audio file", which the mp3s clearly are because they both play and download. I've tried pasting the URL as well but it doesn't work.

I guess this is either because the URL starts with "https" or because it ends with "..mp3"
Photo of Phil Wilson

Phil Wilson

  • 7 Posts
  • 0 Likes

Posted 6 years ago

  • 2
Photo of adactio

adactio, Official Rep

  • 208 Posts
  • 36 Likes
I'm quite sure exactly what the problem is but in any case, it lies with my lack of ability with regular expressions when I'm trying to extract mp3 files from the source of an HTML document. I'll do what I can to fix this but if anybody out there has l33t regular expressions skillz and might have some time to help me out, please let me know.
Photo of msciroccoM

mscirocco

  • 5 Posts
  • 0 Likes
PHP or javascript?
Photo of Richard Dallaway

Richard Dallaway

  • 1 Post
  • 0 Likes
I had the same "must be an audio file" on a speechification URL, but just changed the https:// part to http:// and Huffduffer was happy. (After checking that the http:// version would work, of course).
Photo of Phil Wilson

Phil Wilson

  • 7 Posts
  • 0 Likes
I did try that but I couldn't get the file at all through http:// only https://
Photo of adactio

adactio, Official Rep

  • 208 Posts
  • 36 Likes
Official Response
I couldn't find a way to check for the validity of https:// files so I'm bypassing the problem entirely: if you huffduff a file beginning with https://, there won't be any check to make sure that it's an audio file.

That's a hack but at least those speechification files can be huffduffed now.
Photo of msciroccoM

mscirocco

  • 5 Posts
  • 0 Likes
Do you want PHP regular expression help?
Photo of Kevan

Kevan

  • 4 Posts
  • 1 Like
I'm getting the "must be an audio file" error on http://jb_speechification.s3.amazonaw... today, having right-clicked the MP3 link to Huffduff it.