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 when: speechChromeController.chromeState == SpeechChromeController.Idle
54 target: chromeBarImage
66 when: speechChromeController.chromeState == SpeechChromeController.Listening
68 target: chromeBarImage
80 when: speechChromeController.chromeState == SpeechChromeController.Thinking
82 target: chromeBarImage
84 x: root.width - chromeBarImage.width
94 when: speechChromeController.chromeState == SpeechChromeController.Speaking
96 target: chromeBarImage
98 x: (root.width - chromeBarImage.width) * 0.5
107 name: "MicrophoneOff"
108 when: speechChromeController.chromeState == SpeechChromeController.MicrophoneOff
110 target: chromeBarImage