> async function cloningvoice() {
> try {
> const filePath =
> 'tmp/Vital_Ext_113.mp3';
> const voice_provider = 'platform';
> const voiceResponse = await retellClient.voice.clone({
> voice_name: 'new_voice',
> voice_provider: voice_provider,
> files: [fs.createReadStream(filePath)],
> });
> console.log(voiceResponse);
> return voiceResponse;
> } catch (error) {
> console.error('Error cloning voice:', error);
> }
> }
This is my current actual code that I am using. The file is .mp3 and is actually present in the project directory according to the path mentioned. If you could help identify what specifically I should change, as I have tried sending the file as Blob (using openAsBlob from node:fs).