chore: change DECTalk port to 33001, Morshu port to 33002, add AI context file
This commit is contained in:
+4
-4
@@ -172,7 +172,7 @@ def get_chatterbox_url() -> str:
|
||||
|
||||
def get_dectalk_url() -> str:
|
||||
cfg = get_global_config()
|
||||
return cfg.get("dectalk_api_url", "http://127.0.0.1:3001")
|
||||
return cfg.get("dectalk_api_url", "http://127.0.0.1:33001")
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
@@ -403,7 +403,7 @@ def api_tts_generate():
|
||||
# Direct server modes — generate audio without the bot
|
||||
if mode == "morshu":
|
||||
try:
|
||||
r = requests.get("http://127.0.0.1:3002/say", params={"text": text}, timeout=60)
|
||||
r = requests.get("http://127.0.0.1:33002/say", params={"text": text}, timeout=60)
|
||||
r.raise_for_status()
|
||||
job_id = str(uuid.uuid4())
|
||||
out_path = tempfile.mktemp(suffix=".wav")
|
||||
@@ -416,7 +416,7 @@ def api_tts_generate():
|
||||
|
||||
if mode == "dectalk":
|
||||
try:
|
||||
dectalk_url = gcfg.get("dectalk_api_url", "http://127.0.0.1:3001")
|
||||
dectalk_url = gcfg.get("dectalk_api_url", "http://127.0.0.1:33001")
|
||||
r = requests.get(f"{dectalk_url}/say", params={"text": text}, timeout=30)
|
||||
r.raise_for_status()
|
||||
job_id = str(uuid.uuid4())
|
||||
@@ -680,7 +680,7 @@ def api_mc_tts():
|
||||
return r.content, 200, {"Content-Type": "audio/wav"}
|
||||
|
||||
elif mode == "morshu":
|
||||
r = requests.get("http://127.0.0.1:3002/say", params={"text": text}, timeout=60)
|
||||
r = requests.get("http://127.0.0.1:33002/say", params={"text": text}, timeout=60)
|
||||
r.raise_for_status()
|
||||
return r.content, 200, {"Content-Type": "audio/wav"}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user