thousandlemons / English-words-pronunciation-mp3-audio-download

Download the pronunciation mp3 audio for 119,376 unique English words/terms
Apache License 2.0
176 stars 51 forks source link

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

Open rezadevelop opened 6 years ago

rezadevelop commented 6 years ago

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
PhilipDang123 commented 1 year ago

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.