SiriServerCore
SiriServerCore copied to clipboard
answerObject say without speechbubble from siri
Hey folks,
i use the answer Object for some answer and i want that siri read the text in the answerObject but only read it not show anything on the display only the answerObject with the WolframAlpha branding.
Is there any why to do this?
Best Regards
Apologies if this was wrong but from what I remember I handled this through:
self.say(AnswerObjectHere, "SpeakableTextHere")
The speakable part needs to be a string rather than an answerobject.
Hey Mate i just try
exam = u'Hallo'
Title = u'Das ist ein Test'
view = AddViews(self.refId, dialogPhase="Completion")
Answer = AnswerObject(title=Title,lines=[AnswerObjectLine(text=exam)])
view1 = AnswerSnippet(answers=[Answer])
view.views = [view1]
self.say(Answer)
self.sendRequestWithoutAnswer(view)
self.complete_request()
but my springboard chrashes :(
It should be (again iirc, I don't have access to my code right now):
self.say(self.sendRequestWithoutAnswer(view), "%s" %(exam))
try: self.say("", "text to say")
Nope thats will display a empty bubble :D
but i have a solution.... UIRepeatIt() :)