fix(voices): 配音库四连修复——进度条隔离/TTS克隆音色/克隆弹窗素材选择 (#1554)
CI/CD Pipeline / Dedup Check - skip PR tests when covered by push pipeline (push) Successful in 1s
CI/CD Pipeline / Dedup Check - skip PR tests when covered by push pipeline (pull_request) Successful in 2s
CI/CD Pipeline / Check push changed paths (push) Successful in 3m47s
CI/CD Pipeline / Validate - Type Check (mypy) (push) Successful in 5m12s
CI/CD Pipeline / Check if frontend-only change (pull_request) Successful in 5m32s
CI/CD Pipeline / Validate - Migration (alembic) (push) Successful in 5m32s
CI/CD Pipeline / Build Staging Web Image (push) Successful in 2m0s
Preview Deploy / Deploy Preview Environment (pull_request) Successful in 6m23s
CI/CD Pipeline / PR Build API Image (pull_request) Successful in 59s
AI Code Review / AI Code Review (pull_request) Successful in 6m35s
CI/CD Pipeline / Retag skipped Staging Worker Image (push) Successful in 1m20s
CI/CD Pipeline / Retag skipped Staging API Image (push) Successful in 1m25s
CI/CD Pipeline / PR Build Worker Image (pull_request) Successful in 1m32s
CI/CD Pipeline / Frontend Unit Tests (push) Successful in 7m29s
PR Automation / Auto Approve on CI Green (pull_request) Successful in 7m33s
CI/CD Pipeline / CI Gate (pull_request) Successful in 43s
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (push) Successful in 1m13s
CI/CD Pipeline / Validate - Code Quality (push) Successful in 8m59s
CI/CD Pipeline / ACR Image Cleanup (push) Successful in 2m22s
CI/CD Pipeline / Integration Tests (push) Successful in 2m58s
CI/CD Pipeline / Staging API Integration Tests (push) Successful in 4m11s
CI/CD Pipeline / Staging E2E Tests (push) Successful in 4m50s
CI/CD Pipeline / Unit Tests (push) Successful in 13m33s
CI/CD Pipeline / Production Browser E2E (push) Failing after 408h15m51s
CI/CD Pipeline / Deploy Production (push) Failing after 408h15m53s
CI/CD Pipeline / Build Production Worker Image (push) Failing after 408h15m53s
CI/CD Pipeline / CI Gate (push) Failing after 408h15m53s
CI/CD Pipeline / Production Browser E2E (pull_request) Failing after 408h22m54s
CI/CD Pipeline / Build Production API Image (push) Failing after 408h15m54s
CI/CD Pipeline / Deploy Production (pull_request) Failing after 408h22m57s
CI/CD Pipeline / Build Production Web Image (pull_request) Failing after 408h23m1s
CI/CD Pipeline / Build Production Worker Image (pull_request) Failing after 408h22m59s
CI/CD Pipeline / Build Production API Image (pull_request) Failing after 408h23m3s
CI/CD Pipeline / Retag skipped Staging Web Image (push) Failing after 408h23m42s
CI/CD Pipeline / PR Build Web Image (pull_request) Failing after 408h23m42s
CI/CD Pipeline / Integration Tests (pull_request) Failing after 408h23m56s
CI/CD Pipeline / Frontend Unit Tests (pull_request) Failing after 408h23m55s
CI/CD Pipeline / Unit Tests (pull_request) Failing after 408h23m56s
CI/CD Pipeline / Staging API Integration Tests (pull_request) Failing after 408h25m32s
CI/CD Pipeline / ACR Image Cleanup (pull_request) Failing after 408h25m35s
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Failing after 408h25m37s
CI/CD Pipeline / Build Staging Worker Image (push) Failing after 408h25m40s
CI/CD Pipeline / Retag skipped Staging Worker Image (pull_request) Failing after 408h25m39s
CI/CD Pipeline / Retag skipped Staging Web Image (pull_request) Failing after 408h25m41s
CI/CD Pipeline / Build Staging API Image (push) Failing after 408h25m42s
CI/CD Pipeline / Retag skipped Staging API Image (pull_request) Failing after 408h25m43s
CI/CD Pipeline / Build Staging Worker Image (pull_request) Failing after 408h25m44s
CI/CD Pipeline / Build Staging API Image (pull_request) Failing after 408h25m46s
CI/CD Pipeline / Validate - Migration (alembic) (pull_request) Failing after 408h29m23s
CI/CD Pipeline / Validate - Type Check (mypy) (pull_request) Failing after 408h29m25s
PR Automation / Auto Merge on CI Green + Approved (pull_request) Failing after 408h29m28s
CI/CD Pipeline / Validate - Code Quality (pull_request) Failing after 408h29m27s
CI/CD Pipeline / Frontend Lint (push) Failing after 408h29m29s
CI/CD Pipeline / Check push changed paths (pull_request) Failing after 408h29m30s
CI/CD Pipeline / PR Build Worker Image (push) Failing after 408h29m30s
CI/CD Pipeline / Check if frontend-only change (push) Failing after 408h29m32s
CI/CD Pipeline / PR Build Web Image (push) Failing after 408h29m31s
CI/CD Pipeline / Canary Release to Production (push) Failing after 408h50m0s
CI/CD Pipeline / Build Production Web Image (push) Failing after 408h50m1s
CI/CD Pipeline / Canary Release to Production (pull_request) Failing after 408h57m3s
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 408h58m3s
CI/CD Pipeline / Staging E2E Tests (pull_request) Failing after 408h59m42s
CI/CD Pipeline / Build Staging Web Image (pull_request) Failing after 408h59m52s
CI/CD Pipeline / PR Build API Image (push) Failing after 409h3m39s
CI/CD Pipeline / Dedup Check - skip PR tests when covered by push pipeline (push) Successful in 1s
CI/CD Pipeline / Dedup Check - skip PR tests when covered by push pipeline (pull_request) Successful in 2s
CI/CD Pipeline / Check push changed paths (push) Successful in 3m47s
CI/CD Pipeline / Validate - Type Check (mypy) (push) Successful in 5m12s
CI/CD Pipeline / Check if frontend-only change (pull_request) Successful in 5m32s
CI/CD Pipeline / Validate - Migration (alembic) (push) Successful in 5m32s
CI/CD Pipeline / Build Staging Web Image (push) Successful in 2m0s
Preview Deploy / Deploy Preview Environment (pull_request) Successful in 6m23s
CI/CD Pipeline / PR Build API Image (pull_request) Successful in 59s
AI Code Review / AI Code Review (pull_request) Successful in 6m35s
CI/CD Pipeline / Retag skipped Staging Worker Image (push) Successful in 1m20s
CI/CD Pipeline / Retag skipped Staging API Image (push) Successful in 1m25s
CI/CD Pipeline / PR Build Worker Image (pull_request) Successful in 1m32s
CI/CD Pipeline / Frontend Unit Tests (push) Successful in 7m29s
PR Automation / Auto Approve on CI Green (pull_request) Successful in 7m33s
CI/CD Pipeline / CI Gate (pull_request) Successful in 43s
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (push) Successful in 1m13s
CI/CD Pipeline / Validate - Code Quality (push) Successful in 8m59s
CI/CD Pipeline / ACR Image Cleanup (push) Successful in 2m22s
CI/CD Pipeline / Integration Tests (push) Successful in 2m58s
CI/CD Pipeline / Staging API Integration Tests (push) Successful in 4m11s
CI/CD Pipeline / Staging E2E Tests (push) Successful in 4m50s
CI/CD Pipeline / Unit Tests (push) Successful in 13m33s
CI/CD Pipeline / Production Browser E2E (push) Failing after 408h15m51s
CI/CD Pipeline / Deploy Production (push) Failing after 408h15m53s
CI/CD Pipeline / Build Production Worker Image (push) Failing after 408h15m53s
CI/CD Pipeline / CI Gate (push) Failing after 408h15m53s
CI/CD Pipeline / Production Browser E2E (pull_request) Failing after 408h22m54s
CI/CD Pipeline / Build Production API Image (push) Failing after 408h15m54s
CI/CD Pipeline / Deploy Production (pull_request) Failing after 408h22m57s
CI/CD Pipeline / Build Production Web Image (pull_request) Failing after 408h23m1s
CI/CD Pipeline / Build Production Worker Image (pull_request) Failing after 408h22m59s
CI/CD Pipeline / Build Production API Image (pull_request) Failing after 408h23m3s
CI/CD Pipeline / Retag skipped Staging Web Image (push) Failing after 408h23m42s
CI/CD Pipeline / PR Build Web Image (pull_request) Failing after 408h23m42s
CI/CD Pipeline / Integration Tests (pull_request) Failing after 408h23m56s
CI/CD Pipeline / Frontend Unit Tests (pull_request) Failing after 408h23m55s
CI/CD Pipeline / Unit Tests (pull_request) Failing after 408h23m56s
CI/CD Pipeline / Staging API Integration Tests (pull_request) Failing after 408h25m32s
CI/CD Pipeline / ACR Image Cleanup (pull_request) Failing after 408h25m35s
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Failing after 408h25m37s
CI/CD Pipeline / Build Staging Worker Image (push) Failing after 408h25m40s
CI/CD Pipeline / Retag skipped Staging Worker Image (pull_request) Failing after 408h25m39s
CI/CD Pipeline / Retag skipped Staging Web Image (pull_request) Failing after 408h25m41s
CI/CD Pipeline / Build Staging API Image (push) Failing after 408h25m42s
CI/CD Pipeline / Retag skipped Staging API Image (pull_request) Failing after 408h25m43s
CI/CD Pipeline / Build Staging Worker Image (pull_request) Failing after 408h25m44s
CI/CD Pipeline / Build Staging API Image (pull_request) Failing after 408h25m46s
CI/CD Pipeline / Validate - Migration (alembic) (pull_request) Failing after 408h29m23s
CI/CD Pipeline / Validate - Type Check (mypy) (pull_request) Failing after 408h29m25s
PR Automation / Auto Merge on CI Green + Approved (pull_request) Failing after 408h29m28s
CI/CD Pipeline / Validate - Code Quality (pull_request) Failing after 408h29m27s
CI/CD Pipeline / Frontend Lint (push) Failing after 408h29m29s
CI/CD Pipeline / Check push changed paths (pull_request) Failing after 408h29m30s
CI/CD Pipeline / PR Build Worker Image (push) Failing after 408h29m30s
CI/CD Pipeline / Check if frontend-only change (push) Failing after 408h29m32s
CI/CD Pipeline / PR Build Web Image (push) Failing after 408h29m31s
CI/CD Pipeline / Canary Release to Production (push) Failing after 408h50m0s
CI/CD Pipeline / Build Production Web Image (push) Failing after 408h50m1s
CI/CD Pipeline / Canary Release to Production (pull_request) Failing after 408h57m3s
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 408h58m3s
CI/CD Pipeline / Staging E2E Tests (pull_request) Failing after 408h59m42s
CI/CD Pipeline / Build Staging Web Image (pull_request) Failing after 408h59m52s
CI/CD Pipeline / PR Build API Image (push) Failing after 409h3m39s
Co-authored-by: xiaoxia <dev@xiaoxiajianji.com> Co-committed-by: xiaoxia <dev@xiaoxiajianji.com>
This commit was merged in pull request #1554.
This commit is contained in:
@@ -44,14 +44,19 @@ export const getVoiceCloneDetail = async (id: string): Promise<VoiceCloneProfile
|
||||
return response.data
|
||||
}
|
||||
|
||||
/** 创建克隆音色 */
|
||||
/** 创建克隆音色(audio_url 与 asset_id 二选一) */
|
||||
export const createVoiceClone = async (
|
||||
data: CreateVoiceCloneRequest,
|
||||
): Promise<VoiceCloneProfile> => {
|
||||
const payload: CreateVoiceCloneRequestFull = {
|
||||
name: data.name,
|
||||
description: data.description,
|
||||
source_audio_url: data.audio_url,
|
||||
}
|
||||
// 从配音素材选择克隆:直接传 asset_id,后端用素材 OSS 路径克隆
|
||||
if (data.asset_id) {
|
||||
payload.asset_id = data.asset_id
|
||||
} else {
|
||||
payload.source_audio_url = data.audio_url
|
||||
}
|
||||
const response = await apiClient.post<VoiceCloneProfile>("/voice-clones", payload)
|
||||
return response.data
|
||||
|
||||
@@ -22,10 +22,13 @@ export interface VoiceClone {
|
||||
updated_at: string
|
||||
}
|
||||
|
||||
/** 创建克隆请求(前端简化版) */
|
||||
/** 创建克隆请求(前端简化版:audio_url 与 asset_id 二选一) */
|
||||
export interface CreateVoiceCloneRequest {
|
||||
name: string
|
||||
audio_url: string
|
||||
/** 录音/文件上传后的音频 URL(与 asset_id 二选一) */
|
||||
audio_url?: string
|
||||
/** 从配音素材选择时直接传素材 ID,后端用素材 OSS 路径克隆(与 audio_url 二选一) */
|
||||
asset_id?: string
|
||||
description?: string
|
||||
}
|
||||
|
||||
@@ -72,11 +75,13 @@ export interface VoiceCloneStatusResponse {
|
||||
retry_count: number
|
||||
}
|
||||
|
||||
/** 后端创建克隆请求(完整版) */
|
||||
/** 后端创建克隆请求(完整版:source_audio_url 与 asset_id 二选一) */
|
||||
export interface CreateVoiceCloneRequestFull {
|
||||
name: string
|
||||
description?: string
|
||||
source_audio_url: string
|
||||
source_audio_url?: string
|
||||
/** 从配音素材选择克隆时传素材 ID */
|
||||
asset_id?: string
|
||||
voice_model?: string
|
||||
language?: string
|
||||
gender?: string
|
||||
|
||||
Reference in New Issue
Block a user