Thanks to visit codestin.com
Credit goes to github.com

Skip to content

rudra-sah00/DuckBuck-AI-Walkie-Talkie

Repository files navigation

DuckBuck

DuckBuck Logo

DuckBuck is a feature-rich mobile application built with Flutter that provides a secure and intuitive platform for social connections, real-time voice communication, and comprehensive relationship management.

πŸ“š Comprehensive Documentation

Explore the complete technical documentation for DuckBuck's advanced features and architecture:

πŸ” Authentication System Documentation

Multi-provider authentication with enhanced UserModel and premium features

πŸ“ docs/auth/

Key Features:

  • Multi-Provider Support (Google, Apple, Phone)
  • Premium Features with Agent Time Management
  • Soft Delete Support with 90-day Recovery
  • Smart Field Management based on Auth Method
  • FCM Token Management and Device Integration

πŸ‘₯ Friends System Documentation

Unified relationship management with smart caching and real-time updates

πŸ“ docs/friends/

Key Features:

  • Unified SharedFriendsProvider (Single Source of Truth)
  • Repository-Level Smart Caching (5-minute validity)
  • Real-time Firebase Streams with Auto-reconnection
  • Comprehensive Relationship States (pending, accepted, blocked, declined)
  • Enhanced RelationshipModel and UserModel Integration
  • Memory Optimization and Performance Features

πŸŽ™οΈ Walkie-Talkie System Documentation

Production-ready real-time voice communication with background service architecture

πŸ“ docs/walkie-talkie/

Key Features:

  • Foreground Service Architecture for Background Persistence
  • Simplified Call State Management (JOINING β†’ ACTIVE β†’ ENDING β†’ ENDED)
  • Advanced FCM Processing with Auto-Connect
  • Agora RTC Integration with Professional Audio Quality
  • Cross-Platform Bridge (Flutter ↔ Kotlin)
  • Smart Notification System with Speaker Detection
  • Audio Management with Hardware Integration

πŸ€– AI Agent System Documentation

Intelligent voice conversations with time-based usage management and real-time audio

πŸ“ docs/ai-agent/

Key Features:

  • Real-Time Voice Conversations with AI Assistant
  • Time-Based Usage System (1 hour default allocation)
  • Agora RTC Integration with Professional Audio Quality
  • Firebase Real-Time Time Synchronization
  • Two-Phase Session Start (Immediate UI Update + Background Connection)
  • Proximity Sensor Integration for Earpiece Mode
  • Cross-Platform UI (iOS Cupertino + Android Material)
  • Comprehensive Error Handling with Graceful Degradation
  • Circuit Breaker Pattern for Backend Resilience
  • Memory-Efficient Resource Management

πŸ—οΈ Architecture Overview

DuckBuck implements a comprehensive layered architecture across all features:

🎨 UI Layer (Flutter)
    β”œβ”€β”€ Platform-specific interfaces (iOS/Android)
    β”œβ”€β”€ Real-time state management with Providers
    β”œβ”€β”€ Cross-platform bridge communication
    └── Responsive and accessible design

πŸ”„ Provider Layer
    β”œβ”€β”€ SharedFriendsProvider (Unified friends management)
    β”œβ”€β”€ AuthStateProvider (Multi-provider authentication)
    β”œβ”€β”€ Settings and user preference management
    └── Real-time stream coordination

πŸ“‚ Repository Layer
    β”œβ”€β”€ RelationshipRepository (Smart caching & analytics)
    β”œβ”€β”€ UserRepository (Profile and auth coordination)
    β”œβ”€β”€ Repository-level caching strategies
    └── Business logic coordination

βš™οΈ Service Layer
    β”œβ”€β”€ Firebase integrations (Auth, Firestore, FCM)
    β”œβ”€β”€ Agora RTC service (Voice communication)
    β”œβ”€β”€ Local database service (Offline support)
    └── Analytics and monitoring services

🌐 External Services
    β”œβ”€β”€ Firebase ecosystem (Auth, Firestore, Storage, FCM)
    β”œβ”€β”€ Agora RTC platform (Real-time communication)
    β”œβ”€β”€ Android system services (Audio, notifications)
    └── Cross-platform native integrations

πŸ“± Core Features

Authentication & User Management

  • Multi-Provider Auth: Google, Apple, and Phone authentication
  • Premium Features: Agent time management with time-based access
  • Account Management: Soft delete with recovery, profile management
  • Security: Enhanced token management and session handling

Friends & Relationships

  • Unified Management: Single provider for all relationship operations
  • Real-time Updates: Live synchronization across devices
  • Smart Caching: Offline support with background refresh
  • Privacy Controls: Comprehensive blocking and privacy management

Walkie-Talkie Communication

  • Instant Voice: Auto-connect calls via FCM notifications
  • Background Operation: Persistent service architecture
  • Professional Audio: Agora RTC with optimized quality
  • Smart Notifications: Speaker detection with self-filtering

AI Agent Conversations

  • Voice AI Assistant: Real-time conversations with intelligent responses
  • Time-Based Usage: 1-hour default allocation with real-time tracking
  • Professional Audio: Agora RTC integration with proximity sensor support
  • Seamless Experience: Two-phase connection with immediate UI feedback
  • Cross-Platform: Native iOS and Android interfaces with platform-specific optimizations

🎯 Getting Started

  1. Explore the Documentation: Start with the feature you're interested in
  2. Architecture Deep Dive: Review the enhanced v2.0 architecture documents
  3. Implementation Details: Check the code organization guides
  4. User Flows: Understand the complete user journey sequences

πŸ”§ Technical Highlights

  • Flutter Framework: Cross-platform mobile development
  • Firebase Integration: Authentication, database, and messaging
  • Agora RTC: Professional real-time communication
  • Kotlin Service Layer: Background processing and native integration
  • Smart Caching: Repository-level optimization strategies
  • Real-time Streams: Live data synchronization
  • Memory Optimization: Efficient resource management
  • Performance: Optimized for production deployment

For detailed setup instructions, development workflows, and deployment guides, please refer to the comprehensive documentation in the respective feature folders.

About

πŸŽ™οΈ Feature-rich Flutter mobile app for secure social connections and real-time voice communication. Multi-provider auth, unified friends system, production-ready walkie-talkie with background services, Agora RTC integration, and comprehensive Firebase backend.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors