https://github.com/ai4bharat/kathbathxfrontend
The frontend code for the Kathbath app, which is used for speech data collection.
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
Repository
The frontend code for the Kathbath app, which is used for speech data collection.
Basic Info
Statistics
- Stars: 3
- Watchers: 6
- Forks: 1
- Open Issues: 0
- Releases: 0
Metadata Files
README.md
Kathbath
Initial Setup
- 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.
Clone the Repository
Navigate to the project folder and clone the repository:
(Repository URL to be added)Configure Base URL
Openlib/services/api_services_baseUrl.dartand update thebaseUrlto your server's URL.Install Dependencies
Run the following command to install dependencies:
bash
flutter pub get
- 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.
- 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 --releaseOutput:build/app/outputs/flutter-apk/app-release.apk
- Debug APK: After a successful build, find it at:
.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
microtaskfolder). - 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
assetsfolder.
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
- Website: https://ai4bharat.org
- Twitter: AI4Bharat
- Repositories: 37
- Profile: https://github.com/AI4Bharat
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
- 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