mirror of
https://github.com/denizsafak/abogen.git
synced 2026-09-20 19:50:59 +02:00
fix: add keys() method to VoiceCache for resolve_intro compatibility
This commit is contained in:
@@ -33,6 +33,10 @@ class VoiceCache:
|
|||||||
"""Clear all cached voices."""
|
"""Clear all cached voices."""
|
||||||
self._cache.clear()
|
self._cache.clear()
|
||||||
|
|
||||||
|
def keys(self):
|
||||||
|
"""Return cached voice specs."""
|
||||||
|
return self._cache.keys()
|
||||||
|
|
||||||
def __contains__(self, voice_spec: str) -> bool:
|
def __contains__(self, voice_spec: str) -> bool:
|
||||||
return self.contains(voice_spec)
|
return self.contains(voice_spec)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user