teddybear082 commited on
Commit ·
9bfa614
1
Parent(s): d6b5e80
attempted mp3 fix
Browse files-downgraded torch and torchaudio to 2.8 to avoid having to use torchcodec
-add soundfile as dependency for torchaudio.save()
-add frozen requirements file to better document fully working version of dependencies as tested on dev system
-update pyinstaller script
- frozen_requirements.txt +0 -0
- pocket_tts_openai_server.py +0 -1
- pyinstaller_command.txt +2 -1
- requirements.txt +3 -2
frozen_requirements.txt
ADDED
|
Binary file (2.24 kB). View file
|
|
|
pocket_tts_openai_server.py
CHANGED
|
@@ -55,7 +55,6 @@ else:
|
|
| 55 |
BUNDLE_VOICES_DIR = None
|
| 56 |
|
| 57 |
# --- Helpers ---
|
| 58 |
-
|
| 59 |
def get_voice_state(voice_id_or_path):
|
| 60 |
"""
|
| 61 |
Resolve voice ID to a model state with caching.
|
|
|
|
| 55 |
BUNDLE_VOICES_DIR = None
|
| 56 |
|
| 57 |
# --- Helpers ---
|
|
|
|
| 58 |
def get_voice_state(voice_id_or_path):
|
| 59 |
"""
|
| 60 |
Resolve voice ID to a model state with caching.
|
pyinstaller_command.txt
CHANGED
|
@@ -9,6 +9,7 @@ pyinstaller --noconfirm --clean --onefile --icon=NONE ^
|
|
| 9 |
--hidden-import "flask" ^
|
| 10 |
--hidden-import "torch" ^
|
| 11 |
--hidden-import "torchaudio" ^
|
|
|
|
| 12 |
pocket_tts_openai_server.py
|
| 13 |
|
| 14 |
-
|
|
|
|
| 9 |
--hidden-import "flask" ^
|
| 10 |
--hidden-import "torch" ^
|
| 11 |
--hidden-import "torchaudio" ^
|
| 12 |
+
--hidden-import "soundfile" ^
|
| 13 |
pocket_tts_openai_server.py
|
| 14 |
|
| 15 |
+
pyinstaller --noconfirm --clean --onefile --icon=NONE --name "PocketTTS-Server" --add-data "utils.py;utils.py" --add-data "static;static" --add-data "templates;templates" --add-data "voices;voices" --add-data "model;model" --collect-all "pocket_tts" --hidden-import "engineio.async_drivers.threading" --hidden-import "flask" --hidden-import "torch" --hidden-import "torchaudio" --hidden-import "soundfile" pocket_tts_openai_server.py
|
requirements.txt
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
flask
|
| 2 |
-
torch
|
| 3 |
-
torchaudio
|
| 4 |
pocket-tts
|
| 5 |
scipy
|
| 6 |
numpy
|
|
|
|
|
|
| 1 |
flask
|
| 2 |
+
torch<=2.8.0
|
| 3 |
+
torchaudio<=2.8.0
|
| 4 |
pocket-tts
|
| 5 |
scipy
|
| 6 |
numpy
|
| 7 |
+
soundfile
|