mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-06-24 21:38:09 +02:00
Merge remote-tracking branch 'upstream/dev' into feat/unified-model-connections
This commit is contained in:
commit
ab5423d2d2
45 changed files with 775 additions and 272 deletions
|
|
@ -1,5 +1,6 @@
|
|||
import { z } from "zod";
|
||||
import {
|
||||
languageOptions,
|
||||
type PodcastSpec,
|
||||
podcastDetail,
|
||||
updateSpecRequest,
|
||||
|
|
@ -60,6 +61,12 @@ class PodcastsApiService {
|
|||
return baseApiService.get(`${BASE}/voices${qs}`, voiceOptionList);
|
||||
};
|
||||
|
||||
// The languages the active provider can offer; the brief form renders
|
||||
// exactly this list and only opens free entry when the backend allows it.
|
||||
listLanguages = async () => {
|
||||
return baseApiService.get(`${BASE}/languages`, languageOptions);
|
||||
};
|
||||
|
||||
// A short audio sample of a voice, cached server-side per voice.
|
||||
previewVoice = async (voiceId: string) => {
|
||||
return baseApiService.getBlob(`${BASE}/voices/${encodeURIComponent(voiceId)}/preview`);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue