rull commited on
Commit
0c28666
·
verified ·
1 Parent(s): 7597554

Update scraper/voicevox.py

Browse files
Files changed (1) hide show
  1. scraper/voicevox.py +2 -0
scraper/voicevox.py CHANGED
@@ -1,10 +1,12 @@
1
  import requests
2
  import time
 
3
 
4
 
5
  class StatusError(Exception):
6
  pass
7
 
 
8
  def synthesis(text, speaker = None):
9
  if speaker is None:
10
  speaker = 1
 
1
  import requests
2
  import time
3
+ from functools import lru_cache
4
 
5
 
6
  class StatusError(Exception):
7
  pass
8
 
9
+ @lru_cache(maxsize=None)
10
  def synthesis(text, speaker = None):
11
  if speaker is None:
12
  speaker = 1