Skip to content

Commit

Permalink
Added StartRequest handling to be emitted as speech back to plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Eichhoernchen authored and Eichhoernchen committed Feb 13, 2012
1 parent 7726759 commit f0061b9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion siriServer.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,9 @@ def process_compressed_data(self):
# don't change it's refId, further requests must reference last FinishSpeech
self.logger.info("Forwarding object to plugin")
self.plugin_lastAceId = None
self.current_running_plugin.response = reqObject
self.current_running_plugin.response = reqObject if reqObject['class'] != "StartRequest" else reqObject['properties']['utterance']
self.current_running_plugin.waitForResponse.set()
continue

if ObjectIsCommand(reqObject, StartSpeechRequest) or ObjectIsCommand(reqObject, StartSpeechDictation):
self.logger.info("New start of speech received")
Expand Down

0 comments on commit f0061b9

Please sign in to comment.