(text: str)
| 120 | |
| 121 | |
| 122 | def process_text(text: str): |
| 123 | text = re.sub(r'\d+(\.\d+)?', lambda x: x.group(), text.lower()) # TODO this needs to be fixed |
| 124 | text = re.sub(r'[-_/,\.\\]', ' ', text) |
| 125 | text = re.sub(r'[^a-z\s]', '', text) |
| 126 | text = re.sub(r'\s+', ' ', text).strip() |
| 127 | return text.split() |
| 128 | |
| 129 | # usage: |
| 130 | # python tts-outetts.py http://server-llm:port http://server-dec:port "text" |
no test coverage detected