translate_lyrics: Translate song lyrics

View source: R/translate_lyrics.R

translate_lyricsR Documentation

Translate song lyrics

Description

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

Usage

translate_lyrics(artist, song, target = NULL, destdir = "~", ...)

Arguments

artist

The quoted name of the artist. Spelling matters, capitalization does not. See genius::genius_lyrics()

song

The quoted name of the song. Spelling matters, capitalization does not. See genius::genius_lyrics()

target

The target language

destdir

The folder to save the lyrics. Defaults to the current working directory "."

...

Other arguments for gl_translate

Value

A two-column tibble with the original and the translated lyrics

Examples

## 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)

AndreaSanchezTapia/sambaR documentation built on Dec. 5, 2022, 11:41 p.m.