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