Fix issue with fetching eleven labs voices
This commit is contained in:
parent
47dd721177
commit
eca7d175fd
|
|
@ -85,7 +85,11 @@ export const getVoices = async (provider: string, credentialId: string, options:
|
||||||
apiKey: credentialData.elevenLabsApiKey
|
apiKey: credentialData.elevenLabsApiKey
|
||||||
})
|
})
|
||||||
|
|
||||||
const voices = await client.voices.search()
|
const voices = await client.voices.search({
|
||||||
|
pageSize: 100,
|
||||||
|
voiceType: 'default',
|
||||||
|
category: 'premade'
|
||||||
|
})
|
||||||
|
|
||||||
return voices.voices.map((voice) => ({
|
return voices.voices.map((voice) => ({
|
||||||
id: voice.voiceId,
|
id: voice.voiceId,
|
||||||
|
|
|
||||||
|
|
@ -78,7 +78,7 @@ const getVoicesForProvider = async (provider: string, credentialId?: string): Pr
|
||||||
chatflowid: '',
|
chatflowid: '',
|
||||||
chatId: '',
|
chatId: '',
|
||||||
appDataSource: appServer.AppDataSource,
|
appDataSource: appServer.AppDataSource,
|
||||||
databaseEntities: {}
|
databaseEntities: databaseEntities
|
||||||
}
|
}
|
||||||
|
|
||||||
return await getVoices(provider, credentialId, options)
|
return await getVoices(provider, credentialId, options)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue