This commit is contained in:
yinsx
2026-02-03 14:16:42 +08:00
parent f98ff21394
commit c10cfa7c33
12 changed files with 603 additions and 283 deletions

6
services/a2f_api/.gitignore vendored Normal file
View File

@ -0,0 +1,6 @@
/node_modules/
/public/
/dist/
nul
/csv/*
examples

View File

@ -8,7 +8,7 @@ import shutil
from datetime import datetime
class A2FService:
def __init__(self, a2f_url="192.168.1.39:52000"):
def __init__(self, a2f_url="192.168.1.230:52000"):
self.base_dir = Path(__file__).parent.parent.parent
self.a2f_script = self.base_dir / "external" / "Audio2Face-3D-Samples" / "scripts" / "audio2face_3d_microservices_interaction_app" / "a2f_3d.py"
self.config_file = self.base_dir / "external" / "Audio2Face-3D-Samples" / "scripts" / "audio2face_3d_microservices_interaction_app" / "config" / "config_james.yml"
@ -30,7 +30,7 @@ class A2FService:
self.a2f_url
]
# 在独立的工作目录中运行
# 在独立的工作目录中运行
result = subprocess.run(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, text=True, cwd=temp_work_dir)
if result.returncode != 0:

View File

@ -13,7 +13,7 @@ from blend_shape_parser import BlendShapeParser
class TextToBlendShapesService:
DEFAULT_SPLIT_PUNCTUATIONS = '。!?;!?;,'
def __init__(self, lang='zh-CN', a2f_url="192.168.1.39:52000", tts_provider='edge-tts'):
def __init__(self, lang='zh-CN', a2f_url="192.168.1.230:52000", tts_provider='edge-tts'):
"""
初始化服务
:param lang: 语言