Update infer_onnx.py
Browse files- infer_onnx.py +3 -0
infer_onnx.py
CHANGED
@@ -3,6 +3,9 @@ import os
|
|
3 |
import onnxruntime
|
4 |
import numpy as np
|
5 |
from huggingface_hub import snapshot_download
|
|
|
|
|
|
|
6 |
|
7 |
class TTS:
|
8 |
def __init__(self, model_name: str, save_path: str = "./model", add_time_to_end: float = 0.8) -> None:
|
|
|
3 |
import onnxruntime
|
4 |
import numpy as np
|
5 |
from huggingface_hub import snapshot_download
|
6 |
+
from num2words import num2words
|
7 |
+
import re
|
8 |
+
from transliterate import translit
|
9 |
|
10 |
class TTS:
|
11 |
def __init__(self, model_name: str, save_path: str = "./model", add_time_to_end: float = 0.8) -> None:
|