#is there an api endpoint to get audio files created in the voiceover studio?
1 messages · Page 1 of 1 (latest)
Yes, there is an API endpoint to get audio files. However, the provided content does not specify whether this endpoint can be used specifically for audio files created in the Voiceover Studio. The endpoint is used to get dubbed files as a streamed file. Videos will be returned in MP4 format and audio-only dubs will be returned in MP3.
Here is an example of how to use this endpoint with cURL:
curl --request GET \
--url https://api.elevenlabs.io/v1/dubbing/{dubbing_id}/audio/{language_code}
In this example, you need to replace {dubbing_id} with the ID of your dubbing project and {language_code} with the ID of the language. Please note that you also need to include your API key in the request header.
when I call the /v1/dubbing/{dubbing_id} API it returns this:
{
"dubbing_id": "mE0Purix1msB0mgIve0h",
"name": "TITLE",
"status": "dubbed",
"target_languages": [],
"error": null
}
"target_language" is empty array.
When I call /v1/dubbing/{dubbing_id}/{language_code} it returns
{
"detail": {
"status": "dubbing_not_found",
"message": "There is no dubbing for language en."
}
}
Based on the information provided, it seems like you're trying to retrieve the dubbed audio files from a dubbing project. However, the target_languages field in the response from the /v1/dubbing/{dubbing_id} endpoint is returning an empty array. This suggests that there are no dubbed versions of the audio in any language for this particular dubbing project.
When you try to retrieve a specific dubbed file with the /v1/dubbing/{dubbing_id}/{language_code} endpoint, you're getting a dubbing_not_found error. This error is likely due to the fact that there is no dubbed version of the audio in the specified language (en in this case).
To resolve this, you might want to ensure that the dubbing process has been successfully completed for the desired languages. You can do this by initiating a dubbing process with the POST /v1/dubbing endpoint, specifying the target_lang parameter to the desired language code.
Here's an example of how to initiate a dubbing process in Python:
from elevenlabs.client import ElevenLabs
client = ElevenLabs(
api_key="YOUR_API_KEY",
)
response = client.dubbing.dub_a_video_or_an_audio_file(
target_lang="en", # The target language to dub the content into.
# Other parameters...
)
After the dubbing process is complete, you should be able to retrieve the dubbed audio file with the /v1/dubbing/{dubbing_id}/{language_code} endpoint.
can I download audio files generated as Original in the voiceover studio without dubbing them?
Yes, you can download the audio files generated in the Voiceover Studio. After you've created your voiceover project and generated the audio, you can export the final output in various formats by selecting "Export". This allows video clips to be generated. You can choose the video format and size from available options. Then, select the dubbed file to be generated. If you're having issues downloading, try using a different browser and turning off any ad-blockers or pop-up blockers.
by using the api i mean