[Feature Request]: Romanized Lyrics using Goolgle Translate API #3329
Labels
No labels
awaiting-reply
breaking changes
bug
cannot-reproduce
dependencies
documentation
duplicate
electron-issue
enhancement
fix-available
good first issue
help wanted
invalid
javascript
need more information
need rebase
official-youtube-music-issue
plugin request
question
release
security
stale
Status: blocked
typo
wontfix
ytmd-issue
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: YTMD/youtube-music#3329
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Preflight Checklist
Problem Description
using google translate to Romanized/Pronunciation/Transliteration the lyrics for any non roman text language.
Proposed Solution
for reference:
https://github.com/ssut/py-googletrans
https://github.com/therealbush/translator
Alternatives Considered
thank you.
Additional Information
No response
py-googletrans looks promising
I've already tried various Google translate endpoints in the past w/o success, will give this a look later
I've been doing this manually using Google Translate with MacroDroid on my phone.
I just copy all the lyrics (from LrcLib or Kugou) along with their timecodes, then paste them into Google Translate via browser.
I replace the newline and space characters beforehand using regex.
I'm not sure if this is helpful, though.
py-googletrans
somewhat works, althoughtranslation.pronunciation
is always None, but intranslation.extra_data
I can see the romajiinput:
獣は砂を一握り撒いた
output:
What remains to be figured out is, how can we reliably get the romanization from that json?
Is the json always consistent?
Why is py-googletrans not detecting the pronunciation?
https://github.com/fast4x/RiMusic/
have been doing this, no problem so far.
https://github.com/fast4x/RiMusic/blob/master/composeApp/src/androidMain/kotlin/it/fast4x/rimusic/ui/screens/player/Lyrics.kt
begin at line 399.
👀