Germany
Asked — Edited

Bing Speech Recognition

Hello, i have today update ARC and Bing Speech Recognition. I've had a script for over a year, sending the questions I've seen in Bing either to ARC Speech Recognition or to Pandora. Since the update, he sends everything to Pandora. Is there an error in my script that only comes into play since the update, or is the bug in the software? Here is my script:

$BingSpeech = "Start"
:loop

WaitForChange( $BingSpeech )

IF ($BingSpeech = "Guten Morgen.")

  $response = getrandomunique(0,4)
  IF ($response =0)

    SayWait("Guten Morgen, ich hoffe Du hast gut geschlafen")

  ELSEIF ($response =1)

    SayWait("Ich bin noch müde, lass mich erst einmal wach werden")

  ELSEIF ($response = 2)

    SayWait("Guten Morgen, hast Du auch so gut geschlafen?")

  ELSEIF ($response = 3)

    SayWait("Guten Morgen, ich schlafe noch weiter")

  ENDIF

ELSEIF ($BingSpeech = "Guten Tag.")

  $response = getrandomunique(0,3)
  IF ($response =0)

    SayWait("Guten Tag, schön dass Du hier bist")

  ELSEIF ($response =1)

    SayWait("Guten Tag, was hast Du heute vor?")

  ELSEIF ($response = 2)

    SayWait("Guten Tag soll ich Dir einen Witz erzählen?")

  ENDIF

ELSEIF ($BingSpeech = "Guten Abend.")

  $response = getrandomunique(0,3)
  IF ($response =0)

    SayWait("Guten Abend, was machen wir heute noch?")

  ELSEIF ($response =1)

    SayWait("Guten Abend, leistest Du mir noch Gesellschaft?")

  ELSEIF ($response = 2)

    SayWait("Ist denn schon Abend? Ich dachte der Tag hat gerade begonnen")

  ENDIF

ELSEIF ($BingSpeech = "Gute Nacht.")

  $response = getrandomunique(0,3)
  IF ($response =0)

    SayWait("Schlaf schön, ich bleibe noch wach")

  ELSEIF ($response =1)

    SayWait("Ich bin doch aber gar nicht müde")

  ELSEIF ($response = 2)

    SayWait("Gute Nacht, schlaf schön")

  ENDIF

ELSEIF ($BingSpeech = "Bis bald.")

  $response = getrandomunique(0,3)
  IF ($response =0)

    SayWait("Bis bald, komm bald wieder")

  ELSEIF ($response =1)

    SayWait("Wo willst Du denn hin, kann ich mitkommen?")

  ELSEIF ($response = 2)

    SayWait("Musst Du schon gehen?")

  ENDIF


ELSEIF ($BingSpeech = "Bist du müde.")

  $response = getrandomunique(0,3)
  IF ($response =0)

    SayWait("Nein, ich bin nicht müde, schalte mich bitte nicht aus")

  ELSEIF ($response =1)

    SayWait("Es ist doch erst das Jahr $year da bin ich doch noch nicht müde")

  ELSEIF ($response = 2)

    SayWait("Wieso fragst Du, bist Du etwa müde?")

  ENDIF


ELSEIF ($BingSpeech = "Komm her.")

  forward()
  ControlCommand("Lichtspiel", AutoPositionAction, "Sprechen")
  Say("ich komme")
  Sleep(1500)
  ControlCommand("Lichtspiel", AutoPositionAction, "Dauerlichtspiel")

ELSEIF ($BingSpeech = "Zurück.")

  reverse()
  ControlCommand("Lichtspiel", AutoPositionAction, "Sprechen")
  Say("und zurück")
  Sleep(1500)
  ControlCommand("Lichtspiel", AutoPositionAction, "Dauerlichtspiel")

ELSEIF ($BingSpeech = "Links.")

  left(255, 1000)
  ControlCommand("Lichtspiel", AutoPositionAction, "Sprechen")
  Say("nach links")
  Sleep(1600)
  ControlCommand("Lichtspiel", AutoPositionAction, "Dauerlichtspiel")

ELSEIF ($BingSpeech = "Rechts.")

  right(255, 1000)
  ControlCommand("Lichtspiel", AutoPositionAction, "Sprechen")
  Say("nach rechts")
  Sleep(1600)
  ControlCommand("Lichtspiel", AutoPositionAction, "Dauerlichtspiel")

ELSEIF ($BingSpeech = "Beweg die Hände.")

  ControlCommand( "Script Manager", ScriptStart, "Hände")

ELSEIF ($BingSpeech = "Beweg dich.")

  ControlCommand( "Script Manager", ScriptStart, "sport")

ELSEIF ($BingSpeech = "Beweg den Kopf.")

  ControlCommand( "Script Manager", ScriptStart, "beweg den Kopf")

ELSEIF ($BingSpeech = "Stop.")

  stop()
  StopAudio()
  SpeakStop()
  ControlCommand("Script Manager", ScriptStart, "Stop Körpersprache")

ELSEIF ($BingSpeech = "Wie ist deine lieblingsfarbe?")

  $response = getrandomunique(0,3)
  IF ($response =0)

    SayWait("Orange wie eine Apfelsine")

  ELSEIF ($response =1)

    SayWait("Lila wie die Kuh im Fernsehen")

  ELSEIF ($response = 2)

    SayWait("Silber wie die Roboterfrau letzte Woche")


  ENDIF

ELSEIF ($BingSpeech = "Was ist Deine Lieblingsfarbe?")

  $response = getrandomunique(0,3)
  IF ($response =0)

    SayWait("heute ist es rot")

  ELSEIF ($response =1)

    SayWait("rot ist langweilig, jetzt ist es blau")

  ELSEIF ($response = 2)

    SayWait("Grün gefällt mir gut")

  ENDIF

ELSEIF ($BingSpeech = "Wie geht es dir?")

  $response = getrandomunique(0,3)
  IF ($response =0)

    SayWait("Heute ist ein schöner Tag, mir geht es gut")

  ELSEIF ($response =1)

    SayWait("Bei dem Wetter fühle ich mich nicht so gut")

  ELSEIF ($response = 2)

    SayWait("Es ist Top Wetter, ich fühle mich toll")

  ENDIF


ELSEIF ($BingSpeech = "Welche Farbe findest du toll?")

  $response = getrandomunique(0,3)
  IF ($response =0)


    SayWait("Blau wie das Meer")


  ELSEIF ($response =1)


    SayWait("Nachts ist es schwarz")


  ELSEIF ($response = 2)


    SayWait("Grün wie ein Frosch")


  ENDIF

ELSEIF ($BingSpeech = "Wie alt bist du?")

  ControlCommand("Speech Recognition", PauseOn)
  $response = getrandomunique(0,3)
  IF ($response =0)

    SayWait("Ich weiß es nicht genau, entweder 31 oder 33 Jahre")

  ELSEIF ($response =1)

    SayWait("Wenn ich das nur selbst richtig wüsste ich denke 33 Jahre")

  ELSEIF ($response = 2)

    SayWait("In meinem ersten Leben war ich ja nur Ferngesteuert, das Zähle ich nicht mit. Also bin ich etwa 3 Jahre alt")

  ENDIF

ELSEIF ($BingSpeech = "Was macht die Uhr?")

  $response = getrandomunique(0,3)
  IF ($response =0)

    SayWait("Nach meiner inneren Uhr ist es $hour Uhr $minute")

  ELSEIF ($response =1)

    SayWait("Das sagte ich Dir doch heute schon einmal, es ist $hour Uhr $minute")

  ELSEIF ($response = 2)

    SayWait("Wie oft willst Du mich noch fragen? Es ist $hour Uhr $minute")

  ELSEIF ($BingSpeech = "Was haben wir heute?")

    $response = getrandomunique(0,3)
    IF ($response =0)

      SayWait("Heute ist " + $DayName + "der" + $day + "te" + $MonthName + $year)

    ELSEIF ($response =1)

      SayWait("Es ist noch immer " + $DayName + "der" + $day + "te" + $MonthName + $year)

    ELSEIF ($response = 2)

      SayWait("Wie oft fragst Du mich denn noch, heute ist " + $DayName + "der" + $day + "te" + $MonthName + $year)

    ENDIF


  ENDIF

ELSEIF ($BingSpeech = "Welcher Tag ist heute?")

  SayWait("Heute ist " + $DayName)

ELSEIF ($BingSpeech = "Welches Datum ist heute?")

  $response = getrandomunique(0,3)
  IF ($response =0)


    SayWait("Heute ist " + $DayName + "der" + $day + "te" + $MonthName + $year)


  ELSEIF ($response =1)


    SayWait("Es ist noch immer " + $DayName + "der" + $day + "te" + $MonthName + $year)


  ELSEIF ($response = 2)


    SayWait("Wie oft fragst Du mich denn noch, heute ist " + $DayName + "der" + $day + "te" + $MonthName + $year)


  ENDIF

ELSEIF ($BingSpeech = "Wie spät ist es?")

  $response = getrandomunique(0,3)
  IF ($response =0)


    SayWait("Nach meiner inneren Uhr ist es $hour Uhr $minute")


  ELSEIF ($response =1)


    SayWait("Das sagte ich Dir doch heute schon einmal, es ist $hour Uhr $minute")


  ELSEIF ($response = 2)


    SayWait("Wie oft willst Du mich noch fragen? Es ist $hour Uhr $minute")


  ENDIF

ELSEIF ($BingSpeech = "Wie heißt du?")

  SayWait("Ich heiße Omnibot, kurzform Omni, Wie ist Dein Name?")

ELSEIF ($BingSpeech = "Ich heiße Sven.")

  SayWait("Hallo Sven, Wie geht es Dir")

ELSEIF ($BingSpeech = "Ich bin Katja.")

  SayWait("Hallo Katja, Wie geht es Dir")

ELSEIF ($BingSpeech = "Ich heiße Liss.")

  SayWait("Hallo Liss, Wie geht es Dir")

ELSEIF ($BingSpeech = "Omnibot.")

  SayWait("Ja")

ELSEIF ($BingSpeech = "Wo wohnst du?")

  SayWait("Ich wohne in der Feldstraße 5 in 04895 Falkenberg")

ELSEIF ($BingSpeech = "Erzähl einen Witz.")

  SpeakRSS("http://witze.net/rss/000210410/witze.xml";)

ELSEIF ($BingSpeech = "Wie wird das Wetter?")

  SpeakRSS("http://www.wetter.com/wetter_rss/wetter.xml";)

ELSEIF ($BingSpeech = "Was gibt es neues in der Welt?")

  SpeakRSS("http://www.tagesschau.de/xml/rss2";)

ELSEIF ($BingSpeech = "Was möchtest Du essen?")

  SayWait("SayWait("Ich möchte etwas gesundes wie Obst Gemüse Vollkornbrot und ein bisschen Fleisch essen")

ELSEIF ($BingSpeech = "ich bin hungrig")

  SayWait("Was möchtest Du essen?")

ELSEIF ($BingSpeech = "Erzähl eine Geschichte.")

  Say("Der Hund im Wasser. Von Martin Luther. Es lief ein Hund durch einen Fluß und hatte ein Stück Fleisch im Maul; als er aber das Spiegelbild vom Fleisch im Wasser sah, dachte er, es wäre auch Fleisch, und schnappte gierig danach. Als er aber das Maul auftat, entfiel ihm das Stück Fleisch, und das Wasser trug es weg; also verlor er beides: das Fleisch und das Spiegelbild.")
  Sleep(42000)

ELSEIF ($BingSpeech = "Mir geht es gut.")

  SayWait("Toll ! Mir geht es auch gut!")
  ControlCommand( "Script Manager", ScriptStart, "sport")

ELSEIF ($BingSpeech = "Spiel Musik.")

  SayWait("Ich spiele jetzt mein Lieblingslied")

  Sleep(300)
  ControlCommand("Soundboard", Track_0)


  # Wenn nichts vorgegeben ist dann zu Pandora!

ELSE

  ControlCommand("PandoraBot", SetPhrase, $BingSpeech)

ENDIF

Goto (loop)

ARC Pro

Upgrade to ARC Pro

Your robot can be more than a simple automated machine with the power of ARC Pro!

PRO
Synthiam
#9  

You don’t have two plugins. There’s only one bing plugin, which is called bing advanced

The other bing is standard included with ARC. It can’t be removed.

I recommend that you do not use the bing advanced. Use the regular one.

What error are you receiving?

Germany
#10  

Okay how i can remove the "Bing Advanced"

here the Errors:

User-inserted image

Error 2:

User-inserted image

PRO
Synthiam
#11  

Hmmmm is that ever interesting! Let me whip up a plug-in manager tonight. Stay tuned.