Commit graph

21 commits

Author SHA1 Message Date
Arunesh Mishra
57ec0192a5 Add "clear" command.
Minor visual fixes for the command line interface.

 Bug: 27279191

Change-Id: Ibb20231125c5d46bffc9241711c46dd8101dffb3
2016-04-08 09:55:16 -07:00
Ryan Bavetta
0718681e3e Merge "Fix build error in stub soundtrigger HAL" into nyc-dev 2016-04-01 22:07:14 +00:00
Chris Thornton
0a965102e7 Bump the sound trigger device api's minor version number.
This is needed so we know if we should look for the
stop_all_recognitions function.

Change-Id: Ifa1d7ac0fa293e04bf80729bf34fefa48e74b8bb
2016-03-30 11:25:11 -07:00
Ryan Bavetta
12b20e31d1 Fix build error in stub soundtrigger HAL
Also combines sound model events and trigger events

BUG:27852833
Change-Id: I277b35a5b32c18b09a2c68024f30f9b981688900
2016-03-29 13:09:51 -07:00
Chris Thornton
42a448d790 Adds stop_all_recognitions as an optional method to the sound trigger hal.
Change-Id: I6c905b79673fe21782f5dc5f3abc4c2ac75de805
2016-03-29 09:19:44 -07:00
Andy Hung
b149109eef Merge "Update audio services for 64 bit compilation" into nyc-dev 2016-03-18 20:23:26 +00:00
Andy Hung
19540e344b Update audio services for 64 bit compilation
Bug: 27479136
Change-Id: I1cb6baf3c507c7004b3245176727be1fd96174df
2016-03-18 10:43:05 -07:00
Ryan Bavetta
a8328a37e5 Allows triggering stub HAL by sound model by UUID
BUG: 27604763
Change-Id: I906f6f3c96ae148a7636b5481cb89f83ddb81a03
2016-03-11 22:20:30 -08:00
Ryan Bavetta
9beb06c383 Stub HAL now can test abort and fail events
BUG:27278692
Change-Id: Ibd03e8a13a6bd3f25b312c94436ff9f8ea2d305a
2016-02-29 18:37:29 -08:00
Arunesh Mishra
d0535ae18c Run network thread on open.
This allows us to query the HAL state even when a model is not started or
after stop.

Note: Thread does not terminate on stdev->close().

Bug: 27279191
Change-Id: I6540d501c17a77bdb5cfa5528837af7bfd3ace71
2016-02-21 16:24:15 -08:00
Arunesh Mishra
e1df8138dc Stub sound trigger hal fix for lock release.
Bug: 27279191
Change-Id: If339732cac782d85dc74dba9f1fb92c5a8d0c40d
2016-02-20 17:34:12 -08:00
Ryan Bavetta
f9f0871158 Fix 'end' command, initialize next in linked list
Thread was not ending properly because only the first
char of the end message was being sent.

The next pointer in the linked list was not being
initialized, causing it to link to bad data values.

BUG:27276657
BUG:22860713

Change-Id: Idfdf300d9ab45f9bf61eba191bb1bb0767e1cb5d
2016-02-19 21:38:44 -08:00
Arunesh Mishra
7db0a7a447 Minor sound trigger stub hal fixes.
Bug: 27227051
Change-Id: I90209689cfb501efc8345e140c985c25103961d7
2016-02-19 16:20:10 -08:00
Arunesh Mishra
f1d59fc9d0 Stub sound trigger HAL changes:
- Added a simple command parsing ability for text commands.
- Ability to output text via the socket interface.

Bug: 27227051

Change-Id: I9ea06897d69cf55b58aba5cc30f1c32773b3da00
2016-02-17 16:06:11 -08:00
Ryan Bavetta
c2bdc551f0 Adds sound model update event, adds helper methods
Change-Id: Ifb03843a51a796e1fdb224d4671a52f84b4fceed
2016-02-15 15:51:46 -08:00
Ryan Bavetta
cc6541c740 Adds GenericSoundModel Event Support to Stub HAL
Change-Id: I2a021cbd12a4e17954dcf84528c80731054f2fd3
2016-02-10 18:40:45 +00:00
Ryan Bavetta
be0c8fdc94 Fixs for soundtrigger stub HAL
Also renames re_context to model_context, and
adds missing methods for expanded sound_trigger
operation including
sound_trigger_open_for_streaming
sound_trigger_read_samples
sound_trigger_close_for_streaming

Change-Id: I30e8eebf9c349ffae3c636277ffd0ab6805a324e
2016-02-01 15:26:09 -08:00
Ryan Bavetta
4615aad645 Allow Multiple Triggers and Simulate DSP Events
Triggers can be sent via socket connection from an app
or from the command line.

BUG: 22860713
Change-Id: I7ba8fa50286be2d08f2699e601e7c76138cc4831
2016-01-28 03:02:08 +00:00
Eric Laurent
83cd830918 sound_trigger HAL update
Bug: 12378680.

Change-Id: I556cd316cbff3b8d88331319ca0ad65a09aae0f9
2014-07-31 11:16:16 -07:00
Eric Laurent
30f3e6d348 sound trigger: update HAL
New start_recognition() prototype with recognition
configuration structure specifying:
- List of keyphrases to listen to.
- Recognition mode for each keyphrase
- List of users and min confidence levels for each users

New recognition event format with confidence level and user ID
for each user.

Bug: 12378680.
Change-Id: I95e998c735321ceb5c27f477d894b574a6eca860
2014-07-07 10:15:45 -07:00
Eric Laurent
cbca9056de sound trigger test/stub HAL - WIP
Change-Id: Ie8120df144662b12bba41e2346bac3ce816f9838
2014-06-04 14:34:43 -07:00