2025년 3월 27일부터 AOSP를 빌드하고 기여하려면 aosp-main
대신 android-latest-release
를 사용하는 것이 좋습니다. 자세한 내용은 AOSP 변경사항을 참고하세요.
테스트 및 디버그
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
다음은 테스트의 용이함을 위해 VIA 코드를 구조화할 때 고려할 몇 가지 권장사항입니다.
코드베이스를 독립적인 단위로 설계
주요 단위는 다음과 같습니다.
- 실행. 핫워드, 눌러서 말하기(PTT) 및 탭하여 말하기(TTT)
- 음성 인식. 오디오 스트림을 구조화된 데이터로 변환하는 데 초점을 둡니다.
- 명령어 처리. 쿼리를 처리하여 작업으로 변환하는 데 초점을 둡니다.
이러한 각 계층은 자체적으로, 그리고 서로 독립적으로 테스트할 수 있어야 합니다. 다음 항목을 포함하고 문서화합니다.
- 사용자 쿼리를 명령어 처리 계층에 직접 전달하는 데 사용할 수 있는 인텐트 추가 사항. 이를 통해 OEM과 통합자가 음성 인식을 건너뛰고 명령어 처리(자동차 통합)를 직접 테스트할 수 있습니다.
- 사전 녹음된 오디오 파일을 음성 상호작용 서비스에 전달하는 과정. 이 과정에서 차량 마이크를 건너뛰고 자체적으로 음성 인식을 테스트할 수 있습니다.
테스트용 에뮬레이터
Android Emulator는 호스트 마이크와 게스트 AAOS 인스턴스를 서로 연결하는 역할을 하기 때문에 훌륭한 개발 및 테스트 플랫폼입니다.

그림 1. 에뮬레이터 테스트
이 페이지에 나와 있는 콘텐츠와 코드 샘플에는 콘텐츠 라이선스에서 설명하는 라이선스가 적용됩니다. 자바 및 OpenJDK는 Oracle 및 Oracle 계열사의 상표 또는 등록 상표입니다.
최종 업데이트: 2024-04-24(UTC)
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["필요한 정보가 없음","missingTheInformationINeed","thumb-down"],["너무 복잡함/단계 수가 너무 많음","tooComplicatedTooManySteps","thumb-down"],["오래됨","outOfDate","thumb-down"],["번역 문제","translationIssue","thumb-down"],["샘플/코드 문제","samplesCodeIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2024-04-24(UTC)"],[],[],null,["# Test and debug\n\nFollowing are several recommendations to consider as you structure your VIA\ncode to make it easier to test.\n\nArchitect the code base into independent units\n----------------------------------------------\n\nPrimary units include:\n\n- **Triggering.** Hotwording, Push-to-Talk (PTT) and Tap-to-Talk (TTT).\n- **Voice recognition.** Focused on converting audio streams into structured data.\n- **Command fulfillment.** Focused into processing a query and translate it into an action.\n\nEach of these layers should be testable on its own and independent from each\nother. Include and document:\n\n- Intent extras that can be used to pass user queries directly to the command fulfillment layer. This would allow OEMs and integrators to skip the voice recognition and test command fulfillment (car integrations) directly.\n- A process to pass prerecorded audio files into the Voice Interaction service, allowing to test voice recognition on its own, skipping the vehicle microphone.\n\nEmulator for testing\n--------------------\n\n[Android\nEmulator](https://developer.android.com/studio/run/emulator) is an excellent platform for development and testing as it provides bridging\nbetween the host microphone and the guest AAOS instance.\n\n**Figure 1.** Emulator testing"]]