mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 11:28:35 -05:00
Bug: The TTS API request model is fixed as "tts-1" and does not follow the settings. #1174
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @karllee830 on GitHub (Jun 8, 2024).
Bug Report
Description
Bug Summary:
This bug will not occur in version 0.2.5.
The TTS API request is fixed as "tts-1" and does not follow the settings.
Steps to Reproduce:
Set the TTS voice to a non-standard openai voice in the admin panel. In my case, I used OneAPI to convert Azure's TTS to the format of OpenAI's API. I set the voice to zh-CN-XiaoxiaoMultilingualNeural and the model to tts-az-1, then clicked the "Read Aloud" button, which resulted in a pop-up error message.
Based on my examination of the browser logs, despite setting the TTS model to "tts-az-1," the request still indicates "tts-1.“
Expected Behavior:
Properly read out text using the tts api.
Actual Behavior:
The request to fix the model as "tts-1" is causing the tts API to not be called correctly.
Environment
Reproduction Details
Confirmation:
Logs and Screenshots
Browser Console Logs:

Docker Container Logs:
Screenshots (if applicable):

Installation Method
Docker
Additional Information
After manually changing the value of 'model' to 'tts-az-1' in line 101 of src\lib\apis\audio\index.ts, the tts API call resumed normal operation. The browser log after modifying the file is as follows:

Note
If the bug report is incomplete or does not follow the provided instructions, it may not be addressed. Please ensure that you have followed the steps outlined in the README.md and troubleshooting.md documents, and provide all necessary information for us to reproduce and address the issue. Thank you!
@tjbck commented on GitHub (Jun 8, 2024):
Fixed on dev, Let me know if the issue persists!