Chuyển đến nội dung
Skillpedia
Prompt và LLM48k · #4505

earllm-build

Skill này làm gì

Đây là dự án ứng dụng Android kết nối tai nghe Bluetooth của bạn với mô hình ngôn ngữ lớn (LLM) để xử lý giọng nói. Bạn có thể nói chuyện với LLM qua tai nghe và nhận phản hồi.

Khi nào nên dùng

  • ✓Khi bạn muốn phát triển hoặc chỉnh sửa ứng dụng EarLLM One.
  • ✓Khi bạn làm việc với âm thanh Bluetooth trong ứng dụng Android.
  • ✓Khi tích hợp nhận dạng giọng nói và LLM vào một ứng dụng di động.

Liên kết skill

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/earllm-build/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/earllm-build/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Làm sao để thêm hỗ trợ cho một loại tai nghe Bluetooth mới trong ứng dụng EarLLM One?”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Ứng dụng dùng Kotlin và Jetpack Compose cho giao diện. Nó thu âm từ tai nghe, chuyển giọng nói thành văn bản, gửi đến LLM và phát lại phản hồi bằng giọng nói.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

EarLLM One — Build & Maintain

Overview

Build, maintain, and extend the EarLLM One Android project — a Kotlin/Compose app that connects Bluetooth earbuds to an LLM via voice pipeline.

When to Use This Skill

  • When the user mentions "earllm" or related topics
  • When the user mentions "earbudllm" or related topics
  • When the user mentions "earbud app" or related topics
  • When the user mentions "voice pipeline kotlin" or related topics
  • When the user mentions "bluetooth audio android" or related topics
  • When the user mentions "sco microphone" or related topics

Do Not Use This Skill When

  • The task is unrelated to earllm build
  • A simpler, more specific tool can handle the request
  • The user needs general-purpose assistance without domain expertise

How It Works

EarLLM One is a multi-module Android app (Kotlin + Jetpack Compose) that captures voice from Bluetooth earbuds, transcribes it, sends it to an LLM, and speaks the response back.

Project Location

C:\Users\renat\earbudllm

Module Dependency Graph

app ──→ voice ──→ audio ──→ core-logging
  │       │
  ├──→ bluetooth ──→ core-logging
  └──→ llm ──→ core-logging

Modules And Key Files

Module Purpose Key Files
core-logging Structured logging, performance tracking EarLogger.kt, PerformanceTracker.kt
bluetooth BT discovery, pairing, A2DP/HFP profiles BluetoothController.kt, BluetoothState.kt, BluetoothPermissions.kt
audio Audio routing (SCO/BLE), capture, headset buttons AudioRouteController.kt, VoiceCaptureController.kt, HeadsetButtonController.kt
voice STT (SpeechRecognizer + Vosk stub), TTS, pipeline SpeechToTextController.kt, TextToSpeechController.kt, VoicePipeline.kt
llm LLM interface, stub, OpenAI-compatible client LlmClient.kt, StubLlmClient.kt, RealLlmClient.kt, SecureTokenStore.kt
app UI, ViewModel, Service, Settings, all screens MainViewModel.kt, EarLlmForegroundService.kt, 6 Compose screens

Build Configuration

  • SDK: minSdk 26, targetSdk 34, compileSdk 34
  • Build tools: AGP 8.2.2, Kotlin 1.9.22, Gradle 8.5
  • Compose BOM: 2024.02.00
  • Key deps: OkHttp, AndroidX Security (EncryptedSharedPreferences), DataStore, Media

Target Hardware

Device Model Key Details
Phone Samsung Galaxy S24 Ultra Android 14, One UI 6.1, Snapdragon 8 Gen 3
Earbuds Xiaomi Redmi Buds 6 Pro BT 5.3, A2DP/HFP/AVRCP, ANC, LDAC

Critical Technical Facts

These are verified facts from official documentation and device testing. Treat them as ground truth when making decisions:

  1. Bluetooth SCO is limited to 8kHz mono input on most devices. Some support 16kHz mSBC. BLE Audio (Android 12+, TYPE_BLE_HEADSET = 26) supports up to 32kHz stereo. Always prefer BLE Audio when available.

  2. startBluetoothSco() is deprecated since Android 12 (API 31). Use AudioManager.setCommunicationDevice(AudioDeviceInfo) and clearCommunicationDevice() instead. The project already implements both paths in AudioRouteController.kt.

  3. Samsung One UI 7/8 has a known HFP corruption bug where A2DP playback corrupts the SCO link. The app handles this with silence detection and automatic fallback to the phone's built-in mic.

  4. Redmi Buds 6 Pro tap controls must be set to "Default" (Play/Pause) in the Xiaomi Earbuds companion app. If set to ANC or custom functions, events are handled internally by the earbuds and never reach Android.

  5. Android 14+ requires FOREGROUND_SERVICE_MICROPHONE permission and foregroundServiceType="microphone" in the service declaration. RECORD_AUDIO must be granted before startForeground().

  6. VOICE_COMMUNICATION audio source enables AEC (Acoustic Echo Cancellation), which is critical to prevent TTS audio output from feeding back into the STT microphone input. Never change this source without understanding the echo implications.

  7. Never play TTS (A2DP) while simultaneously recording via SCO. The correct sequence is: stop playback → switch to HFP → record → switch to A2DP → play response.

Data Flow

Headset button tap
  → MediaSession (HeadsetButtonController)
  → TapAction.RECORD_TOGGLE
  → VoicePipeline.toggleRecording()
  → VoiceCaptureController captures PCM (16kHz mono)
  → stopRecording() returns ByteArray
  → SpeechToTextController.transcribe(pcmData)

…
Câu hỏi thường gặp

Chất lượng âm thanh mà tai nghe thu được là bao nhiêu?

Âm thanh qua Bluetooth SCO giới hạn ở 8kHz đơn kênh, nhưng BLE Audio có thể hỗ trợ tới 32kHz âm thanh nổi. Ứng dụng cố gắng dùng lựa chọn tốt nhất có sẵn.

Ứng dụng có hoạt động với mọi tai nghe Bluetooth không?

Ứng dụng được thiết kế cho tai nghe hỗ trợ các profile như A2DP và HFP. Ứng dụng cố gắng nhận diện các tai nghe phổ biến dựa trên tên của chúng.

Ứng dụng xử lý tiếng vọng (echo) giữa âm thanh tai nghe và micro như thế nào?

Nó dùng nguồn âm thanh `VOICE_COMMUNICATION`, bật khử tiếng vọng (AEC) và tuân theo một trình tự cụ thể để thu và phát âm thanh mà không bị nhiễu.

Chi tiết

Mô tả gốc của tác giả

Build, maintain, and extend the EarLLM One Android project — a Kotlin/Compose app that connects Bluetooth earbuds to an LLM via voice pipeline.

repo: sickn33/agentic-awesome-skills

Độ phổ biến

Sao GitHub
48k
Vị trí xếp hạng
#4505
Giấy phép
MIT
Cập nhật
15/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự