You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to use custom translation for dubbing audios, but in auto mode, the code works but it seems to be ignoring CSV file and generating it's own translation. Any help would be appreciated!
# Retrieve the API keyELEVENLABS_API_KEY=os.getenv("ELEVENLABS_API_KEY")
ifnotELEVENLABS_API_KEY:
raiseValueError(
"ELEVENLABS_API_KEY environment variable not found. ""Please set the API key in your environment variables."
)
client=ElevenLabs(api_key=ELEVENLABS_API_KEY)
## main source filesource_file=open("input_v3_2min.wav", "rb")
csv_file=open("input_v3_2min.csv", "rb")
result=client.dubbing.dub_a_video_or_an_audio_file(
mode="auto",
source_lang="en",
target_lang="es",
csv_file=csv_file,
file=source_file,
foreground_audio_file=source_file,
name="output 2 min",
num_speakers=10,
)
The text was updated successfully, but these errors were encountered:
mohsiniscoding
changed the title
Using CSV file in auto mode
Dubbing: Using CSV file in auto mode
Aug 12, 2024
I want to use custom translation for dubbing audios, but in
auto
mode, the code works but it seems to be ignoring CSV file and generating it's own translation. Any help would be appreciated!The text was updated successfully, but these errors were encountered: