Skip to content

Commit

Permalink
Refactor phoneme handler by removing unused dict
Browse files Browse the repository at this point in the history
  • Loading branch information
tarepan committed Nov 26, 2023
1 parent fb2d1c5 commit eb5931d
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions voicevox_engine/acoustic_feature_extractor.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from abc import abstractmethod
from enum import Enum
from pathlib import Path
from typing import List, Sequence

Expand Down Expand Up @@ -240,13 +239,3 @@ def convert(cls, phonemes: List["OjtPhoneme"]):
if "sil" in phonemes[-1].phoneme:
phonemes[-1].phoneme = cls.space_phoneme
return phonemes


class PhonemeType(str, Enum):
jvs = "jvs"
openjtalk = "openjtalk"


phoneme_type_to_class = {
PhonemeType.openjtalk: OjtPhoneme,
}

0 comments on commit eb5931d

Please sign in to comment.