From 7f6062352e1644970f7f8e10a0130842b1a631f4 Mon Sep 17 00:00:00 2001 From: Reqeique <95624174+Reqeique@users.noreply.github.com> Date: Fri, 1 Mar 2024 14:23:02 +0000 Subject: [PATCH] FIXED: `ModuleNotFoundError: No module named 'ttsmodel'` and ADDED: dependencies in Poetry --- dimits/__init__.py | 6 ++++-- pyproject.toml | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/dimits/__init__.py b/dimits/__init__.py index f458f51..5c15929 100644 --- a/dimits/__init__.py +++ b/dimits/__init__.py @@ -2,8 +2,10 @@ __author__ = "Reqeique" -import ttsmodel -from . import main, ttsmodel,utils + + +from dimits.ttsmodel import TextToSpeechModel, TTSConfig +from .utils import untar, download, logger from .main import Dimits diff --git a/pyproject.toml b/pyproject.toml index 7e58d01..41e98db 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,11 +1,11 @@ [tool.poetry] name = "dimits" -version = "0.0.21-alpha" +version = "0.0.22-beta" description = "Dimits is a Python library that provides an easy-to-use interface to the Piper text-to-speech (TTS) system. It utilizes the powerful Piper TTS engine, which is optimized for Raspberry Pi 4, to generate high-quality synthesized speech." authors = ["Reqeique "] readme = "README.md" license = "MIT" -packages = [{include = "Dimits"}] + [tool.poetry.dependencies] python = "^3.9" @@ -13,6 +13,8 @@ requests = { version = "^2.13.0", source = "private" } espeak-phonemizer = { version = "*"} espeak-phonemizer-windows = { version = "*", platform = "win32" } tqdm = "4.64.0" +onnxruntime = { version = "*"} +soundfile = { version = "*"} [build-system] requires = ["poetry-core"]