2025 年 3 月 27 日より、AOSP のビルドとコントリビューションには aosp-main
ではなく android-latest-release
を使用することをおすすめします。詳細については、AOSP の変更をご覧ください。
テストとデバッグ
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
以下で VIA コードを構造化してテストを容易に実施できるようにするうえで、検討すべきいくつかの推奨事項を紹介します。
コードベースを独立したユニットとして設計する
主な項目は次のとおりです。
- トリガー。起動ワード、プッシュツートーク(PTT)、タップツートーク(TTT)
- 音声認識。音声ストリームを構造化データに変換することに焦点を当てます。
- コマンドのフルフィルメント。クエリの処理に焦点を当てて、アクションに変換します。
これらの各レイヤは単体でテストでき、互いに独立している必要があります。以下を含めて文書化してください。
- ユーザークエリをコマンド フルフィルメント レイヤに直接渡すために使用できるインテント エクストラ。これにより、OEM とインテグレータは音声認識を使わずに、コマンド フルフィルメント(車両との統合)を直接テストできます。
- 事前に録音された音声ファイルを音声操作サービスに渡すプロセス。このプロセスにより、車両のマイクを使わずに、サービス自体の音声認識テストを行うことができます。
テスト用エミュレータ
Android Emulator は、ホストのマイクとゲストの AAOS インスタンスをブリッジすることから、開発とテストに最適なプラットフォームです。

図 1. エミュレータによるテスト
このページのコンテンツやコードサンプルは、コンテンツ ライセンスに記載のライセンスに従います。Java および OpenJDK は Oracle および関連会社の商標または登録商標です。
最終更新日 2025-07-26 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"]],["最終更新日 2025-07-26 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"]]