View source: R/translate_lyrics.R
translate_lyrics | R Documentation |
This function was written out of saudade to translate any lyrics available in the Genius.com platform. It will save the lyrics and the translation to avoid repeated queries to both databases
translate_lyrics(artist, song, target = NULL, destdir = "~", ...)
artist |
The quoted name of the artist. Spelling matters, capitalization
does not. See |
song |
The quoted name of the song. Spelling matters, capitalization
does not. See |
target |
The target language |
destdir |
The folder to save the lyrics. Defaults to the current working directory "." |
... |
Other arguments for gl_translate |
A two-column tibble with the original and the translated lyrics
## Not run: translate_lyrics(artist = "caetano veloso", song = "é hoje") translate_lyrics(artist = "caetano veloso",song = "é hoje", target = "fr") translate_lyrics(artist = "charly garcia", song = "los dinosaurios", target = "fr") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.