English-words-pronunciation-mp3-audio-download icon indicating copy to clipboard operation
English-words-pronunciation-mp3-audio-download copied to clipboard

prevent saving corrupted audio file, download with file ultimated.jso…

Open rezadevelop opened this issue 6 years ago • 1 comments

prevent saving corrupted audio file, download with file ultimated.json, download all list

  1. I had some mp3 file which contained some html report instead of Audio file so i check them in part 'download_mp3' before save them -this code is not efficient in speed! it needs experts to modify it
  2. For me ultimate.json was not work, i find out that 'download_mp3 has issue with array URL in this lookup table so i assign it one by one
  3. you can download all of address for each word. the file with same name will be named by adding number according to index of its URL
  • you can stop download for one word after first valid audio by change above code as follow:
                while ((i<len(url)) and (f==1)): 
                try:
                    f=0
                    download_mp3(word, url[i], self.dir_path)
                    i+=1
                except:
                    f=1
                    i+=1

rezadevelop avatar Aug 19 '18 23:08 rezadevelop

pls share me french or spanish Mp3 data if you can? I got English Mp3 already ( more than 100K files) Or I can exchange with you.

PhilipDang123 avatar Feb 02 '23 04:02 PhilipDang123