fix: use aiApiClient for voice clone/design (180s timeout instead of 60s)
This commit is contained in:
@@ -217,7 +217,7 @@ export const createVoiceClone = async (
|
|||||||
formData.append('voice_name', 'My Voice Clone');
|
formData.append('voice_name', 'My Voice Clone');
|
||||||
|
|
||||||
console.log('[VoiceClone] Sending request to /onboarding/assets/create-voice-clone');
|
console.log('[VoiceClone] Sending request to /onboarding/assets/create-voice-clone');
|
||||||
const response = await apiClient.post('/onboarding/assets/create-voice-clone', formData, {
|
const response = await aiApiClient.post('/onboarding/assets/create-voice-clone', formData, {
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'multipart/form-data',
|
'Content-Type': 'multipart/form-data',
|
||||||
},
|
},
|
||||||
@@ -243,7 +243,7 @@ export const createVoiceDesign = async (
|
|||||||
params: VoiceDesignParams
|
params: VoiceDesignParams
|
||||||
): Promise<VoiceCloneResponse> => {
|
): Promise<VoiceCloneResponse> => {
|
||||||
try {
|
try {
|
||||||
const response = await apiClient.post('/onboarding/assets/create-voice-design', {
|
const response = await aiApiClient.post('/onboarding/assets/create-voice-design', {
|
||||||
text: params.text,
|
text: params.text,
|
||||||
voice_description: params.voiceDescription,
|
voice_description: params.voiceDescription,
|
||||||
language: params.language || 'auto',
|
language: params.language || 'auto',
|
||||||
|
|||||||
Reference in New Issue
Block a user