본문으로 건너뛰기
Skillpedia
프롬프트 및 LLM48k · #4505

earllm-build

하는 일

블루투스 이어폰을 음성 처리를 위한 대규모 언어 모델(LLM)에 연결하는 안드로이드 앱 프로젝트입니다. 이어폰으로 LLM과 대화하고 응답을 받을 수 있습니다.

사용하는 경우

  • ✓EarLLM One 앱을 개발하거나 수정하고 싶을 때.
  • ✓안드로이드 앱에서 블루투스 오디오를 다루고 있을 때.
  • ✓음성 인식과 LLM을 모바일 앱에 통합할 때.

스킬 링크

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

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/earllm-build/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“EarLLM One 앱에 새로운 종류의 블루투스 이어폰 지원을 어떻게 추가할 수 있을까요?”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

앱은 인터페이스에 Kotlin과 Jetpack Compose를 사용합니다. 이어폰에서 오디오를 받아 음성을 텍스트로 바꾸고, LLM에 보낸 뒤, 음성으로 된 응답을 다시 재생합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

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)

…
자주 묻는 질문

이어폰이 캡처하는 오디오 품질은 어떤가요?

블루투스 SCO를 통한 오디오는 8kHz 모노로 제한되지만, BLE 오디오는 최대 32kHz 스테레오를 지원할 수 있습니다. 앱은 사용 가능한 최선의 옵션을 사용하려고 합니다.

앱이 모든 블루투스 이어폰과 작동하나요?

A2DP와 HFP 같은 프로필을 지원하는 이어폰을 위해 설계되었습니다. 앱은 이름을 기준으로 흔한 이어폰을 감지하려고 시도합니다.

앱은 이어폰의 오디오와 마이크 사이의 에코를 어떻게 처리하나요?

`VOICE_COMMUNICATION` 오디오 소스를 사용해 에코 제거(AEC)를 활성화하고, 간섭 없이 녹음과 재생을 하는 특정 순서를 따릅니다.

상세 정보

작성자의 원본 설명

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

인기도

GitHub 스타
48k
순위
#4505
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬