gemini_audio.vertex | R Documentation |
This function sends audio to the Gemini API and returns a text description.
gemini_audio.vertex(
audio = NULL,
prompt = "Describe this audio",
tokens = NULL,
temperature = 1,
maxOutputTokens = 8192,
topK = 40,
topP = 0.95,
seed = 1234
)
audio |
Path to the audio file (character string). only supports "mp3". |
prompt |
A prompt to guide the Gemini API's analysis (character string, defaults to "Describe this audio"). |
tokens |
A list containing the API URL and key from token.vertex() function. |
temperature |
The temperature to use. Default is 1 value should be between 0 and 2 see https://ai.google.dev/gemini-api/docs/models/generative-models#model-parameters |
maxOutputTokens |
The maximum number of tokens to generate. Default is 8192 and 100 tokens correspond to roughly 60-80 words. |
topK |
The top-k value to use. Default is 40 value should be between 0 and 100 see https://ai.google.dev/gemini-api/docs/models/generative-models#model-parameters |
topP |
The top-p value to use. Default is 0.95 value should be between 0 and 1 see https://ai.google.dev/gemini-api/docs/models/generative-models#model-parameters |
seed |
The seed to use. Default is 1234 value should be integer see https://ai.google.dev/gemini-api/docs/models/generative-models#model-parameters |
A character vector containing the Gemini API's description of the audio.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.