2 import SpeechChrome 1.0
9 property bool agentPresent: speechChromeController.agentPresent
10 property string agentName: speechChromeController.agentName
17 anchors.top: parent.top
18 source: "./images/SpeechChrome/bar.png"
21 NumberAnimation { duration: 250 }
24 NumberAnimation { duration: 250 }
31 height: parent.height * 0.80
34 anchors.left: parent.left
35 anchors.leftMargin: parent.width / 128
36 anchors.verticalCenter: parent.verticalCenter
37 source: agentName === "Alexa" ? "./images/SpeechChrome/push_to_talk_alexa.png" : "./images/SpeechChrome/push_to_talk.svg"
41 onPressed: speechChromeController.pushToTalk()
45 NumberAnimation { duration: 250 }
52 height: parent.height * 0.80
55 anchors.right: parent.right
56 anchors.rightMargin: parent.width / 128
57 anchors.verticalCenter: parent.verticalCenter
58 source: agentName === "Alexa" ? "./images/SpeechChrome/push_to_talk_alexa.png" : "./images/SpeechChrome/push_to_talk.svg"
62 onPressed: speechChromeController.pushToTalk()
66 NumberAnimation { duration: 250 }
73 when: speechChromeController.chromeState == SpeechChromeController.Idle
75 target: chromeBarImage
80 target: pushToTalkLeft
85 target: pushToTalkRight
92 when: speechChromeController.chromeState == SpeechChromeController.Listening
94 target: chromeBarImage
99 target: pushToTalkLeft
104 target: pushToTalkRight
111 when: speechChromeController.chromeState == SpeechChromeController.Thinking
113 target: chromeBarImage
115 x: root.width - chromeBarImage.width
118 target: pushToTalkLeft
123 target: pushToTalkRight
130 when: speechChromeController.chromeState == SpeechChromeController.Speaking
132 target: chromeBarImage
134 x: (root.width - chromeBarImage.width) * 0.5
137 target: pushToTalkLeft
142 target: pushToTalkRight
148 name: "MicrophoneOff"
149 when: speechChromeController.chromeState == SpeechChromeController.MicrophoneOff
151 target: chromeBarImage
156 target: pushToTalkLeft
161 target: pushToTalkRight