Skip to content

[Bug] TTS custom endpoint failures #9895

Closed

Description

@EXOgreen

name: TTS custom endpoint failures
about: using the new custom endpoints for STT and TTS call the wrong endpoints for tests and fail mysteriously
title: "TTS custom endpoint failures "
labels: bug
assignees: ""

Environment

Where are you using Unsloth?

  • Unsloth desktop application
  • Unsloth web UI (unsloth studio)
  • Unsloth CLI
  • Python package or notebook
  • Colab or Kaggle

Operating system and version:
OS: Arch Linux x86_64
Kernel: Linux 7.1.9-arch1-2

GPU model(s) and accelerator backend:
GPU 1: AMD Radeon RX 9070 XT [Discrete]
GPU 2: NVIDIA GeForce RTX 3070 Ti [Discrete]
Vulkan primarily, ROCm

Versions:
Unsloth Version: v0.1.803-beta
package version: 2026.8.2
llama.cpp version: b10639-mix-f6f92fe

What happened?

Testing this with studio and KokoroTTS-FastAPI, I am not able to get remote TTS working. The tests call the wrong endpoints and the generation fails silently.

Steps to reproduce:

  1. Create a custom endpoint under connections.
  2. add a custom endpoint with URL.
  3. fetch models to make sure it can connect to the remote server.
  4. save the custom endpoint.
  5. in the connections page, run the test for the connection.
  6. under voice tab, change settings for TTS to custom endpoint. Select model and voice.
  7. generate preview.
  8. generate sound file from conversation.

Expected behavior:
test succeeds at correct url
preview TTS works
audio playback of generated sound file.

Actual behavior:
test fails incorectly
preview TTS sends and seems to generate properly but does not play returned file
conversation TTS sends and seems to generate properly but does not play returned file

Model and operation involved:
KokoroTTS-FastAIP docker container with Nvidia cuda acceleration

Diagnostics and logs

Desktop application

n/a

Unsloth web UI

server-20260826-224127-pid4209.log

Model-specific logs, if applicable

kokoro-fastapi-gpu-kokoro-tts-1.log

Python package or notebook, if applicable

N/A

Additional context

Testing this with studio and KokoroTTS-FastAPI, I am not able to get remote TTS working.
Adding the connection at first seems to work. Setting it to localhost I can load the models and choose them
image
testing the connection fails because it is attempting to reach /chat/completions, which does not exist
image
setting the TTS engine to custom endpoint I recieve the error
The fetching process for the media resource was aborted by the user agent at the user's request.
image
yet looking at the logs for KokoroTTS-FastAPI it seems like it is working
image
and I get the same error when testing read-aloud, but it again seems to complete just fine
image
unless I am missing something the server logs at ./.unsloth/studio/logs/server/ only shows one post request and no errors
{"timestamp": "2026-08-27T14:47:57.866506Z", "level": "info", "event": "request_completed", "method": "POST", "path": "/api/inference/audio/speech", "status_code": 200, "process_time_ms": 926.32}

*one final note that may impact this, I am serving this over LAN to another device that is running the webpage. I tested it with both localhost and its LAN address for the connection and they both fetched the remote TTS models just fine. I cannot test if it works on the machine unsloth server is running on as it is headless RN

Activity

  1. added
    feature request
    on Aug 27, 2026
  2. changed the title [-][Bug] Please fill in your issue title here.[/-] [+][Bug] TTS custom endpoint failures[/+] on Aug 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugfeature request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions