Package-level declarations

Types

Link copied to clipboard

Represents the audio generation.

Link copied to clipboard

Represents the audio generation runner.

Link copied to clipboard

Represents the batch sample.

Link copied to clipboard

Represents the batch sample runner.

Link copied to clipboard
object Cache

Represents the cache.

Link copied to clipboard

Represents the cache runner.

Link copied to clipboard

Represents the code execution sample.

Link copied to clipboard

Represents the code execution sample runner.

Link copied to clipboard

Represents the count tokens runner.

Link copied to clipboard

Represents the count tokens sample.

Link copied to clipboard

Represents the embed content.

Link copied to clipboard

Represents the embed content runner.

Link copied to clipboard

Represents the file search sample.

Link copied to clipboard

Represents the file search sample runner.

Link copied to clipboard

Represents the file upload sample.

Link copied to clipboard

Represents the file upload sample runner.

Link copied to clipboard

Represents the function example1.

Link copied to clipboard

Represents the function example1 runner.

Link copied to clipboard

Represents the function example2.

Link copied to clipboard

Represents the function example2 runner.

Link copied to clipboard

Represents the function example3.

Link copied to clipboard

Represents the function example3 runner.

Link copied to clipboard

Represents the google search sample.

Link copied to clipboard

Represents the google search sample runner.

Link copied to clipboard

Represents the input with image.

Link copied to clipboard

Represents the input with image runner.

Link copied to clipboard
object LiveSample

Represents the live sample.

Link copied to clipboard

Represents the live sample runner.

Link copied to clipboard
object Models

Represents a collection of models.

Link copied to clipboard
object Samples1

Represents the samples1.

Link copied to clipboard

Represents the samples1 runner.

Link copied to clipboard

Represents the stream generate content sample.

Link copied to clipboard

Represents the stream generate content sample runner.

Link copied to clipboard
class TextToImage(gemini: Gemini)

Represents the text to image.

Link copied to clipboard

Represents the text to image sample.

Link copied to clipboard

Represents the url context sample.

Link copied to clipboard

Represents the url context sample runner.

Functions

main
Link copied to clipboard
fun main()

Handles main.

fun main()

Entry point for running the Models sample.

Link copied to clipboard
fun readWavToPcm(file: File): ByteArray

Handles read wav to pcm.

Link copied to clipboard
fun savePcmToWav(pcmData: ByteArray, filePath: String, sampleRate: Float, channels: Int)

Saves PCM byte array as a WAV file.