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!

Germany
#1  

With a older Version of Bing it works, how i can Deinstall Bing? or How i can Deinstall Plugins?

#2  

I do not know much about Bing Speech Recognition but I do remember that there are now 2 different ones. I believe one is now cloud based. Maybe you are using the new one and need the non-cloud based one. AS I said I do not know much about it and someone else will see your post and reply.

#3  

@lizpoir

All Bing Speech Recognition controls are going to be cloud based because Bing! speech recognition uses the internet. I don't think you'll be able to revert back to the old plugin innless you saved it, but I don't think that is real solution to your issue.

Which Bing Speech Recogntion control are you now using the standard or the one named "advanced" which lets you enter your own API keys? What do you have entered in the "script" for the Bing Speech Recognition control under the settings?

Germany
#4  

This Version works with my Script since a few Years:

User-inserted image

And after the Update i have 2 Versions:

User-inserted image

I will uninstall both Versions and Install the correct one.

The Old Version i have on my Computer. Thats no Problem, i will only uninstall the new Version.

#5  

Ok, you can do what you want. I would focus on making your updates work, that's what most people would do and the updates are fine. I think you might be struggle to understand the differences between them and are just focused on the fact that your older version worked.

The standard Bing Speech Recognition is part of ARC now and you can add it as a control at any time. The script that you might have under the settings of the control is optional - so it that got blown out - you will have issues! By default this built in version uses the EZ-Robot API keys and allows for a preset amount of speech recognitions for day (I don't recall how many per user).

The Advanced Bing Speech Recognition is an optional plug in and allows you to take ownership to setup your own Azure account and create your own API keys and manage that process your self and account for any billing and usages that might occur if you go over the monthly limit per the Azure usage agreement. - With this you need to check the optional script entry under settings to make sure you have what you need there, if any. And you need to enter your API keys if you are using this option and make sure it works.

So between the 2 versions you have, which one were you trying to use? If you want to make it work correctly? Or just give up and do what ever.

Germany
#6  

I used the older version and I entered my own API key here as well. Whether I use the new or the old version Bing always works. But there are voice commands that should not be sent to Pandora after the Bing voice output, but answered directly by the ARC voice output. I do not know what I should change my script, I can not find a mistake. That's why I just want to uninstall the new version. In addition, I have to de-install an installation because it works only one, there are 2 versions Installed and one is broken. There must be a way to uninstall plugins.

PRO
Synthiam
#7  

Your code is incorrect. The comparison in the IF conditions must be EXACT match. That is how computers work, by comparing exact values with exact values. When comparing strings, it doesn’t kind of sort of match cause it means the same thing. It has to match the exact case sensitivity and punctuation and spelling. Every character must match.

So, check the output response of the bing and see if it matches your comparison.

Also, to understand how IF conditions work, here’s a great video that we put a lot of effort for the community:) enjoy!

Germany
#8  

Hello DJ, Thank you, I will compare the Bing voice output with my answers in the code. That's a very good hint.

This does not solve the problem that I have the same plugin twice in ARC and EZ-Buillder brings error messages because of the two plugins. How do I uninstall plugins? I find neither on the homepage of ET-Robot nor in the forum a hint. Reinstalling ARC does not help, the plugins are preserved

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.