Files
storyteller-ml/tts/text/pipeline/base_pipeline.py
T
Brandon Thomas 76c6dbf12b Entirely reworked text handling pipeline
This breaks the text pipeline into the following pieces:

- input parsing (split known bracketed phoneme sections out first)

- normalization (fix spacing, numbers, abbreviations, etc.)

- phonetization (do CMUdict lookup or g2p prediction)

- sequencing (convert the symbolic representation to integer
  representation)

Each "pipeline" can have a unique combination of operations for each of
these pipeline steps.

This will grow over time.
2022-07-05 03:45:28 -04:00

7 lines
212 B
Python

from typing import List
class BasePipeline:
def user_input_to_sequence(self, input_text: str) -> List[int]:
"""Convert raw user input into a numerical sequence for ML inference."""
return []