https://github.com/ai4bharat/kathbathxfrontend

The frontend code for the Kathbath app, which is used for speech data collection.

https://github.com/ai4bharat/kathbathxfrontend

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (15.1%) to scientific vocabulary
Last synced: 9 months ago · JSON representation

Repository

The frontend code for the Kathbath app, which is used for speech data collection.

Basic Info
  • Host: GitHub
  • Owner: AI4Bharat
  • License: mit
  • Language: Dart
  • Default Branch: master
  • Homepage:
  • Size: 3.26 MB
Statistics
  • Stars: 3
  • Watchers: 6
  • Forks: 1
  • Open Issues: 0
  • Releases: 0
Created over 1 year ago · Last pushed 11 months ago
Metadata Files
Readme License

README.md

Kathbath

Initial Setup

  1. Install Flutter
    Follow the official Flutter installation guide to set up Flutter in your environment.
  • For VS Code users:
    • Add the Flutter extension to your editor.
    • Configure the Flutter SDK path in the environment variables.
  1. Clone the Repository
    Navigate to the project folder and clone the repository:
    (Repository URL to be added)

  2. Configure Base URL
    Open lib/services/api_services_baseUrl.dart and update the baseUrl to your server's URL.

  3. Install Dependencies
    Run the following command to install dependencies:

bash flutter pub get

  1. Start the App
    Use the following command to start the app:

bash flutter run

  • You will be prompted to select the device to run the app on.

Note:

  • If testing on a physical phone:
    • Enable Developer Options > USB Debugging on your phone.
    • Allow installation via USB.
  • If using an emulator, set it up in Android Studio or Xcode.
  1. Locate APK Files
    • Debug APK: After a successful build, find it at:
      build/app/outputs/apk/debug/app-debug.apk
    • Release APK: Build the release version using: bash flutter build apk --release Output: build/app/outputs/flutter-apk/app-release.apk

.env File Setup

You can rename the "sampleEnv" file in the folder to .env or create a .env file in the app's root directory to configure app credentials. Make sure to fill in with your respective endpoint credentials Add the following parameters:

env SERVER_URL='https://your_server_url' ACCESS_ENCODE='84724' # Replace with your access-code encoder value BOX_ID='--' # Replace with the respective box ID PHONE_NUMBER = '----------' //Add you business whatsapp number with instructions for sharing the app


Project Structure

The app's code follows this structure:

Main Folders

  • lib/data: Database-related code.
  • lib/enums: Enum values used throughout the app.
  • lib/models: Models for assignments and checkbox status.
  • lib/providers: Listeners for recorders, players, and checkboxes.
  • lib/screens: Screens for navigation (microtask screens are in the microtask folder).
  • lib/services: API calls and server-related functions.
  • lib/utils: Helper functions reused across tasks.
  • lib/widgets: Common widgets (e.g., players, recorders, cards).

Database Structure

  • database:
    • dao: Data access objects to interact with database tables.
    • models: Table structures.
    • repo: Repositories for managing JSON data.
    • utility: Utilities like JSON-to-object conversion.
  • manager: Contains karya_db, which handles tables and DAOs.

Assets

  • All assets and metadata are stored in the assets folder.

Note: Files with the .g.dart extension are autogenerated. Do not edit them directly. To regenerate these files after changes, run:

bash flutter pub run build_runner build


Plugins and Versions

Below are the external plugins used in the app:

yaml cupertino_icons: ^1.0.6 fluttertoast: ^8.2.6 path: ^1.9.0 path_provider: ^2.1.4 drift: ^2.15.0 drift_flutter: ^0.1.0 file_picker: ^8.0.6 flutter_sound: ^9.9.5 provider: ^6.1.2 json_annotation: ^4.9.0 permission_handler: ^11.3.1 dio: ^5.5.0+1 shared_preferences: ^2.3.2 archive: ^3.6.1 crypto: ^3.0.5 audio_session: ^0.1.21 just_audio: ^0.9.28 video_player: ^2.9.2 chewie: ^1.8.5 camera: ^0.11.0+2 url_launcher: ^6.3.1 android_play_install_referrer: ^0.4.0 firebase_core: ^3.7.0 firebase_crashlytics: ^4.1.4 flutter_test: sdk: flutter flutter_lints: ^3.0.0 build_runner: ^2.4.11 drift_dev: ^2.19.1 flutter_launcher_icons: ^0.14.1


Owner

  • Name: AI4Bhārat
  • Login: AI4Bharat
  • Kind: organization
  • Email: opensource@ai4bharat.org
  • Location: India

Artificial-Intelligence-For-Bhārat : Building open-source AI solutions for India!

GitHub Events

Total
  • Watch event: 2
  • Delete event: 7
  • Member event: 2
  • Push event: 35
  • Public event: 1
  • Pull request event: 13
  • Create event: 11
Last Year
  • Watch event: 2
  • Delete event: 7
  • Member event: 2
  • Push event: 35
  • Public event: 1
  • Pull request event: 13
  • Create event: 11

Issues and Pull Requests

Last synced: 9 months ago

All Time
  • Total issues: 0
  • Total pull requests: 6
  • Average time to close issues: N/A
  • Average time to close pull requests: less than a minute
  • Total issue authors: 0
  • Total pull request authors: 1
  • Average comments per issue: 0
  • Average comments per pull request: 0.0
  • Merged pull requests: 5
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 6
  • Average time to close issues: N/A
  • Average time to close pull requests: less than a minute
  • Issue authors: 0
  • Pull request authors: 1
  • Average comments per issue: 0
  • Average comments per pull request: 0.0
  • Merged pull requests: 5
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
  • Gree606 (6)
Top Labels
Issue Labels
Pull Request Labels

Dependencies

ios/Podfile cocoapods
macos/Podfile cocoapods
android/app/build.gradle maven
android/build.gradle maven
pubspec.yaml pub
  • build_runner ^2.4.11 development
  • drift_dev ^2.19.1 development
  • flutter_launcher_icons ^0.14.1 development
  • flutter_lints ^3.0.0 development
  • flutter_test {"sdk"=>"flutter"} development
  • android_play_install_referrer ^0.4.0
  • archive ^3.6.1
  • audio_session ^0.1.21
  • camera ^0.11.0+2
  • chewie ^1.8.5
  • crypto ^3.0.5
  • cupertino_icons ^1.0.6
  • dio ^5.5.0+1
  • drift ^2.15.0
  • drift_flutter ^0.1.0
  • file_picker ^8.0.6
  • firebase_core ^3.7.0
  • firebase_crashlytics ^4.1.4
  • flutter {"sdk"=>"flutter"}
  • flutter_dotenv ^5.2.1
  • flutter_sound ^9.9.5
  • fluttertoast ^8.2.6
  • in_app_update ^4.2.3
  • json_annotation ^4.9.0
  • just_audio ^0.9.28
  • path ^1.9.0
  • path_provider ^2.1.4
  • permission_handler ^11.3.1
  • provider ^6.1.2
  • shared_preferences ^2.3.2
  • url_launcher ^6.3.1
  • video_player ^2.9.2