Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dubbing: Using CSV file in auto mode #341

Closed
mohsiniscoding opened this issue Aug 12, 2024 · 1 comment
Closed

Dubbing: Using CSV file in auto mode #341

mohsiniscoding opened this issue Aug 12, 2024 · 1 comment
Labels
feature request New feature or request

Comments

@mohsiniscoding
Copy link

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 key
ELEVENLABS_API_KEY = os.getenv("ELEVENLABS_API_KEY")
if not ELEVENLABS_API_KEY:
    raise ValueError(
        "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 file
source_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,
)
@mohsiniscoding mohsiniscoding changed the title Using CSV file in auto mode Dubbing: Using CSV file in auto mode Aug 12, 2024
@AngeloGiacco AngeloGiacco added the feature request New feature or request label Feb 3, 2025
@AngeloGiacco
Copy link
Collaborator

hey, we don't currently support csv files anymore so i will close this issue and log it as a feature request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants