summaryrefslogtreecommitdiff
path: root/test/navigation
diff options
context:
space:
mode:
authorasanoaozora <fifitaneki@hotmail.com>2017-09-29 04:42:22 +0200
committerasanoaozora <fifitaneki@hotmail.com>2017-09-29 04:42:22 +0200
commit1764a03a7e0fa8291b01494bff82b5ffcb4f00aa (patch)
treecba5064f2ff9d4dff99ccb763eecd49e494975f9 /test/navigation
parentb9bda20d81ea44ed8265de8819eb95e2e31dabf9 (diff)
downloadpoi-service-1764a03a7e0fa8291b01494bff82b5ffcb4f00aa.tar.gz
some additions to speech POC
Diffstat (limited to 'test/navigation')
-rwxr-xr-xtest/navigation/script/test-speech.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/test/navigation/script/test-speech.py b/test/navigation/script/test-speech.py
index 01e68bc..9eeef43 100755
--- a/test/navigation/script/test-speech.py
+++ b/test/navigation/script/test-speech.py
@@ -42,7 +42,7 @@ except dltTriggerNotBuilt:
test_name = "speech output"
#constants used into the script
-TIME_OUT = 10000
+TIME_OUT = 20000
def catch_speech_notifyConnectionStatus_signal_handler(connectionStatus):
print("Connection status: " + str(int(connectionStatus)))
@@ -52,7 +52,8 @@ def catch_speech_notifyMarkerReached_signal_handler(chunkID,marker):
def catch_speech_notifyQueueStatus_signal_handler(queueStatus):
print("Queue status: " + str(int(queueStatus)))
- if queueStatus==genivi.SPEECHSERVICE_QS_LOW_FILL:
+ if queueStatus==genivi.SPEECHSERVICE_QS_FULL:
+ print("Test failed, queue full")
g_speech_interface.closePrompter()
exit(0)
@@ -103,7 +104,11 @@ speech = bus.get_object('org.genivi.hmi.speechservice.SpeechOutput','/org/genivi
g_speech_interface = dbus.Interface(speech, dbus_interface='org.genivi.hmi.speechservice.SpeechOutput')
g_speech_interface.openPrompter(genivi.SPEECHSERVICE_CT_NAVIGATION, genivi.SPEECHSERVICE_PPT_NAVIGATION)
-g_speech_interface.addTextChunk(dbus.String("Hello"))
+g_speech_interface.addTextChunk(dbus.String("\
+ Now is the winter of our discontent\
+ Made glorious summer by this sun of York;\
+ And all the clouds that lour'd upon our house\
+ In the deep bosom of the ocean buried. "))
#main loop
gobject.timeout_add(TIME_OUT, timeout)