Commit Graph

8 Commits

Author SHA1 Message Date
Charles Chen
d644524452 Add sample app for VisualQueryDetection connection
Test: Manual
Bug: 261517532
Change-Id: I5121f86b5ec3469813f5f3d95dfba01d39ce6f1c
2023-02-06 15:45:38 +00:00
Charles Chen
27871db61e Create SampleVisualQueryDetectionService
Create SampleVisualQueryDetectionService for the Sample VoiceInteractor
devlopment app. The service currently only has the no functionalities.
Only the creation and initialization is integrated.

Test: Manual
Bug: 261517532
Change-Id: Ia5354b24e21854fb5e53857f9a6db7c8b80d3f5a
2023-01-12 21:13:18 +00:00
Nicholas Ambur
fd8279171c update Readme with tracing instructions
Bug: 232147045
Test: manual
Change-Id: I848be96c96c4db59f46d51e96166d7570dd7101c
2022-11-07 23:38:47 +00:00
Nicholas Ambur
8ffec3f908 add trace events for SampleHotwordDetectionService
The same trace events are logged for both the VoiceInteractionService
and the HotwordDetectionService

Bug: 232147045
Test: manual
Change-Id: I8b46f1a76c46a34c62a42762d5c56d67f44d8b31
2022-11-07 23:37:47 +00:00
Nicholas Ambur
759874a185 update test app keyphrase to match Google keyphrase
Bug: 232147045
Test: manual
Change-Id: Ib45bdeae4d7de356b539a1475d2f27667cef9fdb
2022-09-09 19:13:45 -07:00
Nicholas Ambur
188fca534f added explicit trace events for AudioRecord
In the VoiceInteractionService sample app, each call to the AudioRecord
is tracked via trace to observe latency.

Bug: 19833161
Test: manual
Change-Id: I24f4b939c7e2eee77399439bc28a9dbce5594129
2022-09-08 17:46:28 -07:00
Ahaan Ugale
45f7d2aaf5 Update HotwordDetectionService prototype.
- Added permission requirements for communicating with system enrollment
  app
- Added priv-app permission build target
  'com.example.android.voiceinteractor.xml'
- Updated README usage directions
- Added log messages when reading audio from AudioRecord
- Changed AudioRecord read calls to request all of the desired data in a
  single .read() call
- Refactor AudioRecord buffer settings to top of service files in
  Duration type
- Compute bytesPerSecond based on EventPayload AudioFormat passed by
  SoundTrigger HAL
- Fixed keyphrase used by VoiceInteractionService to "X Google"
- Added trace events for tracking the time to read audio in VIS after a
  trusted onDetected() callback.

Bug: 168305377
Test: manual
Change-Id: I6c1db7f70ddd62d21c0bb7eba663fe9503d96ae3
2022-09-02 16:34:42 -07:00
Ahaan Ugale
ae5665592c HotwordDetectionService prototype.
See README.

Bug: 168305377
Test: manual
Change-Id: Ida12b8b96c1367acbca28c3f4127c5bbc07a6d93
2022-07-18 15:52:07 -07:00