Jaha96 / interacting_bear

Flutter & Rive app inspiring from Talking Tom, but this time interacting tom using ChatGPT like LLM models.
MIT License
21 stars 5 forks source link

Talking Bear Flutter App

Welcome to the Talking Bear Flutter app! This project aims to recreate the delightful experience of the talking Tom game from our childhood using the latest technologies available to us. The app utilizes Rive for animations, Riverpod for state management, Google Cloud Text-to-Speech AI for text-to-speech and device's built in speech-to-text functionalities, and Chat GPT API for generating interesting and random responses. The primary goal is to create an interactive and cute application that listens, interacts, and generates exciting results for kids.

Demo

Showcase some use cases and interactions of the application, highlighting the engaging and unpredictable responses from the polar bear character.

https://github.com/Jaha96/interacting_bear/assets/18748558/47503d50-ed7e-4050-99f8-1fc9bee3d3e0

Requirements

Getting Started

To run the project, follow these steps:

  1. Check you have installed Flutter. If not, install it from here.

    flutter --version
  2. Check you have installed Dart. If not, install it from here.

    dart --version
  3. Clone project and navigate to the project directory in your terminal.

    git clone https://github.com/Jaha96/interacting_bear.git
    cd interacting_bear
  4. Install required dependencies.

    flutter pub get
  5. Replace .env.example filename into .env and update your OpenAI API, Google Cloud API credentials. Example:

    OPENAI_API_KEY=your_openai_api_key
    GOOGLE_CLOUD_API_KEY=your_google_cloud_api_key
  6. Generate Riverpod autoclasses.

    flutter pub run build_runner build
  7. Run the app on web.

    flutter run -d chrome
  8. Now flutter automatically opens the web browser and runs the app.

To generate launcher icons for android and ios, run the following command: flutter pub run flutter_launcher_icons

Features

Language Support

The app supports both English and Japanese languages. However, for the purpose of this summit project, we will focus on the English language first.

Contribution

Contributions to this project are welcome! Feel free to create pull requests or open issues for bug fixes, feature requests, or any other improvements.

License

This project is licensed under the MIT License.


Thank you for your interest in the Talking Bear Flutter app! I hope you enjoy exploring the code and interacting with my cute polar bear character. If you have any questions or feedback, please don't hesitate to reach out to us. Happy coding!