2 import SpeechChrome 1.0
9 property bool agentPresent: speechChromeController.agentPresent
16 anchors.top: parent.top
17 source: "./images/SpeechChrome/bar.png"
20 NumberAnimation { duration: 250 }
23 NumberAnimation { duration: 250 }
30 height: parent.height * 0.80
33 anchors.left: parent.left
34 anchors.leftMargin: parent.width / 128
35 anchors.verticalCenter: parent.verticalCenter
36 source: "./images/SpeechChrome/push_to_talk.svg"
40 onPressed: speechChromeController.pushToTalk()
44 NumberAnimation { duration: 250 }
51 height: parent.height * 0.80
54 anchors.right: parent.right
55 anchors.rightMargin: parent.width / 128
56 anchors.verticalCenter: parent.verticalCenter
57 source: "./images/SpeechChrome/push_to_talk.svg"
61 onPressed: speechChromeController.pushToTalk()
65 NumberAnimation { duration: 250 }
72 when: speechChromeController.chromeState == SpeechChromeController.Idle
74 target: chromeBarImage
79 target: pushToTalkLeft
84 target: pushToTalkRight
91 when: speechChromeController.chromeState == SpeechChromeController.Listening
93 target: chromeBarImage
98 target: pushToTalkLeft
103 target: pushToTalkRight
110 when: speechChromeController.chromeState == SpeechChromeController.Thinking
112 target: chromeBarImage
114 x: root.width - chromeBarImage.width
117 target: pushToTalkLeft
122 target: pushToTalkRight
129 when: speechChromeController.chromeState == SpeechChromeController.Speaking
131 target: chromeBarImage
133 x: (root.width - chromeBarImage.width) * 0.5
136 target: pushToTalkLeft
141 target: pushToTalkRight
147 name: "MicrophoneOff"
148 when: speechChromeController.chromeState == SpeechChromeController.MicrophoneOff
150 target: chromeBarImage
155 target: pushToTalkLeft
160 target: pushToTalkRight