feat: Integrate IndexTTS2 model and update related schemas and frontend components
This commit is contained in:
@@ -20,6 +20,7 @@ export interface AudiobookCharacter {
|
||||
description?: string
|
||||
instruct?: string
|
||||
voice_design_id?: number
|
||||
use_indextts2?: boolean
|
||||
}
|
||||
|
||||
export interface AudiobookChapter {
|
||||
@@ -93,7 +94,7 @@ export const audiobookApi = {
|
||||
updateCharacter: async (
|
||||
projectId: number,
|
||||
charId: number,
|
||||
data: { name?: string; gender?: string; description?: string; instruct?: string; voice_design_id?: number }
|
||||
data: { name?: string; gender?: string; description?: string; instruct?: string; voice_design_id?: number; use_indextts2?: boolean }
|
||||
): Promise<AudiobookCharacter> => {
|
||||
const response = await apiClient.put<AudiobookCharacter>(
|
||||
`/audiobook/projects/${projectId}/characters/${charId}`,
|
||||
|
||||
Reference in New Issue
Block a user