SiriServerCore icon indicating copy to clipboard operation
SiriServerCore copied to clipboard

answerObject say without speechbubble from siri

Open Martj89 opened this issue 12 years ago • 5 comments

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

Martj89 avatar Jun 21 '12 12:06 Martj89

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.

Begall avatar Jun 21 '12 12:06 Begall

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 :(

Martj89 avatar Jun 21 '12 16:06 Martj89

It should be (again iirc, I don't have access to my code right now):

self.say(self.sendRequestWithoutAnswer(view), "%s" %(exam))

Begall avatar Jun 23 '12 01:06 Begall

try: self.say("", "text to say")

yosev avatar Jul 05 '12 20:07 yosev

Nope thats will display a empty bubble :D

but i have a solution.... UIRepeatIt() :)

Martj89 avatar Jul 05 '12 21:07 Martj89