gemini_live 0.0.2
gemini_live: ^0.0.2 copied to clipboard
A new Gemini Live API Flutter package project.
Flutter Gemini Live #
β¨ Features #
- Gemini Live API (Experimental) for Flutter
π Getting Started #
Prerequisites #
You need a Google Gemini API key to use this package. You can get your key from Google AI Studio.
Installation #
Add the package to your pubspec.yaml file:
dependencies:
gemini_live: ^0.0.2 # Use the latest version
or
flutter pub add gemini_live
Install the package from your terminal:
flutter pub get
Now, import the package in your Dart code:
import 'package:gemini_live/gemini_live.dart';
π Usage #
1. Initialize Gemini #
Initialize the Gemini service with your API key, preferably when your app starts (e.g., in your main function).
Security Note: Do not hardcode your API key directly in your source code. It is highly recommended to use a .env file with a package like flutter_dotenv to keep your credentials secure.
π€ Contributing #
Contributions of all kinds are welcome, including bug reports, feature requests, and pull requests! Please feel free to open an issue on the issue tracker.
- Fork this repository.
- Create your feature branch (
git checkout -b feature/AmazingFeature). - Commit your changes (
git commit -m 'Add some AmazingFeature'). - Push to the branch (
git push origin feature/AmazingFeature). - Open a Pull Request.
π License #
See the LICENSE file for more details.