mem0 icon indicating copy to clipboard operation
mem0 copied to clipboard

feature request: youtube video in other language

Open sinecode59 opened this issue 1 year ago • 5 comments

🚀 The feature

Being able to use the "youtube_video" format in other language like for example 'French'. Today is not working when you put the link of a french youtube video. Maybe there is a way to define the target language for youtube audio transcription (using Langchain behind) but I've not found any mention about this in the documentation.

Motivation, pitch

Be able to use the 'youtube_video' option with youtube video links not in English (by default)

Alternatives

No response

Additional context

No response

sinecode59 avatar Jul 31 '23 09:07 sinecode59

So you want it to be in a language that's not actually spoken in the video, you want to be able to choose from one of the available subtitles. Do I understand that correctly?

cachho avatar Aug 02 '23 17:08 cachho

@cachho currently only en language is supported. YoutubeLoader.from_youtube_url() allows passing additional parameters (e.g., language), which currently YoutubeVideoLoader.load_data() doesn't pass, thus .from_youtube_url() defaults to en.

avri-schneider avatar Feb 27 '24 18:02 avri-schneider

Hey @avri-schneider, thanks for reporting the issue. We would appreciate if you can put up a fix for this. Thanks!

deshraj avatar Feb 27 '24 18:02 deshraj

Hey @deshraj the fix is there (provided by Akemid), just needs to be merged, but stalled due to conflics :-/

avri-schneider avatar Feb 27 '24 18:02 avri-schneider

Ah nice, thanks for bringing to my attention. Will review and merge shortly.

deshraj avatar Feb 27 '24 18:02 deshraj