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

feat(YouTube): Disable auto-dubbed audio tracks (use original language as default audio) #4033

Closed
3 tasks done
rodrigoswz opened this issue Dec 2, 2024 · 15 comments · Fixed by #4050 or #4123
Closed
3 tasks done
Labels
Feature request Requesting a new feature that's not implemented yet

Comments

@rodrigoswz
Copy link

rodrigoswz commented Dec 2, 2024

Feature description

YouTube has an annoying feature enabled by default called Auto-dubbed. When enabled by the creator upon upload, the video's audio will be dubbed into the user account's default language.

More info about this feature:
https://support.google.com/youtube/answer/15569972?hl=en

Video sample with this feature enabled and no option to disable:
https://youtu.be/NHUTmP9Tr2A

Image

Image

Image

Motivation

The first problem is that this is enabled by default for the user, so they need to manually disable it after the video starts.

And the second problem is that sometimes the subtitle/audio track option is not available for this dubbed video, so you are basically forced to watch the video with the generic audio. edit: Changing to iOS spoofing fixes the missing audio track menu

Acknowledgements

  • I have checked all open and closed feature requests and this is not a duplicate
  • I have chosen an appropriate title.
  • All requested information has been provided properly.
@rodrigoswz rodrigoswz added the Feature request Requesting a new feature that's not implemented yet label Dec 2, 2024
@rodrigoswz
Copy link
Author

Btw my YouTube app is with English (US) defined as default language. But as my Google Account is from Brazil, the auto-dubbed is enabled by default anyway.

@cyberboh
Copy link

cyberboh commented Dec 2, 2024

For me, the above video is dubbed in English. If so, then is the language from the creator is English?

@cyberboh
Copy link

cyberboh commented Dec 2, 2024

And the second problem is that sometimes the subtitle/audio track option is not available for this dubbed video, so you are basically forced to watch the video with the generic audio.

Audio track is not available because of `Video streams spoofing' side effect

@0xrxL

This comment has been minimized.

@oSumAtrIX

This comment has been minimized.

@Otimpt

This comment has been minimized.

@LisoUseInAIKyrios

This comment has been minimized.

@LisoUseInAIKyrios LisoUseInAIKyrios changed the title feat: disable Auto-dubbed feature feat(YouTube): Disable auto-dubbed audio tracks Dec 5, 2024
@LisoUseInAIKyrios
Copy link
Contributor

@rodrigoswz does stock YouTube have this same behavior?

Also try repatching with the latest release as it fixes an issue of spoofing using the wrong language for some situations.

@rodrigoswz
Copy link
Author

rodrigoswz commented Dec 6, 2024

For me, the above video is dubbed in English. If so, then is the language from the creator is English?

Yes, the original audio from this creator is English.

@rodrigoswz does stock YouTube have this same behavior?

Yes, same behavior with stock YouTube.

Also try repatching with the latest release as it fixes an issue of spoofing using the wrong language for some situations.

Done, repatched with 5.2.2 but what was reported in this issue still persists.

I noticed two more points:

  1. The video title is also translated to the system language if the YouTube app is using it. Even if I select the original audio, the title is still translated.

  2. If I choose the original audio track (on stock YouTube or ReVanced one using iOS spoofing), any other auto-dubbed videos will follow the chosen audio track.

But if I close the app and open it again, dubbing is selected as default again.

@marianmargraf
Copy link

marianmargraf commented Dec 6, 2024

I can confirm the same behavior as mentioned in the previous post running 5.2.2.

My location, system and app are using German language.
Certain videos that use the new auto dub feature behave like this:

Without spoof video, YouTube Revanced will use the video's original audio stream. For the videos I tested this issue with, that's English. This is the behavior I want and expect. Latest stock unpatched YouTube v19.47.41 behaves exactly like this.

With iOS spoof:
Revanced will start playing the German auto dub with ai voice.
Switching to the English original audio stream works. Restarting Revanced defaults back to German auto dub (bad).

With android VR spoof:
The German ai auto dub is used by default, with no way to switch back to the original English audio stream.

Simply keeping the audio stream to the videos original language should be the default, with the option to switch it via YouTubes UI (if supported by the video spoof method).

Additionally these videos will also have their English titles translated automatically to German on my device. This happens regardless of any spoofing and equally so on the unpatched YouTube app. It's terrible but I can live with that. If there is a way to keep the titles original too, it would be highly appreciated.

@LisoUseInAIKyrios
Copy link
Contributor

LisoUseInAIKyrios commented Dec 8, 2024

With stream spoofing off the automatic selection of the local language stream only happens to some users. It seems to be an a/b user test because changing to a regional IP does not seem to turn on that behavior.

Currently the spoof stream patch uses the device locale, which also sets the preferred audio stream to that language for everyone when spoofing is on.

Not setting the locale causes the audio language flyout menu to always display in English and never localized. Not setting the locale will behave the same as spoofing off (Default English for some users, and default AI dubbed locale language for a/b users).

#4050 allows specifying a preferred audio language, but it does not allow automatically selecting the original language of each video.

@oSumAtrIX oSumAtrIX marked this as a duplicate of #4112 Dec 12, 2024
@LisoUseInAIKyrios LisoUseInAIKyrios changed the title feat(YouTube): Disable auto-dubbed audio tracks feat(YouTube): Disable auto-dubbed audio tracks (use original language as default audio) Dec 12, 2024
@Karthik-Subbu
Copy link

@LisoUseInAIKyrios

Is it possible to fetch original audio language code from the captions and substitute in the language parameter of spoof video streams? and possibly retain the video title also in original language ?

Inspiration: yt-dlp/yt-dlp@ff9b0e0

In this way, we can maintain only two options in audio language under spoof streams: 1. Original 2. App language or Device default.

@LisoUseInAIKyrios
Copy link
Contributor

Maybe. Maybe it's possible to use YT API and figure out the original language for a video, then use that language code in the spoof request.

@LisoUseInAIKyrios LisoUseInAIKyrios linked a pull request Dec 14, 2024 that will close this issue
@LisoUseInAIKyrios LisoUseInAIKyrios linked a pull request Dec 15, 2024 that will close this issue
1 task
@LisoUseInAIKyrios LisoUseInAIKyrios marked this as a duplicate of #4138 Dec 16, 2024
@P0liak
Copy link

P0liak commented Dec 18, 2024

Sorry to open it again but for french audio tracks the issue is still there (they have a shitty ai dubbed voice track, with only english listed as available tracks, nobody made a single comment about the videos being in english in the comments section so yeah)

Deleted data and cleared cache, it brang back the audio track selection menu but that's all, no french track (original one)

@LisoUseInAIKyrios
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature request Requesting a new feature that's not implemented yet
Projects
None yet
9 participants