[GH-ISSUE #3786] [Issue]: no connection to local pocketttts server #2042

Closed
opened 2026-10-21 05:44:50 +07:00 by bsakaguchi · 9 comments
Owner

Originally created by @flowzirkus on GitHub (Jul 18, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3786

Originally assigned to: @SpicyMarinara on GitHub.

Summary

I configured Marinara Engine to use a local PoecketTTS server. The connection fails - maybe some hardcoded URL in adapter?

Expected behavior

Play test sound when clicking on "Preview"

Actual behavior

When clicked on "Preview", the following error occurrs:

TTS provider returned 404: <!doctype html> <html lang=en>

Not Found

The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.

Steps to reproduce

Configuration in marinara engine GUI:

pockettts in marinara enginde is configured with this data:

* **Module**: Text to Speech (PocketTTS) – **Enabled** (Toggle is switched on)
* **Source**: `PocketTTS`
* **Base URL**: `http://localhost:49112`
* **API Key**: *Empty* (only placeholder text visible)
* **Model**: `pocket-tts`
* **Voice Option**: `One voice for all characters`
* **All Characters Voice**: `alba`
* **Narrator Voice** (`Use separate narrator voice`): **Disabled** (Checkbox unchecked)
* **Audio Format**: `MP3`
* **Random NPC Voices** (`Use default voices for random NPCs`): **Disabled** (Checkbox unchecked)
* **Speed — 1.00x**: Slider is set exactly to **1.0x**
* **Cached clips**: `10 clips - 9.7 MB`

local pockettts server is up and running:

andreas@paperless-nx:~$ curl -X POST http://localhost:49112/v1/audio/speech \
  -H "Content-Type: application/json" \
  -d '{
    "input": "Hello world!",
    "voice": "alba",
    "response_format": "mp3"
  }' \
  --output speech.mp3
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  8196  100  8112  100    84  16892    174 --:--:-- --:--:-- --:--:-- 17110
andreas@paperless-nx:~$ ls *.mp3
speech.mp3
andreas@paperless-nx:~$

pocketTTS version:
Server v2.5.4 · pocket-tts v2.1.0

Environment

  • Marinara Engine version: 2.3.3
  • Install type: (source)
  • andreas@paperless-nx:~$ cat /etc/os-release PRETTY_NAME="Ubuntu 24.04.4 LTS"
  • Browser or app shell: chrome

Logs, screenshots, or video

Did not find a useful log. Screenshot:

Image

Additional context

I tried using the real server ip adress, same behavior.

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @flowzirkus on GitHub (Jul 18, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3786 Originally assigned to: @SpicyMarinara on GitHub. ## Summary I configured Marinara Engine to use a local PoecketTTS server. The connection fails - maybe some hardcoded URL in adapter? ## Expected behavior Play test sound when clicking on "Preview" ## Actual behavior When clicked on "Preview", the following error occurrs: TTS provider returned 404: <!doctype html> <html lang=en> <title>404 Not Found</title> <h1>Not Found</h1> <p>The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.</p> ## Steps to reproduce Configuration in marinara engine GUI: pockettts in marinara enginde is configured with this data: ``` * **Module**: Text to Speech (PocketTTS) – **Enabled** (Toggle is switched on) * **Source**: `PocketTTS` * **Base URL**: `http://localhost:49112` * **API Key**: *Empty* (only placeholder text visible) * **Model**: `pocket-tts` * **Voice Option**: `One voice for all characters` * **All Characters Voice**: `alba` * **Narrator Voice** (`Use separate narrator voice`): **Disabled** (Checkbox unchecked) * **Audio Format**: `MP3` * **Random NPC Voices** (`Use default voices for random NPCs`): **Disabled** (Checkbox unchecked) * **Speed — 1.00x**: Slider is set exactly to **1.0x** * **Cached clips**: `10 clips - 9.7 MB` ``` local pockettts server is up and running: ``` andreas@paperless-nx:~$ curl -X POST http://localhost:49112/v1/audio/speech \ -H "Content-Type: application/json" \ -d '{ "input": "Hello world!", "voice": "alba", "response_format": "mp3" }' \ --output speech.mp3 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 8196 100 8112 100 84 16892 174 --:--:-- --:--:-- --:--:-- 17110 andreas@paperless-nx:~$ ls *.mp3 speech.mp3 andreas@paperless-nx:~$ ``` pocketTTS version: Server v2.5.4 · pocket-tts v2.1.0 ## Environment - Marinara Engine version: 2.3.3 - Install type: (source) - andreas@paperless-nx:~$ cat /etc/os-release PRETTY_NAME="Ubuntu 24.04.4 LTS" - Browser or app shell: chrome ## Logs, screenshots, or video Did not find a useful log. Screenshot: <img width="281" height="1488" alt="Image" src="https://github.com/user-attachments/assets/23ebf86b-7b8e-41df-9902-2491ce9f8fe1" /> ## Additional context I tried using the real server ip adress, same behavior. ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:44:50 +07:00
Author
Owner

@flowzirkus commented on GitHub (Jul 18, 2026):

Image
<!-- gh-comment-id:5011633486 --> @flowzirkus commented on GitHub (Jul 18, 2026): <img width="220" height="154" alt="Image" src="https://github.com/user-attachments/assets/546fb0ce-cf56-479f-b6fc-c18c9053e289" />
Author
Owner

@flowzirkus commented on GitHub (Jul 18, 2026):

Some more API adresses for model browse etc.

Pocket TTS - Local Streaming.pdf

<!-- gh-comment-id:5011666131 --> @flowzirkus commented on GitHub (Jul 18, 2026): Some more API adresses for model browse etc. [Pocket TTS - Local Streaming.pdf](https://github.com/user-attachments/files/30152342/Pocket.TTS.-.Local.Streaming.pdf)
Author
Owner

@SpicyMarinara commented on GitHub (Jul 18, 2026):

Try:
http://localhost:49112/v1

<!-- gh-comment-id:5011964954 --> @SpicyMarinara commented on GitHub (Jul 18, 2026): Try: `http://localhost:49112/v1`
Author
Owner

@flowzirkus commented on GitHub (Jul 18, 2026):

This was also my first thought...
Unfortunately same error:

Image Image
<!-- gh-comment-id:5011987979 --> @flowzirkus commented on GitHub (Jul 18, 2026): This was also my first thought... Unfortunately same error: <img width="255" height="94" alt="Image" src="https://github.com/user-attachments/assets/de41472d-d240-4822-afcb-39a2c7663505" /> <img width="228" height="206" alt="Image" src="https://github.com/user-attachments/assets/3ecf9489-a008-48d0-aaa8-963c6f0ab7cf" />
Author
Owner

@SpicyMarinara commented on GitHub (Jul 18, 2026):

Claimed in draft PR #3800 on branch agent/issue-sweep-2026-07-19.

<!-- gh-comment-id:5013107887 --> @SpicyMarinara commented on GitHub (Jul 18, 2026): Claimed in draft PR #3800 on branch `agent/issue-sweep-2026-07-19`.
Author
Owner

@SpicyMarinara commented on GitHub (Jul 18, 2026):

Addressed in #3800. PocketTTS now uses the OpenAI-compatible /v1/audio/speech JSON contract, including the alba fallback voice. A local mock-server E2E covers the request and final CI is green.

<!-- gh-comment-id:5013302814 --> @SpicyMarinara commented on GitHub (Jul 18, 2026): Addressed in #3800. PocketTTS now uses the OpenAI-compatible /v1/audio/speech JSON contract, including the alba fallback voice. A local mock-server E2E covers the request and final CI is green.
Author
Owner

@SpicyMarinara commented on GitHub (Jul 19, 2026):

Reopened for the remaining PocketTTS provider-voice discovery regression reported after #3800. Claimed by SpicyMarinara; implementation is starting on agent/pockettts-provider-voices.

<!-- gh-comment-id:5016113293 --> @SpicyMarinara commented on GitHub (Jul 19, 2026): Reopened for the remaining PocketTTS provider-voice discovery regression reported after #3800. Claimed by SpicyMarinara; implementation is starting on `agent/pockettts-provider-voices`.
Author
Owner

@SpicyMarinara commented on GitHub (Jul 19, 2026):

The fix is implemented and validated in draft PR #3816. It exposes the PocketTTS server catalog as a visible selector, preserves custom voice paths, and adds an end-to-end regression against the Server 2.5.4 response shape.

<!-- gh-comment-id:5016156014 --> @SpicyMarinara commented on GitHub (Jul 19, 2026): The fix is implemented and validated in draft PR #3816. It exposes the PocketTTS server catalog as a visible selector, preserves custom voice paths, and adds an end-to-end regression against the Server 2.5.4 response shape.
Author
Owner

@flowzirkus commented on GitHub (Jul 19, 2026):

perfect, I tested it on staging, works like a charm.
thanks for fixing!

<!-- gh-comment-id:5016508587 --> @flowzirkus commented on GitHub (Jul 19, 2026): perfect, I tested it on staging, works like a charm. thanks for fixing!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#2042
No description provided.