Skip to content

Commit

Permalink
Update voicevox_engine/resource_manager.py
Browse files Browse the repository at this point in the history
Co-authored-by: Hiroshiba <hihokaruta@gmail.com>
  • Loading branch information
sabonerune and Hiroshiba authored Jun 18, 2024
1 parent 1a3fed1 commit 9620310
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions voicevox_engine/resource_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,5 @@ def resource_str(
return f"{base_url}/{filehash}"

def resource_path(self, filehash: str) -> Path | None:
"""指定したハッシュ値を持つリソースファイルのパスを返す。"""
return self._hash_to_path.get(filehash)

0 comments on commit 9620310

Please sign in to comment.