rull commited on
Commit
7597554
·
verified ·
1 Parent(s): 32440f5

Update scraper/voicevox.py

Browse files
Files changed (1) hide show
  1. scraper/voicevox.py +2 -2
scraper/voicevox.py CHANGED
@@ -6,8 +6,8 @@ class StatusError(Exception):
6
  pass
7
 
8
  def synthesis(text, speaker = None):
9
- if status is None:
10
- status = 1
11
  url = f"https://api.tts.quest/v3/voicevox/synthesis?text={text}&speaker={speaker}"
12
  resp = requests.get(url)
13
  resp.raise_for_status()
 
6
  pass
7
 
8
  def synthesis(text, speaker = None):
9
+ if speaker is None:
10
+ speaker = 1
11
  url = f"https://api.tts.quest/v3/voicevox/synthesis?text={text}&speaker={speaker}"
12
  resp = requests.get(url)
13
  resp.raise_for_status()