Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion kittentts/onnx_model.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
from misaki import en, espeak
import numpy as np
import phonemizer
import soundfile as sf
import onnxruntime as ort
from .preprocess import TextPreprocessor
import espeakng_loader
from phonemizer.backend.espeak.wrapper import EspeakWrapper

EspeakWrapper.set_library(espeakng_loader.get_library_path())
EspeakWrapper.set_data_path(espeakng_loader.get_data_path())


def basic_english_tokenize(text):
"""Basic English tokenizer that splits on whitespace and punctuation."""
Expand Down
10 changes: 5 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ classifiers = [
"Topic :: Scientific/Engineering :: Artificial Intelligence",
]
dependencies = [
"num2words",
"spacy",
"espeakng_loader",
"misaki[en]>=0.9.4",
"huggingface_hub",
"num2words",
"numpy",
"onnxruntime",
"phonemizer-fork~=3.3.2",
"soundfile",
"numpy",
"huggingface_hub",
"spacy",
]

[project.urls]
Expand Down
10 changes: 5 additions & 5 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
num2words
spacy
espeakng_loader
misaki[en]>=0.9.4
huggingface_hub
num2words
numpy
onnxruntime
phonemizer-fork~=3.3.2
soundfile
numpy
huggingface_hub
spacy
10 changes: 5 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@
],
python_requires=">=3.8",
install_requires=[
"num2words",
"spacy",
"espeakng_loader",
"misaki[en]>=0.9.4",
"huggingface_hub",
"num2words",
"numpy",
"onnxruntime",
"phonemizer-fork~=3.3.2",
"soundfile",
"numpy",
"huggingface_hub",
"spacy",
],
keywords="text-to-speech, tts, speech-synthesis, neural-networks, onnx",
project_urls={
Expand Down