Skip to content

Commit

Permalink
docs: gemini_audio in README
Browse files Browse the repository at this point in the history
version updated as 0.6.2
  • Loading branch information
jhk0530 committed Dec 18, 2024
1 parent 8d4457f commit 48e9667
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 8 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: gemini.R
Title: Interface for 'Google Gemini' API
Version: 0.6.1
Version: 0.6.2
Authors@R: c(
person("Jinhwan", "Kim", , "hwanistic@gmail.com", role = c("aut", "cre", "cph"), comment = c(ORCID = "0009-0009-3217-2417")),
person("Maciej", "Nasinski", role = "ctb"))
Expand Down
17 changes: 15 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
[![gemini.R status badge](https://jhk0530.r-universe.dev/badges/gemini.R)](https://jhk0530.r-universe.dev/gemini.R)
<!-- badges: end -->

![Alt](https://repobeats.axiom.co/api/embed/bc0595c11e22d5380cf10a646bc6049db9e5fc44.svg "Repobeats analytics image")


R package to use Google's gemini via API on R

Expand Down Expand Up @@ -51,7 +51,6 @@ gemini("Explain about the gemini in astrology in one line")
#### gemini with image

``` r

# uses default prompt as "Explain this image"
# uses included image of gemini.R package
gemini_image(image = system.file("docs/reference/figures/image.png", package = "gemini.R"))
Expand All @@ -64,6 +63,20 @@ gemini_image(image = system.file("docs/reference/figures/image.png", package = "

```

#### gemini with audio

``` r
# use default prompt as "Describe this audio"
# uses included audio of gemini.R package
gemini_audio(audio = system.file("docs/reference/helloworld.mp3", package = "gemini.R"))

# text
# "The audio contains a clear, crisp recording of a person saying \"Hello world\".
# Following the phrase is a distinct, repeated percussive sound, possibly a rhythmic
# tapping or clicking noise. The sound is consistent and mechanical in nature.\n"

```

#### gemini with image via Shiny

To use `gemini_image` function, image file required.
Expand Down
18 changes: 15 additions & 3 deletions docs/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ pandoc: '3.3'
pkgdown: 2.1.1
pkgdown_sha: ~
articles: {}
last_built: 2024-12-10T08:59Z
last_built: 2024-12-18T04:01Z
urls:
reference: https://github.com/jhk0530/gemini.R/reference
article: https://github.com/jhk0530/gemini.R/articles
6 changes: 6 additions & 0 deletions docs/reference/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 48e9667

Please sign in to comment.