rull commited on
Commit
17b81a5
·
verified ·
1 Parent(s): a3fd48d

Update scraper/voicevox.py

Browse files
Files changed (1) hide show
  1. scraper/voicevox.py +3 -0
scraper/voicevox.py CHANGED
@@ -1,4 +1,5 @@
1
  import requests
 
2
 
3
 
4
  class StatusError(Exception):
@@ -25,6 +26,8 @@ def check_audio_status(url):
25
  resp.raise_for_status()
26
  data = resp.json()
27
  is_ready = data["isAudioReady"]
 
 
28
  return is_ready
29
 
30
 
 
1
  import requests
2
+ import time
3
 
4
 
5
  class StatusError(Exception):
 
26
  resp.raise_for_status()
27
  data = resp.json()
28
  is_ready = data["isAudioReady"]
29
+ time.sleep(1)
30
+
31
  return is_ready
32
 
33